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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
8 | 8 |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/debug.h" | 10 #include "src/debug.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 // Load padding words on stack. | 64 // Load padding words on stack. |
65 for (int i = 0; i < LiveEdit::kFramePaddingInitialSize; i++) { | 65 for (int i = 0; i < LiveEdit::kFramePaddingInitialSize; i++) { |
66 __ push(Immediate(Smi::FromInt(LiveEdit::kFramePaddingValue))); | 66 __ push(Immediate(Smi::FromInt(LiveEdit::kFramePaddingValue))); |
67 } | 67 } |
68 __ push(Immediate(Smi::FromInt(LiveEdit::kFramePaddingInitialSize))); | 68 __ push(Immediate(Smi::FromInt(LiveEdit::kFramePaddingInitialSize))); |
69 | 69 |
70 if (mode == SAVE_RESULT_REGISTER) __ push(eax); | 70 if (mode == SAVE_RESULT_REGISTER) __ push(eax); |
71 | 71 |
72 __ Move(eax, Immediate(0)); // No arguments. | 72 __ Move(eax, Immediate(0)); // No arguments. |
73 __ mov(ebx, Immediate(ExternalReference::debug_break(masm->isolate()))); | 73 __ mov(ebx, |
| 74 Immediate(ExternalReference( |
| 75 Runtime::FunctionForId(Runtime::kDebugBreak), masm->isolate()))); |
74 | 76 |
75 CEntryStub ceb(masm->isolate(), 1); | 77 CEntryStub ceb(masm->isolate(), 1); |
76 __ CallStub(&ceb); | 78 __ CallStub(&ceb); |
77 | 79 |
78 if (FLAG_debug_code) { | 80 if (FLAG_debug_code) { |
79 for (int i = 0; i < kNumJSCallerSaved; ++i) { | 81 for (int i = 0; i < kNumJSCallerSaved; ++i) { |
80 Register reg = {JSCallerSavedCode(i)}; | 82 Register reg = {JSCallerSavedCode(i)}; |
81 __ Move(reg, Immediate(kDebugZapValue)); | 83 __ Move(reg, Immediate(kDebugZapValue)); |
82 } | 84 } |
83 } | 85 } |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 138 |
137 | 139 |
138 const bool LiveEdit::kFrameDropperSupported = true; | 140 const bool LiveEdit::kFrameDropperSupported = true; |
139 | 141 |
140 #undef __ | 142 #undef __ |
141 | 143 |
142 } // namespace internal | 144 } // namespace internal |
143 } // namespace v8 | 145 } // namespace v8 |
144 | 146 |
145 #endif // V8_TARGET_ARCH_IA32 | 147 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |