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

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

Issue 782573002: Sketch of on demand snapshot generation for d8 Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add bits needed by the Chrome implementation Created 6 years 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 | « src/snapshot-common.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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 ], 159 ],
160 'include_dirs+': [ 160 'include_dirs+': [
161 '../..', 161 '../..',
162 ], 162 ],
163 'sources': [ 163 'sources': [
164 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 164 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
165 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', 165 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
166 '<(INTERMEDIATE_DIR)/snapshot.cc', 166 '<(INTERMEDIATE_DIR)/snapshot.cc',
167 '../../src/snapshot-common.cc', 167 '../../src/snapshot-common.cc',
168 ], 168 ],
169 'actions': [ 169 #'actions': [
170 { 170 # {
171 'action_name': 'run_mksnapshot', 171 # 'action_name': 'run_mksnapshot',
172 'inputs': [ 172 # 'inputs': [
173 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)', 173 # '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)' ,
174 ], 174 # ],
175 'outputs': [ 175 # 'outputs': [
176 '<(INTERMEDIATE_DIR)/snapshot.cc', 176 # '<(INTERMEDIATE_DIR)/snapshot.cc',
177 ], 177 # ],
178 'variables': { 178 # 'variables': {
179 'mksnapshot_flags': [ 179 # 'mksnapshot_flags': [
180 '--log-snapshot-positions', 180 # '--log-snapshot-positions',
181 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', 181 # '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log',
182 ], 182 # ],
183 'conditions': [ 183 # 'conditions': [
184 ['v8_random_seed!=0', { 184 # ['v8_random_seed!=0', {
185 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], 185 # 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'],
186 }], 186 # }],
187 ], 187 # ],
188 }, 188 # },
189 'action': [ 189 # 'action': [
190 '<@(_inputs)', 190 # '<@(_inputs)',
191 '<@(mksnapshot_flags)', 191 # '<@(mksnapshot_flags)',
192 '<@(INTERMEDIATE_DIR)/snapshot.cc' 192 # '<@(INTERMEDIATE_DIR)/snapshot.cc'
193 ], 193 # ],
194 }, 194 # },
195 ], 195 #],
196 }, 196 },
197 { 197 {
198 'target_name': 'v8_nosnapshot', 198 'target_name': 'v8_nosnapshot',
199 'type': 'static_library', 199 'type': 'static_library',
200 'dependencies': [ 200 'dependencies': [
201 'v8_base', 201 'v8_base',
202 ], 202 ],
203 'include_dirs+': [ 203 'include_dirs+': [
204 '../..', 204 '../..',
205 ], 205 ],
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 ], 252 ],
253 'direct_dependent_settings': { 253 'direct_dependent_settings': {
254 'defines': [ 254 'defines': [
255 'V8_SHARED', 255 'V8_SHARED',
256 'USING_V8_SHARED', 256 'USING_V8_SHARED',
257 ], 257 ],
258 }, 258 },
259 }], 259 }],
260 ], 260 ],
261 'dependencies': [ 261 'dependencies': [
262 'v8_base', 262 'v8_base', 'v8_libplatform',
263 ], 263 ],
264 'include_dirs+': [ 264 'include_dirs+': [
265 '../..', 265 '../..',
266 ], 266 ],
267 'sources': [ 267 'sources': [
268 '../../src/natives-external.cc', 268 '../../src/natives-external.cc',
269 '../../src/snapshot-external.cc', 269 '../../src/snapshot-external.cc',
270 ], 270 ],
271 'actions': [ 271 #'actions': [
272 { 272 # {
273 'action_name': 'run_mksnapshot (external)', 273 # 'action_name': 'run_mksnapshot (external)',
274 'inputs': [ 274 # 'inputs': [
275 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFI X)', 275 # '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFF IX)',
276 ], 276 # ],
277 'variables': { 277 # 'variables': {
278 'mksnapshot_flags': [ 278 # 'mksnapshot_flags': [
279 '--log-snapshot-positions', 279 # '--log-snapshot-positions',
280 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', 280 # '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log',
281 ], 281 # ],
282 'conditions': [ 282 # 'conditions': [
283 ['v8_random_seed!=0', { 283 # ['v8_random_seed!=0', {
284 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], 284 # 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'],
285 }], 285 # }],
286 ], 286 # ],
287 }, 287 # },
288 'conditions': [ 288 # 'conditions': [
289 ['want_separate_host_toolset==1', { 289 # ['want_separate_host_toolset==1', {
290 'target_conditions': [ 290 # 'target_conditions': [
291 ['_toolset=="host"', { 291 # ['_toolset=="host"', {
292 'outputs': [ 292 # 'outputs': [
293 '<(INTERMEDIATE_DIR)/snapshot.cc', 293 # '<(INTERMEDIATE_DIR)/snapshot.cc',
294 '<(PRODUCT_DIR)/snapshot_blob_host.bin', 294 # '<(PRODUCT_DIR)/snapshot_blob_host.bin',
295 ], 295 # ],
296 'action': [ 296 # 'action': [
297 '<@(_inputs)', 297 # '<@(_inputs)',
298 '<@(mksnapshot_flags)', 298 # '<@(mksnapshot_flags)',
299 '<@(INTERMEDIATE_DIR)/snapshot.cc', 299 # '<@(INTERMEDIATE_DIR)/snapshot.cc',
300 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_host.bin ', 300 # '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_host.bi n',
301 ], 301 # ],
302 }, { 302 # }, {
303 'outputs': [ 303 # 'outputs': [
304 '<(INTERMEDIATE_DIR)/snapshot.cc', 304 # '<(INTERMEDIATE_DIR)/snapshot.cc',
305 '<(PRODUCT_DIR)/snapshot_blob.bin', 305 # '<(PRODUCT_DIR)/snapshot_blob.bin',
306 ], 306 # ],
307 'action': [ 307 # 'action': [
308 '<@(_inputs)', 308 # '<@(_inputs)',
309 '<@(mksnapshot_flags)', 309 # '<@(mksnapshot_flags)',
310 '<@(INTERMEDIATE_DIR)/snapshot.cc', 310 # '<@(INTERMEDIATE_DIR)/snapshot.cc',
311 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', 311 # '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin',
312 ], 312 # ],
313 }], 313 # }],
314 ], 314 # ],
315 }, { 315 # }, {
316 'outputs': [ 316 # 'outputs': [
317 '<(INTERMEDIATE_DIR)/snapshot.cc', 317 # '<(INTERMEDIATE_DIR)/snapshot.cc',
318 '<(PRODUCT_DIR)/snapshot_blob.bin', 318 # '<(PRODUCT_DIR)/snapshot_blob.bin',
319 ], 319 # ],
320 'action': [ 320 # 'action': [
321 '<@(_inputs)', 321 # '<@(_inputs)',
322 '<@(mksnapshot_flags)', 322 # '<@(mksnapshot_flags)',
323 '<@(INTERMEDIATE_DIR)/snapshot.cc', 323 # '<@(INTERMEDIATE_DIR)/snapshot.cc',
324 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', 324 # '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin',
325 ], 325 # ],
326 }], 326 # }],
327 ], 327 # ],
328 }, 328 # },
329 ], 329 #],
330 }], 330 }],
331 ], 331 ],
332 }, 332 },
333 { 333 {
334 'target_name': 'v8_base', 334 'target_name': 'v8_base',
335 'type': 'static_library', 335 'type': 'static_library',
336 'dependencies': [ 336 'dependencies': [
337 'v8_libbase', 337 'v8_libbase',
338 ], 338 ],
339 'variables': { 339 'variables': {
(...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1742 }], 1742 }],
1743 ['want_separate_host_toolset==1', { 1743 ['want_separate_host_toolset==1', {
1744 'toolsets': ['host'], 1744 'toolsets': ['host'],
1745 }, { 1745 }, {
1746 'toolsets': ['target'], 1746 'toolsets': ['target'],
1747 }], 1747 }],
1748 ], 1748 ],
1749 }, 1749 },
1750 ], 1750 ],
1751 } 1751 }
OLDNEW
« no previous file with comments | « src/snapshot-common.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698