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

Side by Side Diff: src/ic/x64/handler-compiler-x64.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/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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 __ PopReturnAddressTo(r11); 333 __ PopReturnAddressTo(r11);
334 __ Push(receiver); 334 __ Push(receiver);
335 __ Push(name); 335 __ Push(name);
336 __ Push(value); 336 __ Push(value);
337 __ Push(slot); 337 __ Push(slot);
338 __ Push(vector); 338 __ Push(vector);
339 __ PushReturnAddressFrom(r11); 339 __ PushReturnAddressFrom(r11);
340 } 340 }
341 341
342 342
343 void NamedStoreHandlerCompiler::GenerateSlow(MacroAssembler* masm) {
344 // Return address is on the stack.
345 StoreIC_PushArgs(masm);
346
347 // Do tail-call to runtime routine.
348 __ TailCallRuntime(Runtime::kStoreIC_Slow);
349 }
350
351
352 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { 343 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) {
353 // Return address is on the stack. 344 // Return address is on the stack.
354 StoreIC_PushArgs(masm); 345 StoreIC_PushArgs(masm);
355 346
356 // Do tail-call to runtime routine. 347 // Do tail-call to runtime routine.
357 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); 348 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow);
358 } 349 }
359 350
360 351
361 #undef __ 352 #undef __
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 // Return the generated code. 708 // Return the generated code.
718 return GetCode(kind(), name); 709 return GetCode(kind(), name);
719 } 710 }
720 711
721 712
722 #undef __ 713 #undef __
723 } // namespace internal 714 } // namespace internal
724 } // namespace v8 715 } // namespace v8
725 716
726 #endif // V8_TARGET_ARCH_X64 717 #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