Index: src/runtime/runtime-operators.cc |
diff --git a/src/runtime/runtime-operators.cc b/src/runtime/runtime-operators.cc |
index e55ab7c5423040d8ad8502812ec05606a62b67e8..78dd16fe19a5905d246defb5c23984b576dff45b 100644 |
--- a/src/runtime/runtime-operators.cc |
+++ b/src/runtime/runtime-operators.cc |
@@ -216,5 +216,16 @@ RUNTIME_FUNCTION(Runtime_GreaterThanOrEqual) { |
return isolate->heap()->ToBoolean(result.FromJust()); |
} |
+RUNTIME_FUNCTION(Runtime_InstanceOf) { |
+ HandleScope shs(isolate); |
+ DCHECK_EQ(2, args.length()); |
+ CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); |
+ CONVERT_ARG_HANDLE_CHECKED(Object, callable, 1); |
+ Handle<Object> result; |
+ ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
+ isolate, result, Object::InstanceOf(isolate, object, callable)); |
+ return *result; |
+} |
+ |
} // namespace internal |
} // namespace v8 |