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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
8 | 8 |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/debug.h" | 10 #include "src/debug.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 __ mov(ip, Operand(Smi::FromInt(LiveEdit::kFramePaddingValue))); | 75 __ mov(ip, Operand(Smi::FromInt(LiveEdit::kFramePaddingValue))); |
76 for (int i = 0; i < LiveEdit::kFramePaddingInitialSize; i++) { | 76 for (int i = 0; i < LiveEdit::kFramePaddingInitialSize; i++) { |
77 __ push(ip); | 77 __ push(ip); |
78 } | 78 } |
79 __ mov(ip, Operand(Smi::FromInt(LiveEdit::kFramePaddingInitialSize))); | 79 __ mov(ip, Operand(Smi::FromInt(LiveEdit::kFramePaddingInitialSize))); |
80 __ push(ip); | 80 __ push(ip); |
81 | 81 |
82 if (mode == SAVE_RESULT_REGISTER) __ push(r0); | 82 if (mode == SAVE_RESULT_REGISTER) __ push(r0); |
83 | 83 |
84 __ mov(r0, Operand::Zero()); // no arguments | 84 __ mov(r0, Operand::Zero()); // no arguments |
85 __ mov(r1, Operand(ExternalReference::debug_break(masm->isolate()))); | 85 __ mov(r1, |
| 86 Operand(ExternalReference( |
| 87 Runtime::FunctionForId(Runtime::kDebugBreak), masm->isolate()))); |
86 | 88 |
87 CEntryStub ceb(masm->isolate(), 1); | 89 CEntryStub ceb(masm->isolate(), 1); |
88 __ CallStub(&ceb); | 90 __ CallStub(&ceb); |
89 | 91 |
90 if (FLAG_debug_code) { | 92 if (FLAG_debug_code) { |
91 for (int i = 0; i < kNumJSCallerSaved; i++) { | 93 for (int i = 0; i < kNumJSCallerSaved; i++) { |
92 Register reg = {JSCallerSavedCode(i)}; | 94 Register reg = {JSCallerSavedCode(i)}; |
93 __ mov(reg, Operand(kDebugZapValue)); | 95 __ mov(reg, Operand(kDebugZapValue)); |
94 } | 96 } |
95 } | 97 } |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 152 |
151 | 153 |
152 const bool LiveEdit::kFrameDropperSupported = true; | 154 const bool LiveEdit::kFrameDropperSupported = true; |
153 | 155 |
154 #undef __ | 156 #undef __ |
155 | 157 |
156 } // namespace internal | 158 } // namespace internal |
157 } // namespace v8 | 159 } // namespace v8 |
158 | 160 |
159 #endif // V8_TARGET_ARCH_ARM | 161 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |