Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 556ec85249bb9437a3fc244a2f617baeaa88dc15..a0bd631e895a7c277028be49783318facef08164 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -3070,12 +3070,15 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
} else { |
VisitForStackValue(prop->obj()); |
VisitForStackValue(prop->key()); |
+ __ Push(Smi::FromInt(strict_mode_flag())); |
__ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION); |
context()->Plug(rax); |
} |
} else if (var->is_global()) { |
+ ASSERT(strict_mode_flag() == kNonStrictMode); |
__ push(GlobalObjectOperand()); |
__ Push(var->name()); |
+ __ Push(Smi::FromInt(kNonStrictMode)); |
__ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION); |
context()->Plug(rax); |
} else { |