Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Unified Diff: src/interpreter/interpreter-generator.cc

Issue 2810363003: [builtins] Introduce DeleteProperty builtin (Closed)
Patch Set: fix CallableFor not to create handles Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/full-codegen/x87/full-codegen-x87.cc ('k') | src/js/array.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/interpreter-generator.cc
diff --git a/src/interpreter/interpreter-generator.cc b/src/interpreter/interpreter-generator.cc
index 2a8f3c8810d13f597ddbc05d18b4bf606086f7a0..13ac4fa3735b097fb9eb59a11d5c5a9f78bb85d4 100644
--- a/src/interpreter/interpreter-generator.cc
+++ b/src/interpreter/interpreter-generator.cc
@@ -1800,8 +1800,8 @@ IGNITION_HANDLER(DeletePropertyStrict, InterpreterAssembler) {
Node* object = LoadRegister(reg_index);
Node* key = GetAccumulator();
Node* context = GetContext();
- Node* result =
- CallRuntime(Runtime::kDeleteProperty_Strict, context, object, key);
+ Node* result = CallBuiltin(Builtins::kDeleteProperty, context, object, key,
+ SmiConstant(STRICT));
SetAccumulator(result);
Dispatch();
}
@@ -1815,8 +1815,8 @@ IGNITION_HANDLER(DeletePropertySloppy, InterpreterAssembler) {
Node* object = LoadRegister(reg_index);
Node* key = GetAccumulator();
Node* context = GetContext();
- Node* result =
- CallRuntime(Runtime::kDeleteProperty_Sloppy, context, object, key);
+ Node* result = CallBuiltin(Builtins::kDeleteProperty, context, object, key,
+ SmiConstant(SLOPPY));
SetAccumulator(result);
Dispatch();
}
« no previous file with comments | « src/full-codegen/x87/full-codegen-x87.cc ('k') | src/js/array.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698