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

Unified Diff: src/runtime/runtime-internal.cc

Issue 2930243002: [WIP] Refactor OrdinaryHasInstance to be self-contained.
Patch Set: Created 3 years, 6 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/runtime/runtime.h ('k') | src/runtime/runtime-operators.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-internal.cc
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc
index b2a47f877c11b7cd2868e3192d5c9c045331abbf..68c7b48fad4b113ba38f57187b83f824425a6404 100644
--- a/src/runtime/runtime-internal.cc
+++ b/src/runtime/runtime-internal.cc
@@ -238,6 +238,15 @@ RUNTIME_FUNCTION(Runtime_ThrowIncompatibleMethodReceiver) {
NewTypeError(MessageTemplate::kIncompatibleMethodReceiver, arg0, arg1));
}
+RUNTIME_FUNCTION(Runtime_ThrowInstanceofNonobjectProto) {
+ HandleScope scope(isolate);
+ DCHECK_EQ(1, args.length());
+ CONVERT_ARG_HANDLE_CHECKED(Object, prototype, 0);
+ THROW_NEW_ERROR_RETURN_FAILURE(
+ isolate,
+ NewTypeError(MessageTemplate::kInstanceofNonobjectProto, prototype));
+}
+
RUNTIME_FUNCTION(Runtime_ThrowInvalidHint) {
HandleScope scope(isolate);
DCHECK_EQ(1, args.length());
@@ -531,15 +540,6 @@ RUNTIME_FUNCTION(Runtime_GetAndResetRuntimeCallStats) {
}
}
-RUNTIME_FUNCTION(Runtime_OrdinaryHasInstance) {
- HandleScope scope(isolate);
- DCHECK_EQ(2, args.length());
- CONVERT_ARG_HANDLE_CHECKED(Object, callable, 0);
- CONVERT_ARG_HANDLE_CHECKED(Object, object, 1);
- RETURN_RESULT_OR_FAILURE(
- isolate, Object::OrdinaryHasInstance(isolate, callable, object));
-}
-
RUNTIME_FUNCTION(Runtime_Typeof) {
HandleScope scope(isolate);
DCHECK_EQ(1, args.length());
« no previous file with comments | « src/runtime/runtime.h ('k') | src/runtime/runtime-operators.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698