| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5a1ad57 commit 277e5fa
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,9 +43,6 @@ | |||
| 43 | 43 | ||
| 44 | 44 | ##### V8 defaults for Node.js ##### | |
| 45 | 45 | ||
| 46 | - # Old time default, now explicitly stated. | ||
| 47 | - 'v8_use_snapshot': 1, | ||
| 48 | - | ||
| 49 | 46 | # Turn on SipHash for hash seed generation, addresses HashWick | |
| 50 | 47 | 'v8_use_siphash': 'true', | |
| 51 | 48 | ||
@@ -76,52 +73,27 @@ | |||
| 76 | 73 | # TODO(refack): make v8-perfetto happen | |
| 77 | 74 | 'v8_use_perfetto': 0, | |
| 78 | 75 | ||
| 76 | + 'v8_enable_pointer_compression': 0, | ||
| 77 | + 'v8_enable_31bit_smis_on_64bit_arch': 0, | ||
| 78 | + | ||
| 79 | 79 | ##### end V8 defaults ##### | |
| 80 | 80 | ||
| 81 | 81 | 'conditions': [ | |
| 82 | 82 | ['OS == "win"', { | |
| 83 | 83 | 'os_posix': 0, | |
| 84 | 84 | 'v8_postmortem_support%': 0, | |
| 85 | + 'obj_dir': '<(PRODUCT_DIR)/obj', | ||
| 86 | + 'v8_base': '<(PRODUCT_DIR)/lib/libv8_snapshot.a', | ||
| 85 | 87 | }, { | |
| 86 | 88 | 'os_posix': 1, | |
| 87 | 89 | 'v8_postmortem_support%': 1, | |
| 88 | 90 | }], | |
| 89 | - ['v8_use_snapshot==1', { | ||
| 90 | - 'conditions': [ | ||
| 91 | - ['GENERATOR == "ninja"', { | ||
| 92 | - 'obj_dir': '<(PRODUCT_DIR)/obj', | ||
| 93 | - 'v8_base': '<(PRODUCT_DIR)/obj/tools/v8_gypfiles/libv8_snapshot.a', | ||
| 94 | - }, { | ||
| 95 | - 'obj_dir%': '<(PRODUCT_DIR)/obj.target', | ||
| 96 | - 'v8_base': '<(PRODUCT_DIR)/obj.target/tools/v8_gypfiles/libv8_snapshot.a', | ||
| 97 | - }], | ||
| 98 | - ['OS == "win"', { | ||
| 99 | - 'obj_dir': '<(PRODUCT_DIR)/obj', | ||
| 100 | - 'v8_base': '<(PRODUCT_DIR)/lib/libv8_snapshot.a', | ||
| 101 | - }], | ||
| 102 | - ['OS == "mac"', { | ||
| 103 | - 'obj_dir%': '<(PRODUCT_DIR)/obj.target', | ||
| 104 | - 'v8_base': '<(PRODUCT_DIR)/libv8_snapshot.a', | ||
| 105 | - }], | ||
| 106 | - ], | ||
| 91 | + ['GENERATOR == "ninja"', { | ||
| 92 | + 'obj_dir': '<(PRODUCT_DIR)/obj', | ||
| 93 | + 'v8_base': '<(PRODUCT_DIR)/obj/tools/v8_gypfiles/libv8_snapshot.a', | ||
| 107 | 94 | }, { | |
| 108 | - 'conditions': [ | ||
| 109 | - ['GENERATOR == "ninja"', { | ||
| 110 | - 'obj_dir': '<(PRODUCT_DIR)/obj', | ||
| 111 | - 'v8_base': '<(PRODUCT_DIR)/obj/tools/v8_gypfiles/libv8_nosnapshot.a', | ||
| 112 | - }, { | ||
| 113 | - 'obj_dir%': '<(PRODUCT_DIR)/obj.target', | ||
| 114 | - 'v8_base': '<(PRODUCT_DIR)/obj.target/tools/v8_gypfiles/libv8_nosnapshot.a', | ||
| 115 | - }], | ||
| 116 | - ['OS == "win"', { | ||
| 117 | - 'obj_dir': '<(PRODUCT_DIR)/obj', | ||
| 118 | - 'v8_base': '<(PRODUCT_DIR)/lib/libv8_nosnapshot.a', | ||
| 119 | - }], | ||
| 120 | - ['OS == "mac"', { | ||
| 121 | - 'obj_dir%': '<(PRODUCT_DIR)/obj.target', | ||
| 122 | - 'v8_base': '<(PRODUCT_DIR)/libv8_nosnapshot.a', | ||
| 123 | - }], | ||
| 124 | - ], | ||
| 95 | + 'obj_dir%': '<(PRODUCT_DIR)/obj.target', | ||
| 96 | + 'v8_base': '<(PRODUCT_DIR)/obj.target/tools/v8_gypfiles/libv8_snapshot.a', | ||
| 125 | 97 | }], | |
| 126 | 98 | ['openssl_fips != ""', { | |
| 127 | 99 | 'openssl_product': '<(STATIC_LIB_PREFIX)crypto<(STATIC_LIB_SUFFIX)', | |
@@ -130,6 +102,8 @@ | |||
| 130 | 102 | }], | |
| 131 | 103 | ['OS=="mac"', { | |
| 132 | 104 | 'clang%': 1, | |
| 105 | + 'obj_dir%': '<(PRODUCT_DIR)/obj.target', | ||
| 106 | + 'v8_base': '<(PRODUCT_DIR)/libv8_snapshot.a', | ||
| 133 | 107 | }], | |
| 134 | 108 | ], | |
| 135 | 109 | }, | |
@@ -334,6 +308,12 @@ | |||
| 334 | 308 | }], | |
| 335 | 309 | ], | |
| 336 | 310 | }], | |
| 311 | + ['v8_enable_pointer_compression == 1', { | ||
| 312 | + 'defines': ['V8_COMPRESS_POINTERS'], | ||
| 313 | + }], | ||
| 314 | + ['v8_enable_pointer_compression == 1 or v8_enable_31bit_smis_on_64bit_arch == 1', { | ||
| 315 | + 'defines': ['V8_31BIT_SMIS_ON_64BIT_ARCH'], | ||
| 316 | + }], | ||
| 337 | 317 | ['OS == "win"', { | |
| 338 | 318 | 'defines': [ | |
| 339 | 319 | 'WIN32', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,6 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | 'variables': { | |
| 3 | 3 | 'v8_use_siphash%': 0, | |
| 4 | - 'v8_use_snapshot%': 1, | ||
| 5 | 4 | 'v8_trace_maps%': 0, | |
| 6 | 5 | 'node_use_dtrace%': 'false', | |
| 7 | 6 | 'node_use_etw%': 'false', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -198,10 +198,6 @@ | |||
| 198 | 198 | ||
| 199 | 199 | # Variables from v8.gni | |
| 200 | 200 | ||
| 201 | - # Enable the snapshot feature, for fast context creation. | ||
| 202 | - # http://v8project.blogspot.com/2015/09/custom-startup-snapshots.html | ||
| 203 | - 'v8_use_snapshot%': 1, | ||
| 204 | - | ||
| 205 | 201 | # Enable ECMAScript Internationalization API. Enabling this feature will | |
| 206 | 202 | # add a dependency on the ICU library. | |
| 207 | 203 | 'v8_enable_i18n_support%': 1, | |
@@ -287,13 +283,8 @@ | |||
| 287 | 283 | # ['v8_enable_handle_zapping==1', { | |
| 288 | 284 | # 'defines': ['ENABLE_HANDLE_ZAPPING',], | |
| 289 | 285 | # }], | |
| 290 | - ['v8_use_snapshot==1', { | ||
| 291 | - 'defines': ['V8_USE_SNAPSHOT',], | ||
| 292 | - 'conditions': [ | ||
| 293 | - ['v8_enable_snapshot_native_code_counters==1', { | ||
| 294 | - 'defines': ['V8_SNAPSHOT_NATIVE_CODE_COUNTERS',], | ||
| 295 | - }], | ||
| 296 | - ], | ||
| 286 | + ['v8_enable_snapshot_native_code_counters==1', { | ||
| 287 | + 'defines': ['V8_SNAPSHOT_NATIVE_CODE_COUNTERS',], | ||
| 297 | 288 | }], | |
| 298 | 289 | ['v8_enable_single_generation==1', { | |
| 299 | 290 | 'defines': ['V8_ENABLE_SINGLE_GENERATION',], | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,9 +59,13 @@ | |||
| 59 | 59 | "<(V8_ROOT)/src/builtins/proxy-set-prototype-of.tq", | |
| 60 | 60 | "<(V8_ROOT)/src/builtins/proxy.tq", | |
| 61 | 61 | "<(V8_ROOT)/src/builtins/reflect.tq", | |
| 62 | + "<(V8_ROOT)/src/builtins/regexp-exec.tq", | ||
| 63 | + "<(V8_ROOT)/src/builtins/regexp-match-all.tq", | ||
| 62 | 64 | "<(V8_ROOT)/src/builtins/regexp-match.tq", | |
| 63 | 65 | "<(V8_ROOT)/src/builtins/regexp-replace.tq", | |
| 66 | + "<(V8_ROOT)/src/builtins/regexp-search.tq", | ||
| 64 | 67 | "<(V8_ROOT)/src/builtins/regexp-source.tq", | |
| 68 | + "<(V8_ROOT)/src/builtins/regexp-split.tq", | ||
| 65 | 69 | "<(V8_ROOT)/src/builtins/regexp-test.tq", | |
| 66 | 70 | "<(V8_ROOT)/src/builtins/regexp.tq", | |
| 67 | 71 | "<(V8_ROOT)/src/builtins/string.tq", | |
@@ -138,6 +142,7 @@ | |||
| 138 | 142 | ], | |
| 139 | 143 | 'outputs': [ | |
| 140 | 144 | '<(torque_output_root)/torque-generated/builtin-definitions-tq.h', | |
| 145 | + '<(torque_output_root)/torque-generated/interface-descriptors-tq.inc', | ||
| 141 | 146 | '<(torque_output_root)/torque-generated/field-offsets-tq.h', | |
| 142 | 147 | '<(torque_output_root)/torque-generated/class-verifiers-tq.cc', | |
| 143 | 148 | '<(torque_output_root)/torque-generated/class-verifiers-tq.h', | |
@@ -278,16 +283,7 @@ | |||
| 278 | 283 | 'type': 'none', | |
| 279 | 284 | 'toolsets': ['target'], | |
| 280 | 285 | 'hard_dependency': 1, | |
| 281 | - 'conditions': [ | ||
| 282 | - # The dependency on v8_base should come from a transitive | ||
| 283 | - # dependency however the Android toolchain requires libv8_base.a | ||
| 284 | - # to appear before libv8_snapshot.a so it's listed explicitly. | ||
| 285 | - ['v8_use_snapshot==1', { | ||
| 286 | - 'dependencies': ['v8_base', 'v8_snapshot'], | ||
| 287 | - }, { | ||
| 288 | - 'dependencies': ['v8_base', 'v8_init', 'v8_nosnapshot'], | ||
| 289 | - }], | ||
| 290 | - ] | ||
| 286 | + 'dependencies': ['v8_base', 'v8_snapshot'], | ||
| 291 | 287 | }, # v8_maybe_snapshot | |
| 292 | 288 | { | |
| 293 | 289 | 'target_name': 'v8_init', | |
@@ -1495,7 +1491,6 @@ | |||
| 1495 | 1491 | 'v8_enable_i18n_support=<(v8_enable_i18n_support)', | |
| 1496 | 1492 | 'v8_enable_verify_predictable=<(v8_enable_verify_predictable)', | |
| 1497 | 1493 | 'v8_target_cpu=<(v8_target_arch)', | |
| 1498 | - 'v8_use_snapshot=<(v8_use_snapshot)', | ||
| 1499 | 1494 | 'v8_use_siphash=<(v8_use_siphash)', | |
| 1500 | 1495 | 'v8_enable_embedded_builtins=<(v8_enable_embedded_builtins)', | |
| 1501 | 1496 | 'v8_enable_verify_csa=<(v8_enable_verify_csa)', | |
@@ -1533,9 +1528,66 @@ | |||
| 1533 | 1528 | 'toolsets': ['host', 'target'], | |
| 1534 | 1529 | }], | |
| 1535 | 1530 | ], | |
| 1531 | + 'dependencies': ['run_torque'], | ||
| 1536 | 1532 | 'variables': { | |
| 1537 | 1533 | 'heapobject_files': [ | |
| 1538 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"postmortem-metadata.*?sources = ")', | ||
| 1534 | + '<(V8_ROOT)/src/objects/objects.h', | ||
| 1535 | + '<(V8_ROOT)/src/objects/objects-inl.h', | ||
| 1536 | + '<(V8_ROOT)/src/objects/allocation-site-inl.h', | ||
| 1537 | + '<(V8_ROOT)/src/objects/allocation-site.h', | ||
| 1538 | + '<(V8_ROOT)/src/objects/cell-inl.h', | ||
| 1539 | + '<(V8_ROOT)/src/objects/cell.h', | ||
| 1540 | + '<(V8_ROOT)/src/objects/code-inl.h', | ||
| 1541 | + '<(V8_ROOT)/src/objects/code.h', | ||
| 1542 | + '<(V8_ROOT)/src/objects/data-handler.h', | ||
| 1543 | + '<(V8_ROOT)/src/objects/data-handler-inl.h', | ||
| 1544 | + '<(V8_ROOT)/src/objects/descriptor-array.h', | ||
| 1545 | + '<(V8_ROOT)/src/objects/descriptor-array-inl.h', | ||
| 1546 | + '<(V8_ROOT)/src/objects/feedback-cell.h', | ||
| 1547 | + '<(V8_ROOT)/src/objects/feedback-cell-inl.h', | ||
| 1548 | + '<(V8_ROOT)/src/objects/fixed-array-inl.h', | ||
| 1549 | + '<(V8_ROOT)/src/objects/fixed-array.h', | ||
| 1550 | + '<(V8_ROOT)/src/objects/heap-number-inl.h', | ||
| 1551 | + '<(V8_ROOT)/src/objects/heap-number.h', | ||
| 1552 | + '<(V8_ROOT)/src/objects/heap-object-inl.h', | ||
| 1553 | + '<(V8_ROOT)/src/objects/heap-object.h', | ||
| 1554 | + '<(V8_ROOT)/src/objects/instance-type.h', | ||
| 1555 | + '<(V8_ROOT)/src/objects/js-array-inl.h', | ||
| 1556 | + '<(V8_ROOT)/src/objects/js-array.h', | ||
| 1557 | + '<(V8_ROOT)/src/objects/js-array-buffer-inl.h', | ||
| 1558 | + '<(V8_ROOT)/src/objects/js-array-buffer.h', | ||
| 1559 | + '<(V8_ROOT)/src/objects/js-objects-inl.h', | ||
| 1560 | + '<(V8_ROOT)/src/objects/js-objects.h', | ||
| 1561 | + '<(V8_ROOT)/src/objects/js-promise-inl.h', | ||
| 1562 | + '<(V8_ROOT)/src/objects/js-promise.h', | ||
| 1563 | + '<(V8_ROOT)/src/objects/js-regexp-inl.h', | ||
| 1564 | + '<(V8_ROOT)/src/objects/js-regexp.cc', | ||
| 1565 | + '<(V8_ROOT)/src/objects/js-regexp.h', | ||
| 1566 | + '<(V8_ROOT)/src/objects/js-regexp-string-iterator-inl.h', | ||
| 1567 | + '<(V8_ROOT)/src/objects/js-regexp-string-iterator.h', | ||
| 1568 | + '<(V8_ROOT)/src/objects/map.h', | ||
| 1569 | + '<(V8_ROOT)/src/objects/map.cc', | ||
| 1570 | + '<(V8_ROOT)/src/objects/map-inl.h', | ||
| 1571 | + '<(V8_ROOT)/src/objects/js-objects.cc', | ||
| 1572 | + '<(V8_ROOT)/src/objects/name.h', | ||
| 1573 | + '<(V8_ROOT)/src/objects/name-inl.h', | ||
| 1574 | + '<(V8_ROOT)/src/objects/oddball-inl.h', | ||
| 1575 | + '<(V8_ROOT)/src/objects/oddball.h', | ||
| 1576 | + '<(V8_ROOT)/src/objects/primitive-heap-object.h', | ||
| 1577 | + '<(V8_ROOT)/src/objects/primitive-heap-object-inl.h', | ||
| 1578 | + '<(V8_ROOT)/src/objects/scope-info.h', | ||
| 1579 | + '<(V8_ROOT)/src/objects/script.h', | ||
| 1580 | + '<(V8_ROOT)/src/objects/script-inl.h', | ||
| 1581 | + '<(V8_ROOT)/src/objects/shared-function-info.h', | ||
| 1582 | + '<(V8_ROOT)/src/objects/shared-function-info-inl.h', | ||
| 1583 | + '<(V8_ROOT)/src/objects/string.cc', | ||
| 1584 | + '<(V8_ROOT)/src/objects/string.h', | ||
| 1585 | + '<(V8_ROOT)/src/objects/string-comparator.cc', | ||
| 1586 | + '<(V8_ROOT)/src/objects/string-comparator.h', | ||
| 1587 | + '<(V8_ROOT)/src/objects/string-inl.h', | ||
| 1588 | + '<(V8_ROOT)/src/objects/struct.h', | ||
| 1589 | + '<(V8_ROOT)/src/objects/struct-inl.h', | ||
| 1590 | + '<(torque_output_root)/torque-generated/instance-types-tq.h', | ||
| 1539 | 1591 | ], | |
| 1540 | 1592 | }, | |
| 1541 | 1593 | 'actions': [ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments