| 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 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 __ Call(at); | 1101 __ Call(at); |
| 1102 masm->isolate()->heap()->SetInterpreterEntryReturnPCOffset(masm->pc_offset()); | 1102 masm->isolate()->heap()->SetInterpreterEntryReturnPCOffset(masm->pc_offset()); |
| 1103 | 1103 |
| 1104 // The return value is in v0. | 1104 // The return value is in v0. |
| 1105 LeaveInterpreterFrame(masm, t0); | 1105 LeaveInterpreterFrame(masm, t0); |
| 1106 __ Jump(ra); | 1106 __ Jump(ra); |
| 1107 | 1107 |
| 1108 // Load debug copy of the bytecode array. | 1108 // Load debug copy of the bytecode array. |
| 1109 __ bind(&load_debug_bytecode_array); | 1109 __ bind(&load_debug_bytecode_array); |
| 1110 __ ld(kInterpreterBytecodeArrayRegister, | 1110 __ ld(kInterpreterBytecodeArrayRegister, |
| 1111 FieldMemOperand(debug_info, DebugInfo::kAbstractCodeIndex)); | 1111 FieldMemOperand(debug_info, DebugInfo::kDebugBytecodeArrayIndex)); |
| 1112 __ Branch(&bytecode_array_loaded); | 1112 __ Branch(&bytecode_array_loaded); |
| 1113 | 1113 |
| 1114 // If the bytecode array is no longer present, then the underlying function | 1114 // If the bytecode array is no longer present, then the underlying function |
| 1115 // has been switched to a different kind of code and we heal the closure by | 1115 // has been switched to a different kind of code and we heal the closure by |
| 1116 // switching the code entry field over to the new code object as well. | 1116 // switching the code entry field over to the new code object as well. |
| 1117 __ bind(&bytecode_array_not_present); | 1117 __ bind(&bytecode_array_not_present); |
| 1118 __ LeaveFrame(StackFrame::JAVA_SCRIPT); | 1118 __ LeaveFrame(StackFrame::JAVA_SCRIPT); |
| 1119 __ ld(a4, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); | 1119 __ ld(a4, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); |
| 1120 __ ld(a4, FieldMemOperand(a4, SharedFunctionInfo::kCodeOffset)); | 1120 __ ld(a4, FieldMemOperand(a4, SharedFunctionInfo::kCodeOffset)); |
| 1121 __ Daddu(a4, a4, Operand(Code::kHeaderSize - kHeapObjectTag)); | 1121 __ Daddu(a4, a4, Operand(Code::kHeaderSize - kHeapObjectTag)); |
| (...skipping 1852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2974 __ break_(0xCC); | 2974 __ break_(0xCC); |
| 2975 } | 2975 } |
| 2976 } | 2976 } |
| 2977 | 2977 |
| 2978 #undef __ | 2978 #undef __ |
| 2979 | 2979 |
| 2980 } // namespace internal | 2980 } // namespace internal |
| 2981 } // namespace v8 | 2981 } // namespace v8 |
| 2982 | 2982 |
| 2983 #endif // V8_TARGET_ARCH_MIPS64 | 2983 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |