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) { ...@@ -122,8 +122,7 @@ void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
// Update the static counter each time a new code stub is generated. // Update the static counter each time a new code stub is generated.
isolate()->counters()->code_stubs()->Increment(); isolate()->counters()->code_stubs()->Increment();
CodeStubInterfaceDescriptor descriptor; CodeStubInterfaceDescriptor descriptor(this);
InitializeInterfaceDescriptor(&descriptor);
int param_count = descriptor.GetEnvironmentParameterCount(); int param_count = descriptor.GetEnvironmentParameterCount();
{ {
// Call the runtime system in a fresh internal frame. // Call the runtime system in a fresh internal frame.
......
...@@ -2405,8 +2405,7 @@ LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { ...@@ -2405,8 +2405,7 @@ LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
return DefineAsSpilled(result, spill_index); return DefineAsSpilled(result, spill_index);
} else { } else {
DCHECK(info()->IsStub()); DCHECK(info()->IsStub());
CodeStubInterfaceDescriptor descriptor; CodeStubInterfaceDescriptor descriptor(info()->code_stub());
info()->code_stub()->InitializeInterfaceDescriptor(&descriptor);
int index = static_cast<int>(instr->index()); int index = static_cast<int>(instr->index());
Register reg = descriptor.GetEnvironmentParameterRegister(index); Register reg = descriptor.GetEnvironmentParameterRegister(index);
return DefineFixed(result, reg); return DefineFixed(result, reg);
......
...@@ -121,8 +121,7 @@ void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { ...@@ -121,8 +121,7 @@ void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
// Update the static counter each time a new code stub is generated. // Update the static counter each time a new code stub is generated.
isolate()->counters()->code_stubs()->Increment(); isolate()->counters()->code_stubs()->Increment();
CodeStubInterfaceDescriptor descriptor; CodeStubInterfaceDescriptor descriptor(this);
InitializeInterfaceDescriptor(&descriptor);
int param_count = descriptor.GetEnvironmentParameterCount(); int param_count = descriptor.GetEnvironmentParameterCount();
{ {
// Call the runtime system in a fresh internal frame. // Call the runtime system in a fresh internal frame.
......
...@@ -2405,8 +2405,7 @@ LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { ...@@ -2405,8 +2405,7 @@ LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
return DefineAsSpilled(result, spill_index); return DefineAsSpilled(result, spill_index);
} else { } else {
DCHECK(info()->IsStub()); DCHECK(info()->IsStub());
CodeStubInterfaceDescriptor descriptor; CodeStubInterfaceDescriptor descriptor(info()->code_stub());
info()->code_stub()->InitializeInterfaceDescriptor(&descriptor);
int index = static_cast<int>(instr->index()); int index = static_cast<int>(instr->index());
Register reg = descriptor.GetEnvironmentParameterRegister(index); Register reg = descriptor.GetEnvironmentParameterRegister(index);
return DefineFixed(result, reg); 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