OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 4574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4585 if (function_mode_ == JS_FUNCTION_STUB_MODE) { | 4585 if (function_mode_ == JS_FUNCTION_STUB_MODE) { |
4586 __ add(r1, r1, Operand(1)); | 4586 __ add(r1, r1, Operand(1)); |
4587 } | 4587 } |
4588 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); | 4588 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); |
4589 __ mov(r1, Operand(r1, LSL, kPointerSizeLog2)); | 4589 __ mov(r1, Operand(r1, LSL, kPointerSizeLog2)); |
4590 __ add(sp, sp, r1); | 4590 __ add(sp, sp, r1); |
4591 __ Ret(); | 4591 __ Ret(); |
4592 } | 4592 } |
4593 | 4593 |
4594 | 4594 |
| 4595 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { |
| 4596 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister()); |
| 4597 if (GetCodeKind() == Code::KEYED_LOAD_IC) { |
| 4598 VectorKeyedLoadStub stub(isolate()); |
| 4599 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); |
| 4600 } else { |
| 4601 DCHECK(GetCodeKind() == Code::LOAD_IC); |
| 4602 VectorLoadStub stub(isolate(), state_); |
| 4603 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); |
| 4604 } |
| 4605 } |
| 4606 |
| 4607 |
4595 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { | 4608 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { |
4596 if (masm->isolate()->function_entry_hook() != NULL) { | 4609 if (masm->isolate()->function_entry_hook() != NULL) { |
4597 ProfileEntryHookStub stub(masm->isolate()); | 4610 ProfileEntryHookStub stub(masm->isolate()); |
4598 int code_size = masm->CallStubSize(&stub) + 2 * Assembler::kInstrSize; | 4611 int code_size = masm->CallStubSize(&stub) + 2 * Assembler::kInstrSize; |
4599 PredictableCodeSizeScope predictable(masm, code_size); | 4612 PredictableCodeSizeScope predictable(masm, code_size); |
4600 __ push(lr); | 4613 __ push(lr); |
4601 __ CallStub(&stub); | 4614 __ CallStub(&stub); |
4602 __ pop(lr); | 4615 __ pop(lr); |
4603 } | 4616 } |
4604 } | 4617 } |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5096 MemOperand(fp, 6 * kPointerSize), | 5109 MemOperand(fp, 6 * kPointerSize), |
5097 NULL); | 5110 NULL); |
5098 } | 5111 } |
5099 | 5112 |
5100 | 5113 |
5101 #undef __ | 5114 #undef __ |
5102 | 5115 |
5103 } } // namespace v8::internal | 5116 } } // namespace v8::internal |
5104 | 5117 |
5105 #endif // V8_TARGET_ARCH_ARM | 5118 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |