| Index: src/debug/mips/debug-mips.cc
|
| diff --git a/src/debug/mips/debug-mips.cc b/src/debug/mips/debug-mips.cc
|
| index 5a291aa086206a4e8b358cea20754836d78b39a6..4607c239eb2a74375229099d51e401b2a8c4a8f4 100644
|
| --- a/src/debug/mips/debug-mips.cc
|
| +++ b/src/debug/mips/debug-mips.cc
|
| @@ -128,6 +128,9 @@ void DebugCodegen::GenerateFrameDropperLiveEdit(MacroAssembler* masm) {
|
| // Load context from the function.
|
| __ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset));
|
|
|
| + // Clear new.target as a safety measure.
|
| + __ LoadRoot(a3, Heap::kUndefinedValueRootIndex);
|
| +
|
| // Get function code.
|
| __ lw(at, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset));
|
| __ lw(at, FieldMemOperand(at, SharedFunctionInfo::kCodeOffset));
|
|
|