MIPS: Initialize CodeStubInterfaceDescriptor in the constructor.

Port r23773 (9b5b258)

BUG=
R=paul.lind@imgtec.com

Review URL: https://codereview.chromium.org/553783004

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23782 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 88253752
......@@ -122,8 +122,7 @@ void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
// Update the static counter each time a new code stub is generated.
isolate()->counters()->code_stubs()->Increment();
CodeStubInterfaceDescriptor descriptor;
InitializeInterfaceDescriptor(&descriptor);
CodeStubInterfaceDescriptor descriptor(this);
int param_count = descriptor.GetEnvironmentParameterCount();
{
// Call the runtime system in a fresh internal frame.
......
......@@ -2405,8 +2405,7 @@ LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
return DefineAsSpilled(result, spill_index);
} else {
DCHECK(info()->IsStub());
CodeStubInterfaceDescriptor descriptor;
info()->code_stub()->InitializeInterfaceDescriptor(&descriptor);
CodeStubInterfaceDescriptor descriptor(info()->code_stub());
int index = static_cast<int>(instr->index());
Register reg = descriptor.GetEnvironmentParameterRegister(index);
return DefineFixed(result, reg);
......
......@@ -121,8 +121,7 @@ void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
// Update the static counter each time a new code stub is generated.
isolate()->counters()->code_stubs()->Increment();
CodeStubInterfaceDescriptor descriptor;
InitializeInterfaceDescriptor(&descriptor);
CodeStubInterfaceDescriptor descriptor(this);
int param_count = descriptor.GetEnvironmentParameterCount();
{
// Call the runtime system in a fresh internal frame.
......
......@@ -2405,8 +2405,7 @@ LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
return DefineAsSpilled(result, spill_index);
} else {
DCHECK(info()->IsStub());
CodeStubInterfaceDescriptor descriptor;
info()->code_stub()->InitializeInterfaceDescriptor(&descriptor);
CodeStubInterfaceDescriptor descriptor(info()->code_stub());
int index = static_cast<int>(instr->index());
Register reg = descriptor.GetEnvironmentParameterRegister(index);
return DefineFixed(result, reg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment