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 16 matching lines...) Expand all Loading... |
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 | 34 |
35 | 35 |
36 SOURCES = { | 36 SOURCES = { |
37 'all': [ | 37 'all': Split(""" |
38 'accessors.cc', 'allocation.cc', 'api.cc', 'assembler.cc', 'ast.cc', | 38 accessors.cc |
39 'bootstrapper.cc', 'builtins.cc', 'checks.cc', 'code-stubs.cc', | 39 allocation.cc |
40 'codegen.cc', 'compilation-cache.cc', 'compiler.cc', 'contexts.cc', | 40 api.cc |
41 'conversions.cc', 'counters.cc', 'dateparser.cc', 'debug.cc', | 41 assembler.cc |
42 'debug-agent.cc', 'disassembler.cc', 'execution.cc', 'factory.cc', | 42 ast.cc |
43 'flags.cc', 'frame-element.cc', 'frames.cc', | 43 bootstrapper.cc |
44 'func-name-inferrer.cc', 'global-handles.cc', 'handles.cc', | 44 builtins.cc |
45 'hashmap.cc', 'heap.cc', 'heap-profiler.cc', 'ic.cc', | 45 checks.cc |
46 'interpreter-irregexp.cc', 'jsregexp.cc', 'jump-target.cc', 'log.cc', | 46 code-stubs.cc |
47 'log-utils.cc', 'mark-compact.cc', 'messages.cc', 'objects.cc', | 47 codegen.cc |
48 'oprofile-agent.cc', 'parser.cc', 'property.cc', | 48 compilation-cache.cc |
49 'regexp-macro-assembler.cc', 'regexp-macro-assembler-irregexp.cc', | 49 compiler.cc |
50 'regexp-stack.cc', 'register-allocator.cc', 'rewriter.cc', 'runtime.cc', | 50 contexts.cc |
51 'scanner.cc', 'scopeinfo.cc', 'scopes.cc', 'serialize.cc', | 51 conversions.cc |
52 'snapshot-common.cc', 'spaces.cc', 'string-stream.cc', 'stub-cache.cc', | 52 counters.cc |
53 'token.cc', 'top.cc', 'unicode.cc', 'usage-analyzer.cc', 'utils.cc', | 53 dateparser.cc |
54 'v8-counters.cc', 'v8.cc', 'v8threads.cc', 'variables.cc', 'version.cc', | 54 debug-agent.cc |
55 'virtual-frame.cc', 'zone.cc' | 55 debug.cc |
56 ], | 56 disassembler.cc |
57 'arch:arm': [ | 57 execution.cc |
58 'arm/assembler-arm.cc', 'arm/builtins-arm.cc', 'arm/codegen-arm.cc', | 58 factory.cc |
59 'arm/constants-arm.cc', 'arm/cpu-arm.cc', 'arm/disasm-arm.cc', | 59 flags.cc |
60 'arm/debug-arm.cc', 'arm/frames-arm.cc', 'arm/ic-arm.cc', | 60 frame-element.cc |
61 'arm/jump-target-arm.cc', 'arm/macro-assembler-arm.cc', | 61 frames.cc |
62 'arm/regexp-macro-assembler-arm.cc', 'arm/register-allocator-arm.cc', | 62 func-name-inferrer.cc |
63 'arm/stub-cache-arm.cc', 'arm/virtual-frame-arm.cc' | 63 global-handles.cc |
64 ], | 64 handles.cc |
65 'arch:ia32': [ | 65 hashmap.cc |
66 'fast-codegen.cc', 'ia32/assembler-ia32.cc', 'ia32/builtins-ia32.cc', | 66 heap-profiler.cc |
67 'ia32/codegen-ia32.cc', 'ia32/cpu-ia32.cc', 'ia32/disasm-ia32.cc', | 67 heap.cc |
68 'ia32/debug-ia32.cc', 'ia32/fast-codegen-ia32.cc', | 68 ic.cc |
69 'ia32/frames-ia32.cc', 'ia32/ic-ia32.cc', 'ia32/jump-target-ia32.cc', | 69 interpreter-irregexp.cc |
70 'ia32/macro-assembler-ia32.cc', 'ia32/regexp-macro-assembler-ia32.cc', | 70 jsregexp.cc |
71 'ia32/register-allocator-ia32.cc', 'ia32/stub-cache-ia32.cc', | 71 jump-target.cc |
72 'ia32/virtual-frame-ia32.cc' | 72 log-utils.cc |
73 ], | 73 log.cc |
74 'arch:x64': [ | 74 mark-compact.cc |
75 'x64/assembler-x64.cc', 'x64/builtins-x64.cc', 'x64/codegen-x64.cc', | 75 messages.cc |
76 'x64/cpu-x64.cc', 'x64/disasm-x64.cc', 'x64/debug-x64.cc', | 76 objects.cc |
77 'x64/frames-x64.cc', 'x64/ic-x64.cc', 'x64/jump-target-x64.cc', | 77 oprofile-agent.cc |
78 'x64/macro-assembler-x64.cc', 'x64/regexp-macro-assembler-x64.cc', | 78 parser.cc |
79 'x64/register-allocator-x64.cc', 'x64/stub-cache-x64.cc', | 79 property.cc |
80 'x64/virtual-frame-x64.cc' | 80 regexp-macro-assembler-irregexp.cc |
81 ], | 81 regexp-macro-assembler.cc |
| 82 regexp-stack.cc |
| 83 register-allocator.cc |
| 84 rewriter.cc |
| 85 runtime.cc |
| 86 scanner.cc |
| 87 scopeinfo.cc |
| 88 scopes.cc |
| 89 serialize.cc |
| 90 snapshot-common.cc |
| 91 spaces.cc |
| 92 string-stream.cc |
| 93 stub-cache.cc |
| 94 token.cc |
| 95 top.cc |
| 96 unicode.cc |
| 97 usage-analyzer.cc |
| 98 utils.cc |
| 99 v8-counters.cc |
| 100 v8.cc |
| 101 v8threads.cc |
| 102 variables.cc |
| 103 version.cc |
| 104 virtual-frame.cc |
| 105 zone.cc |
| 106 """), |
| 107 'arch:arm': Split(""" |
| 108 arm/assembler-arm.cc |
| 109 arm/builtins-arm.cc |
| 110 arm/codegen-arm.cc |
| 111 arm/constants-arm.cc |
| 112 arm/cpu-arm.cc |
| 113 arm/debug-arm.cc |
| 114 arm/disasm-arm.cc |
| 115 arm/frames-arm.cc |
| 116 arm/ic-arm.cc |
| 117 arm/jump-target-arm.cc |
| 118 arm/macro-assembler-arm.cc |
| 119 arm/regexp-macro-assembler-arm.cc |
| 120 arm/register-allocator-arm.cc |
| 121 arm/stub-cache-arm.cc |
| 122 arm/virtual-frame-arm.cc |
| 123 """), |
| 124 'arch:ia32': Split(""" |
| 125 fast-codegen.cc |
| 126 ia32/assembler-ia32.cc |
| 127 ia32/builtins-ia32.cc |
| 128 ia32/codegen-ia32.cc |
| 129 ia32/cpu-ia32.cc |
| 130 ia32/debug-ia32.cc |
| 131 ia32/disasm-ia32.cc |
| 132 ia32/fast-codegen-ia32.cc |
| 133 ia32/frames-ia32.cc |
| 134 ia32/ic-ia32.cc |
| 135 ia32/jump-target-ia32.cc |
| 136 ia32/macro-assembler-ia32.cc |
| 137 ia32/regexp-macro-assembler-ia32.cc |
| 138 ia32/register-allocator-ia32.cc |
| 139 ia32/stub-cache-ia32.cc |
| 140 ia32/virtual-frame-ia32.cc |
| 141 """), |
| 142 'arch:x64': Split(""" |
| 143 x64/assembler-x64.cc |
| 144 x64/builtins-x64.cc |
| 145 x64/codegen-x64.cc |
| 146 x64/cpu-x64.cc |
| 147 x64/debug-x64.cc |
| 148 x64/disasm-x64.cc |
| 149 x64/frames-x64.cc |
| 150 x64/ic-x64.cc |
| 151 x64/jump-target-x64.cc |
| 152 x64/macro-assembler-x64.cc |
| 153 x64/regexp-macro-assembler-x64.cc |
| 154 x64/register-allocator-x64.cc |
| 155 x64/stub-cache-x64.cc |
| 156 x64/virtual-frame-x64.cc |
| 157 """), |
82 'simulator:arm': ['arm/simulator-arm.cc'], | 158 'simulator:arm': ['arm/simulator-arm.cc'], |
83 'os:freebsd': ['platform-freebsd.cc', 'platform-posix.cc'], | 159 'os:freebsd': ['platform-freebsd.cc', 'platform-posix.cc'], |
84 'os:linux': ['platform-linux.cc', 'platform-posix.cc'], | 160 'os:linux': ['platform-linux.cc', 'platform-posix.cc'], |
85 'os:android': ['platform-linux.cc', 'platform-posix.cc'], | 161 'os:android': ['platform-linux.cc', 'platform-posix.cc'], |
86 'os:macos': ['platform-macos.cc', 'platform-posix.cc'], | 162 'os:macos': ['platform-macos.cc', 'platform-posix.cc'], |
87 'os:nullos': ['platform-nullos.cc'], | 163 'os:nullos': ['platform-nullos.cc'], |
88 'os:win32': ['platform-win32.cc'], | 164 'os:win32': ['platform-win32.cc'], |
89 'mode:release': [], | 165 'mode:release': [], |
90 'mode:debug': [ | 166 'mode:debug': [ |
91 'objects-debug.cc', 'prettyprinter.cc', 'regexp-macro-assembler-tracer.cc' | 167 'objects-debug.cc', 'prettyprinter.cc', 'regexp-macro-assembler-tracer.cc' |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) | 264 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) |
189 libraries_obj = context.ConfigureObject(env, libraries_empty_src, CPPPATH=['
.']) | 265 libraries_obj = context.ConfigureObject(env, libraries_empty_src, CPPPATH=['
.']) |
190 else: | 266 else: |
191 snapshot_obj = empty_snapshot_obj | 267 snapshot_obj = empty_snapshot_obj |
192 library_objs = [non_snapshot_files, libraries_obj, snapshot_obj] | 268 library_objs = [non_snapshot_files, libraries_obj, snapshot_obj] |
193 return (library_objs, d8_objs, [mksnapshot]) | 269 return (library_objs, d8_objs, [mksnapshot]) |
194 | 270 |
195 | 271 |
196 (library_objs, d8_objs, mksnapshot) = ConfigureObjectFiles() | 272 (library_objs, d8_objs, mksnapshot) = ConfigureObjectFiles() |
197 Return('library_objs d8_objs mksnapshot') | 273 Return('library_objs d8_objs mksnapshot') |
OLD | NEW |