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

Side by Side Diff: src/ic/mips/handler-compiler-mips.cc

Issue 2770003002: Set the current context to the function's context when entering to LAP. (Closed)
Patch Set: Synced. Created 3 years, 5 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
« no previous file with comments | « src/ic/ia32/handler-compiler-ia32.cc ('k') | src/ic/mips64/handler-compiler-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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #if V8_TARGET_ARCH_MIPS 5 #if V8_TARGET_ARCH_MIPS
6 6
7 #include "src/ic/handler-compiler.h" 7 #include "src/ic/handler-compiler.h"
8 8
9 #include "src/api-arguments.h" 9 #include "src/api-arguments.h"
10 #include "src/field-type.h" 10 #include "src/field-type.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } 161 }
162 162
163 // Generate call to api function. 163 // Generate call to api function.
164 void PropertyHandlerCompiler::GenerateApiAccessorCall( 164 void PropertyHandlerCompiler::GenerateApiAccessorCall(
165 MacroAssembler* masm, const CallOptimization& optimization, 165 MacroAssembler* masm, const CallOptimization& optimization,
166 Handle<Map> receiver_map, Register receiver, Register scratch_in, 166 Handle<Map> receiver_map, Register receiver, Register scratch_in,
167 bool is_store, Register store_parameter, Register accessor_holder, 167 bool is_store, Register store_parameter, Register accessor_holder,
168 int accessor_index) { 168 int accessor_index) {
169 DCHECK(!accessor_holder.is(scratch_in)); 169 DCHECK(!accessor_holder.is(scratch_in));
170 DCHECK(!receiver.is(scratch_in)); 170 DCHECK(!receiver.is(scratch_in));
171 __ push(accessor_holder);
171 __ push(receiver); 172 __ push(receiver);
172 // Write the arguments to stack frame. 173 // Write the arguments to stack frame.
173 if (is_store) { 174 if (is_store) {
174 DCHECK(!receiver.is(store_parameter)); 175 DCHECK(!receiver.is(store_parameter));
175 DCHECK(!scratch_in.is(store_parameter)); 176 DCHECK(!scratch_in.is(store_parameter));
176 __ push(store_parameter); 177 __ push(store_parameter);
177 } 178 }
178 DCHECK(optimization.is_simple_api_call()); 179 DCHECK(optimization.is_simple_api_call());
179 180
180 // Abi for CallApiCallbackStub. 181 // Abi for CallApiCallbackStub.
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 Register NamedStoreHandlerCompiler::value() { 404 Register NamedStoreHandlerCompiler::value() {
404 return StoreDescriptor::ValueRegister(); 405 return StoreDescriptor::ValueRegister();
405 } 406 }
406 407
407 408
408 #undef __ 409 #undef __
409 } // namespace internal 410 } // namespace internal
410 } // namespace v8 411 } // namespace v8
411 412
412 #endif // V8_TARGET_ARCH_MIPS 413 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ic/ia32/handler-compiler-ia32.cc ('k') | src/ic/mips64/handler-compiler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698