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
This commit is contained in:
parent
88253752fb
commit
3d4f63be68
@ -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) {
|
|||||||
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) {
|
|||||||
// 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) {
|
|||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user