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 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 FrameScope frame_scope(masm, StackFrame::MANUAL); | 989 FrameScope frame_scope(masm, StackFrame::MANUAL); |
990 __ PushStandardFrame(a1); | 990 __ PushStandardFrame(a1); |
991 | 991 |
992 // Get the bytecode array from the function object (or from the DebugInfo if | 992 // Get the bytecode array from the function object (or from the DebugInfo if |
993 // it is present) and load it into kInterpreterBytecodeArrayRegister. | 993 // it is present) and load it into kInterpreterBytecodeArrayRegister. |
994 __ ld(a0, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); | 994 __ ld(a0, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); |
995 Label load_debug_bytecode_array, bytecode_array_loaded; | 995 Label load_debug_bytecode_array, bytecode_array_loaded; |
996 Register debug_info = kInterpreterBytecodeArrayRegister; | 996 Register debug_info = kInterpreterBytecodeArrayRegister; |
997 DCHECK(!debug_info.is(a0)); | 997 DCHECK(!debug_info.is(a0)); |
998 __ ld(debug_info, FieldMemOperand(a0, SharedFunctionInfo::kDebugInfoOffset)); | 998 __ ld(debug_info, FieldMemOperand(a0, SharedFunctionInfo::kDebugInfoOffset)); |
999 __ Branch(&load_debug_bytecode_array, ne, debug_info, | 999 __ JumpIfNotSmi(debug_info, &load_debug_bytecode_array); |
1000 Operand(DebugInfo::uninitialized())); | |
1001 __ ld(kInterpreterBytecodeArrayRegister, | 1000 __ ld(kInterpreterBytecodeArrayRegister, |
1002 FieldMemOperand(a0, SharedFunctionInfo::kFunctionDataOffset)); | 1001 FieldMemOperand(a0, SharedFunctionInfo::kFunctionDataOffset)); |
1003 __ bind(&bytecode_array_loaded); | 1002 __ bind(&bytecode_array_loaded); |
1004 | 1003 |
1005 // Check whether we should continue to use the interpreter. | 1004 // Check whether we should continue to use the interpreter. |
1006 Label switch_to_different_code_kind; | 1005 Label switch_to_different_code_kind; |
1007 __ ld(a0, FieldMemOperand(a0, SharedFunctionInfo::kCodeOffset)); | 1006 __ ld(a0, FieldMemOperand(a0, SharedFunctionInfo::kCodeOffset)); |
1008 __ Branch(&switch_to_different_code_kind, ne, a0, | 1007 __ Branch(&switch_to_different_code_kind, ne, a0, |
1009 Operand(masm->CodeObject())); // Self-reference to this code. | 1008 Operand(masm->CodeObject())); // Self-reference to this code. |
1010 | 1009 |
(...skipping 2119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3130 __ break_(0xCC); | 3129 __ break_(0xCC); |
3131 } | 3130 } |
3132 } | 3131 } |
3133 | 3132 |
3134 #undef __ | 3133 #undef __ |
3135 | 3134 |
3136 } // namespace internal | 3135 } // namespace internal |
3137 } // namespace v8 | 3136 } // namespace v8 |
3138 | 3137 |
3139 #endif // V8_TARGET_ARCH_MIPS64 | 3138 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |