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

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

Powered by Google App Engine
This is Rietveld 408576698