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

Side by Side Diff: src/SConscript

Issue 7607031: Update gc branch to bleeding_edge revision 8862. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Fix bug in weak-map merge Created 9 years, 4 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/samples.gyp ('k') | src/api.h » ('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 14 matching lines...) Expand all
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 import sys 28 import sys
29 from os.path import join, dirname, abspath 29 from os.path import join, dirname, abspath
30 root_dir = dirname(File('SConstruct').rfile().abspath) 30 root_dir = dirname(File('SConstruct').rfile().abspath)
31 sys.path.append(join(root_dir, 'tools')) 31 sys.path.append(join(root_dir, 'tools'))
32 import js2c 32 import js2c
33 Import('context') 33 Import('context')
34 Import('tools') 34 Import('tools')
35 Import('d8_env')
35 36
36 37
37 SOURCES = { 38 SOURCES = {
38 'all': Split(""" 39 'all': Split("""
39 accessors.cc 40 accessors.cc
40 allocation.cc 41 allocation.cc
41 api.cc 42 api.cc
42 assembler.cc 43 assembler.cc
43 ast.cc 44 ast.cc
44 atomicops_internals_x86_gcc.cc 45 atomicops_internals_x86_gcc.cc
(...skipping 13 matching lines...) Expand all
58 counters.cc 59 counters.cc
59 cpu-profiler.cc 60 cpu-profiler.cc
60 data-flow.cc 61 data-flow.cc
61 dateparser.cc 62 dateparser.cc
62 debug-agent.cc 63 debug-agent.cc
63 debug.cc 64 debug.cc
64 deoptimizer.cc 65 deoptimizer.cc
65 disassembler.cc 66 disassembler.cc
66 diy-fp.cc 67 diy-fp.cc
67 dtoa.cc 68 dtoa.cc
69 elements.cc
68 execution.cc 70 execution.cc
69 factory.cc 71 factory.cc
70 flags.cc 72 flags.cc
71 frames.cc 73 frames.cc
72 full-codegen.cc 74 full-codegen.cc
73 func-name-inferrer.cc 75 func-name-inferrer.cc
74 gdb-jit.cc 76 gdb-jit.cc
75 global-handles.cc 77 global-handles.cc
76 fast-dtoa.cc 78 fast-dtoa.cc
77 fixed-dtoa.cc 79 fixed-dtoa.cc
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 regexp.js 304 regexp.js
303 json.js 305 json.js
304 liveedit-debugger.js 306 liveedit-debugger.js
305 mirror-debugger.js 307 mirror-debugger.js
306 debug-debugger.js 308 debug-debugger.js
307 '''.split() 309 '''.split()
308 310
309 311
310 EXPERIMENTAL_LIBRARY_FILES = ''' 312 EXPERIMENTAL_LIBRARY_FILES = '''
311 proxy.js 313 proxy.js
314 weakmap.js
312 '''.split() 315 '''.split()
313 316
314 317
315 def Abort(message): 318 def Abort(message):
316 print message 319 print message
317 sys.exit(1) 320 sys.exit(1)
318 321
319 322
320 def ConfigureObjectFiles(): 323 def ConfigureObjectFiles():
321 env = Environment(tools=tools) 324 env = Environment(tools=tools)
(...skipping 11 matching lines...) Expand all
333 # Build the standard platform-independent source files. 336 # Build the standard platform-independent source files.
334 source_files = context.GetRelevantSources(SOURCES) 337 source_files = context.GetRelevantSources(SOURCES)
335 d8_js = env.JS2C('d8-js.cc', 'd8.js', **{'TYPE': 'D8', 'COMPRESSION': 'off'}) 338 d8_js = env.JS2C('d8-js.cc', 'd8.js', **{'TYPE': 'D8', 'COMPRESSION': 'off'})
336 d8_js_obj = context.ConfigureObject(env, d8_js, CPPPATH=['.']) 339 d8_js_obj = context.ConfigureObject(env, d8_js, CPPPATH=['.'])
337 if context.options['library'] == 'shared': 340 if context.options['library'] == 'shared':
338 d8_files = context.GetRelevantSources(D8_LIGHT_FILES) 341 d8_files = context.GetRelevantSources(D8_LIGHT_FILES)
339 d8_objs = [] 342 d8_objs = []
340 else: 343 else:
341 d8_files = context.GetRelevantSources(D8_FULL_FILES) 344 d8_files = context.GetRelevantSources(D8_FULL_FILES)
342 d8_objs = [d8_js_obj] 345 d8_objs = [d8_js_obj]
343 d8_objs.append(context.ConfigureObject(env, [d8_files])) 346 d8_objs.append(context.ConfigureObject(d8_env, [d8_files]))
344 347
345 # Combine the JavaScript library files into a single C++ file and 348 # Combine the JavaScript library files into a single C++ file and
346 # compile it. 349 # compile it.
347 library_files = [s for s in LIBRARY_FILES] 350 library_files = [s for s in LIBRARY_FILES]
348 library_files.append('macros.py') 351 library_files.append('macros.py')
349 libraries_src = env.JS2C( 352 libraries_src = env.JS2C(
350 ['libraries.cc'], library_files, **BuildJS2CEnv('CORE')) 353 ['libraries.cc'], library_files, **BuildJS2CEnv('CORE'))
351 libraries_obj = context.ConfigureObject(env, libraries_src, CPPPATH=['.']) 354 libraries_obj = context.ConfigureObject(env, libraries_src, CPPPATH=['.'])
352 355
353 # Combine the experimental JavaScript library files into a C++ file 356 # Combine the experimental JavaScript library files into a C++ file
(...skipping 29 matching lines...) Expand all
383 snapshot_cc = 'snapshot.cc' 386 snapshot_cc = 'snapshot.cc'
384 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) 387 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.'])
385 else: 388 else:
386 snapshot_obj = empty_snapshot_obj 389 snapshot_obj = empty_snapshot_obj
387 library_objs = [non_snapshot_files, libraries_obj, experimental_libraries_obj, snapshot_obj] 390 library_objs = [non_snapshot_files, libraries_obj, experimental_libraries_obj, snapshot_obj]
388 return (library_objs, d8_objs, [mksnapshot], preparser_objs) 391 return (library_objs, d8_objs, [mksnapshot], preparser_objs)
389 392
390 393
391 (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles() 394 (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles()
392 Return('library_objs d8_objs mksnapshot preparser_objs') 395 Return('library_objs d8_objs mksnapshot preparser_objs')
OLDNEW
« no previous file with comments | « samples/samples.gyp ('k') | src/api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698