| 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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 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 4816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4827 if (function_mode() == JS_FUNCTION_STUB_MODE) { | 4827 if (function_mode() == JS_FUNCTION_STUB_MODE) { |
| 4828 __ Daddu(a1, a1, Operand(1)); | 4828 __ Daddu(a1, a1, Operand(1)); |
| 4829 } | 4829 } |
| 4830 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); | 4830 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); |
| 4831 __ dsll(a1, a1, kPointerSizeLog2); | 4831 __ dsll(a1, a1, kPointerSizeLog2); |
| 4832 __ Ret(USE_DELAY_SLOT); | 4832 __ Ret(USE_DELAY_SLOT); |
| 4833 __ Daddu(sp, sp, a1); | 4833 __ Daddu(sp, sp, a1); |
| 4834 } | 4834 } |
| 4835 | 4835 |
| 4836 | 4836 |
| 4837 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { |
| 4838 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister()); |
| 4839 VectorLoadStub stub(isolate(), state_); |
| 4840 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); |
| 4841 } |
| 4842 |
| 4843 |
| 4844 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { |
| 4845 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister()); |
| 4846 VectorKeyedLoadStub stub(isolate()); |
| 4847 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); |
| 4848 } |
| 4849 |
| 4850 |
| 4837 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { | 4851 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { |
| 4838 if (masm->isolate()->function_entry_hook() != NULL) { | 4852 if (masm->isolate()->function_entry_hook() != NULL) { |
| 4839 ProfileEntryHookStub stub(masm->isolate()); | 4853 ProfileEntryHookStub stub(masm->isolate()); |
| 4840 __ push(ra); | 4854 __ push(ra); |
| 4841 __ CallStub(&stub); | 4855 __ CallStub(&stub); |
| 4842 __ pop(ra); | 4856 __ pop(ra); |
| 4843 } | 4857 } |
| 4844 } | 4858 } |
| 4845 | 4859 |
| 4846 | 4860 |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5323 MemOperand(fp, 6 * kPointerSize), | 5337 MemOperand(fp, 6 * kPointerSize), |
| 5324 NULL); | 5338 NULL); |
| 5325 } | 5339 } |
| 5326 | 5340 |
| 5327 | 5341 |
| 5328 #undef __ | 5342 #undef __ |
| 5329 | 5343 |
| 5330 } } // namespace v8::internal | 5344 } } // namespace v8::internal |
| 5331 | 5345 |
| 5332 #endif // V8_TARGET_ARCH_MIPS64 | 5346 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |