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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
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 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
948 | 948 |
949 // Pass the deoptimization type to the runtime system. | 949 // Pass the deoptimization type to the runtime system. |
950 __ li(a1, Operand(Smi::FromInt(static_cast<int>(type)))); | 950 __ li(a1, Operand(Smi::FromInt(static_cast<int>(type)))); |
951 __ push(a1); | 951 __ push(a1); |
952 __ CallRuntime(Runtime::kNotifyDeoptimized); | 952 __ CallRuntime(Runtime::kNotifyDeoptimized); |
953 | 953 |
954 __ pop(kInterpreterAccumulatorRegister); // Restore accumulator register. | 954 __ pop(kInterpreterAccumulatorRegister); // Restore accumulator register. |
955 // Tear down internal frame. | 955 // Tear down internal frame. |
956 } | 956 } |
957 | 957 |
958 // Drop state (we don't use these for interpreter deopts) and push PC at top | 958 // Drop state (we don't use this for interpreter deopts). |
959 // of stack (to simulate initial call to bytecode handler in interpreter entry | |
960 // trampoline). | |
961 __ ld(a1, MemOperand(sp)); | |
962 __ Drop(1); | 959 __ Drop(1); |
963 __ sd(a1, MemOperand(sp)); | |
964 | 960 |
965 // Initialize register file register and dispatch table register. | 961 // Initialize register file register and dispatch table register. |
966 __ Daddu(kInterpreterRegisterFileRegister, fp, | 962 __ Daddu(kInterpreterRegisterFileRegister, fp, |
967 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 963 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
968 __ LoadRoot(kInterpreterDispatchTableRegister, | 964 __ LoadRoot(kInterpreterDispatchTableRegister, |
969 Heap::kInterpreterTableRootIndex); | 965 Heap::kInterpreterTableRootIndex); |
970 __ Daddu(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, | 966 __ Daddu(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, |
971 Operand(FixedArray::kHeaderSize - kHeapObjectTag)); | 967 Operand(FixedArray::kHeaderSize - kHeapObjectTag)); |
972 | 968 |
973 // Get the context from the frame. | 969 // Get the context from the frame. |
(...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2413 } | 2409 } |
2414 } | 2410 } |
2415 | 2411 |
2416 | 2412 |
2417 #undef __ | 2413 #undef __ |
2418 | 2414 |
2419 } // namespace internal | 2415 } // namespace internal |
2420 } // namespace v8 | 2416 } // namespace v8 |
2421 | 2417 |
2422 #endif // V8_TARGET_ARCH_MIPS64 | 2418 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |