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

Side by Side Diff: src/ic/mips/handler-compiler-mips.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/ic.cc ('k') | src/ic/mips64/handler-compiler-mips64.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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 319
320 320
321 static void StoreIC_PushArgs(MacroAssembler* masm) { 321 static void StoreIC_PushArgs(MacroAssembler* masm) {
322 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), 322 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(),
323 StoreDescriptor::ValueRegister(), 323 StoreDescriptor::ValueRegister(),
324 VectorStoreICDescriptor::SlotRegister(), 324 VectorStoreICDescriptor::SlotRegister(),
325 VectorStoreICDescriptor::VectorRegister()); 325 VectorStoreICDescriptor::VectorRegister());
326 } 326 }
327 327
328 328
329 void NamedStoreHandlerCompiler::GenerateSlow(MacroAssembler* masm) {
330 StoreIC_PushArgs(masm);
331
332 // The slow case calls into the runtime to complete the store without causing
333 // an IC miss that would otherwise cause a transition to the generic stub.
334 __ TailCallRuntime(Runtime::kStoreIC_Slow);
335 }
336
337
338 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { 329 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) {
339 StoreIC_PushArgs(masm); 330 StoreIC_PushArgs(masm);
340 331
341 // The slow case calls into the runtime to complete the store without causing 332 // The slow case calls into the runtime to complete the store without causing
342 // an IC miss that would otherwise cause a transition to the generic stub. 333 // an IC miss that would otherwise cause a transition to the generic stub.
343 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); 334 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow);
344 } 335 }
345 336
346 337
347 #undef __ 338 #undef __
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 // Return the generated code. 682 // Return the generated code.
692 return GetCode(kind(), name); 683 return GetCode(kind(), name);
693 } 684 }
694 685
695 686
696 #undef __ 687 #undef __
697 } // namespace internal 688 } // namespace internal
698 } // namespace v8 689 } // namespace v8
699 690
700 #endif // V8_TARGET_ARCH_MIPS 691 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/ic/mips64/handler-compiler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698