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

Side by Side Diff: src/ic/x64/handler-compiler-x64.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/s390/handler-compiler-s390.cc ('k') | src/ic/x87/handler-compiler-x87.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_X64 5 #if V8_TARGET_ARCH_X64
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Generate call to api function. 86 // Generate call to api function.
87 void PropertyHandlerCompiler::GenerateApiAccessorCall( 87 void PropertyHandlerCompiler::GenerateApiAccessorCall(
88 MacroAssembler* masm, const CallOptimization& optimization, 88 MacroAssembler* masm, const CallOptimization& optimization,
89 Handle<Map> receiver_map, Register receiver, Register scratch, 89 Handle<Map> receiver_map, Register receiver, Register scratch,
90 bool is_store, Register store_parameter, Register accessor_holder, 90 bool is_store, Register store_parameter, Register accessor_holder,
91 int accessor_index) { 91 int accessor_index) {
92 DCHECK(!accessor_holder.is(scratch)); 92 DCHECK(!accessor_holder.is(scratch));
93 DCHECK(optimization.is_simple_api_call()); 93 DCHECK(optimization.is_simple_api_call());
94 94
95 __ PopReturnAddressTo(scratch); 95 __ PopReturnAddressTo(scratch);
96 // accessor_holder
97 __ Push(accessor_holder);
96 // receiver 98 // receiver
97 __ Push(receiver); 99 __ Push(receiver);
98 // Write the arguments to stack frame. 100 // Write the arguments to stack frame.
99 if (is_store) { 101 if (is_store) {
100 DCHECK(!receiver.is(store_parameter)); 102 DCHECK(!receiver.is(store_parameter));
101 DCHECK(!scratch.is(store_parameter)); 103 DCHECK(!scratch.is(store_parameter));
102 __ Push(store_parameter); 104 __ Push(store_parameter);
103 } 105 }
104 __ PushReturnAddressFrom(scratch); 106 __ PushReturnAddressFrom(scratch);
105 // Stack now matches JSFunction abi. 107 // Stack now matches JSFunction abi.
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 Register NamedStoreHandlerCompiler::value() { 413 Register NamedStoreHandlerCompiler::value() {
412 return StoreDescriptor::ValueRegister(); 414 return StoreDescriptor::ValueRegister();
413 } 415 }
414 416
415 417
416 #undef __ 418 #undef __
417 } // namespace internal 419 } // namespace internal
418 } // namespace v8 420 } // namespace v8
419 421
420 #endif // V8_TARGET_ARCH_X64 422 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ic/s390/handler-compiler-s390.cc ('k') | src/ic/x87/handler-compiler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698