| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
| 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 __ TailCallStub(&stub); | 310 __ TailCallStub(&stub); |
| 311 } | 311 } |
| 312 | 312 |
| 313 static void StoreIC_PushArgs(MacroAssembler* masm) { | 313 static void StoreIC_PushArgs(MacroAssembler* masm) { |
| 314 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), | 314 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), |
| 315 StoreDescriptor::ValueRegister(), | 315 StoreDescriptor::ValueRegister(), |
| 316 VectorStoreICDescriptor::SlotRegister(), | 316 VectorStoreICDescriptor::SlotRegister(), |
| 317 VectorStoreICDescriptor::VectorRegister()); | 317 VectorStoreICDescriptor::VectorRegister()); |
| 318 } | 318 } |
| 319 | 319 |
| 320 void NamedStoreHandlerCompiler::GenerateSlow(MacroAssembler* masm) { | |
| 321 StoreIC_PushArgs(masm); | |
| 322 | |
| 323 // The slow case calls into the runtime to complete the store without causing | |
| 324 // an IC miss that would otherwise cause a transition to the generic stub. | |
| 325 __ TailCallRuntime(Runtime::kStoreIC_Slow); | |
| 326 } | |
| 327 | |
| 328 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { | 320 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { |
| 329 StoreIC_PushArgs(masm); | 321 StoreIC_PushArgs(masm); |
| 330 | 322 |
| 331 // The slow case calls into the runtime to complete the store without causing | 323 // The slow case calls into the runtime to complete the store without causing |
| 332 // an IC miss that would otherwise cause a transition to the generic stub. | 324 // an IC miss that would otherwise cause a transition to the generic stub. |
| 333 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); | 325 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); |
| 334 } | 326 } |
| 335 | 327 |
| 336 #undef __ | 328 #undef __ |
| 337 #define __ ACCESS_MASM(masm()) | 329 #define __ ACCESS_MASM(masm()) |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 | 655 |
| 664 // Return the generated code. | 656 // Return the generated code. |
| 665 return GetCode(kind(), name); | 657 return GetCode(kind(), name); |
| 666 } | 658 } |
| 667 | 659 |
| 668 #undef __ | 660 #undef __ |
| 669 } // namespace internal | 661 } // namespace internal |
| 670 } // namespace v8 | 662 } // namespace v8 |
| 671 | 663 |
| 672 #endif // V8_TARGET_ARCH_ARM | 664 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |