GeezerVison is showing github.com — build,deps: refactor and fix v8.gyp · nodejs/node@2b8f569
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: common.gypi +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 31 | 31 |
| 32 | 32 | # Reset this number to 0 on major V8 upgrades. | 33 | 33 | # Increment by one for each non-official patch applied to deps/v8. | 34 | | - 'v8_embedder_string': '-node.31', | | 34 | + 'v8_embedder_string': '-node.32', | 35 | 35 |
| 36 | 36 | # Enable disassembler for `--print-code` v8 options | 37 | 37 | 'v8_enable_disassembler': 1, | |
Collapse file Copy file name to clipboardExpand all lines: deps/v8/gypfiles/features.gypi +16-27Lines changed: 16 additions & 27 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 29 | 29 |
| 30 | 30 | { | 31 | 31 | 'variables': { | 32 | | - 'variables': { | 33 | | - 'v8_target_arch%': '<(target_arch)', | 34 | | - }, | | 32 | + 'v8_target_arch%': '<(target_arch)', | | 33 | + | | 34 | + # Emulate GN variables | | 35 | + 'conditions': [ | | 36 | + ['OS=="android"', { # GYP reverts OS to linux so use `-D OS=android` | | 37 | + 'is_android': 1, | | 38 | + }, { | | 39 | + 'is_android': 0, | | 40 | + }], | | 41 | + ], | 35 | 42 |
| 36 | 43 | # Allows the embedder to add a custom suffix to the version string. | 37 | 44 | 'v8_embedder_string%': '', | | 95 | 102 |
| 96 | 103 | # Enable mitigations for executing untrusted code. | 97 | 104 | 'v8_untrusted_code_mitigations%': 'true', | | 105 | + | | 106 | + 'v8_enable_handle_zapping%': 1, | 98 | 107 | }, | 99 | 108 | 'target_defaults': { | 100 | 109 | 'conditions': [ | | 105 | 114 | 'defines': ['ENABLE_DISASSEMBLER',], | 106 | 115 | }], | 107 | 116 | ['v8_promise_internal_field_count!=0', { | 108 | | - 'defines': ['V8_PROMISE_INTERNAL_FIELD_COUNT','v8_promise_internal_field_count'], | | 117 | + 'defines': ['V8_PROMISE_INTERNAL_FIELD_COUNT=<(v8_promise_internal_field_count)'], | 109 | 118 | }], | 110 | 119 | ['v8_enable_gdbjit==1', { | 111 | 120 | 'defines': ['ENABLE_GDB_JIT_INTERFACE',], | | 155 | 164 | ['v8_untrusted_code_mitigations=="false"', { | 156 | 165 | 'defines': ['DISABLE_UNTRUSTED_CODE_MITIGATIONS',], | 157 | 166 | }], | | 167 | + ['v8_enable_handle_zapping==1', { | | 168 | + 'defines': ['ENABLE_HANDLE_ZAPPING',], | | 169 | + }], | 158 | 170 | ], # conditions | 159 | | - 'configurations': { | 160 | | - 'DebugBaseCommon': { | 161 | | - 'abstract': 1, | 162 | | - 'variables': { | 163 | | - 'v8_enable_handle_zapping%': 1, | 164 | | - }, | 165 | | - 'conditions': [ | 166 | | - ['v8_enable_handle_zapping==1', { | 167 | | - 'defines': ['ENABLE_HANDLE_ZAPPING',], | 168 | | - }], | 169 | | - ], | 170 | | - }, # Debug | 171 | | - 'Release': { | 172 | | - 'variables': { | 173 | | - 'v8_enable_handle_zapping%': 1, | 174 | | - }, | 175 | | - 'conditions': [ | 176 | | - ['v8_enable_handle_zapping==1', { | 177 | | - 'defines': ['ENABLE_HANDLE_ZAPPING',], | 178 | | - }], | 179 | | - ], # conditions | 180 | | - }, # Release | 181 | | - }, # configurations | 182 | 171 | 'defines': [ | 183 | 172 | 'V8_GYP_BUILD', | 184 | 173 | 'V8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=<(v8_typed_array_max_size_in_heap)', | |
Collapse file Copy file name to clipboardExpand all lines: deps/v8/gypfiles/inspector.gyp -89Lines changed: 0 additions & 89 deletions Collapse file Copy file name to clipboardExpand all lines: deps/v8/gypfiles/inspector.gypi +63-3Lines changed: 63 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4 | 4 |
| 5 | 5 | { | 6 | 6 | 'variables': { | | 7 | + 'protocol_path': '../third_party/inspector_protocol', | | 8 | + 'inspector_path': '../src/inspector', | | 9 | + | 7 | 10 | 'inspector_generated_sources': [ | 8 | 11 | '<(SHARED_INTERMEDIATE_DIR)/src/inspector/protocol/Forward.h', | 9 | 12 | '<(SHARED_INTERMEDIATE_DIR)/src/inspector/protocol/Protocol.cpp', | | 29 | 32 | 'inspector_generated_injected_script': '<(SHARED_INTERMEDIATE_DIR)/src/inspector/injected-script-source.h', | 30 | 33 |
| 31 | 34 | 'inspector_all_sources': [ | 32 | | - '<@(inspector_generated_sources)', | 33 | | - '<(inspector_generated_injected_script)', | 34 | 35 | '../include/v8-inspector.h', | 35 | 36 | '../include/v8-inspector-protocol.h', | 36 | 37 | '../src/inspector/injected-script.cc', | | 86 | 87 | '../src/inspector/wasm-translation.cc', | 87 | 88 | '../src/inspector/wasm-translation.h', | 88 | 89 | ] | 89 | | - } | | 90 | + }, | | 91 | + 'includes': [ | | 92 | + '../third_party/inspector_protocol/inspector_protocol.gypi', | | 93 | + ], | | 94 | + 'actions': [ | | 95 | + { | | 96 | + 'action_name': 'protocol_compatibility', | | 97 | + 'inputs': [ | | 98 | + '<(inspector_path)/js_protocol.json', | | 99 | + ], | | 100 | + 'outputs': [ | | 101 | + '<@(SHARED_INTERMEDIATE_DIR)/src/js_protocol.stamp', | | 102 | + ], | | 103 | + 'action': [ | | 104 | + 'python', | | 105 | + '<(protocol_path)/CheckProtocolCompatibility.py', | | 106 | + '--stamp', '<@(_outputs)', | | 107 | + '<(inspector_path)/js_protocol.json', | | 108 | + ], | | 109 | + 'message': 'Checking inspector protocol compatibility', | | 110 | + }, | | 111 | + { | | 112 | + 'action_name': 'protocol_generated_sources', | | 113 | + 'inputs': [ | | 114 | + '<(inspector_path)/js_protocol.json', | | 115 | + '<(inspector_path)/inspector_protocol_config.json', | | 116 | + '<@(inspector_protocol_files)', | | 117 | + ], | | 118 | + 'outputs': [ | | 119 | + '<@(inspector_generated_sources)', | | 120 | + ], | | 121 | + 'process_outputs_as_sources': 1, | | 122 | + 'action': [ | | 123 | + 'python', | | 124 | + '<(protocol_path)/CodeGenerator.py', | | 125 | + '--jinja_dir', '../third_party', | | 126 | + '--output_base', '<(SHARED_INTERMEDIATE_DIR)/src/inspector', | | 127 | + '--config', '<(inspector_path)/inspector_protocol_config.json', | | 128 | + ], | | 129 | + 'message': 'Generating inspector protocol sources from protocol json', | | 130 | + }, | | 131 | + { | | 132 | + 'action_name': 'convert_js_to_cpp_char_array', | | 133 | + 'inputs': [ | | 134 | + '<(inspector_path)/build/xxd.py', | | 135 | + '<(inspector_injected_script_source)', | | 136 | + ], | | 137 | + 'outputs': [ | | 138 | + '<(inspector_generated_injected_script)', | | 139 | + ], | | 140 | + 'process_outputs_as_sources': 1, | | 141 | + 'action': [ | | 142 | + 'python', | | 143 | + '<(inspector_path)/build/xxd.py', | | 144 | + 'InjectedScriptSource_js', | | 145 | + '<(inspector_path)/injected-script-source.js', | | 146 | + '<@(_outputs)' | | 147 | + ], | | 148 | + }, | | 149 | + ], | 90 | 150 | } |
Collapse file Copy file name to clipboardExpand all lines: deps/v8/gypfiles/toolchain.gypi +19Lines changed: 19 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1425 | 1425 | }], | 1426 | 1426 | ], | 1427 | 1427 | }, # configurations | | 1428 | + 'msvs_disabled_warnings': [ | | 1429 | + 4245, # Conversion with signed/unsigned mismatch. | | 1430 | + 4267, # Conversion with possible loss of data. | | 1431 | + 4324, # Padding structure due to alignment. | | 1432 | + 4701, # Potentially uninitialized local variable. | | 1433 | + 4702, # Unreachable code. | | 1434 | + 4703, # Potentially uninitialized local pointer variable. | | 1435 | + 4709, # Comma operator within array index expr (bugged). | | 1436 | + 4714, # Function marked forceinline not inlined. | | 1437 | + | | 1438 | + # MSVC assumes that control can get past an exhaustive switch and then | | 1439 | + # warns if there's no return there (see https://crbug.com/v8/7658) | | 1440 | + 4715, # Not all control paths return a value. | | 1441 | + | | 1442 | + 4718, # Recursive call has no side-effect. | | 1443 | + 4723, # https://crbug.com/v8/7771 | | 1444 | + 4724, # https://crbug.com/v8/7771 | | 1445 | + 4800, # Forcing value to bool. | | 1446 | + ], | 1428 | 1447 | }, # target_defaults | 1429 | 1448 | } |
|