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 7015691ea69bb4c5abef624c2ce922596b1bbc93..390a44be30c0acb0e922212ffd575ab76830fb35 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -4554,8 +4554,10 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
if (property != NULL) { |
VisitForStackValue(property->obj()); |
VisitForStackValue(property->key()); |
- __ push(Immediate(Smi::FromInt(language_mode()))); |
- __ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION); |
+ __ CallRuntime(is_strict(language_mode()) |
+ ? Runtime::kDeleteProperty_Strict |
+ : Runtime::kDeleteProperty_Sloppy, |
+ 2); |
context()->Plug(eax); |
} else if (proxy != NULL) { |
Variable* var = proxy->var(); |
@@ -4566,8 +4568,7 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
if (var->IsUnallocatedOrGlobalSlot()) { |
__ push(GlobalObjectOperand()); |
__ push(Immediate(var->name())); |
- __ push(Immediate(Smi::FromInt(SLOPPY))); |
- __ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION); |
+ __ CallRuntime(Runtime::kDeleteProperty_Sloppy, 2); |
context()->Plug(eax); |
} else if (var->IsStackAllocated() || var->IsContextSlot()) { |
// Result of deleting non-global variables is false. 'this' is |