diff options
Diffstat (limited to 'deps/v8/src/debug/mips64/debug-mips64.cc')
-rw-r--r-- | deps/v8/src/debug/mips64/debug-mips64.cc | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/deps/v8/src/debug/mips64/debug-mips64.cc b/deps/v8/src/debug/mips64/debug-mips64.cc index 9b4d355d79..1d65fd9efd 100644 --- a/deps/v8/src/debug/mips64/debug-mips64.cc +++ b/deps/v8/src/debug/mips64/debug-mips64.cc @@ -23,25 +23,25 @@ void EmitDebugBreakSlot(MacroAssembler* masm) { } -void DebugCodegen::GenerateSlot(MacroAssembler* masm, RelocInfo::Mode mode, - int call_argc) { +void DebugCodegen::GenerateSlot(MacroAssembler* masm, RelocInfo::Mode mode) { // Generate enough nop's to make space for a call instruction. Avoid emitting // the trampoline pool in the debug break slot code. Assembler::BlockTrampolinePoolScope block_pool(masm); - masm->RecordDebugBreakSlot(mode, call_argc); + masm->RecordDebugBreakSlot(mode); EmitDebugBreakSlot(masm); } -void DebugCodegen::ClearDebugBreakSlot(Address pc) { - CodePatcher patcher(pc, Assembler::kDebugBreakSlotInstructions); +void DebugCodegen::ClearDebugBreakSlot(Isolate* isolate, Address pc) { + CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotInstructions); EmitDebugBreakSlot(patcher.masm()); } -void DebugCodegen::PatchDebugBreakSlot(Address pc, Handle<Code> code) { +void DebugCodegen::PatchDebugBreakSlot(Isolate* isolate, Address pc, + Handle<Code> code) { DCHECK_EQ(Code::BUILTIN, code->kind()); - CodePatcher patcher(pc, Assembler::kDebugBreakSlotInstructions); + CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotInstructions); // Patch the code changing the debug break slot code from: // nop(DEBUG_BREAK_NOP) - nop(1) is sll(zero_reg, zero_reg, 1) // nop(DEBUG_BREAK_NOP) @@ -110,26 +110,21 @@ void DebugCodegen::GenerateDebugBreakStub(MacroAssembler* masm, } -void DebugCodegen::GeneratePlainReturnLiveEdit(MacroAssembler* masm) { - __ Ret(); -} - - void DebugCodegen::GenerateFrameDropperLiveEdit(MacroAssembler* masm) { - ExternalReference restarter_frame_function_slot = - ExternalReference::debug_restarter_frame_function_pointer_address( - masm->isolate()); - __ li(at, Operand(restarter_frame_function_slot)); - __ sw(zero_reg, MemOperand(at, 0)); - // We do not know our frame height, but set sp based on fp. __ Dsubu(sp, fp, Operand(kPointerSize)); __ Pop(ra, fp, a1); // Return address, Frame, Function. + ParameterCount dummy(0); + __ FloodFunctionIfStepping(a1, no_reg, dummy, dummy); + // Load context from the function. __ ld(cp, FieldMemOperand(a1, JSFunction::kContextOffset)); + // Clear new.target as a safety measure. + __ LoadRoot(a3, Heap::kUndefinedValueRootIndex); + // Get function code. __ ld(at, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); __ ld(at, FieldMemOperand(at, SharedFunctionInfo::kCodeOffset)); |