yangguo@chromium.org | ab30bb8 | 2012-02-24 14:41:46 +0000 | [diff] [blame] | 1 | # Copyright 2012 the V8 project authors. All rights reserved. |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 2 | # Redistribution and use in source and binary forms, with or without |
| 3 | # modification, are permitted provided that the following conditions are |
| 4 | # met: |
| 5 | # |
| 6 | # * Redistributions of source code must retain the above copyright |
| 7 | # notice, this list of conditions and the following disclaimer. |
| 8 | # * Redistributions in binary form must reproduce the above |
| 9 | # copyright notice, this list of conditions and the following |
| 10 | # disclaimer in the documentation and/or other materials provided |
| 11 | # with the distribution. |
| 12 | # * Neither the name of Google Inc. nor the names of its |
| 13 | # contributors may be used to endorse or promote products derived |
| 14 | # from this software without specific prior written permission. |
| 15 | # |
| 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 17 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 18 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 19 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 20 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 21 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 22 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 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. |
| 27 | |
| 28 | import sys |
| 29 | from os.path import join, dirname, abspath |
| 30 | root_dir = dirname(File('SConstruct').rfile().abspath) |
| 31 | sys.path.append(join(root_dir, 'tools')) |
| 32 | import js2c |
mads.s.ager@gmail.com | 9a4089a | 2008-09-01 08:55:01 +0000 | [diff] [blame] | 33 | Import('context') |
kmillikin@chromium.org | c36ce6e | 2011-04-04 08:25:31 +0000 | [diff] [blame] | 34 | Import('tools') |
kmillikin@chromium.org | 7c2628c | 2011-08-10 11:27:35 +0000 | [diff] [blame] | 35 | Import('d8_env') |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 36 | |
| 37 | |
mads.s.ager@gmail.com | 9a4089a | 2008-09-01 08:55:01 +0000 | [diff] [blame] | 38 | SOURCES = { |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 39 | 'all': Split(""" |
| 40 | accessors.cc |
| 41 | allocation.cc |
| 42 | api.cc |
| 43 | assembler.cc |
| 44 | ast.cc |
kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 45 | atomicops_internals_x86_gcc.cc |
erik.corry@gmail.com | 4a6c327 | 2010-11-18 12:04:40 +0000 | [diff] [blame] | 46 | bignum-dtoa.cc |
yangguo@chromium.org | 99aa490 | 2012-07-06 16:21:55 +0000 | [diff] [blame] | 47 | bignum.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 48 | bootstrapper.cc |
| 49 | builtins.cc |
ager@chromium.org | b61a0d1 | 2010-10-13 08:35:23 +0000 | [diff] [blame] | 50 | cached-powers.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 51 | checks.cc |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 52 | circular-queue.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 53 | code-stubs.cc |
| 54 | codegen.cc |
| 55 | compilation-cache.cc |
| 56 | compiler.cc |
| 57 | contexts.cc |
| 58 | conversions.cc |
| 59 | counters.cc |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 60 | cpu-profiler.cc |
sgjesse@chromium.org | b302e56 | 2010-02-03 11:26:59 +0000 | [diff] [blame] | 61 | data-flow.cc |
svenpanne@chromium.org | 4efbdb1 | 2012-03-12 08:18:42 +0000 | [diff] [blame] | 62 | date.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 63 | dateparser.cc |
| 64 | debug-agent.cc |
| 65 | debug.cc |
kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 66 | deoptimizer.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 67 | disassembler.cc |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 68 | diy-fp.cc |
sgjesse@chromium.org | 720dc0b | 2010-05-10 09:25:39 +0000 | [diff] [blame] | 69 | dtoa.cc |
svenpanne@chromium.org | 830d30c | 2012-05-29 13:20:14 +0000 | [diff] [blame] | 70 | elements-kind.cc |
yangguo@chromium.org | 99aa490 | 2012-07-06 16:21:55 +0000 | [diff] [blame] | 71 | elements.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 72 | execution.cc |
yangguo@chromium.org | 99aa490 | 2012-07-06 16:21:55 +0000 | [diff] [blame] | 73 | extensions/externalize-string-extension.cc |
| 74 | extensions/gc-extension.cc |
yangguo@chromium.org | 304cc33 | 2012-07-24 07:59:48 +0000 | [diff] [blame] | 75 | extensions/statistics-extension.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 76 | factory.cc |
yangguo@chromium.org | 99aa490 | 2012-07-06 16:21:55 +0000 | [diff] [blame] | 77 | fast-dtoa.cc |
| 78 | fixed-dtoa.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 79 | flags.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 80 | frames.cc |
sgjesse@chromium.org | b302e56 | 2010-02-03 11:26:59 +0000 | [diff] [blame] | 81 | full-codegen.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 82 | func-name-inferrer.cc |
erik.corry@gmail.com | 0511e24 | 2011-01-19 11:11:08 +0000 | [diff] [blame] | 83 | gdb-jit.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 84 | global-handles.cc |
| 85 | handles.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 86 | heap-profiler.cc |
ulan@chromium.org | 2e04b58 | 2013-02-21 14:06:02 +0000 | [diff] [blame] | 87 | heap-snapshot-generator.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 88 | heap.cc |
kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 89 | hydrogen-instructions.cc |
yangguo@chromium.org | 99aa490 | 2012-07-06 16:21:55 +0000 | [diff] [blame] | 90 | hydrogen.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 91 | ic.cc |
erik.corry@gmail.com | c3b670f | 2011-10-05 21:44:48 +0000 | [diff] [blame] | 92 | incremental-marking.cc |
yangguo@chromium.org | 99aa490 | 2012-07-06 16:21:55 +0000 | [diff] [blame] | 93 | interface.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 94 | interpreter-irregexp.cc |
sgjesse@chromium.org | ea88ce9 | 2011-03-23 11:19:56 +0000 | [diff] [blame] | 95 | isolate.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 96 | jsregexp.cc |
kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 97 | lithium-allocator.cc |
kmillikin@chromium.org | d2c22f0 | 2011-01-10 08:15:37 +0000 | [diff] [blame] | 98 | lithium.cc |
ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 99 | liveedit.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 100 | log-utils.cc |
| 101 | log.cc |
| 102 | mark-compact.cc |
| 103 | messages.cc |
ager@chromium.org | 0ee099b | 2011-01-25 14:06:47 +0000 | [diff] [blame] | 104 | objects-printer.cc |
ager@chromium.org | ea4f62e | 2010-08-16 16:28:43 +0000 | [diff] [blame] | 105 | objects-visiting.cc |
yangguo@chromium.org | 99aa490 | 2012-07-06 16:21:55 +0000 | [diff] [blame] | 106 | objects.cc |
jkummerow@chromium.org | 1456e70 | 2012-03-30 08:38:13 +0000 | [diff] [blame] | 107 | once.cc |
yangguo@chromium.org | 304cc33 | 2012-07-24 07:59:48 +0000 | [diff] [blame] | 108 | optimizing-compiler-thread.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 109 | parser.cc |
ager@chromium.org | beb2571 | 2010-11-29 08:02:25 +0000 | [diff] [blame] | 110 | preparse-data.cc |
yangguo@chromium.org | 99aa490 | 2012-07-06 16:21:55 +0000 | [diff] [blame] | 111 | preparser.cc |
fschneider@chromium.org | 086aac6 | 2010-03-17 13:18:24 +0000 | [diff] [blame] | 112 | profile-generator.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 113 | property.cc |
| 114 | regexp-macro-assembler-irregexp.cc |
| 115 | regexp-macro-assembler.cc |
| 116 | regexp-stack.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 117 | rewriter.cc |
kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 118 | runtime-profiler.cc |
yangguo@chromium.org | 99aa490 | 2012-07-06 16:21:55 +0000 | [diff] [blame] | 119 | runtime.cc |
kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 120 | safepoint-table.cc |
ricow@chromium.org | 55ee807 | 2011-09-08 16:33:10 +0000 | [diff] [blame] | 121 | scanner-character-streams.cc |
yangguo@chromium.org | 99aa490 | 2012-07-06 16:21:55 +0000 | [diff] [blame] | 122 | scanner.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 123 | scopeinfo.cc |
| 124 | scopes.cc |
| 125 | serialize.cc |
| 126 | snapshot-common.cc |
| 127 | spaces.cc |
yangguo@chromium.org | 99aa490 | 2012-07-06 16:21:55 +0000 | [diff] [blame] | 128 | store-buffer.cc |
kmillikin@chromium.org | f05f291 | 2010-09-30 10:07:24 +0000 | [diff] [blame] | 129 | string-search.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 130 | string-stream.cc |
ager@chromium.org | b61a0d1 | 2010-10-13 08:35:23 +0000 | [diff] [blame] | 131 | strtod.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 132 | stub-cache.cc |
| 133 | token.cc |
yangguo@chromium.org | 99aa490 | 2012-07-06 16:21:55 +0000 | [diff] [blame] | 134 | transitions.cc |
ricow@chromium.org | aa1b616 | 2010-03-29 07:44:58 +0000 | [diff] [blame] | 135 | type-info.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 136 | unicode.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 137 | utils.cc |
| 138 | v8-counters.cc |
| 139 | v8.cc |
jkummerow@chromium.org | ddda9e8 | 2011-07-06 11:27:02 +0000 | [diff] [blame] | 140 | v8conversions.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 141 | v8threads.cc |
jkummerow@chromium.org | ddda9e8 | 2011-07-06 11:27:02 +0000 | [diff] [blame] | 142 | v8utils.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 143 | variables.cc |
| 144 | version.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 145 | zone.cc |
| 146 | """), |
| 147 | 'arch:arm': Split(""" |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 148 | arm/builtins-arm.cc |
ricow@chromium.org | 65fae84 | 2010-08-25 15:26:24 +0000 | [diff] [blame] | 149 | arm/code-stubs-arm.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 150 | arm/codegen-arm.cc |
| 151 | arm/constants-arm.cc |
| 152 | arm/cpu-arm.cc |
| 153 | arm/debug-arm.cc |
kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 154 | arm/deoptimizer-arm.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 155 | arm/disasm-arm.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 156 | arm/frames-arm.cc |
sgjesse@chromium.org | b302e56 | 2010-02-03 11:26:59 +0000 | [diff] [blame] | 157 | arm/full-codegen-arm.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 158 | arm/ic-arm.cc |
kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 159 | arm/lithium-arm.cc |
| 160 | arm/lithium-codegen-arm.cc |
fschneider@chromium.org | 3a5fd78 | 2011-02-24 10:10:44 +0000 | [diff] [blame] | 161 | arm/lithium-gap-resolver-arm.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 162 | arm/macro-assembler-arm.cc |
| 163 | arm/regexp-macro-assembler-arm.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 164 | arm/stub-cache-arm.cc |
kmillikin@chromium.org | 13bd294 | 2009-12-16 15:36:05 +0000 | [diff] [blame] | 165 | arm/assembler-arm.cc |
| 166 | """), |
ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 167 | 'arch:mips': Split(""" |
| 168 | mips/assembler-mips.cc |
| 169 | mips/builtins-mips.cc |
lrn@chromium.org | 7516f05 | 2011-03-30 08:52:27 +0000 | [diff] [blame] | 170 | mips/code-stubs-mips.cc |
ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 171 | mips/codegen-mips.cc |
| 172 | mips/constants-mips.cc |
| 173 | mips/cpu-mips.cc |
| 174 | mips/debug-mips.cc |
lrn@chromium.org | 7516f05 | 2011-03-30 08:52:27 +0000 | [diff] [blame] | 175 | mips/deoptimizer-mips.cc |
ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 176 | mips/disasm-mips.cc |
ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 177 | mips/frames-mips.cc |
lrn@chromium.org | 7516f05 | 2011-03-30 08:52:27 +0000 | [diff] [blame] | 178 | mips/full-codegen-mips.cc |
ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 179 | mips/ic-mips.cc |
jkummerow@chromium.org | c3b3712 | 2011-11-07 10:14:12 +0000 | [diff] [blame] | 180 | mips/lithium-codegen-mips.cc |
| 181 | mips/lithium-gap-resolver-mips.cc |
| 182 | mips/lithium-mips.cc |
ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 183 | mips/macro-assembler-mips.cc |
lrn@chromium.org | 7516f05 | 2011-03-30 08:52:27 +0000 | [diff] [blame] | 184 | mips/regexp-macro-assembler-mips.cc |
ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 185 | mips/stub-cache-mips.cc |
ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 186 | """), |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 187 | 'arch:ia32': Split(""" |
| 188 | ia32/assembler-ia32.cc |
| 189 | ia32/builtins-ia32.cc |
ricow@chromium.org | 65fae84 | 2010-08-25 15:26:24 +0000 | [diff] [blame] | 190 | ia32/code-stubs-ia32.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 191 | ia32/codegen-ia32.cc |
| 192 | ia32/cpu-ia32.cc |
| 193 | ia32/debug-ia32.cc |
kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 194 | ia32/deoptimizer-ia32.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 195 | ia32/disasm-ia32.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 196 | ia32/frames-ia32.cc |
sgjesse@chromium.org | b302e56 | 2010-02-03 11:26:59 +0000 | [diff] [blame] | 197 | ia32/full-codegen-ia32.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 198 | ia32/ic-ia32.cc |
kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 199 | ia32/lithium-codegen-ia32.cc |
erik.corry@gmail.com | 0511e24 | 2011-01-19 11:11:08 +0000 | [diff] [blame] | 200 | ia32/lithium-gap-resolver-ia32.cc |
kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 201 | ia32/lithium-ia32.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 202 | ia32/macro-assembler-ia32.cc |
| 203 | ia32/regexp-macro-assembler-ia32.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 204 | ia32/stub-cache-ia32.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 205 | """), |
| 206 | 'arch:x64': Split(""" |
| 207 | x64/assembler-x64.cc |
| 208 | x64/builtins-x64.cc |
ricow@chromium.org | 65fae84 | 2010-08-25 15:26:24 +0000 | [diff] [blame] | 209 | x64/code-stubs-x64.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 210 | x64/codegen-x64.cc |
| 211 | x64/cpu-x64.cc |
| 212 | x64/debug-x64.cc |
kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 213 | x64/deoptimizer-x64.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 214 | x64/disasm-x64.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 215 | x64/frames-x64.cc |
sgjesse@chromium.org | b302e56 | 2010-02-03 11:26:59 +0000 | [diff] [blame] | 216 | x64/full-codegen-x64.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 217 | x64/ic-x64.cc |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 218 | x64/lithium-codegen-x64.cc |
ager@chromium.org | 0ee099b | 2011-01-25 14:06:47 +0000 | [diff] [blame] | 219 | x64/lithium-gap-resolver-x64.cc |
| 220 | x64/lithium-x64.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 221 | x64/macro-assembler-x64.cc |
| 222 | x64/regexp-macro-assembler-x64.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 223 | x64/stub-cache-x64.cc |
christian.plesner.hansen@gmail.com | 9d58c2b | 2009-10-16 11:48:38 +0000 | [diff] [blame] | 224 | """), |
ager@chromium.org | 3a37e9b | 2009-04-27 09:26:21 +0000 | [diff] [blame] | 225 | 'simulator:arm': ['arm/simulator-arm.cc'], |
ager@chromium.org | 5c83825 | 2010-02-19 08:53:10 +0000 | [diff] [blame] | 226 | 'simulator:mips': ['mips/simulator-mips.cc'], |
ager@chromium.org | bb29dc9 | 2009-03-24 13:25:23 +0000 | [diff] [blame] | 227 | 'os:freebsd': ['platform-freebsd.cc', 'platform-posix.cc'], |
sgjesse@chromium.org | ac6aa17 | 2009-12-04 12:29:05 +0000 | [diff] [blame] | 228 | 'os:openbsd': ['platform-openbsd.cc', 'platform-posix.cc'], |
ager@chromium.org | bb29dc9 | 2009-03-24 13:25:23 +0000 | [diff] [blame] | 229 | 'os:linux': ['platform-linux.cc', 'platform-posix.cc'], |
| 230 | 'os:android': ['platform-linux.cc', 'platform-posix.cc'], |
| 231 | 'os:macos': ['platform-macos.cc', 'platform-posix.cc'], |
sgjesse@chromium.org | b302e56 | 2010-02-03 11:26:59 +0000 | [diff] [blame] | 232 | 'os:solaris': ['platform-solaris.cc', 'platform-posix.cc'], |
fschneider@chromium.org | 3a5fd78 | 2011-02-24 10:10:44 +0000 | [diff] [blame] | 233 | 'os:cygwin': ['platform-cygwin.cc', 'platform-posix.cc'], |
ager@chromium.org | a74f0da | 2008-12-03 16:05:52 +0000 | [diff] [blame] | 234 | 'os:nullos': ['platform-nullos.cc'], |
ricow@chromium.org | 55ee807 | 2011-09-08 16:33:10 +0000 | [diff] [blame] | 235 | 'os:win32': ['platform-win32.cc', 'win32-math.cc'], |
mads.s.ager@gmail.com | 9a4089a | 2008-09-01 08:55:01 +0000 | [diff] [blame] | 236 | 'mode:release': [], |
ager@chromium.org | a74f0da | 2008-12-03 16:05:52 +0000 | [diff] [blame] | 237 | 'mode:debug': [ |
ager@chromium.org | 0ee099b | 2011-01-25 14:06:47 +0000 | [diff] [blame] | 238 | 'objects-debug.cc', 'prettyprinter.cc', 'regexp-macro-assembler-tracer.cc' |
| 239 | ] |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 240 | } |
| 241 | |
| 242 | |
lrn@chromium.org | 7516f05 | 2011-03-30 08:52:27 +0000 | [diff] [blame] | 243 | PREPARSER_SOURCES = { |
| 244 | 'all': Split(""" |
| 245 | allocation.cc |
ricow@chromium.org | 55ee807 | 2011-09-08 16:33:10 +0000 | [diff] [blame] | 246 | bignum.cc |
| 247 | bignum-dtoa.cc |
| 248 | cached-powers.cc |
| 249 | conversions.cc |
| 250 | diy-fp.cc |
| 251 | dtoa.cc |
| 252 | fast-dtoa.cc |
| 253 | fixed-dtoa.cc |
lrn@chromium.org | 7516f05 | 2011-03-30 08:52:27 +0000 | [diff] [blame] | 254 | preparse-data.cc |
| 255 | preparser.cc |
| 256 | preparser-api.cc |
ricow@chromium.org | 55ee807 | 2011-09-08 16:33:10 +0000 | [diff] [blame] | 257 | scanner.cc |
| 258 | strtod.cc |
lrn@chromium.org | 7516f05 | 2011-03-30 08:52:27 +0000 | [diff] [blame] | 259 | token.cc |
| 260 | unicode.cc |
jkummerow@chromium.org | ddda9e8 | 2011-07-06 11:27:02 +0000 | [diff] [blame] | 261 | utils.cc |
ricow@chromium.org | 55ee807 | 2011-09-08 16:33:10 +0000 | [diff] [blame] | 262 | """), |
| 263 | 'os:win32': ['win32-math.cc'] |
lrn@chromium.org | 7516f05 | 2011-03-30 08:52:27 +0000 | [diff] [blame] | 264 | } |
| 265 | |
| 266 | |
svenpanne@chromium.org | 84bcc55 | 2011-07-18 09:50:57 +0000 | [diff] [blame] | 267 | D8_LIGHT_FILES = { |
| 268 | 'all': [ |
| 269 | 'd8.cc' |
| 270 | ] |
| 271 | } |
| 272 | |
| 273 | |
| 274 | D8_FULL_FILES = { |
kasperl@chromium.org | 5a8ca6c | 2008-10-23 13:57:19 +0000 | [diff] [blame] | 275 | 'all': [ |
christian.plesner.hansen@gmail.com | 37abdec | 2009-01-06 14:43:28 +0000 | [diff] [blame] | 276 | 'd8.cc', 'd8-debug.cc' |
kasperl@chromium.org | 5a8ca6c | 2008-10-23 13:57:19 +0000 | [diff] [blame] | 277 | ], |
ager@chromium.org | 41826e7 | 2009-03-30 13:30:57 +0000 | [diff] [blame] | 278 | 'os:linux': [ |
| 279 | 'd8-posix.cc' |
| 280 | ], |
| 281 | 'os:macos': [ |
| 282 | 'd8-posix.cc' |
| 283 | ], |
| 284 | 'os:android': [ |
| 285 | 'd8-posix.cc' |
| 286 | ], |
| 287 | 'os:freebsd': [ |
| 288 | 'd8-posix.cc' |
| 289 | ], |
sgjesse@chromium.org | ac6aa17 | 2009-12-04 12:29:05 +0000 | [diff] [blame] | 290 | 'os:openbsd': [ |
| 291 | 'd8-posix.cc' |
| 292 | ], |
sgjesse@chromium.org | b302e56 | 2010-02-03 11:26:59 +0000 | [diff] [blame] | 293 | 'os:solaris': [ |
| 294 | 'd8-posix.cc' |
| 295 | ], |
fschneider@chromium.org | 3a5fd78 | 2011-02-24 10:10:44 +0000 | [diff] [blame] | 296 | 'os:cygwin': [ |
| 297 | 'd8-posix.cc' |
| 298 | ], |
ager@chromium.org | 71daaf6 | 2009-04-01 07:22:49 +0000 | [diff] [blame] | 299 | 'os:win32': [ |
ager@chromium.org | 41826e7 | 2009-03-30 13:30:57 +0000 | [diff] [blame] | 300 | 'd8-windows.cc' |
| 301 | ], |
| 302 | 'os:nullos': [ |
| 303 | 'd8-windows.cc' # Empty implementation at the moment. |
| 304 | ], |
kasperl@chromium.org | 5a8ca6c | 2008-10-23 13:57:19 +0000 | [diff] [blame] | 305 | 'console:readline': [ |
| 306 | 'd8-readline.cc' |
| 307 | ] |
| 308 | } |
| 309 | |
| 310 | |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 311 | LIBRARY_FILES = ''' |
| 312 | runtime.js |
| 313 | v8natives.js |
| 314 | array.js |
| 315 | string.js |
| 316 | uri.js |
| 317 | math.js |
| 318 | messages.js |
| 319 | apinatives.js |
kmillikin@chromium.org | 5d8f0e6 | 2010-03-24 08:21:20 +0000 | [diff] [blame] | 320 | date.js |
| 321 | regexp.js |
| 322 | json.js |
| 323 | liveedit-debugger.js |
| 324 | mirror-debugger.js |
| 325 | debug-debugger.js |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 326 | '''.split() |
| 327 | |
| 328 | |
danno@chromium.org | 160a7b0 | 2011-04-18 15:51:38 +0000 | [diff] [blame] | 329 | EXPERIMENTAL_LIBRARY_FILES = ''' |
yangguo@chromium.org | 4a9f655 | 2013-03-04 14:46:33 +0000 | [diff] [blame^] | 330 | symbol.js |
danno@chromium.org | 160a7b0 | 2011-04-18 15:51:38 +0000 | [diff] [blame] | 331 | proxy.js |
erik.corry@gmail.com | 394dbcf | 2011-10-27 07:38:48 +0000 | [diff] [blame] | 332 | collection.js |
danno@chromium.org | 160a7b0 | 2011-04-18 15:51:38 +0000 | [diff] [blame] | 333 | '''.split() |
| 334 | |
| 335 | |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 336 | def Abort(message): |
| 337 | print message |
| 338 | sys.exit(1) |
| 339 | |
| 340 | |
kasper.lund | 7276f14 | 2008-07-30 08:49:36 +0000 | [diff] [blame] | 341 | def ConfigureObjectFiles(): |
kmillikin@chromium.org | c36ce6e | 2011-04-04 08:25:31 +0000 | [diff] [blame] | 342 | env = Environment(tools=tools) |
mads.s.ager@gmail.com | 9a4089a | 2008-09-01 08:55:01 +0000 | [diff] [blame] | 343 | env.Replace(**context.flags['v8']) |
ager@chromium.org | 9258b6b | 2008-09-11 09:11:10 +0000 | [diff] [blame] | 344 | context.ApplyEnvOverrides(env) |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 345 | env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C) |
whesse@chromium.org | 030d38e | 2011-07-13 13:23:34 +0000 | [diff] [blame] | 346 | env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGFILE" --log-snapshot-positions') |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 347 | |
jkummerow@chromium.org | e297f59 | 2011-06-08 10:05:15 +0000 | [diff] [blame] | 348 | def BuildJS2CEnv(type): |
| 349 | js2c_env = { 'TYPE': type, 'COMPRESSION': 'off' } |
| 350 | if 'COMPRESS_STARTUP_DATA_BZ2' in env['CPPDEFINES']: |
| 351 | js2c_env['COMPRESSION'] = 'bz2' |
| 352 | return js2c_env |
| 353 | |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 354 | # Build the standard platform-independent source files. |
mads.s.ager@gmail.com | 9a4089a | 2008-09-01 08:55:01 +0000 | [diff] [blame] | 355 | source_files = context.GetRelevantSources(SOURCES) |
jkummerow@chromium.org | e297f59 | 2011-06-08 10:05:15 +0000 | [diff] [blame] | 356 | d8_js = env.JS2C('d8-js.cc', 'd8.js', **{'TYPE': 'D8', 'COMPRESSION': 'off'}) |
kasperl@chromium.org | 5a8ca6c | 2008-10-23 13:57:19 +0000 | [diff] [blame] | 357 | d8_js_obj = context.ConfigureObject(env, d8_js, CPPPATH=['.']) |
svenpanne@chromium.org | 84bcc55 | 2011-07-18 09:50:57 +0000 | [diff] [blame] | 358 | if context.options['library'] == 'shared': |
| 359 | d8_files = context.GetRelevantSources(D8_LIGHT_FILES) |
| 360 | d8_objs = [] |
| 361 | else: |
| 362 | d8_files = context.GetRelevantSources(D8_FULL_FILES) |
| 363 | d8_objs = [d8_js_obj] |
kmillikin@chromium.org | 7c2628c | 2011-08-10 11:27:35 +0000 | [diff] [blame] | 364 | d8_objs.append(context.ConfigureObject(d8_env, [d8_files])) |
kasperl@chromium.org | 5a8ca6c | 2008-10-23 13:57:19 +0000 | [diff] [blame] | 365 | |
kasper.lund | 7276f14 | 2008-07-30 08:49:36 +0000 | [diff] [blame] | 366 | # Combine the JavaScript library files into a single C++ file and |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 367 | # compile it. |
| 368 | library_files = [s for s in LIBRARY_FILES] |
| 369 | library_files.append('macros.py') |
jkummerow@chromium.org | e297f59 | 2011-06-08 10:05:15 +0000 | [diff] [blame] | 370 | libraries_src = env.JS2C( |
| 371 | ['libraries.cc'], library_files, **BuildJS2CEnv('CORE')) |
mads.s.ager@gmail.com | 9a4089a | 2008-09-01 08:55:01 +0000 | [diff] [blame] | 372 | libraries_obj = context.ConfigureObject(env, libraries_src, CPPPATH=['.']) |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 373 | |
danno@chromium.org | 160a7b0 | 2011-04-18 15:51:38 +0000 | [diff] [blame] | 374 | # Combine the experimental JavaScript library files into a C++ file |
| 375 | # and compile it. |
| 376 | experimental_library_files = [ s for s in EXPERIMENTAL_LIBRARY_FILES ] |
| 377 | experimental_library_files.append('macros.py') |
jkummerow@chromium.org | e297f59 | 2011-06-08 10:05:15 +0000 | [diff] [blame] | 378 | experimental_libraries_src = env.JS2C(['experimental-libraries.cc'], |
| 379 | experimental_library_files, |
| 380 | **BuildJS2CEnv('EXPERIMENTAL')) |
danno@chromium.org | 160a7b0 | 2011-04-18 15:51:38 +0000 | [diff] [blame] | 381 | experimental_libraries_obj = context.ConfigureObject(env, experimental_libraries_src, CPPPATH=['.']) |
| 382 | |
mads.s.ager@gmail.com | 9a4089a | 2008-09-01 08:55:01 +0000 | [diff] [blame] | 383 | source_objs = context.ConfigureObject(env, source_files) |
vegorov@chromium.org | 21b5e95 | 2010-11-23 10:24:40 +0000 | [diff] [blame] | 384 | non_snapshot_files = [source_objs] |
kasperl@chromium.org | b912362 | 2008-09-17 14:05:56 +0000 | [diff] [blame] | 385 | |
lrn@chromium.org | 7516f05 | 2011-03-30 08:52:27 +0000 | [diff] [blame] | 386 | preparser_source_files = context.GetRelevantSources(PREPARSER_SOURCES) |
| 387 | preparser_objs = context.ConfigureObject(env, preparser_source_files) |
| 388 | |
whesse@chromium.org | b6e43bb | 2010-04-14 09:36:28 +0000 | [diff] [blame] | 389 | # Create snapshot if necessary. For cross compilation you should either |
| 390 | # do without snapshots and take the performance hit or you should build a |
| 391 | # host VM with the simulator=arm and snapshot=on options and then take the |
| 392 | # resulting snapshot.cc file from obj/release and put it in the src |
| 393 | # directory. Then rebuild the VM with the cross compiler and specify |
| 394 | # snapshot=nobuild on the scons command line. |
mads.s.ager@gmail.com | 9a4089a | 2008-09-01 08:55:01 +0000 | [diff] [blame] | 395 | empty_snapshot_obj = context.ConfigureObject(env, 'snapshot-empty.cc') |
iposva@chromium.org | 245aa85 | 2009-02-10 00:49:54 +0000 | [diff] [blame] | 396 | mksnapshot_env = env.Copy() |
| 397 | mksnapshot_env.Replace(**context.flags['mksnapshot']) |
| 398 | mksnapshot_src = 'mksnapshot.cc' |
danno@chromium.org | 160a7b0 | 2011-04-18 15:51:38 +0000 | [diff] [blame] | 399 | mksnapshot = mksnapshot_env.Program('mksnapshot', [mksnapshot_src, libraries_obj, experimental_libraries_obj, non_snapshot_files, empty_snapshot_obj], PDB='mksnapshot.exe.pdb') |
mads.s.ager@gmail.com | 9a4089a | 2008-09-01 08:55:01 +0000 | [diff] [blame] | 400 | if context.use_snapshot: |
iposva@chromium.org | 245aa85 | 2009-02-10 00:49:54 +0000 | [diff] [blame] | 401 | if context.build_snapshot: |
| 402 | snapshot_cc = env.Snapshot('snapshot.cc', mksnapshot, LOGFILE=File('snapshot.log').abspath) |
| 403 | else: |
whesse@chromium.org | b6e43bb | 2010-04-14 09:36:28 +0000 | [diff] [blame] | 404 | snapshot_cc = 'snapshot.cc' |
mads.s.ager@gmail.com | 9a4089a | 2008-09-01 08:55:01 +0000 | [diff] [blame] | 405 | snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 406 | else: |
| 407 | snapshot_obj = empty_snapshot_obj |
danno@chromium.org | 160a7b0 | 2011-04-18 15:51:38 +0000 | [diff] [blame] | 408 | library_objs = [non_snapshot_files, libraries_obj, experimental_libraries_obj, snapshot_obj] |
lrn@chromium.org | 7516f05 | 2011-03-30 08:52:27 +0000 | [diff] [blame] | 409 | return (library_objs, d8_objs, [mksnapshot], preparser_objs) |
christian.plesner.hansen | 43d26ec | 2008-07-03 15:10:15 +0000 | [diff] [blame] | 410 | |
| 411 | |
lrn@chromium.org | 7516f05 | 2011-03-30 08:52:27 +0000 | [diff] [blame] | 412 | (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles() |
| 413 | Return('library_objs d8_objs mksnapshot preparser_objs') |