Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index e4d4284d9cdf8e6fd7d0d938d1588327287713ff..72e061acc69de9f00d4ddb5ccbdb2711b6f8eeba 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -2157,9 +2157,8 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
if (property != NULL) { |
VisitForStackValue(property->obj()); |
VisitForStackValue(property->key()); |
- CallRuntimeWithOperands(is_strict(language_mode()) |
- ? Runtime::kDeleteProperty_Strict |
- : Runtime::kDeleteProperty_Sloppy); |
+ PushOperand(Smi::FromInt(language_mode())); |
+ CallRuntimeWithOperands(Runtime::kDeleteProperty); |
context()->Plug(eax); |
} else if (proxy != NULL) { |
Variable* var = proxy->var(); |
@@ -2171,7 +2170,8 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
__ mov(eax, NativeContextOperand()); |
__ push(ContextOperand(eax, Context::EXTENSION_INDEX)); |
__ push(Immediate(var->name())); |
- __ CallRuntime(Runtime::kDeleteProperty_Sloppy); |
+ __ Push(Smi::FromInt(SLOPPY)); |
+ __ CallRuntime(Runtime::kDeleteProperty); |
context()->Plug(eax); |
} else { |
DCHECK(!var->IsLookupSlot()); |