From 3d4f63be681fc7732d6fdea1051b4fd9437d9fdd Mon Sep 17 00:00:00 2001 From: "balazs.kilvady@imgtec.com" Date: Mon, 8 Sep 2014 18:51:07 +0000 Subject: [PATCH] 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 --- src/mips/code-stubs-mips.cc | 3 +-- src/mips/lithium-mips.cc | 3 +-- src/mips64/code-stubs-mips64.cc | 3 +-- src/mips64/lithium-mips64.cc | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc index 7a0335707a..c349f6b141 100644 --- a/src/mips/code-stubs-mips.cc +++ b/src/mips/code-stubs-mips.cc @@ -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. diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc index 2f26ee1d15..760d427a68 100644 --- a/src/mips/lithium-mips.cc +++ b/src/mips/lithium-mips.cc @@ -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(instr->index()); Register reg = descriptor.GetEnvironmentParameterRegister(index); return DefineFixed(result, reg); diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc index 4ed30ccc40..4a716ec232 100644 --- a/src/mips64/code-stubs-mips64.cc +++ b/src/mips64/code-stubs-mips64.cc @@ -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. diff --git a/src/mips64/lithium-mips64.cc b/src/mips64/lithium-mips64.cc index 3afa22d676..649361441b 100644 --- a/src/mips64/lithium-mips64.cc +++ b/src/mips64/lithium-mips64.cc @@ -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(instr->index()); Register reg = descriptor.GetEnvironmentParameterRegister(index); return DefineFixed(result, reg);