Index: src/runtime/runtime-collections.cc |
diff --git a/src/runtime/runtime-collections.cc b/src/runtime/runtime-collections.cc |
index 214ce1c4e6cf590b3d54fb237a8b51758c44a764..0e311517e93c4e183446ba0aa19d07d48bdc5621 100644 |
--- a/src/runtime/runtime-collections.cc |
+++ b/src/runtime/runtime-collections.cc |
@@ -325,5 +325,48 @@ RUNTIME_FUNCTION(Runtime_GetWeakSetValues) { |
CHECK(max_values >= 0); |
return *JSWeakCollection::GetEntries(holder, max_values); |
} |
+ |
+RUNTIME_FUNCTION(Runtime_IsJSMap) { |
+ SealHandleScope shs(isolate); |
+ DCHECK_EQ(1, args.length()); |
+ CONVERT_ARG_CHECKED(Object, obj, 0); |
+ return isolate->heap()->ToBoolean(obj->IsJSMap()); |
+} |
+ |
+RUNTIME_FUNCTION(Runtime_IsJSSet) { |
+ SealHandleScope shs(isolate); |
+ DCHECK_EQ(1, args.length()); |
+ CONVERT_ARG_CHECKED(Object, obj, 0); |
+ return isolate->heap()->ToBoolean(obj->IsJSSet()); |
+} |
+ |
+RUNTIME_FUNCTION(Runtime_IsJSMapIterator) { |
+ SealHandleScope shs(isolate); |
+ DCHECK_EQ(1, args.length()); |
+ CONVERT_ARG_CHECKED(Object, obj, 0); |
+ return isolate->heap()->ToBoolean(obj->IsJSMapIterator()); |
+} |
+ |
+RUNTIME_FUNCTION(Runtime_IsJSSetIterator) { |
+ SealHandleScope shs(isolate); |
+ DCHECK_EQ(1, args.length()); |
+ CONVERT_ARG_CHECKED(Object, obj, 0); |
+ return isolate->heap()->ToBoolean(obj->IsJSSetIterator()); |
+} |
+ |
+RUNTIME_FUNCTION(Runtime_IsJSWeakMap) { |
+ SealHandleScope shs(isolate); |
+ DCHECK_EQ(1, args.length()); |
+ CONVERT_ARG_CHECKED(Object, obj, 0); |
+ return isolate->heap()->ToBoolean(obj->IsJSWeakMap()); |
+} |
+ |
+RUNTIME_FUNCTION(Runtime_IsJSWeakSet) { |
+ SealHandleScope shs(isolate); |
+ DCHECK_EQ(1, args.length()); |
+ CONVERT_ARG_CHECKED(Object, obj, 0); |
+ return isolate->heap()->ToBoolean(obj->IsJSWeakSet()); |
+} |
+ |
} // namespace internal |
} // namespace v8 |