| 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
| 6 | 6 |
| 7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
| 8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 3533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3544 __ AddP(r3, Operand(1)); | 3544 __ AddP(r3, Operand(1)); |
| 3545 } | 3545 } |
| 3546 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); | 3546 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); |
| 3547 __ ShiftLeftP(r3, r3, Operand(kPointerSizeLog2)); | 3547 __ ShiftLeftP(r3, r3, Operand(kPointerSizeLog2)); |
| 3548 __ la(sp, MemOperand(r3, sp)); | 3548 __ la(sp, MemOperand(r3, sp)); |
| 3549 __ Ret(); | 3549 __ Ret(); |
| 3550 } | 3550 } |
| 3551 | 3551 |
| 3552 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { | 3552 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { |
| 3553 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); | 3553 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); |
| 3554 LoadICStub stub(isolate(), state()); | 3554 LoadICStub stub(isolate()); |
| 3555 stub.GenerateForTrampoline(masm); | 3555 stub.GenerateForTrampoline(masm); |
| 3556 } | 3556 } |
| 3557 | 3557 |
| 3558 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { | 3558 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { |
| 3559 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); | 3559 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); |
| 3560 KeyedLoadICStub stub(isolate(), state()); | 3560 KeyedLoadICStub stub(isolate()); |
| 3561 stub.GenerateForTrampoline(masm); | 3561 stub.GenerateForTrampoline(masm); |
| 3562 } | 3562 } |
| 3563 | 3563 |
| 3564 void CallICTrampolineStub::Generate(MacroAssembler* masm) { | 3564 void CallICTrampolineStub::Generate(MacroAssembler* masm) { |
| 3565 __ EmitLoadTypeFeedbackVector(r4); | 3565 __ EmitLoadTypeFeedbackVector(r4); |
| 3566 CallICStub stub(isolate(), state()); | 3566 CallICStub stub(isolate(), state()); |
| 3567 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); | 3567 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); |
| 3568 } | 3568 } |
| 3569 | 3569 |
| 3570 void LoadICStub::Generate(MacroAssembler* masm) { GenerateImpl(masm, false); } | 3570 void LoadICStub::Generate(MacroAssembler* masm) { GenerateImpl(masm, false); } |
| (...skipping 1930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5501 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 5501 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
| 5502 kStackUnwindSpace, NULL, return_value_operand, NULL); | 5502 kStackUnwindSpace, NULL, return_value_operand, NULL); |
| 5503 } | 5503 } |
| 5504 | 5504 |
| 5505 #undef __ | 5505 #undef __ |
| 5506 | 5506 |
| 5507 } // namespace internal | 5507 } // namespace internal |
| 5508 } // namespace v8 | 5508 } // namespace v8 |
| 5509 | 5509 |
| 5510 #endif // V8_TARGET_ARCH_S390 | 5510 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |