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 #if V8_TARGET_ARCH_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
6 | 6 |
7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
957 | 957 |
958 // Pass the deoptimization type to the runtime system. | 958 // Pass the deoptimization type to the runtime system. |
959 __ li(a1, Operand(Smi::FromInt(static_cast<int>(type)))); | 959 __ li(a1, Operand(Smi::FromInt(static_cast<int>(type)))); |
960 __ push(a1); | 960 __ push(a1); |
961 __ CallRuntime(Runtime::kNotifyDeoptimized); | 961 __ CallRuntime(Runtime::kNotifyDeoptimized); |
962 | 962 |
963 __ pop(kInterpreterAccumulatorRegister); // Restore accumulator register. | 963 __ pop(kInterpreterAccumulatorRegister); // Restore accumulator register. |
964 // Tear down internal frame. | 964 // Tear down internal frame. |
965 } | 965 } |
966 | 966 |
967 // Drop state (we don't use these for interpreter deopts) and push PC at top | 967 // Drop state (we don't use this for interpreter deopts). |
968 // of stack (to simulate initial call to bytecode handler in interpreter entry | |
969 // trampoline). | |
970 __ lw(a1, MemOperand(sp)); | |
971 __ Drop(1); | 968 __ Drop(1); |
972 __ sw(a1, MemOperand(sp)); | |
973 | 969 |
974 // Initialize register file register and dispatch table register. | 970 // Initialize register file register and dispatch table register. |
975 __ Addu(kInterpreterRegisterFileRegister, fp, | 971 __ Addu(kInterpreterRegisterFileRegister, fp, |
976 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 972 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
977 __ LoadRoot(kInterpreterDispatchTableRegister, | 973 __ LoadRoot(kInterpreterDispatchTableRegister, |
978 Heap::kInterpreterTableRootIndex); | 974 Heap::kInterpreterTableRootIndex); |
979 __ Addu(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, | 975 __ Addu(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, |
980 Operand(FixedArray::kHeaderSize - kHeapObjectTag)); | 976 Operand(FixedArray::kHeaderSize - kHeapObjectTag)); |
981 | 977 |
982 // Get the context from the frame. | 978 // Get the context from the frame. |
(...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2423 } | 2419 } |
2424 } | 2420 } |
2425 | 2421 |
2426 | 2422 |
2427 #undef __ | 2423 #undef __ |
2428 | 2424 |
2429 } // namespace internal | 2425 } // namespace internal |
2430 } // namespace v8 | 2426 } // namespace v8 |
2431 | 2427 |
2432 #endif // V8_TARGET_ARCH_MIPS | 2428 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |