OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 __ Call(ip0); | 1121 __ Call(ip0); |
1122 masm->isolate()->heap()->SetInterpreterEntryReturnPCOffset(masm->pc_offset()); | 1122 masm->isolate()->heap()->SetInterpreterEntryReturnPCOffset(masm->pc_offset()); |
1123 | 1123 |
1124 // The return value is in x0. | 1124 // The return value is in x0. |
1125 LeaveInterpreterFrame(masm, x2); | 1125 LeaveInterpreterFrame(masm, x2); |
1126 __ Ret(); | 1126 __ Ret(); |
1127 | 1127 |
1128 // Load debug copy of the bytecode array. | 1128 // Load debug copy of the bytecode array. |
1129 __ Bind(&load_debug_bytecode_array); | 1129 __ Bind(&load_debug_bytecode_array); |
1130 __ Ldr(kInterpreterBytecodeArrayRegister, | 1130 __ Ldr(kInterpreterBytecodeArrayRegister, |
1131 FieldMemOperand(debug_info, DebugInfo::kAbstractCodeIndex)); | 1131 FieldMemOperand(debug_info, DebugInfo::kDebugBytecodeArrayIndex)); |
1132 __ B(&bytecode_array_loaded); | 1132 __ B(&bytecode_array_loaded); |
1133 | 1133 |
1134 // If the bytecode array is no longer present, then the underlying function | 1134 // If the bytecode array is no longer present, then the underlying function |
1135 // has been switched to a different kind of code and we heal the closure by | 1135 // has been switched to a different kind of code and we heal the closure by |
1136 // switching the code entry field over to the new code object as well. | 1136 // switching the code entry field over to the new code object as well. |
1137 __ Bind(&bytecode_array_not_present); | 1137 __ Bind(&bytecode_array_not_present); |
1138 __ LeaveFrame(StackFrame::JAVA_SCRIPT); | 1138 __ LeaveFrame(StackFrame::JAVA_SCRIPT); |
1139 __ Ldr(x7, FieldMemOperand(x1, JSFunction::kSharedFunctionInfoOffset)); | 1139 __ Ldr(x7, FieldMemOperand(x1, JSFunction::kSharedFunctionInfoOffset)); |
1140 __ Ldr(x7, FieldMemOperand(x7, SharedFunctionInfo::kCodeOffset)); | 1140 __ Ldr(x7, FieldMemOperand(x7, SharedFunctionInfo::kCodeOffset)); |
1141 __ Add(x7, x7, Operand(Code::kHeaderSize - kHeapObjectTag)); | 1141 __ Add(x7, x7, Operand(Code::kHeaderSize - kHeapObjectTag)); |
(...skipping 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3010 __ Unreachable(); | 3010 __ Unreachable(); |
3011 } | 3011 } |
3012 } | 3012 } |
3013 | 3013 |
3014 #undef __ | 3014 #undef __ |
3015 | 3015 |
3016 } // namespace internal | 3016 } // namespace internal |
3017 } // namespace v8 | 3017 } // namespace v8 |
3018 | 3018 |
3019 #endif // V8_TARGET_ARCH_ARM | 3019 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |