Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1719)

Side by Side Diff: src/mips64/code-stubs-mips64.cc

Issue 553783004: MIPS: Initialize CodeStubInterfaceDescriptor in the constructor. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/mips64/lithium-mips64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 bool strict); 114 bool strict);
115 static void EmitStrictTwoHeapObjectCompare(MacroAssembler* masm, 115 static void EmitStrictTwoHeapObjectCompare(MacroAssembler* masm,
116 Register lhs, 116 Register lhs,
117 Register rhs); 117 Register rhs);
118 118
119 119
120 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { 120 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
121 // Update the static counter each time a new code stub is generated. 121 // Update the static counter each time a new code stub is generated.
122 isolate()->counters()->code_stubs()->Increment(); 122 isolate()->counters()->code_stubs()->Increment();
123 123
124 CodeStubInterfaceDescriptor descriptor; 124 CodeStubInterfaceDescriptor descriptor(this);
125 InitializeInterfaceDescriptor(&descriptor);
126 int param_count = descriptor.GetEnvironmentParameterCount(); 125 int param_count = descriptor.GetEnvironmentParameterCount();
127 { 126 {
128 // Call the runtime system in a fresh internal frame. 127 // Call the runtime system in a fresh internal frame.
129 FrameScope scope(masm, StackFrame::INTERNAL); 128 FrameScope scope(masm, StackFrame::INTERNAL);
130 DCHECK((param_count == 0) || 129 DCHECK((param_count == 0) ||
131 a0.is(descriptor.GetEnvironmentParameterRegister(param_count - 1))); 130 a0.is(descriptor.GetEnvironmentParameterRegister(param_count - 1)));
132 // Push arguments, adjust sp. 131 // Push arguments, adjust sp.
133 __ Dsubu(sp, sp, Operand(param_count * kPointerSize)); 132 __ Dsubu(sp, sp, Operand(param_count * kPointerSize));
134 for (int i = 0; i < param_count; ++i) { 133 for (int i = 0; i < param_count; ++i) {
135 // Store argument to stack. 134 // Store argument to stack.
(...skipping 4789 matching lines...) Expand 10 before | Expand all | Expand 10 after
4925 MemOperand(fp, 6 * kPointerSize), 4924 MemOperand(fp, 6 * kPointerSize),
4926 NULL); 4925 NULL);
4927 } 4926 }
4928 4927
4929 4928
4930 #undef __ 4929 #undef __
4931 4930
4932 } } // namespace v8::internal 4931 } } // namespace v8::internal
4933 4932
4934 #endif // V8_TARGET_ARCH_MIPS64 4933 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/mips64/lithium-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698