Index: src/debug/ppc/debug-ppc.cc |
diff --git a/src/debug/ppc/debug-ppc.cc b/src/debug/ppc/debug-ppc.cc |
index eb5f7c3b43e4021ff4c48d873020fdd70a39a433..2e6714c5404ea7c20f1b03203da8309c9d82316f 100644 |
--- a/src/debug/ppc/debug-ppc.cc |
+++ b/src/debug/ppc/debug-ppc.cc |
@@ -138,6 +138,9 @@ void DebugCodegen::GenerateFrameDropperLiveEdit(MacroAssembler* masm) { |
// Load context from the function. |
__ LoadP(cp, FieldMemOperand(r4, JSFunction::kContextOffset)); |
+ // Clear new.target as a safety measure. |
+ __ LoadRoot(r6, Heap::kUndefinedValueRootIndex); |
+ |
// Get function code. |
__ LoadP(ip, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset)); |
__ LoadP(ip, FieldMemOperand(ip, SharedFunctionInfo::kCodeOffset)); |