| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // The number of arguments in eax is not smi encoded. | 224 // The number of arguments in eax is not smi encoded. |
| 225 Generate_DebugBreakCallHelper(masm, ebx.bit() | edx.bit() | edi.bit(), | 225 Generate_DebugBreakCallHelper(masm, ebx.bit() | edx.bit() | edi.bit(), |
| 226 eax.bit(), false); | 226 eax.bit(), false); |
| 227 } | 227 } |
| 228 | 228 |
| 229 | 229 |
| 230 void DebugCodegen::GenerateSlot(MacroAssembler* masm) { | 230 void DebugCodegen::GenerateSlot(MacroAssembler* masm) { |
| 231 // Generate enough nop's to make space for a call instruction. | 231 // Generate enough nop's to make space for a call instruction. |
| 232 Label check_codesize; | 232 Label check_codesize; |
| 233 __ bind(&check_codesize); | 233 __ bind(&check_codesize); |
| 234 __ RecordDebugBreakSlot(); | |
| 235 __ Nop(Assembler::kDebugBreakSlotLength); | 234 __ Nop(Assembler::kDebugBreakSlotLength); |
| 236 DCHECK_EQ(Assembler::kDebugBreakSlotLength, | 235 DCHECK_EQ(Assembler::kDebugBreakSlotLength, |
| 237 masm->SizeOfCodeGeneratedSince(&check_codesize)); | 236 masm->SizeOfCodeGeneratedSince(&check_codesize)); |
| 238 } | 237 } |
| 239 | 238 |
| 240 | 239 |
| 241 void DebugCodegen::GenerateSlotDebugBreak(MacroAssembler* masm) { | 240 void DebugCodegen::GenerateSlotDebugBreak(MacroAssembler* masm) { |
| 242 Generate_DebugBreakCallHelper(masm, 0, 0, true); | 241 Generate_DebugBreakCallHelper(masm, 0, 0, true); |
| 243 } | 242 } |
| 244 | 243 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 274 | 273 |
| 275 | 274 |
| 276 const bool LiveEdit::kFrameDropperSupported = true; | 275 const bool LiveEdit::kFrameDropperSupported = true; |
| 277 | 276 |
| 278 #undef __ | 277 #undef __ |
| 279 | 278 |
| 280 } // namespace internal | 279 } // namespace internal |
| 281 } // namespace v8 | 280 } // namespace v8 |
| 282 | 281 |
| 283 #endif // V8_TARGET_ARCH_IA32 | 282 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |