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

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

Issue 2144643004: [builtins] Turn StoreIC_Miss and StoreIC_Slow builtins to TurboFan code stubs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/handler-compiler.cc ('k') | src/ic/ic.h » ('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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 326
327 __ xchg(receiver, Operand(esp, 0)); 327 __ xchg(receiver, Operand(esp, 0));
328 __ push(name); 328 __ push(name);
329 __ push(value); 329 __ push(value);
330 __ push(slot); 330 __ push(slot);
331 __ push(vector); 331 __ push(vector);
332 __ push(receiver); // which contains the return address. 332 __ push(receiver); // which contains the return address.
333 } 333 }
334 334
335 335
336 void NamedStoreHandlerCompiler::GenerateSlow(MacroAssembler* masm) {
337 // Return address is on the stack.
338 StoreIC_PushArgs(masm);
339
340 // Do tail-call to runtime routine.
341 __ TailCallRuntime(Runtime::kStoreIC_Slow);
342 }
343
344
345 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { 336 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) {
346 // Return address is on the stack. 337 // Return address is on the stack.
347 StoreIC_PushArgs(masm); 338 StoreIC_PushArgs(masm);
348 339
349 // Do tail-call to runtime routine. 340 // Do tail-call to runtime routine.
350 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); 341 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow);
351 } 342 }
352 343
353 344
354 #undef __ 345 #undef __
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 // Return the generated code. 711 // Return the generated code.
721 return GetCode(kind(), name); 712 return GetCode(kind(), name);
722 } 713 }
723 714
724 715
725 #undef __ 716 #undef __
726 } // namespace internal 717 } // namespace internal
727 } // namespace v8 718 } // namespace v8
728 719
729 #endif // V8_TARGET_ARCH_IA32 720 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ic/handler-compiler.cc ('k') | src/ic/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698