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 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 __ Ld(kInterpreterBytecodeArrayRegister, | 1147 __ Ld(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 __ Ld(a4, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); | 1156 __ Ld(a4, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); |
1157 __ Ld(a4, FieldMemOperand(a4, SharedFunctionInfo::kCodeOffset)); | 1157 __ Ld(a4, FieldMemOperand(a4, SharedFunctionInfo::kCodeOffset)); |
1158 __ Daddu(a4, a4, Operand(Code::kHeaderSize - kHeapObjectTag)); | 1158 __ Daddu(a4, a4, Operand(Code::kHeaderSize - kHeapObjectTag)); |
(...skipping 1992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3151 __ Daddu(at, v0, Operand(Code::kHeaderSize - kHeapObjectTag)); | 3151 __ Daddu(at, v0, Operand(Code::kHeaderSize - kHeapObjectTag)); |
3152 __ Jump(at); | 3152 __ Jump(at); |
3153 } | 3153 } |
3154 | 3154 |
3155 #undef __ | 3155 #undef __ |
3156 | 3156 |
3157 } // namespace internal | 3157 } // namespace internal |
3158 } // namespace v8 | 3158 } // namespace v8 |
3159 | 3159 |
3160 #endif // V8_TARGET_ARCH_MIPS64 | 3160 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |