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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 | 306 |
307 // Jump to stub. | 307 // Jump to stub. |
308 CallApiCallbackStub stub(isolate, is_store, call_data_undefined, | 308 CallApiCallbackStub stub(isolate, is_store, call_data_undefined, |
309 !optimization.is_constant_call()); | 309 !optimization.is_constant_call()); |
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 StoreWithVectorDescriptor::SlotRegister(), |
317 VectorStoreICDescriptor::VectorRegister()); | 317 StoreWithVectorDescriptor::VectorRegister()); |
318 } | 318 } |
319 | 319 |
320 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { | 320 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { |
321 StoreIC_PushArgs(masm); | 321 StoreIC_PushArgs(masm); |
322 | 322 |
323 // 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 |
324 // 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. |
325 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); | 325 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); |
326 } | 326 } |
327 | 327 |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 | 655 |
656 // Return the generated code. | 656 // Return the generated code. |
657 return GetCode(kind(), name); | 657 return GetCode(kind(), name); |
658 } | 658 } |
659 | 659 |
660 #undef __ | 660 #undef __ |
661 } // namespace internal | 661 } // namespace internal |
662 } // namespace v8 | 662 } // namespace v8 |
663 | 663 |
664 #endif // V8_TARGET_ARCH_ARM | 664 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |