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

Side by Side Diff: src/ic/ia32/handler-compiler-ia32.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/arm64/handler-compiler-arm64.cc ('k') | src/ic/mips/handler-compiler-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 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_IA32 5 #if V8_TARGET_ARCH_IA32
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 DCHECK(!accessor_holder.is(scratch)); 110 DCHECK(!accessor_holder.is(scratch));
111 // Copy return value. 111 // Copy return value.
112 __ pop(scratch); 112 __ pop(scratch);
113 113
114 if (is_store) { 114 if (is_store) {
115 // Discard stack arguments. 115 // Discard stack arguments.
116 __ add(esp, Immediate(StoreWithVectorDescriptor::kStackArgumentsCount * 116 __ add(esp, Immediate(StoreWithVectorDescriptor::kStackArgumentsCount *
117 kPointerSize)); 117 kPointerSize));
118 } 118 }
119 // Write the receiver and arguments to stack frame. 119 // Write the receiver and arguments to stack frame.
120 __ push(accessor_holder);
121 __ push(receiver); 120 __ push(receiver);
122 if (is_store) { 121 if (is_store) {
123 DCHECK(!AreAliased(receiver, scratch, store_parameter)); 122 DCHECK(!AreAliased(receiver, scratch, store_parameter));
124 __ push(store_parameter); 123 __ push(store_parameter);
125 } 124 }
126 __ push(scratch); 125 __ push(scratch);
127 // Stack now matches JSFunction abi. 126 // Stack now matches JSFunction abi.
128 DCHECK(optimization.is_simple_api_call()); 127 DCHECK(optimization.is_simple_api_call());
129 128
130 // Abi for CallApiCallbackStub. 129 // Abi for CallApiCallbackStub.
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 Register NamedStoreHandlerCompiler::value() { 439 Register NamedStoreHandlerCompiler::value() {
441 return StoreDescriptor::ValueRegister(); 440 return StoreDescriptor::ValueRegister();
442 } 441 }
443 442
444 443
445 #undef __ 444 #undef __
446 } // namespace internal 445 } // namespace internal
447 } // namespace v8 446 } // namespace v8
448 447
449 #endif // V8_TARGET_ARCH_IA32 448 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ic/arm64/handler-compiler-arm64.cc ('k') | src/ic/mips/handler-compiler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698