28 debug_info_->GetIsolate()->builtins()->Return_DebugBreak()->entry(),
44 return rinfo->IsPatchedReturnSequence();
51 return rinfo()->IsPatchedDebugBreakSlotSequence();
58 debug_info_->GetIsolate()->builtins()->Slot_DebugBreak()->entry(),
69 #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);
96 if ((object_regs & (1 << r)) != 0) {
99 if ((non_object_regs & (1 << r)) != 0) {
100 __ PushRegisterAsTwoSmis(reg);
105 __ RecordComment(
"// Calling from debug break to runtime - come in - over");
108 __ Move(
rbx, ExternalReference::debug_break(masm->isolate()));
110 CEntryStub ceb(masm->isolate(), 1);
116 Register reg = { r };
117 if (FLAG_debug_code) {
120 if ((object_regs & (1 << r)) != 0) {
124 if ((non_object_regs & (1 << r)) != 0) {
125 __ PopRegisterAsTwoSmis(reg);
139 if (convert_call_to_jmp) {
146 ExternalReference after_break_target =
147 ExternalReference::debug_after_break_target_address(masm->isolate());
159 Generate_DebugBreakCallHelper(masm,
rdx.
bit() |
rdi.
bit(), 0,
false);
167 Generate_DebugBreakCallHelper(masm, receiver.bit() |
name.bit(), 0,
false);
176 Generate_DebugBreakCallHelper(
177 masm, receiver.bit() |
name.bit() | value.bit(), 0,
false);
192 Generate_DebugBreakCallHelper(
193 masm, receiver.bit() |
name.bit() | value.bit(), 0,
false);
202 Generate_DebugBreakCallHelper(masm,
rax.
bit(), 0,
false);
211 Generate_DebugBreakCallHelper(masm,
rax.
bit(), 0,
true);
220 Generate_DebugBreakCallHelper(masm,
rdi.
bit(), 0,
false);
232 Generate_DebugBreakCallHelper(masm,
rdi.
bit(),
rax.
bit(),
false);
237 MacroAssembler* masm) {
254 Label check_codesize;
255 __ bind(&check_codesize);
256 __ RecordDebugBreakSlot();
259 masm->SizeOfCodeGeneratedSince(&check_codesize));
266 Generate_DebugBreakCallHelper(masm, 0, 0,
true);
276 ExternalReference restarter_frame_function_slot =
277 ExternalReference::debug_restarter_frame_function_pointer_address(
279 __ Move(
rax, restarter_frame_function_slot);
280 __ movp(Operand(
rax, 0), Immediate(0));
static const int kCallSequenceLength
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)
static int Push(SpecialRPOStackFrame *stack, int depth, BasicBlock *child, int unvisited)
const uint32_t kDebugZapValue
const RegList kJSCallerSaved
const Register kScratchRegister
int JSCallerSavedCode(int n)
Operand FieldOperand(Register object, int offset)
const int kNumJSCallerSaved
Debugger support for the V8 JavaScript engine.