Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 18c9319c62006a243d48613cd3149e12e47c5ae2..0f3e6a112888d6b6c5f34733354ea4a3515636ef 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -3731,12 +3731,15 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
} else { |
VisitForStackValue(prop->obj()); |
VisitForStackValue(prop->key()); |
+ __ push(Immediate(Smi::FromInt(strict_mode_flag()))); |
__ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION); |
context()->Plug(eax); |
} |
} else if (var->is_global()) { |
+ ASSERT(strict_mode_flag() == kNonStrictMode); |
__ push(GlobalObjectOperand()); |
__ push(Immediate(var->name())); |
+ __ push(Immediate(Smi::FromInt(kNonStrictMode))); |
__ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION); |
context()->Plug(eax); |
} else { |