Index: src/full-codegen/mips/full-codegen-mips.cc |
diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc |
index 0e8c4a0a5b27ec75e0088a8c4b7daa190834ebd1..d3139a7d4ecf46b22cca766c416a767967aeb91d 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -4641,9 +4641,10 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
if (property != NULL) { |
VisitForStackValue(property->obj()); |
VisitForStackValue(property->key()); |
- __ li(a1, Operand(Smi::FromInt(language_mode()))); |
- __ push(a1); |
- __ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION); |
+ __ CallRuntime(is_strict(language_mode()) |
+ ? Runtime::kDeleteProperty_Strict |
+ : Runtime::kDeleteProperty_Sloppy, |
+ 2); |
context()->Plug(v0); |
} else if (proxy != NULL) { |
Variable* var = proxy->var(); |
@@ -4654,9 +4655,8 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
if (var->IsUnallocatedOrGlobalSlot()) { |
__ lw(a2, GlobalObjectOperand()); |
__ li(a1, Operand(var->name())); |
- __ li(a0, Operand(Smi::FromInt(SLOPPY))); |
- __ Push(a2, a1, a0); |
- __ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION); |
+ __ Push(a2, a1); |
+ __ CallRuntime(Runtime::kDeleteProperty_Sloppy, 2); |
context()->Plug(v0); |
} else if (var->IsStackAllocated() || var->IsContextSlot()) { |
// Result of deleting non-global, non-dynamic variables is false. |