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

Unified Diff: src/builtins/builtins-object.cc

Issue 2372113004: [turbofan] JSGenericLowering mostly uses builtins instead of code stubs now (Closed)
Patch Set: Ross' comments Created 4 years, 2 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/builtins/builtins-number.cc ('k') | src/builtins/builtins-string.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/builtins-object.cc
diff --git a/src/builtins/builtins-object.cc b/src/builtins/builtins-object.cc
index bec4e1244e5181e99a792b8761d0bf214a7004a0..e3f8214f7d22852dede88898727bc472dcff50ae 100644
--- a/src/builtins/builtins-object.cc
+++ b/src/builtins/builtins-object.cc
@@ -906,5 +906,38 @@ BUILTIN(ObjectSeal) {
return *object;
}
+void Builtins::Generate_HasProperty(CodeStubAssembler* assembler) {
+ typedef HasPropertyDescriptor Descriptor;
+ typedef compiler::Node Node;
+
+ Node* key = assembler->Parameter(Descriptor::kKey);
+ Node* object = assembler->Parameter(Descriptor::kObject);
+ Node* context = assembler->Parameter(Descriptor::kContext);
+
+ assembler->Return(
+ assembler->HasProperty(object, key, context, Runtime::kHasProperty));
+}
+
+void Builtins::Generate_ForInFilter(CodeStubAssembler* assembler) {
+ typedef compiler::Node Node;
+ typedef ForInFilterDescriptor Descriptor;
+
+ Node* key = assembler->Parameter(Descriptor::kKey);
+ Node* object = assembler->Parameter(Descriptor::kObject);
+ Node* context = assembler->Parameter(Descriptor::kContext);
+
+ assembler->Return(assembler->ForInFilter(key, object, context));
+}
+
+void Builtins::Generate_InstanceOf(CodeStubAssembler* assembler) {
+ typedef compiler::Node Node;
+ typedef CompareDescriptor Descriptor;
+ Node* object = assembler->Parameter(Descriptor::kLeft);
+ Node* callable = assembler->Parameter(Descriptor::kRight);
+ Node* context = assembler->Parameter(Descriptor::kContext);
+
+ assembler->Return(assembler->InstanceOf(object, callable, context));
+}
+
} // namespace internal
} // namespace v8
« no previous file with comments | « src/builtins/builtins-number.cc ('k') | src/builtins/builtins-string.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698