From ad05a1db17ec58c64642d53ccfcfbf8137f8275c Mon Sep 17 00:00:00 2001 From: "weiliang.lin@intel.com" Date: Fri, 12 Sep 2014 02:12:15 +0000 Subject: [PATCH] X87: Initialize CodeStubInterfaceDescriptor in the constructor. port r23773. original commit message: Initialize CodeStubInterfaceDescriptor in the constructor. BUG= R=weiliang.lin@intel.com Review URL: https://codereview.chromium.org/563133002 Patch from Jing Bao . git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23890 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/x87/code-stubs-x87.cc | 3 +-- src/x87/lithium-x87.cc | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc index f9358aa..7fd43b8 100644 --- a/src/x87/code-stubs-x87.cc +++ b/src/x87/code-stubs-x87.cc @@ -115,8 +115,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/x87/lithium-x87.cc b/src/x87/lithium-x87.cc index f93ed62..61aebdf 100644 --- a/src/x87/lithium-x87.cc +++ b/src/x87/lithium-x87.cc @@ -2490,8 +2490,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); -- 2.7.4