Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2abc98e

Browse filesBrowse files
mmarchiniBethGriggs
authored andcommitted
build: add flag to build V8 with OBJECT_PRINT
Add a configure flag to build V8 with `-DOBJECT_PRINT`, which will expose auxiliar functions to inspect heap objects using native debuggers. Fixes: #32402 Signed-off-by: Mary Marchini <mmarchini@netflix.com> PR-URL: #32834 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
1 parent b93ba07 commit 2abc98e
Copy full SHA for 2abc98e

File tree

Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed
Open diff view settings
Collapse file

‎configure.py‎

Copy file name to clipboardExpand all lines: configure.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,12 @@
659659
'memory footprint, but also implies no just-in-time compilation ' +
660660
'support, thus much slower execution)')
661661

662+
parser.add_option('--v8-enable-object-print',
663+
action='store_true',
664+
dest='v8_enable_object_print',
665+
default=False,
666+
help='compile V8 with auxiliar functions for native debuggers')
667+
662668
parser.add_option('--node-builtin-modules-path',
663669
action='store',
664670
dest='node_builtin_modules_path',
@@ -1266,6 +1272,7 @@ def configure_v8(o):
12661272
o['variables']['v8_no_strict_aliasing'] = 1 # Work around compiler bugs.
12671273
o['variables']['v8_optimized_debug'] = 0 if options.v8_non_optimized_debug else 1
12681274
o['variables']['dcheck_always_on'] = 1 if options.v8_with_dchecks else 0
1275+
o['variables']['v8_enable_object_print'] = 1 if options.v8_enable_object_print else 0
12691276
o['variables']['v8_random_seed'] = 0 # Use a random seed for hash tables.
12701277
o['variables']['v8_promise_internal_field_count'] = 1 # Add internal field to promises for async hooks.
12711278
o['variables']['v8_use_siphash'] = 0 if options.without_siphash else 1

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.