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 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 __ Call(at); | 1109 __ Call(at); |
1110 masm->isolate()->heap()->SetInterpreterEntryReturnPCOffset(masm->pc_offset()); | 1110 masm->isolate()->heap()->SetInterpreterEntryReturnPCOffset(masm->pc_offset()); |
1111 | 1111 |
1112 // The return value is in v0. | 1112 // The return value is in v0. |
1113 LeaveInterpreterFrame(masm, t0); | 1113 LeaveInterpreterFrame(masm, t0); |
1114 __ Jump(ra); | 1114 __ Jump(ra); |
1115 | 1115 |
1116 // Load debug copy of the bytecode array. | 1116 // Load debug copy of the bytecode array. |
1117 __ bind(&load_debug_bytecode_array); | 1117 __ bind(&load_debug_bytecode_array); |
1118 __ lw(kInterpreterBytecodeArrayRegister, | 1118 __ lw(kInterpreterBytecodeArrayRegister, |
1119 FieldMemOperand(debug_info, DebugInfo::kAbstractCodeIndex)); | 1119 FieldMemOperand(debug_info, DebugInfo::kDebugBytecodeArrayIndex)); |
1120 __ Branch(&bytecode_array_loaded); | 1120 __ Branch(&bytecode_array_loaded); |
1121 | 1121 |
1122 // If the bytecode array is no longer present, then the underlying function | 1122 // If the bytecode array is no longer present, then the underlying function |
1123 // has been switched to a different kind of code and we heal the closure by | 1123 // has been switched to a different kind of code and we heal the closure by |
1124 // switching the code entry field over to the new code object as well. | 1124 // switching the code entry field over to the new code object as well. |
1125 __ bind(&bytecode_array_not_present); | 1125 __ bind(&bytecode_array_not_present); |
1126 __ LeaveFrame(StackFrame::JAVA_SCRIPT); | 1126 __ LeaveFrame(StackFrame::JAVA_SCRIPT); |
1127 __ lw(t0, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); | 1127 __ lw(t0, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); |
1128 __ lw(t0, FieldMemOperand(t0, SharedFunctionInfo::kCodeOffset)); | 1128 __ lw(t0, FieldMemOperand(t0, SharedFunctionInfo::kCodeOffset)); |
1129 __ Addu(t0, t0, Operand(Code::kHeaderSize - kHeapObjectTag)); | 1129 __ Addu(t0, t0, Operand(Code::kHeaderSize - kHeapObjectTag)); |
(...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2978 __ break_(0xCC); | 2978 __ break_(0xCC); |
2979 } | 2979 } |
2980 } | 2980 } |
2981 | 2981 |
2982 #undef __ | 2982 #undef __ |
2983 | 2983 |
2984 } // namespace internal | 2984 } // namespace internal |
2985 } // namespace v8 | 2985 } // namespace v8 |
2986 | 2986 |
2987 #endif // V8_TARGET_ARCH_MIPS | 2987 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |