OLD | NEW |
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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
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 Loading... |
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 Loading... |
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_MIPS64 | 691 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |