Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: tools/gyp/v8.gyp

Issue 1805903002: [serializer] Add API to warm up startup snapshot with an additional script. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix comment Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/cctest/test-serialize.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 13 matching lines...) Expand all
24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 { 28 {
29 'variables': { 29 'variables': {
30 'icu_use_data_file_flag%': 0, 30 'icu_use_data_file_flag%': 0,
31 'v8_code': 1, 31 'v8_code': 1,
32 'v8_random_seed%': 314159265, 32 'v8_random_seed%': 314159265,
33 'v8_vector_stores%': 0, 33 'v8_vector_stores%': 0,
34 'embed_script%': "", 34 'embed_script%': "-",
35 'warmup_script%': "-",
35 'v8_extra_library_files%': [], 36 'v8_extra_library_files%': [],
36 'v8_experimental_extra_library_files%': [], 37 'v8_experimental_extra_library_files%': [],
37 'mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABL E_SUFFIX)', 38 'mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABL E_SUFFIX)',
38 }, 39 },
39 'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'], 40 'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'],
40 'targets': [ 41 'targets': [
41 { 42 {
42 'target_name': 'v8', 43 'target_name': 'v8',
43 'dependencies_traverse': 1, 44 'dependencies_traverse': 1,
44 'dependencies': ['v8_maybe_snapshot'], 45 'dependencies': ['v8_maybe_snapshot'],
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 '<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc', 198 '<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
198 '<(SHARED_INTERMEDIATE_DIR)/experimental-extras-libraries.cc', 199 '<(SHARED_INTERMEDIATE_DIR)/experimental-extras-libraries.cc',
199 '<(INTERMEDIATE_DIR)/snapshot.cc', 200 '<(INTERMEDIATE_DIR)/snapshot.cc',
200 ], 201 ],
201 'actions': [ 202 'actions': [
202 { 203 {
203 'action_name': 'run_mksnapshot', 204 'action_name': 'run_mksnapshot',
204 'inputs': [ 205 'inputs': [
205 '<(mksnapshot_exec)', 206 '<(mksnapshot_exec)',
206 '<(embed_script)', 207 '<(embed_script)',
208 '<(warmup_script)',
207 ], 209 ],
208 'outputs': [ 210 'outputs': [
209 '<(INTERMEDIATE_DIR)/snapshot.cc', 211 '<(INTERMEDIATE_DIR)/snapshot.cc',
210 ], 212 ],
211 'variables': { 213 'variables': {
212 'mksnapshot_flags': [ 214 'mksnapshot_flags': [
213 '--log-snapshot-positions', 215 '--log-snapshot-positions',
214 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', 216 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log',
215 ], 217 ],
216 'conditions': [ 218 'conditions': [
217 ['v8_random_seed!=0', { 219 ['v8_random_seed!=0', {
218 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], 220 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'],
219 }], 221 }],
220 ['v8_vector_stores!=0', { 222 ['v8_vector_stores!=0', {
221 'mksnapshot_flags': ['--vector-stores'], 223 'mksnapshot_flags': ['--vector-stores'],
222 }], 224 }],
223 ], 225 ],
224 }, 226 },
225 'action': [ 227 'action': [
226 '<(mksnapshot_exec)', 228 '<(mksnapshot_exec)',
227 '<@(mksnapshot_flags)', 229 '<@(mksnapshot_flags)',
228 '--startup_src', '<@(INTERMEDIATE_DIR)/snapshot.cc', 230 '--startup_src', '<@(INTERMEDIATE_DIR)/snapshot.cc',
229 '<(embed_script)', 231 '<(embed_script)',
232 '<(warmup_script)',
230 ], 233 ],
231 }, 234 },
232 ], 235 ],
233 }, 236 },
234 { 237 {
235 'target_name': 'v8_nosnapshot', 238 'target_name': 'v8_nosnapshot',
236 'type': 'static_library', 239 'type': 'static_library',
237 'dependencies': [ 240 'dependencies': [
238 'v8_base', 241 'v8_base',
239 ], 242 ],
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 'conditions': [ 326 'conditions': [
324 ['want_separate_host_toolset==1', { 327 ['want_separate_host_toolset==1', {
325 'target_conditions': [ 328 'target_conditions': [
326 ['_toolset=="host"', { 329 ['_toolset=="host"', {
327 'outputs': ['<(PRODUCT_DIR)/snapshot_blob_ignition_hos t.bin'], 330 'outputs': ['<(PRODUCT_DIR)/snapshot_blob_ignition_hos t.bin'],
328 'action': [ 331 'action': [
329 '<(mksnapshot_exec)', 332 '<(mksnapshot_exec)',
330 '<@(mksnapshot_flags_ignition)', 333 '<@(mksnapshot_flags_ignition)',
331 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_igni tion_host.bin', 334 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_igni tion_host.bin',
332 '<(embed_script)', 335 '<(embed_script)',
336 '<(warmup_script)',
333 ], 337 ],
334 }, { 338 }, {
335 'outputs': ['<(PRODUCT_DIR)/snapshot_blob_ignition.bin '], 339 'outputs': ['<(PRODUCT_DIR)/snapshot_blob_ignition.bin '],
336 'action': [ 340 'action': [
337 '<(mksnapshot_exec)', 341 '<(mksnapshot_exec)',
338 '<@(mksnapshot_flags_ignition)', 342 '<@(mksnapshot_flags_ignition)',
339 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_igni tion.bin', 343 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_igni tion.bin',
340 '<(embed_script)', 344 '<(embed_script)',
345 '<(warmup_script)',
341 ], 346 ],
342 }], 347 }],
343 ], 348 ],
344 }, { 349 }, {
345 'outputs': ['<(PRODUCT_DIR)/snapshot_blob_ignition.bin'], 350 'outputs': ['<(PRODUCT_DIR)/snapshot_blob_ignition.bin'],
346 'action': [ 351 'action': [
347 '<(mksnapshot_exec)', 352 '<(mksnapshot_exec)',
348 '<@(mksnapshot_flags_ignition)', 353 '<@(mksnapshot_flags_ignition)',
349 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_ignition .bin', 354 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_ignition .bin',
350 '<(embed_script)', 355 '<(embed_script)',
356 '<(warmup_script)',
351 ], 357 ],
352 }], 358 }],
353 ], 359 ],
354 }, 360 },
355 ], 361 ],
356 }], 362 }],
357 ], 363 ],
358 'dependencies': [ 364 'dependencies': [
359 'v8_base', 365 'v8_base',
360 ], 366 ],
(...skipping 25 matching lines...) Expand all
386 'conditions': [ 392 'conditions': [
387 ['want_separate_host_toolset==1', { 393 ['want_separate_host_toolset==1', {
388 'target_conditions': [ 394 'target_conditions': [
389 ['_toolset=="host"', { 395 ['_toolset=="host"', {
390 'outputs': ['<(PRODUCT_DIR)/snapshot_blob_host.bin'], 396 'outputs': ['<(PRODUCT_DIR)/snapshot_blob_host.bin'],
391 'action': [ 397 'action': [
392 '<(mksnapshot_exec)', 398 '<(mksnapshot_exec)',
393 '<@(mksnapshot_flags)', 399 '<@(mksnapshot_flags)',
394 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_host.bin ', 400 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_host.bin ',
395 '<(embed_script)', 401 '<(embed_script)',
402 '<(warmup_script)',
396 ], 403 ],
397 }, { 404 }, {
398 'outputs': ['<(PRODUCT_DIR)/snapshot_blob.bin'], 405 'outputs': ['<(PRODUCT_DIR)/snapshot_blob.bin'],
399 'action': [ 406 'action': [
400 '<(mksnapshot_exec)', 407 '<(mksnapshot_exec)',
401 '<@(mksnapshot_flags)', 408 '<@(mksnapshot_flags)',
402 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', 409 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin',
403 '<(embed_script)', 410 '<(embed_script)',
411 '<(warmup_script)',
404 ], 412 ],
405 }], 413 }],
406 ], 414 ],
407 }, { 415 }, {
408 'outputs': ['<(PRODUCT_DIR)/snapshot_blob.bin'], 416 'outputs': ['<(PRODUCT_DIR)/snapshot_blob.bin'],
409 'action': [ 417 'action': [
410 '<(mksnapshot_exec)', 418 '<(mksnapshot_exec)',
411 '<@(mksnapshot_flags)', 419 '<@(mksnapshot_flags)',
412 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', 420 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin',
413 '<(embed_script)', 421 '<(embed_script)',
422 '<(warmup_script)',
414 ], 423 ],
415 }], 424 }],
416 ], 425 ],
417 }, 426 },
418 ], 427 ],
419 }], 428 }],
420 ], 429 ],
421 }, 430 },
422 { 431 {
423 'target_name': 'v8_base', 432 'target_name': 'v8_base',
(...skipping 1844 matching lines...) Expand 10 before | Expand all | Expand 10 after
2268 }], 2277 }],
2269 ['want_separate_host_toolset==1', { 2278 ['want_separate_host_toolset==1', {
2270 'toolsets': ['host'], 2279 'toolsets': ['host'],
2271 }, { 2280 }, {
2272 'toolsets': ['target'], 2281 'toolsets': ['target'],
2273 }], 2282 }],
2274 ], 2283 ],
2275 }, 2284 },
2276 ], 2285 ],
2277 } 2286 }
OLDNEW
« no previous file with comments | « test/cctest/test-serialize.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698