Index: src/builtins/builtins-function.cc |
diff --git a/src/builtins/builtins-function.cc b/src/builtins/builtins-function.cc |
index 447d3b90f7959449afc87148dae30067b54574e1..6c3daf5c0160ff553bffa39f7cabd70b44635d12 100644 |
--- a/src/builtins/builtins-function.cc |
+++ b/src/builtins/builtins-function.cc |
@@ -297,5 +297,17 @@ BUILTIN(FunctionPrototypeToString) { |
"Function.prototype.toString"))); |
} |
+// ES6 section 19.2.3.6 Function.prototype [ @@hasInstance ] ( V ) |
+void Builtins::Generate_FunctionPrototypeHasInstance( |
+ CodeStubAssembler* assembler) { |
+ using compiler::Node; |
+ |
+ Node* f = assembler->Parameter(0); |
+ Node* v = assembler->Parameter(1); |
+ Node* context = assembler->Parameter(4); |
+ Node* result = assembler->OrdinaryHasInstance(context, f, v); |
+ assembler->Return(result); |
+} |
+ |
} // namespace internal |
} // namespace v8 |