Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index 7550f3ab094327d8b1d16f436afc82016e91b9c1..8466fa492537559292c167a3f9d0afab63971fdb 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -2241,9 +2241,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(r0); |
} else if (proxy != NULL) { |
Variable* var = proxy->var(); |
@@ -2255,7 +2254,8 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
__ LoadGlobalObject(r2); |
__ mov(r1, Operand(var->name())); |
__ Push(r2, r1); |
- __ CallRuntime(Runtime::kDeleteProperty_Sloppy); |
+ __ Push(Smi::FromInt(SLOPPY)); |
+ __ CallRuntime(Runtime::kDeleteProperty); |
context()->Plug(r0); |
} else { |
DCHECK(!var->IsLookupSlot()); |