Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 114 'dependencies': ['v8_base', 'v8_nosnapshot'], | 114 'dependencies': ['v8_base', 'v8_nosnapshot'], |
| 115 }], | 115 }], |
| 116 ['v8_use_snapshot=="true" and v8_use_external_startup_data==0', { | 116 ['v8_use_snapshot=="true" and v8_use_external_startup_data==0', { |
| 117 # The dependency on v8_base should come from a transitive | 117 # The dependency on v8_base should come from a transitive |
| 118 # dependency however the Android toolchain requires libv8_base.a | 118 # dependency however the Android toolchain requires libv8_base.a |
| 119 # to appear before libv8_snapshot.a so it's listed explicitly. | 119 # to appear before libv8_snapshot.a so it's listed explicitly. |
| 120 'dependencies': ['v8_base', 'v8_snapshot'], | 120 'dependencies': ['v8_base', 'v8_snapshot'], |
| 121 }], | 121 }], |
| 122 ['v8_use_snapshot=="true" and v8_use_external_startup_data==1 and want_s eparate_host_toolset==0', { | 122 ['v8_use_snapshot=="true" and v8_use_external_startup_data==1 and want_s eparate_host_toolset==0', { |
| 123 'dependencies': ['v8_base', 'v8_external_snapshot'], | 123 'dependencies': ['v8_base', 'v8_external_snapshot'], |
| 124 'inputs': ['<(PRODUCT_DIR)/snapshot_blob.bin'], | 124 'inputs': [ '<(PRODUCT_DIR)/snapshot_blob.bin', ], |
| 125 'conditions': [ | |
| 126 ['v8_separate_ignition_snapshot==1', { | |
| 127 'inputs': ['<(PRODUCT_DIR)/snapshot_blob_ignition.bin'], | |
| 128 }], | |
| 129 ] | |
| 130 }], | 125 }], |
| 131 ['v8_use_snapshot=="true" and v8_use_external_startup_data==1 and want_s eparate_host_toolset==1', { | 126 ['v8_use_snapshot=="true" and v8_use_external_startup_data==1 and want_s eparate_host_toolset==1', { |
| 132 'dependencies': ['v8_base', 'v8_external_snapshot'], | 127 'dependencies': ['v8_base', 'v8_external_snapshot'], |
| 133 'target_conditions': [ | 128 'target_conditions': [ |
| 134 ['_toolset=="host"', { | 129 ['_toolset=="host"', { |
| 135 'inputs': ['<(PRODUCT_DIR)/snapshot_blob_host.bin'], | 130 'inputs': [ |
| 131 '<(PRODUCT_DIR)/snapshot_blob_host.bin', | |
| 132 ], | |
| 136 }, { | 133 }, { |
| 137 'inputs': ['<(PRODUCT_DIR)/snapshot_blob.bin'], | 134 'inputs': [ |
| 138 }], | 135 '<(PRODUCT_DIR)/snapshot_blob.bin', |
| 139 ], | |
| 140 'conditions': [ | |
| 141 ['v8_separate_ignition_snapshot==1', { | |
| 142 'target_conditions': [ | |
| 143 ['_toolset=="host"', { | |
| 144 'inputs': ['<(PRODUCT_DIR)/snapshot_blob_ignition_host.bin'], | |
| 145 }, { | |
| 146 'inputs': ['<(PRODUCT_DIR)/snapshot_blob_ignition.bin'], | |
| 147 }], | |
| 148 ], | 136 ], |
| 149 }], | 137 }], |
| 150 ], | 138 ], |
| 151 }], | 139 }], |
| 152 ['want_separate_host_toolset==1', { | 140 ['want_separate_host_toolset==1', { |
| 153 'toolsets': ['host', 'target'], | 141 'toolsets': ['host', 'target'], |
| 154 }, { | 142 }, { |
| 155 'toolsets': ['target'], | 143 'toolsets': ['target'], |
| 156 }], | 144 }], |
| 157 ] | 145 ] |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 205 'inputs': [ | 193 'inputs': [ |
| 206 '<(mksnapshot_exec)', | 194 '<(mksnapshot_exec)', |
| 207 '<(embed_script)', | 195 '<(embed_script)', |
| 208 '<(warmup_script)', | 196 '<(warmup_script)', |
| 209 ], | 197 ], |
| 210 'outputs': [ | 198 'outputs': [ |
| 211 '<(INTERMEDIATE_DIR)/snapshot.cc', | 199 '<(INTERMEDIATE_DIR)/snapshot.cc', |
| 212 ], | 200 ], |
| 213 'variables': { | 201 'variables': { |
| 214 'mksnapshot_flags': [ | 202 'mksnapshot_flags': [ |
| 203 '--ignition', | |
|
Michael Achenbach
2016/03/24 11:29:32
Does that mean we'll ship this in our current prod
Yang
2016/03/24 11:36:25
Why not just call Interpreter::Initialize() uncond
rmcilroy
2016/03/24 12:10:38
Good point, done.
Michael Starzinger
2016/03/24 13:19:25
+1, I also prefer the new approach. Thanks for cha
| |
| 215 '--log-snapshot-positions', | 204 '--log-snapshot-positions', |
| 216 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', | 205 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', |
| 217 ], | 206 ], |
| 218 'conditions': [ | 207 'conditions': [ |
| 219 ['v8_random_seed!=0', { | 208 ['v8_random_seed!=0', { |
| 220 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], | 209 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], |
| 221 }], | 210 }], |
| 222 ['v8_vector_stores!=0', { | 211 ['v8_vector_stores!=0', { |
| 223 'mksnapshot_flags': ['--vector-stores'], | 212 'mksnapshot_flags': ['--vector-stores'], |
| 224 }], | 213 }], |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 291 'V8_SHARED', | 280 'V8_SHARED', |
| 292 'BUILDING_V8_SHARED', | 281 'BUILDING_V8_SHARED', |
| 293 ], | 282 ], |
| 294 'direct_dependent_settings': { | 283 'direct_dependent_settings': { |
| 295 'defines': [ | 284 'defines': [ |
| 296 'V8_SHARED', | 285 'V8_SHARED', |
| 297 'USING_V8_SHARED', | 286 'USING_V8_SHARED', |
| 298 ], | 287 ], |
| 299 }, | 288 }, |
| 300 }], | 289 }], |
| 301 # Extra snapshot blob for ignition. | |
| 302 ['v8_separate_ignition_snapshot==1', { | |
| 303 # This is concatenated to the other actions list of | |
| 304 # v8_external_snapshot. | |
| 305 'actions': [ | |
| 306 { | |
| 307 'action_name': 'run_mksnapshot (ignition)', | |
| 308 'inputs': ['<(mksnapshot_exec)'], | |
| 309 'variables': { | |
| 310 # TODO: Extract common mksnapshot_flags to a separate | |
| 311 # variable. | |
| 312 'mksnapshot_flags_ignition': [ | |
| 313 '--ignition', | |
| 314 '--log-snapshot-positions', | |
| 315 '--logfile', '<(INTERMEDIATE_DIR)/snapshot_ignition.log', | |
| 316 ], | |
| 317 'conditions': [ | |
| 318 ['v8_random_seed!=0', { | |
| 319 'mksnapshot_flags_ignition': ['--random-seed', '<(v8_ran dom_seed)'], | |
| 320 }], | |
| 321 ['v8_vector_stores!=0', { | |
| 322 'mksnapshot_flags_ignition': ['--vector-stores'], | |
| 323 }], | |
| 324 ], | |
| 325 }, | |
| 326 'conditions': [ | |
| 327 ['want_separate_host_toolset==1', { | |
| 328 'target_conditions': [ | |
| 329 ['_toolset=="host"', { | |
| 330 'outputs': ['<(PRODUCT_DIR)/snapshot_blob_ignition_hos t.bin'], | |
| 331 'action': [ | |
| 332 '<(mksnapshot_exec)', | |
| 333 '<@(mksnapshot_flags_ignition)', | |
| 334 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_igni tion_host.bin', | |
| 335 '<(embed_script)', | |
| 336 '<(warmup_script)', | |
| 337 ], | |
| 338 }, { | |
| 339 'outputs': ['<(PRODUCT_DIR)/snapshot_blob_ignition.bin '], | |
| 340 'action': [ | |
| 341 '<(mksnapshot_exec)', | |
| 342 '<@(mksnapshot_flags_ignition)', | |
| 343 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_igni tion.bin', | |
| 344 '<(embed_script)', | |
| 345 '<(warmup_script)', | |
| 346 ], | |
| 347 }], | |
| 348 ], | |
| 349 }, { | |
| 350 'outputs': ['<(PRODUCT_DIR)/snapshot_blob_ignition.bin'], | |
| 351 'action': [ | |
| 352 '<(mksnapshot_exec)', | |
| 353 '<@(mksnapshot_flags_ignition)', | |
| 354 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_ignition .bin', | |
| 355 '<(embed_script)', | |
| 356 '<(warmup_script)', | |
| 357 ], | |
| 358 }], | |
| 359 ], | |
| 360 }, | |
| 361 ], | |
| 362 }], | |
| 363 ], | 290 ], |
| 364 'dependencies': [ | 291 'dependencies': [ |
| 365 'v8_base', | 292 'v8_base', |
| 366 ], | 293 ], |
| 367 'include_dirs+': [ | 294 'include_dirs+': [ |
| 368 '../..', | 295 '../..', |
| 369 ], | 296 ], |
| 370 'sources': [ | 297 'sources': [ |
| 371 '../../src/snapshot/natives-external.cc', | 298 '../../src/snapshot/natives-external.cc', |
| 372 '../../src/snapshot/snapshot-external.cc', | 299 '../../src/snapshot/snapshot-external.cc', |
| 373 ], | 300 ], |
| 374 'actions': [ | 301 'actions': [ |
| 375 { | 302 { |
| 376 'action_name': 'run_mksnapshot (external)', | 303 'action_name': 'run_mksnapshot (external)', |
| 377 'inputs': ['<(mksnapshot_exec)'], | 304 'inputs': [ |
| 305 '<(mksnapshot_exec)', | |
| 306 ], | |
| 378 'variables': { | 307 'variables': { |
| 379 'mksnapshot_flags': [ | 308 'mksnapshot_flags': [ |
| 309 '--ignition', | |
| 380 '--log-snapshot-positions', | 310 '--log-snapshot-positions', |
| 381 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', | 311 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', |
| 382 ], | 312 ], |
| 383 'conditions': [ | 313 'conditions': [ |
| 384 ['v8_random_seed!=0', { | 314 ['v8_random_seed!=0', { |
| 385 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], | 315 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], |
| 386 }], | 316 }], |
| 387 ['v8_vector_stores!=0', { | 317 ['v8_vector_stores!=0', { |
| 388 'mksnapshot_flags': ['--vector-stores'], | 318 'mksnapshot_flags': ['--vector-stores'], |
| 389 }], | 319 }], |
| 390 ], | 320 ], |
| 391 }, | 321 }, |
| 392 'conditions': [ | 322 'conditions': [ |
| 393 ['want_separate_host_toolset==1', { | 323 ['want_separate_host_toolset==1', { |
| 394 'target_conditions': [ | 324 'target_conditions': [ |
| 395 ['_toolset=="host"', { | 325 ['_toolset=="host"', { |
| 396 'outputs': ['<(PRODUCT_DIR)/snapshot_blob_host.bin'], | 326 'outputs': [ |
| 327 '<(PRODUCT_DIR)/snapshot_blob_host.bin', | |
| 328 ], | |
| 397 'action': [ | 329 'action': [ |
| 398 '<(mksnapshot_exec)', | 330 '<(mksnapshot_exec)', |
| 399 '<@(mksnapshot_flags)', | 331 '<@(mksnapshot_flags)', |
| 400 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_host.bin ', | 332 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_host.bin ', |
| 401 '<(embed_script)', | 333 '<(embed_script)', |
| 402 '<(warmup_script)', | 334 '<(warmup_script)', |
| 403 ], | 335 ], |
| 404 }, { | 336 }, { |
| 405 'outputs': ['<(PRODUCT_DIR)/snapshot_blob.bin'], | 337 'outputs': [ |
| 338 '<(PRODUCT_DIR)/snapshot_blob.bin', | |
| 339 ], | |
| 406 'action': [ | 340 'action': [ |
| 407 '<(mksnapshot_exec)', | 341 '<(mksnapshot_exec)', |
| 408 '<@(mksnapshot_flags)', | 342 '<@(mksnapshot_flags)', |
| 409 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', | 343 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', |
| 410 '<(embed_script)', | 344 '<(embed_script)', |
| 411 '<(warmup_script)', | 345 '<(warmup_script)', |
| 412 ], | 346 ], |
| 413 }], | 347 }], |
| 414 ], | 348 ], |
| 415 }, { | 349 }, { |
| 416 'outputs': ['<(PRODUCT_DIR)/snapshot_blob.bin'], | 350 'outputs': [ |
| 351 '<(PRODUCT_DIR)/snapshot_blob.bin', | |
| 352 ], | |
| 417 'action': [ | 353 'action': [ |
| 418 '<(mksnapshot_exec)', | 354 '<(mksnapshot_exec)', |
| 419 '<@(mksnapshot_flags)', | 355 '<@(mksnapshot_flags)', |
| 420 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', | 356 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', |
| 421 '<(embed_script)', | 357 '<(embed_script)', |
| 422 '<(warmup_script)', | 358 '<(warmup_script)', |
| 423 ], | 359 ], |
| 424 }], | 360 }], |
| 425 ], | 361 ], |
| 426 }, | 362 }, |
| (...skipping 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2277 }], | 2213 }], |
| 2278 ['want_separate_host_toolset==1', { | 2214 ['want_separate_host_toolset==1', { |
| 2279 'toolsets': ['host'], | 2215 'toolsets': ['host'], |
| 2280 }, { | 2216 }, { |
| 2281 'toolsets': ['target'], | 2217 'toolsets': ['target'], |
| 2282 }], | 2218 }], |
| 2283 ], | 2219 ], |
| 2284 }, | 2220 }, |
| 2285 ], | 2221 ], |
| 2286 } | 2222 } |
| OLD | NEW |