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