Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index f0239be1a9f52c394308c5eb9b62aac9e1460d3e..da1394ff890529ef3105590be1c4b169d9fca9ad 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -2147,9 +2147,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(); |
@@ -2161,7 +2160,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()); |