MCPcopy Create free account
hub / github.com/nodejs/node / load_objects

Function load_objects

deps/v8/tools/gen-postmortem-metadata.py:630–647  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

628# Loads class hierarchy and type information from "objects.h" etc.
629#
630def load_objects():
631 #
632 # Construct a dictionary for the classes we're sure should be present.
633 #
634 checktypes = {};
635 for klass in expected_classes:
636 checktypes[klass] = True;
637
638
639 for filename in sys.argv[2:]:
640 if not filename.endswith("-inl.h"):
641 load_objects_from_file(filename, checktypes)
642
643 if (len(checktypes) > 0):
644 for klass in checktypes:
645 print('error: expected class \"%s\" not found' % klass);
646
647 sys.exit(1);
648
649
650def load_objects_from_file(objfilename, checktypes):

Callers 1

Calls 3

load_objects_from_fileFunction · 0.85
printFunction · 0.70
exitMethod · 0.45

Tested by

no test coverage detected