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

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

Issue 2973593002: Revert of Set the current context to the function's context when entering to LAP. (Closed)
Patch Set: 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);
98 // receiver 96 // receiver
99 __ Push(receiver); 97 __ Push(receiver);
100 // Write the arguments to stack frame. 98 // Write the arguments to stack frame.
101 if (is_store) { 99 if (is_store) {
102 DCHECK(!receiver.is(store_parameter)); 100 DCHECK(!receiver.is(store_parameter));
103 DCHECK(!scratch.is(store_parameter)); 101 DCHECK(!scratch.is(store_parameter));
104 __ Push(store_parameter); 102 __ Push(store_parameter);
105 } 103 }
106 __ PushReturnAddressFrom(scratch); 104 __ PushReturnAddressFrom(scratch);
107 // Stack now matches JSFunction abi. 105 // Stack now matches JSFunction abi.
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 Register NamedStoreHandlerCompiler::value() { 411 Register NamedStoreHandlerCompiler::value() {
414 return StoreDescriptor::ValueRegister(); 412 return StoreDescriptor::ValueRegister();
415 } 413 }
416 414
417 415
418 #undef __ 416 #undef __
419 } // namespace internal 417 } // namespace internal
420 } // namespace v8 418 } // namespace v8
421 419
422 #endif // V8_TARGET_ARCH_X64 420 #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