Index: src/debug/mips64/debug-mips64.cc |
diff --git a/src/debug/mips64/debug-mips64.cc b/src/debug/mips64/debug-mips64.cc |
index 49bbf3bf8ca52c5570e5d70c67513b159a58b56e..9831de127cce92e1b8db464c702330925352f9d6 100644 |
--- a/src/debug/mips64/debug-mips64.cc |
+++ b/src/debug/mips64/debug-mips64.cc |
@@ -130,6 +130,9 @@ void DebugCodegen::GenerateFrameDropperLiveEdit(MacroAssembler* masm) { |
// 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)); |