OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 7 #if V8_TARGET_ARCH_PPC |
8 | 8 |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/debug.h" | 10 #include "src/debug.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 __ LoadSmiLiteral(ip, Smi::FromInt(LiveEdit::kFramePaddingValue)); | 77 __ LoadSmiLiteral(ip, Smi::FromInt(LiveEdit::kFramePaddingValue)); |
78 for (int i = 0; i < LiveEdit::kFramePaddingInitialSize; i++) { | 78 for (int i = 0; i < LiveEdit::kFramePaddingInitialSize; i++) { |
79 __ push(ip); | 79 __ push(ip); |
80 } | 80 } |
81 __ LoadSmiLiteral(ip, Smi::FromInt(LiveEdit::kFramePaddingInitialSize)); | 81 __ LoadSmiLiteral(ip, Smi::FromInt(LiveEdit::kFramePaddingInitialSize)); |
82 __ push(ip); | 82 __ push(ip); |
83 | 83 |
84 if (mode == SAVE_RESULT_REGISTER) __ push(r3); | 84 if (mode == SAVE_RESULT_REGISTER) __ push(r3); |
85 | 85 |
86 __ mov(r3, Operand::Zero()); // no arguments | 86 __ mov(r3, Operand::Zero()); // no arguments |
87 __ mov(r4, Operand(ExternalReference::debug_break(masm->isolate()))); | 87 __ mov(r4, |
| 88 Operand(ExternalReference( |
| 89 Runtime::FunctionForId(Runtime::kDebugBreak), masm->isolate()))); |
88 | 90 |
89 CEntryStub ceb(masm->isolate(), 1); | 91 CEntryStub ceb(masm->isolate(), 1); |
90 __ CallStub(&ceb); | 92 __ CallStub(&ceb); |
91 | 93 |
92 if (FLAG_debug_code) { | 94 if (FLAG_debug_code) { |
93 for (int i = 0; i < kNumJSCallerSaved; i++) { | 95 for (int i = 0; i < kNumJSCallerSaved; i++) { |
94 Register reg = {JSCallerSavedCode(i)}; | 96 Register reg = {JSCallerSavedCode(i)}; |
95 __ mov(reg, Operand(kDebugZapValue)); | 97 __ mov(reg, Operand(kDebugZapValue)); |
96 } | 98 } |
97 } | 99 } |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 } | 150 } |
149 | 151 |
150 | 152 |
151 const bool LiveEdit::kFrameDropperSupported = true; | 153 const bool LiveEdit::kFrameDropperSupported = true; |
152 | 154 |
153 #undef __ | 155 #undef __ |
154 } // namespace internal | 156 } // namespace internal |
155 } // namespace v8 | 157 } // namespace v8 |
156 | 158 |
157 #endif // V8_TARGET_ARCH_PPC | 159 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |