| 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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 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 4779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4790 if (function_mode() == JS_FUNCTION_STUB_MODE) { | 4790 if (function_mode() == JS_FUNCTION_STUB_MODE) { |
| 4791 __ Addu(a1, a1, Operand(1)); | 4791 __ Addu(a1, a1, Operand(1)); |
| 4792 } | 4792 } |
| 4793 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); | 4793 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); |
| 4794 __ sll(a1, a1, kPointerSizeLog2); | 4794 __ sll(a1, a1, kPointerSizeLog2); |
| 4795 __ Ret(USE_DELAY_SLOT); | 4795 __ Ret(USE_DELAY_SLOT); |
| 4796 __ Addu(sp, sp, a1); | 4796 __ Addu(sp, sp, a1); |
| 4797 } | 4797 } |
| 4798 | 4798 |
| 4799 | 4799 |
| 4800 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { |
| 4801 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister()); |
| 4802 VectorLoadStub stub(isolate(), state_); |
| 4803 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); |
| 4804 } |
| 4805 |
| 4806 |
| 4807 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { |
| 4808 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister()); |
| 4809 VectorKeyedLoadStub stub(isolate()); |
| 4810 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); |
| 4811 } |
| 4812 |
| 4813 |
| 4800 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { | 4814 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { |
| 4801 if (masm->isolate()->function_entry_hook() != NULL) { | 4815 if (masm->isolate()->function_entry_hook() != NULL) { |
| 4802 ProfileEntryHookStub stub(masm->isolate()); | 4816 ProfileEntryHookStub stub(masm->isolate()); |
| 4803 __ push(ra); | 4817 __ push(ra); |
| 4804 __ CallStub(&stub); | 4818 __ CallStub(&stub); |
| 4805 __ pop(ra); | 4819 __ pop(ra); |
| 4806 } | 4820 } |
| 4807 } | 4821 } |
| 4808 | 4822 |
| 4809 | 4823 |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5286 MemOperand(fp, 6 * kPointerSize), | 5300 MemOperand(fp, 6 * kPointerSize), |
| 5287 NULL); | 5301 NULL); |
| 5288 } | 5302 } |
| 5289 | 5303 |
| 5290 | 5304 |
| 5291 #undef __ | 5305 #undef __ |
| 5292 | 5306 |
| 5293 } } // namespace v8::internal | 5307 } } // namespace v8::internal |
| 5294 | 5308 |
| 5295 #endif // V8_TARGET_ARCH_MIPS | 5309 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |