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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/debug.h" | 10 #include "src/debug.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 // Load padding words on stack. | 86 // Load padding words on stack. |
87 __ Mov(scratch, Smi::FromInt(LiveEdit::kFramePaddingValue)); | 87 __ Mov(scratch, Smi::FromInt(LiveEdit::kFramePaddingValue)); |
88 __ PushMultipleTimes(scratch, LiveEdit::kFramePaddingInitialSize); | 88 __ PushMultipleTimes(scratch, LiveEdit::kFramePaddingInitialSize); |
89 __ Mov(scratch, Smi::FromInt(LiveEdit::kFramePaddingInitialSize)); | 89 __ Mov(scratch, Smi::FromInt(LiveEdit::kFramePaddingInitialSize)); |
90 __ Push(scratch); | 90 __ Push(scratch); |
91 | 91 |
92 if (mode == SAVE_RESULT_REGISTER) __ Push(x0); | 92 if (mode == SAVE_RESULT_REGISTER) __ Push(x0); |
93 | 93 |
94 __ Mov(x0, 0); // No arguments. | 94 __ Mov(x0, 0); // No arguments. |
95 __ Mov(x1, ExternalReference::debug_break(masm->isolate())); | 95 __ Mov(x1, ExternalReference(Runtime::FunctionForId(Runtime::kDebugBreak), |
| 96 masm->isolate())); |
96 | 97 |
97 CEntryStub stub(masm->isolate(), 1); | 98 CEntryStub stub(masm->isolate(), 1); |
98 __ CallStub(&stub); | 99 __ CallStub(&stub); |
99 | 100 |
100 if (FLAG_debug_code) { | 101 if (FLAG_debug_code) { |
101 for (int i = 0; i < kNumJSCallerSaved; i++) { | 102 for (int i = 0; i < kNumJSCallerSaved; i++) { |
102 Register reg = Register::XRegFromCode(JSCallerSavedCode(i)); | 103 Register reg = Register::XRegFromCode(JSCallerSavedCode(i)); |
103 __ Mov(reg, Operand(kDebugZapValue)); | 104 __ Mov(reg, Operand(kDebugZapValue)); |
104 } | 105 } |
105 } | 106 } |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 __ Br(scratch); | 158 __ Br(scratch); |
158 } | 159 } |
159 | 160 |
160 | 161 |
161 const bool LiveEdit::kFrameDropperSupported = true; | 162 const bool LiveEdit::kFrameDropperSupported = true; |
162 | 163 |
163 } // namespace internal | 164 } // namespace internal |
164 } // namespace v8 | 165 } // namespace v8 |
165 | 166 |
166 #endif // V8_TARGET_ARCH_ARM64 | 167 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |