MIPS: Initialize CodeStubInterfaceDescriptor in the constructor.
authorbalazs.kilvady@imgtec.com <balazs.kilvady@imgtec.com>
Mon, 8 Sep 2014 18:51:07 +0000 (18:51 +0000)
committerbalazs.kilvady@imgtec.com <balazs.kilvady@imgtec.com>
Mon, 8 Sep 2014 18:51:07 +0000 (18:51 +0000)
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

src/mips/code-stubs-mips.cc
src/mips/lithium-mips.cc
src/mips64/code-stubs-mips64.cc
src/mips64/lithium-mips64.cc

index 7a03357..c349f6b 100644 (file)
@@ -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.
index 2f26ee1..760d427 100644 (file)
@@ -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);
index 4ed30cc..4a716ec 100644 (file)
@@ -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.
index 3afa22d..6493614 100644 (file)
@@ -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);