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