Index: src/runtime/runtime-object.cc |
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc |
index 0818b7758b1e13ddc2a76400431836867a5db674..c387b370fa4dda08d370dd1bd035b4e8a97b173f 100644 |
--- a/src/runtime/runtime-object.cc |
+++ b/src/runtime/runtime-object.cc |
@@ -1506,6 +1506,22 @@ RUNTIME_FUNCTION(Runtime_JSValueGetValue) { |
} |
+RUNTIME_FUNCTION(Runtime_HeapObjectGetMap) { |
+ SealHandleScope shs(isolate); |
+ DCHECK(args.length() == 1); |
+ CONVERT_ARG_CHECKED(HeapObject, obj, 0); |
+ return obj->map(); |
+} |
+ |
+ |
+RUNTIME_FUNCTION(Runtime_MapGetInstanceType) { |
+ SealHandleScope shs(isolate); |
+ DCHECK(args.length() == 1); |
+ CONVERT_ARG_CHECKED(Map, map, 0); |
+ return Smi::FromInt(map->instance_type()); |
+} |
+ |
+ |
RUNTIME_FUNCTION(Runtime_ObjectEquals) { |
SealHandleScope shs(isolate); |
DCHECK(args.length() == 2); |