Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 0219aac670da8cae5b6e1d09713b64407097bab4..bec199e0e399f7ce34cd25516f89f9d7d93f2396 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -430,8 +430,9 @@ void JSGenericLowering::LowerJSStoreGlobal(Node* node) { |
void JSGenericLowering::LowerJSDeleteProperty(Node* node) { |
LanguageMode language_mode = OpParameter<LanguageMode>(node); |
- ReplaceWithBuiltinCall(node, Builtins::DELETE, 3); |
- node->InsertInput(zone(), 4, jsgraph()->SmiConstant(language_mode)); |
+ ReplaceWithRuntimeCall(node, is_strict(language_mode) |
+ ? Runtime::kDeleteProperty_Strict |
+ : Runtime::kDeleteProperty_Sloppy); |
} |