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

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

Issue 540403002: MIPS: Do not cache CodeStubInterfaceDescriptor on the isolate. (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 | « no previous file | src/mips/lithium-mips.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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 bool strict); 115 bool strict);
116 static void EmitStrictTwoHeapObjectCompare(MacroAssembler* masm, 116 static void EmitStrictTwoHeapObjectCompare(MacroAssembler* masm,
117 Register lhs, 117 Register lhs,
118 Register rhs); 118 Register rhs);
119 119
120 120
121 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { 121 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
122 // Update the static counter each time a new code stub is generated. 122 // Update the static counter each time a new code stub is generated.
123 isolate()->counters()->code_stubs()->Increment(); 123 isolate()->counters()->code_stubs()->Increment();
124 124
125 CodeStubInterfaceDescriptor descriptor = GetInterfaceDescriptor(); 125 CodeStubInterfaceDescriptor descriptor;
126 int param_count = descriptor->GetEnvironmentParameterCount(); 126 InitializeInterfaceDescriptor(&descriptor);
127 int param_count = descriptor.GetEnvironmentParameterCount();
127 { 128 {
128 // Call the runtime system in a fresh internal frame. 129 // Call the runtime system in a fresh internal frame.
129 FrameScope scope(masm, StackFrame::INTERNAL); 130 FrameScope scope(masm, StackFrame::INTERNAL);
130 DCHECK(param_count == 0 || 131 DCHECK(param_count == 0 ||
131 a0.is(descriptor->GetEnvironmentParameterRegister( 132 a0.is(descriptor.GetEnvironmentParameterRegister(param_count - 1)));
132 param_count - 1)));
133 // Push arguments, adjust sp. 133 // Push arguments, adjust sp.
134 __ Subu(sp, sp, Operand(param_count * kPointerSize)); 134 __ Subu(sp, sp, Operand(param_count * kPointerSize));
135 for (int i = 0; i < param_count; ++i) { 135 for (int i = 0; i < param_count; ++i) {
136 // Store argument to stack. 136 // Store argument to stack.
137 __ sw(descriptor->GetEnvironmentParameterRegister(i), 137 __ sw(descriptor.GetEnvironmentParameterRegister(i),
138 MemOperand(sp, (param_count-1-i) * kPointerSize)); 138 MemOperand(sp, (param_count-1-i) * kPointerSize));
139 } 139 }
140 ExternalReference miss = descriptor->miss_handler(); 140 ExternalReference miss = descriptor.miss_handler();
141 __ CallExternalReference(miss, param_count); 141 __ CallExternalReference(miss, param_count);
142 } 142 }
143 143
144 __ Ret(); 144 __ Ret();
145 } 145 }
146 146
147 147
148 void DoubleToIStub::Generate(MacroAssembler* masm) { 148 void DoubleToIStub::Generate(MacroAssembler* masm) {
149 Label out_of_range, only_low, negate, done; 149 Label out_of_range, only_low, negate, done;
150 Register input_reg = source(); 150 Register input_reg = source();
(...skipping 4736 matching lines...) Expand 10 before | Expand all | Expand 10 after
4887 MemOperand(fp, 6 * kPointerSize), 4887 MemOperand(fp, 6 * kPointerSize),
4888 NULL); 4888 NULL);
4889 } 4889 }
4890 4890
4891 4891
4892 #undef __ 4892 #undef __
4893 4893
4894 } } // namespace v8::internal 4894 } } // namespace v8::internal
4895 4895
4896 #endif // V8_TARGET_ARCH_MIPS 4896 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698