OLD | NEW |
1 # Copyright 2008 the V8 project authors. All rights reserved. | 1 # Copyright 2008 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 18 matching lines...) Expand all Loading... |
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 | 34 |
35 | 35 |
36 SOURCES = { | 36 SOURCES = { |
37 'all': [ | 37 'all': [ |
38 'accessors.cc', 'allocation.cc', 'api.cc', 'assembler.cc', 'ast.cc', | 38 'accessors.cc', 'allocation.cc', 'api.cc', 'assembler.cc', 'ast.cc', |
39 'bootstrapper.cc', 'builtins.cc', 'checks.cc', 'code-stubs.cc', | 39 'bootstrapper.cc', 'builtins.cc', 'checks.cc', 'cfg.cc', |
40 'codegen.cc', 'compilation-cache.cc', 'compiler.cc', 'contexts.cc', | 40 'code-stubs.cc', 'codegen.cc', 'compilation-cache.cc', 'compiler.cc', |
41 'conversions.cc', 'counters.cc', 'dateparser.cc', 'debug.cc', | 41 'contexts.cc', 'conversions.cc', 'counters.cc', 'dateparser.cc', |
42 'debug-agent.cc', 'disassembler.cc', 'execution.cc', 'factory.cc', | 42 'debug.cc', 'debug-agent.cc', 'disassembler.cc', 'execution.cc', |
43 'flags.cc', 'frame-element.cc', 'frames.cc', 'func-name-inferrer.cc', | 43 'factory.cc', 'flags.cc', 'frame-element.cc', 'frames.cc', |
44 'global-handles.cc', 'handles.cc', 'hashmap.cc', | 44 'func-name-inferrer.cc', 'global-handles.cc', 'handles.cc', |
45 'heap.cc', 'ic.cc', 'interpreter-irregexp.cc', 'jsregexp.cc', | 45 'hashmap.cc', 'heap.cc', 'ic.cc', 'interpreter-irregexp.cc', |
46 'jump-target.cc', 'log.cc', 'log-utils.cc', 'mark-compact.cc', 'messages.cc'
, | 46 'jsregexp.cc', 'jump-target.cc', 'log.cc', 'log-utils.cc', |
47 'objects.cc', 'oprofile-agent.cc', 'parser.cc', 'property.cc', | 47 'mark-compact.cc', 'messages.cc', 'objects.cc', 'oprofile-agent.cc', |
48 'regexp-macro-assembler.cc', 'regexp-macro-assembler-irregexp.cc', | 48 'parser.cc', 'property.cc', 'regexp-macro-assembler.cc', |
49 'regexp-stack.cc', 'register-allocator.cc', 'rewriter.cc', 'runtime.cc', | 49 'regexp-macro-assembler-irregexp.cc', 'regexp-stack.cc', |
50 'scanner.cc', 'scopeinfo.cc', 'scopes.cc', 'serialize.cc', | 50 'register-allocator.cc', 'rewriter.cc', 'runtime.cc', 'scanner.cc', |
51 'snapshot-common.cc', 'spaces.cc', 'string-stream.cc', 'stub-cache.cc', | 51 'scopeinfo.cc', 'scopes.cc', 'serialize.cc', 'snapshot-common.cc', |
52 'token.cc', 'top.cc', 'unicode.cc', 'usage-analyzer.cc', 'utils.cc', | 52 'spaces.cc', 'string-stream.cc', 'stub-cache.cc', 'token.cc', 'top.cc', |
53 'v8-counters.cc', 'v8.cc', 'v8threads.cc', 'variables.cc', 'version.cc', | 53 'unicode.cc', 'usage-analyzer.cc', 'utils.cc', 'v8-counters.cc', |
| 54 'v8.cc', 'v8threads.cc', 'variables.cc', 'version.cc', |
54 'virtual-frame.cc', 'zone.cc' | 55 'virtual-frame.cc', 'zone.cc' |
55 ], | 56 ], |
56 'arch:arm': [ | 57 'arch:arm': [ |
57 'arm/assembler-arm.cc', 'arm/builtins-arm.cc', | 58 'arm/assembler-arm.cc', 'arm/builtins-arm.cc', 'arm/cfg-arm.cc', |
58 'arm/codegen-arm.cc', 'arm/cpu-arm.cc', 'arm/disasm-arm.cc', | 59 'arm/codegen-arm.cc', 'arm/cpu-arm.cc', 'arm/disasm-arm.cc', |
59 'arm/debug-arm.cc', 'arm/frames-arm.cc', 'arm/ic-arm.cc', | 60 'arm/debug-arm.cc', 'arm/frames-arm.cc', 'arm/ic-arm.cc', |
60 'arm/jump-target-arm.cc', 'arm/macro-assembler-arm.cc', | 61 'arm/jump-target-arm.cc', 'arm/macro-assembler-arm.cc', |
61 'arm/regexp-macro-assembler-arm.cc', | 62 'arm/regexp-macro-assembler-arm.cc', |
62 'arm/register-allocator-arm.cc', 'arm/stub-cache-arm.cc', | 63 'arm/register-allocator-arm.cc', 'arm/stub-cache-arm.cc', |
63 'arm/virtual-frame-arm.cc' | 64 'arm/virtual-frame-arm.cc' |
64 ], | 65 ], |
65 'arch:ia32': [ | 66 'arch:ia32': [ |
66 'ia32/assembler-ia32.cc', 'ia32/builtins-ia32.cc', | 67 'ia32/assembler-ia32.cc', 'ia32/builtins-ia32.cc', 'ia32/cfg-ia32.cc', |
67 'ia32/codegen-ia32.cc', 'ia32/cpu-ia32.cc', 'ia32/disasm-ia32.cc', | 68 'ia32/codegen-ia32.cc', 'ia32/cpu-ia32.cc', 'ia32/disasm-ia32.cc', |
68 'ia32/debug-ia32.cc', 'ia32/frames-ia32.cc', 'ia32/ic-ia32.cc', | 69 'ia32/debug-ia32.cc', 'ia32/frames-ia32.cc', 'ia32/ic-ia32.cc', |
69 'ia32/jump-target-ia32.cc', 'ia32/macro-assembler-ia32.cc', | 70 'ia32/jump-target-ia32.cc', 'ia32/macro-assembler-ia32.cc', |
70 'ia32/regexp-macro-assembler-ia32.cc', | 71 'ia32/regexp-macro-assembler-ia32.cc', |
71 'ia32/register-allocator-ia32.cc', 'ia32/stub-cache-ia32.cc', | 72 'ia32/register-allocator-ia32.cc', 'ia32/stub-cache-ia32.cc', |
72 'ia32/virtual-frame-ia32.cc' | 73 'ia32/virtual-frame-ia32.cc' |
73 ], | 74 ], |
74 'arch:x64': [ | 75 'arch:x64': [ |
75 'x64/assembler-x64.cc', 'x64/builtins-x64.cc', | 76 'x64/assembler-x64.cc', 'x64/builtins-x64.cc', 'x64/cfg-x64.cc', |
76 'x64/codegen-x64.cc', 'x64/cpu-x64.cc', 'x64/disasm-x64.cc', | 77 'x64/codegen-x64.cc', 'x64/cpu-x64.cc', 'x64/disasm-x64.cc', |
77 'x64/debug-x64.cc', 'x64/frames-x64.cc', 'x64/ic-x64.cc', | 78 'x64/debug-x64.cc', 'x64/frames-x64.cc', 'x64/ic-x64.cc', |
78 'x64/jump-target-x64.cc', 'x64/macro-assembler-x64.cc', | 79 'x64/jump-target-x64.cc', 'x64/macro-assembler-x64.cc', |
79 # 'x64/regexp-macro-assembler-x64.cc', | 80 # 'x64/regexp-macro-assembler-x64.cc', |
80 'x64/register-allocator-x64.cc', | 81 'x64/register-allocator-x64.cc', |
81 'x64/stub-cache-x64.cc', 'x64/virtual-frame-x64.cc' | 82 'x64/stub-cache-x64.cc', 'x64/virtual-frame-x64.cc' |
82 ], | 83 ], |
83 'simulator:arm': ['arm/simulator-arm.cc'], | 84 'simulator:arm': ['arm/simulator-arm.cc'], |
84 'os:freebsd': ['platform-freebsd.cc', 'platform-posix.cc'], | 85 'os:freebsd': ['platform-freebsd.cc', 'platform-posix.cc'], |
85 'os:linux': ['platform-linux.cc', 'platform-posix.cc'], | 86 'os:linux': ['platform-linux.cc', 'platform-posix.cc'], |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) | 190 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) |
190 libraries_obj = context.ConfigureObject(env, libraries_empty_src, CPPPATH=['
.']) | 191 libraries_obj = context.ConfigureObject(env, libraries_empty_src, CPPPATH=['
.']) |
191 else: | 192 else: |
192 snapshot_obj = empty_snapshot_obj | 193 snapshot_obj = empty_snapshot_obj |
193 library_objs = [non_snapshot_files, libraries_obj, snapshot_obj] | 194 library_objs = [non_snapshot_files, libraries_obj, snapshot_obj] |
194 return (library_objs, d8_objs, [mksnapshot]) | 195 return (library_objs, d8_objs, [mksnapshot]) |
195 | 196 |
196 | 197 |
197 (library_objs, d8_objs, mksnapshot) = ConfigureObjectFiles() | 198 (library_objs, d8_objs, mksnapshot) = ConfigureObjectFiles() |
198 Return('library_objs d8_objs mksnapshot') | 199 Return('library_objs d8_objs mksnapshot') |
OLD | NEW |