| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 21bcfb6 commit 5101e4c
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -70,6 +70,11 @@ | |||
| 70 | 70 | # https://github.com/nodejs/node/pull/22920/files#r222779926 | |
| 71 | 71 | 'v8_enable_fast_mksnapshot': 0, | |
| 72 | 72 | ||
| 73 | + 'v8_win64_unwinding_info': 0, | ||
| 74 | + | ||
| 75 | + # TODO(refack): make v8-perfetto happen | ||
| 76 | + 'v8_use_perfetto': 0, | ||
| 77 | + | ||
| 73 | 78 | ##### end V8 defaults ##### | |
| 74 | 79 | ||
| 75 | 80 | 'conditions': [ | |
@@ -81,23 +86,23 @@ | |||
| 81 | 86 | }], | |
| 82 | 87 | ['GENERATOR=="ninja"', { | |
| 83 | 88 | 'obj_dir': '<(PRODUCT_DIR)/obj', | |
| 84 | - 'v8_base': '<(PRODUCT_DIR)/obj/tools/v8_gypfiles/libv8_base.a', | ||
| 89 | + 'v8_base': '<(PRODUCT_DIR)/obj/tools/v8_gypfiles/libv8_snapshot.a', | ||
| 85 | 90 | }, { | |
| 86 | 91 | 'obj_dir%': '<(PRODUCT_DIR)/obj.target', | |
| 87 | - 'v8_base': '<(PRODUCT_DIR)/obj.target/tools/v8_gypfiles/libv8_base.a', | ||
| 92 | + 'v8_base': '<(PRODUCT_DIR)/obj.target/tools/v8_gypfiles/libv8_snapshot.a', | ||
| 88 | 93 | }], | |
| 89 | 94 | ['OS == "win"', { | |
| 90 | 95 | 'os_posix': 0, | |
| 91 | 96 | 'v8_postmortem_support%': 0, | |
| 92 | 97 | 'obj_dir': '<(PRODUCT_DIR)/obj', | |
| 93 | - 'v8_base': '<(PRODUCT_DIR)/lib/v8_libbase.lib', | ||
| 98 | + 'v8_base': '<(PRODUCT_DIR)/lib/libv8_snapshot.a', | ||
| 94 | 99 | }, { | |
| 95 | 100 | 'os_posix': 1, | |
| 96 | 101 | 'v8_postmortem_support%': 1, | |
| 97 | 102 | }], | |
| 98 | 103 | ['OS == "mac"', { | |
| 99 | 104 | 'obj_dir%': '<(PRODUCT_DIR)/obj.target', | |
| 100 | - 'v8_base': '<(PRODUCT_DIR)/libv8_base.a', | ||
| 105 | + 'v8_base': '<(PRODUCT_DIR)/libv8_snapshot.a', | ||
| 101 | 106 | }], | |
| 102 | 107 | ['openssl_fips != ""', { | |
| 103 | 108 | 'openssl_product': '<(STATIC_LIB_PREFIX)crypto<(STATIC_LIB_SUFFIX)', | |
@@ -225,39 +230,29 @@ | |||
| 225 | 230 | 'msvs_settings': { | |
| 226 | 231 | 'VCCLCompilerTool': { | |
| 227 | 232 | 'BufferSecurityCheck': 'true', | |
| 228 | - 'DebugInformationFormat': 1, # /Z7 embed info in .obj files | ||
| 229 | - 'ExceptionHandling': 0, # /EHsc | ||
| 233 | + 'DebugInformationFormat': 1, # /Z7 embed info in .obj files | ||
| 234 | + 'ExceptionHandling': 0, # /EHsc | ||
| 230 | 235 | 'MultiProcessorCompilation': 'true', | |
| 231 | - 'StringPooling': 'true', # pool string literals | ||
| 236 | + 'StringPooling': 'true', # pool string literals | ||
| 232 | 237 | 'SuppressStartupBanner': 'true', | |
| 233 | 238 | 'WarnAsError': 'false', | |
| 234 | - 'WarningLevel': 3, # /W3 | ||
| 239 | + 'WarningLevel': 3, # /W3 | ||
| 235 | 240 | }, | |
| 236 | 241 | 'VCLinkerTool': { | |
| 242 | + 'target_conditions': [ | ||
| 243 | + ['_type=="executable"', { | ||
| 244 | + 'SubSystem': 1, # /SUBSYSTEM:CONSOLE | ||
| 245 | + }], | ||
| 246 | + ], | ||
| 237 | 247 | 'conditions': [ | |
| 238 | 248 | ['target_arch=="ia32"', { | |
| 239 | - 'TargetMachine' : 1, # /MACHINE:X86 | ||
| 240 | - 'target_conditions': [ | ||
| 241 | - ['_type=="executable"', { | ||
| 242 | - 'AdditionalOptions': [ '/SubSystem:Console,"5.01"' ], | ||
| 243 | - }], | ||
| 244 | - ], | ||
| 249 | + 'TargetMachine' : 1, # /MACHINE:X86 | ||
| 245 | 250 | }], | |
| 246 | 251 | ['target_arch=="x64"', { | |
| 247 | - 'TargetMachine' : 17, # /MACHINE:AMD64 | ||
| 248 | - 'target_conditions': [ | ||
| 249 | - ['_type=="executable"', { | ||
| 250 | - 'AdditionalOptions': [ '/SubSystem:Console,"5.02"' ], | ||
| 251 | - }], | ||
| 252 | - ], | ||
| 252 | + 'TargetMachine' : 17, # /MACHINE:X64 | ||
| 253 | 253 | }], | |
| 254 | 254 | ['target_arch=="arm64"', { | |
| 255 | - 'TargetMachine' : 0, # /MACHINE:ARM64 is inferred from the input files. | ||
| 256 | - 'target_conditions': [ | ||
| 257 | - ['_type=="executable"', { | ||
| 258 | - 'AdditionalOptions': [ '/SubSystem:Console' ], | ||
| 259 | - }], | ||
| 260 | - ], | ||
| 255 | + 'TargetMachine' : 0, # NotSet. MACHINE:ARM64 is inferred from the input files. | ||
| 261 | 256 | }], | |
| 262 | 257 | ], | |
| 263 | 258 | 'GenerateDebugInformation': 'true', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -615,6 +615,13 @@ def b(value): | |||
| 615 | 615 | else: | |
| 616 | 616 | return 'false' | |
| 617 | 617 | ||
| 618 | + def B(value): | ||
| 619 | + """Returns 1 if value is truthy, 0 otherwise.""" | ||
| 620 | + if value: | ||
| 621 | + return 1 | ||
| 622 | + else: | ||
| 623 | + return 0 | ||
| 624 | + | ||
| 618 | 625 | ||
| 619 | 626 | def pkg_config(pkg): | |
| 620 | 627 | """Run pkg-config on the specified package | |
@@ -1594,6 +1601,7 @@ def make_bin_override(): | |||
| 1594 | 1601 | # move everything else to target_defaults | |
| 1595 | 1602 | variables = output['variables'] | |
| 1596 | 1603 | del output['variables'] | |
| 1604 | + variables['is_debug'] = B(options.debug) | ||
| 1597 | 1605 | ||
| 1598 | 1606 | # make_global_settings for special FIPS linking | |
| 1599 | 1607 | # should not be used to compile modules in node-gyp | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -344,22 +344,24 @@ | |||
| 344 | 344 | [ 'node_intermediate_lib_type=="static_library" and node_shared=="false"', { | |
| 345 | 345 | 'xcode_settings': { | |
| 346 | 346 | 'OTHER_LDFLAGS': [ | |
| 347 | - '-Wl,-force_load,<(PRODUCT_DIR)/<(STATIC_LIB_PREFIX)' | ||
| 348 | - '<(node_core_target_name)<(STATIC_LIB_SUFFIX)', | ||
| 347 | + '-Wl,-force_load,<(PRODUCT_DIR)/<(STATIC_LIB_PREFIX)<(node_core_target_name)<(STATIC_LIB_SUFFIX)', | ||
| 348 | + '-Wl,-force_load,<(PRODUCT_DIR)/<(STATIC_LIB_PREFIX)v8_base_without_compiler<(STATIC_LIB_SUFFIX)', | ||
| 349 | 349 | ], | |
| 350 | 350 | }, | |
| 351 | 351 | 'msvs_settings': { | |
| 352 | 352 | 'VCLinkerTool': { | |
| 353 | 353 | 'AdditionalOptions': [ | |
| 354 | 354 | '/WHOLEARCHIVE:<(node_lib_target_name)<(STATIC_LIB_SUFFIX)', | |
| 355 | + '/WHOLEARCHIVE:<(STATIC_LIB_PREFIX)v8_base_without_compiler<(STATIC_LIB_SUFFIX)', | ||
| 355 | 356 | ], | |
| 356 | 357 | }, | |
| 357 | 358 | }, | |
| 358 | 359 | 'conditions': [ | |
| 359 | - ['OS!="aix"', { | ||
| 360 | + ['OS != "aix" and OS != "mac"', { | ||
| 360 | 361 | 'ldflags': [ | |
| 361 | - '-Wl,--whole-archive,<(obj_dir)/<(STATIC_LIB_PREFIX)' | ||
| 362 | - '<(node_core_target_name)<(STATIC_LIB_SUFFIX)', | ||
| 362 | + '-Wl,--whole-archive', | ||
| 363 | + '<(obj_dir)/<(STATIC_LIB_PREFIX)<(node_core_target_name)<(STATIC_LIB_SUFFIX)', | ||
| 364 | + '<(obj_dir)/tools/v8_gypfiles/<(STATIC_LIB_PREFIX)v8_base_without_compiler<(STATIC_LIB_SUFFIX)', | ||
| 363 | 365 | '-Wl,--no-whole-archive', | |
| 364 | 366 | ], | |
| 365 | 367 | }], | |
@@ -386,10 +388,12 @@ | |||
| 386 | 388 | 'NODE_ARCH="<(target_arch)"', | |
| 387 | 389 | 'NODE_PLATFORM="<(OS)"', | |
| 388 | 390 | ], | |
| 389 | - 'conditions': [ | ||
| 390 | - ['OS=="win"', { | ||
| 391 | - 'libraries': [ 'Ws2_32' ], | ||
| 392 | - }], | ||
| 391 | + }], | ||
| 392 | + ['OS=="win"', { | ||
| 393 | + 'libraries': [ | ||
| 394 | + 'Dbghelp.lib', | ||
| 395 | + 'winmm.lib', | ||
| 396 | + 'Ws2_32.lib', | ||
| 393 | 397 | ], | |
| 394 | 398 | }], | |
| 395 | 399 | ['node_with_ltcg=="true"', { | |
@@ -986,7 +990,7 @@ | |||
| 986 | 990 | { | |
| 987 | 991 | 'action_name': 'node_dtrace_ustack_constants', | |
| 988 | 992 | 'inputs': [ | |
| 989 | - '<(v8_base)' | ||
| 993 | + '<(obj_dir)/tools/v8_gypfiles/<(STATIC_LIB_PREFIX)v8_base_without_compiler<(STATIC_LIB_SUFFIX)' | ||
| 990 | 994 | ], | |
| 991 | 995 | 'outputs': [ | |
| 992 | 996 | '<(SHARED_INTERMEDIATE_DIR)/v8constants.h' | |
@@ -1141,8 +1145,16 @@ | |||
| 1141 | 1145 | }], | |
| 1142 | 1146 | ], | |
| 1143 | 1147 | }], | |
| 1148 | + ['OS=="win"', { | ||
| 1149 | + 'libraries': [ | ||
| 1150 | + 'Dbghelp.lib', | ||
| 1151 | + 'winmm.lib', | ||
| 1152 | + 'Ws2_32.lib', | ||
| 1153 | + ], | ||
| 1154 | + }], | ||
| 1144 | 1155 | ], | |
| 1145 | 1156 | }, # cctest | |
| 1157 | + | ||
| 1146 | 1158 | # TODO(joyeecheung): do not depend on node_lib, | |
| 1147 | 1159 | # instead create a smaller static library node_lib_base that does | |
| 1148 | 1160 | # just enough for node_native_module.cc and the cache builder to | |
@@ -1182,20 +1194,12 @@ | |||
| 1182 | 1194 | ], | |
| 1183 | 1195 | ||
| 1184 | 1196 | 'conditions': [ | |
| 1185 | - [ 'node_report=="true"', { | ||
| 1186 | - 'conditions': [ | ||
| 1187 | - ['OS=="win"', { | ||
| 1188 | - 'libraries': [ | ||
| 1189 | - 'dbghelp.lib', | ||
| 1190 | - 'PsApi.lib', | ||
| 1191 | - 'Ws2_32.lib', | ||
| 1192 | - ], | ||
| 1193 | - 'dll_files': [ | ||
| 1194 | - 'dbghelp.dll', | ||
| 1195 | - 'PsApi.dll', | ||
| 1196 | - 'Ws2_32.dll', | ||
| 1197 | - ], | ||
| 1198 | - }], | ||
| 1197 | + ['OS=="win"', { | ||
| 1198 | + 'libraries': [ | ||
| 1199 | + 'dbghelp.lib', | ||
| 1200 | + 'PsApi.lib', | ||
| 1201 | + 'winmm.lib', | ||
| 1202 | + 'Ws2_32.lib', | ||
| 1199 | 1203 | ], | |
| 1200 | 1204 | }], | |
| 1201 | 1205 | ], | |
@@ -1232,11 +1236,11 @@ | |||
| 1232 | 1236 | ], | |
| 1233 | 1237 | ||
| 1234 | 1238 | 'conditions': [ | |
| 1235 | - [ 'node_report=="true"', { | ||
| 1236 | - 'conditions': [ | ||
| 1237 | - ['OS=="win"', { | ||
| 1238 | - 'libraries': [ 'Ws2_32' ], | ||
| 1239 | - }], | ||
| 1239 | + ['OS=="win"', { | ||
| 1240 | + 'libraries': [ | ||
| 1241 | + 'Dbghelp.lib', | ||
| 1242 | + 'winmm.lib', | ||
| 1243 | + 'Ws2_32.lib', | ||
| 1240 | 1244 | ], | |
| 1241 | 1245 | }], | |
| 1242 | 1246 | ], | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -70,7 +70,7 @@ | |||
| 70 | 70 | }], | |
| 71 | 71 | [ 'node_use_bundled_v8=="true"', { | |
| 72 | 72 | 'dependencies': [ | |
| 73 | - 'tools/v8_gypfiles/v8.gyp:v8', | ||
| 73 | + 'tools/v8_gypfiles/v8.gyp:v8_snapshot', | ||
| 74 | 74 | 'tools/v8_gypfiles/v8.gyp:v8_libplatform', | |
| 75 | 75 | ], | |
| 76 | 76 | }], | |
@@ -116,21 +116,13 @@ | |||
| 116 | 116 | [ 'node_no_browser_globals=="true"', { | |
| 117 | 117 | 'defines': [ 'NODE_NO_BROWSER_GLOBALS' ], | |
| 118 | 118 | } ], | |
| 119 | - [ 'node_use_bundled_v8=="true" and v8_postmortem_support==1 and force_load=="true"', { | ||
| 120 | - 'xcode_settings': { | ||
| 121 | - 'OTHER_LDFLAGS': [ | ||
| 122 | - '-Wl,-force_load,<(v8_base)', | ||
| 123 | - ], | ||
| 124 | - }, | ||
| 125 | - }], | ||
| 126 | 119 | [ 'node_shared_zlib=="false"', { | |
| 127 | 120 | 'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ], | |
| 128 | 121 | 'conditions': [ | |
| 129 | 122 | [ 'force_load=="true"', { | |
| 130 | 123 | 'xcode_settings': { | |
| 131 | 124 | 'OTHER_LDFLAGS': [ | |
| 132 | - '-Wl,-force_load,<(PRODUCT_DIR)/<(STATIC_LIB_PREFIX)' | ||
| 133 | - 'zlib<(STATIC_LIB_SUFFIX)', | ||
| 125 | + '-Wl,-force_load,<(PRODUCT_DIR)/<(STATIC_LIB_PREFIX)zlib<(STATIC_LIB_SUFFIX)', | ||
| 134 | 126 | ], | |
| 135 | 127 | }, | |
| 136 | 128 | 'msvs_settings': { | |
@@ -143,7 +135,7 @@ | |||
| 143 | 135 | 'conditions': [ | |
| 144 | 136 | ['OS!="aix" and node_shared=="false"', { | |
| 145 | 137 | 'ldflags': [ | |
| 146 | - '-Wl,--whole-archive,' | ||
| 138 | + '-Wl,--whole-archive', | ||
| 147 | 139 | '<(obj_dir)/deps/zlib/<(STATIC_LIB_PREFIX)zlib<(STATIC_LIB_SUFFIX)', | |
| 148 | 140 | '-Wl,--no-whole-archive', | |
| 149 | 141 | ], | |
@@ -170,8 +162,7 @@ | |||
| 170 | 162 | [ 'force_load=="true"', { | |
| 171 | 163 | 'xcode_settings': { | |
| 172 | 164 | 'OTHER_LDFLAGS': [ | |
| 173 | - '-Wl,-force_load,<(PRODUCT_DIR)/<(STATIC_LIB_PREFIX)' | ||
| 174 | - 'uv<(STATIC_LIB_SUFFIX)', | ||
| 165 | + '-Wl,-force_load,<(PRODUCT_DIR)/libuv<(STATIC_LIB_SUFFIX)', | ||
| 175 | 166 | ], | |
| 176 | 167 | }, | |
| 177 | 168 | 'msvs_settings': { | |
@@ -184,7 +175,7 @@ | |||
| 184 | 175 | 'conditions': [ | |
| 185 | 176 | ['OS!="aix" and node_shared=="false"', { | |
| 186 | 177 | 'ldflags': [ | |
| 187 | - '-Wl,--whole-archive,' | ||
| 178 | + '-Wl,--whole-archive', | ||
| 188 | 179 | '<(obj_dir)/deps/uv/<(STATIC_LIB_PREFIX)uv<(STATIC_LIB_SUFFIX)', | |
| 189 | 180 | '-Wl,--no-whole-archive', | |
| 190 | 181 | ], | |
@@ -269,9 +260,18 @@ | |||
| 269 | 260 | }], | |
| 270 | 261 | [ '(OS=="freebsd" or OS=="linux") and node_shared=="false"' | |
| 271 | 262 | ' and force_load=="true"', { | |
| 272 | - 'ldflags': [ '-Wl,-z,noexecstack', | ||
| 273 | - '-Wl,--whole-archive <(v8_base)', | ||
| 274 | - '-Wl,--no-whole-archive' ] | ||
| 263 | + 'ldflags': [ | ||
| 264 | + '-Wl,-z,noexecstack', | ||
| 265 | + '-Wl,--whole-archive <(v8_base)', | ||
| 266 | + '-Wl,--no-whole-archive', | ||
| 267 | + ] | ||
| 268 | + }], | ||
| 269 | + [ 'node_use_bundled_v8=="true" and v8_postmortem_support==1 and force_load=="true"', { | ||
| 270 | + 'xcode_settings': { | ||
| 271 | + 'OTHER_LDFLAGS': [ | ||
| 272 | + '-Wl,-force_load,<(v8_base)', | ||
| 273 | + ], | ||
| 274 | + }, | ||
| 275 | 275 | }], | |
| 276 | 276 | [ 'coverage=="true" and node_shared=="false" and OS in "mac freebsd linux"', { | |
| 277 | 277 | 'cflags!': [ '-O3' ], | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,19 @@ | |||
| 1 | 1 | #include "src/api-inl.h" | |
| 2 | + #include "src/ast/ast.h" | ||
| 3 | + #include "src/builtins/builtins-definitions.h" | ||
| 4 | + #include "src/code-stub-assembler.h" | ||
| 5 | + #include "src/globals.h" | ||
| 2 | 6 | #include "src/objects-inl.h" | |
| 7 | + #include "src/objects/dictionary-inl.h" | ||
| 8 | + #include "src/objects/js-objects-inl.h" | ||
| 9 | + #include "src/objects/fixed-array-inl.h" | ||
| 3 | 10 | #include "src/utils.h" | |
| 11 | + #include "src/vector.h" | ||
| 12 | + | ||
| 13 | + | ||
| 14 | + #include <algorithm> | ||
| 15 | + #include <cstring> | ||
| 16 | + #include <iterator> | ||
| 17 | + #include <iosfwd> | ||
| 18 | + #include <memory> | ||
| 19 | + #include <string> | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments