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

Side by Side Diff: src/SConscript

Issue 7348008: Merge up to 8597 to experimental/gc from the bleeding edge. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « samples/shell.cc ('k') | src/accessors.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2011 the V8 project authors. All rights reserved. 1 # Copyright 2011 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 hashmap.cc 79 hashmap.cc
80 heap-profiler.cc 80 heap-profiler.cc
81 heap.cc 81 heap.cc
82 hydrogen.cc 82 hydrogen.cc
83 hydrogen-instructions.cc 83 hydrogen-instructions.cc
84 ic.cc 84 ic.cc
85 incremental-marking.cc 85 incremental-marking.cc
86 inspector.cc 86 inspector.cc
87 interpreter-irregexp.cc 87 interpreter-irregexp.cc
88 isolate.cc 88 isolate.cc
89 json-parser.cc
90 jsregexp.cc 89 jsregexp.cc
91 lithium-allocator.cc 90 lithium-allocator.cc
92 lithium.cc 91 lithium.cc
93 liveedit.cc 92 liveedit.cc
94 liveobjectlist.cc 93 liveobjectlist.cc
95 log-utils.cc 94 log-utils.cc
96 log.cc 95 log.cc
97 mark-compact.cc 96 mark-compact.cc
98 messages.cc 97 messages.cc
99 objects.cc 98 objects.cc
(...skipping 21 matching lines...) Expand all
121 string-search.cc 120 string-search.cc
122 string-stream.cc 121 string-stream.cc
123 strtod.cc 122 strtod.cc
124 stub-cache.cc 123 stub-cache.cc
125 token.cc 124 token.cc
126 type-info.cc 125 type-info.cc
127 unicode.cc 126 unicode.cc
128 utils.cc 127 utils.cc
129 v8-counters.cc 128 v8-counters.cc
130 v8.cc 129 v8.cc
130 v8conversions.cc
131 v8threads.cc 131 v8threads.cc
132 v8utils.cc
132 variables.cc 133 variables.cc
133 version.cc 134 version.cc
134 store-buffer.cc 135 store-buffer.cc
135 zone.cc 136 zone.cc
136 extensions/gc-extension.cc 137 extensions/gc-extension.cc
137 extensions/externalize-string-extension.cc 138 extensions/externalize-string-extension.cc
138 """), 139 """),
139 'arch:arm': Split(""" 140 'arch:arm': Split("""
140 arm/builtins-arm.cc 141 arm/builtins-arm.cc
141 arm/code-stubs-arm.cc 142 arm/code-stubs-arm.cc
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 'mode:release': [], 226 'mode:release': [],
226 'mode:debug': [ 227 'mode:debug': [
227 'objects-debug.cc', 'prettyprinter.cc', 'regexp-macro-assembler-tracer.cc' 228 'objects-debug.cc', 'prettyprinter.cc', 'regexp-macro-assembler-tracer.cc'
228 ] 229 ]
229 } 230 }
230 231
231 232
232 PREPARSER_SOURCES = { 233 PREPARSER_SOURCES = {
233 'all': Split(""" 234 'all': Split("""
234 allocation.cc 235 allocation.cc
236 bignum.cc
237 cached-powers.cc
238 conversions.cc
235 hashmap.cc 239 hashmap.cc
236 preparse-data.cc 240 preparse-data.cc
237 preparser.cc 241 preparser.cc
238 preparser-api.cc 242 preparser-api.cc
239 scanner-base.cc 243 scanner-base.cc
244 strtod.cc
240 token.cc 245 token.cc
241 unicode.cc 246 unicode.cc
247 utils.cc
242 """) 248 """)
243 } 249 }
244 250
245 251
246 D8_FILES = { 252 D8_FILES = {
247 'all': [ 253 'all': [
248 'd8.cc', 'd8-debug.cc' 254 'd8.cc', 'd8-debug.cc'
249 ], 255 ],
250 'os:linux': [ 256 'os:linux': [
251 'd8-posix.cc' 257 'd8-posix.cc'
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 def Abort(message): 312 def Abort(message):
307 print message 313 print message
308 sys.exit(1) 314 sys.exit(1)
309 315
310 316
311 def ConfigureObjectFiles(): 317 def ConfigureObjectFiles():
312 env = Environment(tools=tools) 318 env = Environment(tools=tools)
313 env.Replace(**context.flags['v8']) 319 env.Replace(**context.flags['v8'])
314 context.ApplyEnvOverrides(env) 320 context.ApplyEnvOverrides(env)
315 env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C) 321 env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C)
316 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGF ILE" --log-snapshot-positions') 322 if 'ENABLE_LOGGING_AND_PROFILING' in env['CPPDEFINES']:
323 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LO GFILE" --log-snapshot-positions')
324 else:
325 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET')
326
327 def BuildJS2CEnv(type):
328 js2c_env = { 'TYPE': type, 'COMPRESSION': 'off' }
329 if 'COMPRESS_STARTUP_DATA_BZ2' in env['CPPDEFINES']:
330 js2c_env['COMPRESSION'] = 'bz2'
331 return js2c_env
317 332
318 # Build the standard platform-independent source files. 333 # Build the standard platform-independent source files.
319 source_files = context.GetRelevantSources(SOURCES) 334 source_files = context.GetRelevantSources(SOURCES)
320 335
321 d8_files = context.GetRelevantSources(D8_FILES) 336 d8_files = context.GetRelevantSources(D8_FILES)
322 d8_js = env.JS2C('d8-js.cc', 'd8.js', TYPE='D8') 337 d8_js = env.JS2C('d8-js.cc', 'd8.js', **{'TYPE': 'D8', 'COMPRESSION': 'off'})
323 d8_js_obj = context.ConfigureObject(env, d8_js, CPPPATH=['.']) 338 d8_js_obj = context.ConfigureObject(env, d8_js, CPPPATH=['.'])
324 d8_objs = [context.ConfigureObject(env, [d8_files]), d8_js_obj] 339 d8_objs = [context.ConfigureObject(env, [d8_files]), d8_js_obj]
325 340
326 # Combine the JavaScript library files into a single C++ file and 341 # Combine the JavaScript library files into a single C++ file and
327 # compile it. 342 # compile it.
328 library_files = [s for s in LIBRARY_FILES] 343 library_files = [s for s in LIBRARY_FILES]
329 library_files.append('macros.py') 344 library_files.append('macros.py')
330 libraries_src = env.JS2C(['libraries.cc'], library_files, TYPE='CORE') 345 libraries_src = env.JS2C(
346 ['libraries.cc'], library_files, **BuildJS2CEnv('CORE'))
331 libraries_obj = context.ConfigureObject(env, libraries_src, CPPPATH=['.']) 347 libraries_obj = context.ConfigureObject(env, libraries_src, CPPPATH=['.'])
332 348
333 # Combine the experimental JavaScript library files into a C++ file 349 # Combine the experimental JavaScript library files into a C++ file
334 # and compile it. 350 # and compile it.
335 experimental_library_files = [ s for s in EXPERIMENTAL_LIBRARY_FILES ] 351 experimental_library_files = [ s for s in EXPERIMENTAL_LIBRARY_FILES ]
336 experimental_library_files.append('macros.py') 352 experimental_library_files.append('macros.py')
337 experimental_libraries_src = env.JS2C(['experimental-libraries.cc'], experimen tal_library_files, TYPE='EXPERIMENTAL') 353 experimental_libraries_src = env.JS2C(['experimental-libraries.cc'],
354 experimental_library_files,
355 **BuildJS2CEnv('EXPERIMENTAL'))
338 experimental_libraries_obj = context.ConfigureObject(env, experimental_librari es_src, CPPPATH=['.']) 356 experimental_libraries_obj = context.ConfigureObject(env, experimental_librari es_src, CPPPATH=['.'])
339 357
340 source_objs = context.ConfigureObject(env, source_files) 358 source_objs = context.ConfigureObject(env, source_files)
341 non_snapshot_files = [source_objs] 359 non_snapshot_files = [source_objs]
342 360
343 preparser_source_files = context.GetRelevantSources(PREPARSER_SOURCES) 361 preparser_source_files = context.GetRelevantSources(PREPARSER_SOURCES)
344 preparser_objs = context.ConfigureObject(env, preparser_source_files) 362 preparser_objs = context.ConfigureObject(env, preparser_source_files)
345 363
346 # Create snapshot if necessary. For cross compilation you should either 364 # Create snapshot if necessary. For cross compilation you should either
347 # do without snapshots and take the performance hit or you should build a 365 # do without snapshots and take the performance hit or you should build a
(...skipping 13 matching lines...) Expand all
361 snapshot_cc = 'snapshot.cc' 379 snapshot_cc = 'snapshot.cc'
362 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) 380 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.'])
363 else: 381 else:
364 snapshot_obj = empty_snapshot_obj 382 snapshot_obj = empty_snapshot_obj
365 library_objs = [non_snapshot_files, libraries_obj, experimental_libraries_obj, snapshot_obj] 383 library_objs = [non_snapshot_files, libraries_obj, experimental_libraries_obj, snapshot_obj]
366 return (library_objs, d8_objs, [mksnapshot], preparser_objs) 384 return (library_objs, d8_objs, [mksnapshot], preparser_objs)
367 385
368 386
369 (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles() 387 (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles()
370 Return('library_objs d8_objs mksnapshot preparser_objs') 388 Return('library_objs d8_objs mksnapshot preparser_objs')
OLDNEW
« no previous file with comments | « samples/shell.cc ('k') | src/accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698