summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorEvan Lucas <evanlucas@me.com>2017-06-30 19:08:32 -0500
committerEvan Lucas <evanlucas@me.com>2017-07-07 09:18:08 -0500
commit49d13a17b10b45b3d23e0fed41783769124f239c (patch)
tree81b037a0713eda13731f3178eb727196117d2d7d /configure
parent3d8a9e2424f3cd14a3a63a5304b28beefd42dfb2 (diff)
downloadandroid-node-v8-49d13a17b10b45b3d23e0fed41783769124f239c.tar.gz
android-node-v8-49d13a17b10b45b3d23e0fed41783769124f239c.tar.bz2
android-node-v8-49d13a17b10b45b3d23e0fed41783769124f239c.zip
build: allow enabling the --trace-maps flag in V8
This can be useful for tracing map creation. PR-URL: https://github.com/nodejs/node/pull/14018 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure b/configure
index eae46392ab..1cc3af5411 100755
--- a/configure
+++ b/configure
@@ -288,6 +288,11 @@ parser.add_option('--enable-d8',
dest='enable_d8',
help=optparse.SUPPRESS_HELP) # Unsupported, undocumented.
+parser.add_option('--enable-trace-maps',
+ action='store_true',
+ dest='trace_maps',
+ help='Enable the --trace-maps flag in V8 (use at your own risk)')
+
parser.add_option('--v8-options',
action='store',
dest='v8_options',
@@ -956,6 +961,7 @@ def configure_v8(o):
o['variables']['v8_random_seed'] = 0 # Use a random seed for hash tables.
o['variables']['v8_promise_internal_field_count'] = 1 # Add internal field to promises for async hooks.
o['variables']['v8_use_snapshot'] = 'false' if options.without_snapshot else 'true'
+ o['variables']['v8_trace_maps'] = 1 if options.trace_maps else 0
o['variables']['node_use_v8_platform'] = b(not options.without_v8_platform)
o['variables']['node_use_bundled_v8'] = b(not options.without_bundled_v8)
o['variables']['force_dynamic_crt'] = 1 if options.shared else 0