diff options
Diffstat (limited to 'deps/v8/tools/debug_helper/gen-heap-constants.py')
-rw-r--r-- | deps/v8/tools/debug_helper/gen-heap-constants.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/v8/tools/debug_helper/gen-heap-constants.py b/deps/v8/tools/debug_helper/gen-heap-constants.py index 6eb7f3743c..0a7907b020 100644 --- a/deps/v8/tools/debug_helper/gen-heap-constants.py +++ b/deps/v8/tools/debug_helper/gen-heap-constants.py @@ -31,7 +31,7 @@ def iterate_objects(target_space, camel_space_name): if space == target_space: result.append((offset, name)) for (space, offset), name in v8heapconst.KNOWN_OBJECTS.items(): - if space == target_space: + if space == target_space and (space, offset) not in v8heapconst.KNOWN_MAPS: result.append((offset, name)) out = out + '\nstd::string FindKnownObjectIn' + camel_space_name \ + '(uintptr_t offset) {\n switch (offset) {\n' @@ -40,8 +40,9 @@ def iterate_objects(target_space, camel_space_name): out = out + ' default: return "";\n }\n}\n' iterate_objects('map_space', 'MapSpace') -iterate_objects('read_only_space', 'ReadOnlySpace') iterate_objects('old_space', 'OldSpace') +iterate_objects('read_only_space', 'ReadOnlySpace') + def iterate_maps(target_space, camel_space_name): global out @@ -54,6 +55,7 @@ def iterate_maps(target_space, camel_space_name): out = out + ' default: return -1;\n }\n}\n' iterate_maps('map_space', 'MapSpace') +iterate_maps('old_space', 'OldSpace') iterate_maps('read_only_space', 'ReadOnlySpace') out = out + '\nvoid FillInUnknownHeapAddresses(' + \ |