| 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 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1138 __ Call(at); | 1138 __ Call(at); |
| 1139 masm->isolate()->heap()->SetInterpreterEntryReturnPCOffset(masm->pc_offset()); | 1139 masm->isolate()->heap()->SetInterpreterEntryReturnPCOffset(masm->pc_offset()); |
| 1140 | 1140 |
| 1141 // The return value is in v0. | 1141 // The return value is in v0. |
| 1142 LeaveInterpreterFrame(masm, t0); | 1142 LeaveInterpreterFrame(masm, t0); |
| 1143 __ Jump(ra); | 1143 __ Jump(ra); |
| 1144 | 1144 |
| 1145 // Load debug copy of the bytecode array. | 1145 // Load debug copy of the bytecode array. |
| 1146 __ bind(&load_debug_bytecode_array); | 1146 __ bind(&load_debug_bytecode_array); |
| 1147 __ lw(kInterpreterBytecodeArrayRegister, | 1147 __ lw(kInterpreterBytecodeArrayRegister, |
| 1148 FieldMemOperand(debug_info, DebugInfo::kDebugBytecodeArrayIndex)); | 1148 FieldMemOperand(debug_info, DebugInfo::kDebugBytecodeArrayOffset)); |
| 1149 __ Branch(&bytecode_array_loaded); | 1149 __ Branch(&bytecode_array_loaded); |
| 1150 | 1150 |
| 1151 // If the shared code is no longer this entry trampoline, then the underlying | 1151 // If the shared code is no longer this entry trampoline, then the underlying |
| 1152 // function has been switched to a different kind of code and we heal the | 1152 // function has been switched to a different kind of code and we heal the |
| 1153 // closure by switching the code entry field over to the new code as well. | 1153 // closure by switching the code entry field over to the new code as well. |
| 1154 __ bind(&switch_to_different_code_kind); | 1154 __ bind(&switch_to_different_code_kind); |
| 1155 __ LeaveFrame(StackFrame::JAVA_SCRIPT); | 1155 __ LeaveFrame(StackFrame::JAVA_SCRIPT); |
| 1156 __ lw(t0, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); | 1156 __ lw(t0, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); |
| 1157 __ lw(t0, FieldMemOperand(t0, SharedFunctionInfo::kCodeOffset)); | 1157 __ lw(t0, FieldMemOperand(t0, SharedFunctionInfo::kCodeOffset)); |
| 1158 __ Addu(t0, t0, Operand(Code::kHeaderSize - kHeapObjectTag)); | 1158 __ Addu(t0, t0, Operand(Code::kHeaderSize - kHeapObjectTag)); |
| (...skipping 1953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3112 // Now jump to the instructions of the returned code object. | 3112 // Now jump to the instructions of the returned code object. |
| 3113 __ Jump(at, v0, Code::kHeaderSize - kHeapObjectTag); | 3113 __ Jump(at, v0, Code::kHeaderSize - kHeapObjectTag); |
| 3114 } | 3114 } |
| 3115 | 3115 |
| 3116 #undef __ | 3116 #undef __ |
| 3117 | 3117 |
| 3118 } // namespace internal | 3118 } // namespace internal |
| 3119 } // namespace v8 | 3119 } // namespace v8 |
| 3120 | 3120 |
| 3121 #endif // V8_TARGET_ARCH_MIPS | 3121 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |