Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index 0aefae9bf4eb69483fec2b58a71854d8658ae7fb..ffaea8d1a1200242f13d23b6492bc35a7ee46963 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -334,15 +334,15 @@ RUNTIME_FUNCTION(Runtime_FormatMessageString) { |
return *result; |
} |
-#define CALLSITE_GET(NAME, RETURN) \ |
- RUNTIME_FUNCTION(Runtime_CallSite##NAME##RT) { \ |
- HandleScope scope(isolate); \ |
- DCHECK(args.length() == 1); \ |
- CONVERT_ARG_HANDLE_CHECKED(JSObject, call_site_obj, 0); \ |
- Handle<String> result; \ |
- CallSite call_site(isolate, call_site_obj); \ |
- RUNTIME_ASSERT(call_site.IsValid()); \ |
- return RETURN(call_site.NAME(), isolate); \ |
+#define CALLSITE_GET(NAME, RETURN) \ |
+ RUNTIME_FUNCTION(Runtime_CallSite##NAME##RT) { \ |
+ HandleScope scope(isolate); \ |
+ DCHECK(args.length() == 1); \ |
+ CONVERT_ARG_HANDLE_CHECKED(JSObject, call_site_obj, 0); \ |
+ Handle<String> result; \ |
+ CallSite call_site(isolate, call_site_obj); \ |
+ RUNTIME_ASSERT(call_site.IsJavaScript() || call_site.IsWasm()); \ |
+ return RETURN(call_site.NAME(), isolate); \ |
} |
static inline Object* ReturnDereferencedHandle(Handle<Object> obj, |