7 #if V8_TARGET_ARCH_IA32
28 debug_info_->GetIsolate()->builtins()->Return_DebugBreak()->entry(),
44 return rinfo->IsPatchedReturnSequence();
51 return rinfo()->IsPatchedDebugBreakSlotSequence();
59 isolate->builtins()->Slot_DebugBreak()->entry(),
70 #define __ ACCESS_MASM(masm)
72 static void Generate_DebugBreakCallHelper(MacroAssembler* masm,
75 bool convert_call_to_jmp) {
91 DCHECK((object_regs & non_object_regs) == 0);
95 if ((object_regs & (1 << r)) != 0) {
98 if ((non_object_regs & (1 << r)) != 0) {
99 if (FLAG_debug_code) {
100 __ test(reg, Immediate(0xc0000000));
101 __ Assert(
zero, kUnableToEncodeValueAsSmi);
109 __ RecordComment(
"// Calling from debug break to runtime - come in - over");
111 __ Move(
eax, Immediate(0));
112 __ mov(
ebx, Immediate(ExternalReference::debug_break(masm->isolate())));
114 CEntryStub ceb(masm->isolate(), 1);
119 Register unused_reg = { -1 };
125 Register reg = { r };
126 if (FLAG_debug_code) {
129 bool taken = reg.code() ==
esi.
code();
130 if ((object_regs & (1 << r)) != 0) {
134 if ((non_object_regs & (1 << r)) != 0) {
144 DCHECK(unused_reg.code() != -1);
157 if (convert_call_to_jmp) {
164 ExternalReference after_break_target =
165 ExternalReference::debug_after_break_target_address(masm->isolate());
166 __ jmp(Operand::StaticVariable(after_break_target));
176 Generate_DebugBreakCallHelper(masm,
edx.
bit() |
edi.
bit(),
185 Generate_DebugBreakCallHelper(masm, receiver.bit() |
name.bit(), 0,
false);
194 Generate_DebugBreakCallHelper(
195 masm, receiver.bit() |
name.bit() | value.bit(), 0,
false);
210 Generate_DebugBreakCallHelper(
211 masm, receiver.bit() |
name.bit() | value.bit(), 0,
false);
220 Generate_DebugBreakCallHelper(masm,
eax.
bit(), 0,
false);
229 Generate_DebugBreakCallHelper(masm,
eax.
bit(), 0,
true);
238 Generate_DebugBreakCallHelper(masm,
edi.
bit(), 0,
false);
251 Generate_DebugBreakCallHelper(masm,
edi.
bit(),
eax.
bit(),
false);
256 MacroAssembler* masm) {
274 Label check_codesize;
275 __ bind(&check_codesize);
276 __ RecordDebugBreakSlot();
279 masm->SizeOfCodeGeneratedSince(&check_codesize));
286 Generate_DebugBreakCallHelper(masm, 0, 0,
true);
296 ExternalReference restarter_frame_function_slot =
297 ExternalReference::debug_restarter_frame_function_pointer_address(
299 __ mov(Operand::StaticVariable(restarter_frame_function_slot), Immediate(0));
static const int kCallInstructionLength
static const int kJSReturnSequenceLength
static const int kDebugBreakSlotLength
Handle< DebugInfo > debug_info_
bool IsDebugBreakAtSlot()
void SetDebugBreakAtSlot()
void ClearDebugBreakAtSlot()
bool IsDebugBreakAtReturn()
void ClearDebugBreakAtReturn()
RelocInfo * original_rinfo()
void SetDebugBreakAtReturn()
static const int kHeaderSize
static void GenerateSlot(MacroAssembler *masm)
static void GenerateStoreICDebugBreak(MacroAssembler *masm)
static void GenerateLoadICDebugBreak(MacroAssembler *masm)
static void GeneratePlainReturnLiveEdit(MacroAssembler *masm)
static void GenerateCallConstructStubDebugBreak(MacroAssembler *masm)
static void GenerateCallConstructStubRecordDebugBreak(MacroAssembler *masm)
static void GenerateCallFunctionStubDebugBreak(MacroAssembler *masm)
static void GenerateCompareNilICDebugBreak(MacroAssembler *masm)
static void GenerateKeyedStoreICDebugBreak(MacroAssembler *masm)
static void GenerateCallICStubDebugBreak(MacroAssembler *masm)
static void GenerateFrameDropperLiveEdit(MacroAssembler *masm)
static void GenerateKeyedLoadICDebugBreak(MacroAssembler *masm)
static void GenerateReturnDebugBreak(MacroAssembler *masm)
static void GenerateSlotDebugBreak(MacroAssembler *masm)
static bool IsDebugBreakAtReturn(RelocInfo *rinfo)
static const int kSharedFunctionInfoOffset
static const int kContextOffset
static const int kFramePaddingValue
static const bool kFrameDropperSupported
static const int kFramePaddingInitialSize
static const Register ReceiverRegister()
static const Register NameRegister()
static bool IsJSReturn(Mode mode)
void PatchCode(byte *instructions, int instruction_count)
void PatchCodeWithCall(Address target, int guard_bytes)
static const int kCodeOffset
static Smi * FromInt(int value)
static const Register ReceiverRegister()
static const Register NameRegister()
static const Register ValueRegister()
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi the new space consists of two semi spaces print one trace line following each garbage collection do not print trace line after scavenger collection print cumulative GC statistics in name
#define DCHECK(condition)
#define DCHECK_EQ(v1, v2)
const uint32_t kDebugZapValue
const RegList kJSCallerSaved
int JSCallerSavedCode(int n)
Operand FieldOperand(Register object, int offset)
@ times_half_pointer_size
const int kNumJSCallerSaved
STATIC_ASSERT(sizeof(CPURegister)==sizeof(Register))
Debugger support for the V8 JavaScript engine.