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 |