therubyracer 0.8.1.pre2 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of therubyracer might be problematic. Click here for more details.
- data/Changelog.md +2 -1
- data/README.md +6 -3
- data/ext/v8/upstream/3.1.8/.gitignore +31 -0
- data/ext/v8/upstream/3.1.8/AUTHORS +40 -0
- data/ext/v8/upstream/3.1.8/ChangeLog +2566 -0
- data/ext/v8/upstream/3.1.8/LICENSE +52 -0
- data/ext/v8/upstream/3.1.8/LICENSE.strongtalk +29 -0
- data/ext/v8/upstream/3.1.8/LICENSE.v8 +26 -0
- data/ext/v8/upstream/3.1.8/LICENSE.valgrind +45 -0
- data/ext/v8/upstream/3.1.8/SConstruct +1192 -0
- data/ext/v8/upstream/3.1.8/build/README.txt +25 -0
- data/ext/v8/upstream/3.1.8/build/all.gyp +18 -0
- data/ext/v8/upstream/3.1.8/build/armu.gypi +32 -0
- data/ext/v8/upstream/3.1.8/build/common.gypi +82 -0
- data/ext/v8/upstream/3.1.8/build/gyp_v8 +145 -0
- data/ext/v8/upstream/3.1.8/include/v8-debug.h +384 -0
- data/ext/v8/upstream/3.1.8/include/v8-preparser.h +116 -0
- data/ext/v8/upstream/3.1.8/include/v8-profiler.h +426 -0
- data/ext/v8/upstream/3.1.8/include/v8-testing.h +99 -0
- data/ext/v8/upstream/3.1.8/include/v8.h +3846 -0
- data/ext/v8/upstream/3.1.8/include/v8stdint.h +53 -0
- data/ext/v8/upstream/3.1.8/preparser/preparser-process.cc +206 -0
- data/ext/v8/upstream/3.1.8/src/SConscript +356 -0
- data/ext/v8/upstream/3.1.8/src/accessors.cc +907 -0
- data/ext/v8/upstream/3.1.8/src/accessors.h +121 -0
- data/ext/v8/upstream/3.1.8/src/allocation.cc +204 -0
- data/ext/v8/upstream/3.1.8/src/allocation.h +176 -0
- data/ext/v8/upstream/3.1.8/src/api.cc +5191 -0
- data/ext/v8/upstream/3.1.8/src/api.h +508 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/apinatives.js +0 -0
- data/ext/v8/upstream/3.1.8/src/apiutils.h +80 -0
- data/ext/v8/upstream/3.1.8/src/arguments.h +105 -0
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm-inl.h +352 -0
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm.cc +2756 -0
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm.h +1294 -0
- data/ext/v8/upstream/3.1.8/src/arm/builtins-arm.cc +1628 -0
- data/ext/v8/upstream/3.1.8/src/arm/code-stubs-arm.cc +6783 -0
- data/ext/v8/upstream/3.1.8/src/arm/code-stubs-arm.h +657 -0
- data/ext/v8/upstream/3.1.8/src/arm/codegen-arm-inl.h +48 -0
- data/ext/v8/upstream/3.1.8/src/arm/codegen-arm.cc +7403 -0
- data/ext/v8/upstream/3.1.8/src/arm/codegen-arm.h +595 -0
- data/ext/v8/upstream/3.1.8/src/arm/constants-arm.cc +152 -0
- data/ext/v8/upstream/3.1.8/src/arm/constants-arm.h +769 -0
- data/ext/v8/upstream/3.1.8/src/arm/cpu-arm.cc +147 -0
- data/ext/v8/upstream/3.1.8/src/arm/debug-arm.cc +315 -0
- data/ext/v8/upstream/3.1.8/src/arm/deoptimizer-arm.cc +700 -0
- data/ext/v8/upstream/3.1.8/src/arm/disasm-arm.cc +1439 -0
- data/ext/v8/upstream/3.1.8/src/arm/frames-arm.cc +45 -0
- data/ext/v8/upstream/3.1.8/src/arm/frames-arm.h +168 -0
- data/ext/v8/upstream/3.1.8/src/arm/full-codegen-arm.cc +4230 -0
- data/ext/v8/upstream/3.1.8/src/arm/ic-arm.cc +1799 -0
- data/ext/v8/upstream/3.1.8/src/arm/jump-target-arm.cc +174 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-arm.cc +2041 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-arm.h +2046 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-codegen-arm.cc +3822 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-codegen-arm.h +312 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-gap-resolver-arm.cc +303 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-gap-resolver-arm.h +84 -0
- data/ext/v8/upstream/3.1.8/src/arm/macro-assembler-arm.cc +2701 -0
- data/ext/v8/upstream/3.1.8/src/arm/macro-assembler-arm.h +1015 -0
- data/ext/v8/upstream/3.1.8/src/arm/regexp-macro-assembler-arm.cc +1280 -0
- data/ext/v8/upstream/3.1.8/src/arm/regexp-macro-assembler-arm.h +252 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/register-allocator-arm-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/register-allocator-arm.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/register-allocator-arm.h +0 -0
- data/ext/v8/upstream/3.1.8/src/arm/simulator-arm.cc +3165 -0
- data/ext/v8/upstream/3.1.8/src/arm/simulator-arm.h +402 -0
- data/ext/v8/upstream/3.1.8/src/arm/stub-cache-arm.cc +4077 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/virtual-frame-arm-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/arm/virtual-frame-arm.cc +843 -0
- data/ext/v8/upstream/3.1.8/src/arm/virtual-frame-arm.h +520 -0
- data/ext/v8/upstream/3.1.8/src/array.js +1231 -0
- data/ext/v8/upstream/3.1.8/src/assembler.cc +973 -0
- data/ext/v8/upstream/3.1.8/src/assembler.h +787 -0
- data/ext/v8/upstream/3.1.8/src/ast-inl.h +107 -0
- data/ext/v8/upstream/3.1.8/src/ast.cc +1067 -0
- data/ext/v8/upstream/3.1.8/src/ast.h +2177 -0
- data/ext/v8/upstream/3.1.8/src/atomicops.h +165 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_arm_gcc.h +145 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_gcc.cc +126 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_gcc.h +287 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_macosx.h +301 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_msvc.h +203 -0
- data/ext/v8/upstream/3.1.8/src/bignum-dtoa.cc +655 -0
- data/ext/v8/upstream/3.1.8/src/bignum-dtoa.h +81 -0
- data/ext/v8/upstream/3.1.8/src/bignum.cc +768 -0
- data/ext/v8/upstream/3.1.8/src/bignum.h +140 -0
- data/ext/v8/upstream/3.1.8/src/bootstrapper.cc +1888 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/bootstrapper.h +0 -0
- data/ext/v8/upstream/3.1.8/src/builtins.cc +1586 -0
- data/ext/v8/upstream/3.1.8/src/builtins.h +339 -0
- data/ext/v8/upstream/3.1.8/src/bytecodes-irregexp.h +105 -0
- data/ext/v8/upstream/3.1.8/src/cached-powers.cc +177 -0
- data/ext/v8/upstream/3.1.8/src/cached-powers.h +65 -0
- data/ext/v8/upstream/3.1.8/src/char-predicates-inl.h +94 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/char-predicates.h +0 -0
- data/ext/v8/upstream/3.1.8/src/checks.cc +110 -0
- data/ext/v8/upstream/3.1.8/src/checks.h +292 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/circular-queue-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/circular-queue.cc +122 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/circular-queue.h +0 -0
- data/ext/v8/upstream/3.1.8/src/code-stubs.cc +230 -0
- data/ext/v8/upstream/3.1.8/src/code-stubs.h +950 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/code.h +0 -0
- data/ext/v8/upstream/3.1.8/src/codegen-inl.h +64 -0
- data/ext/v8/upstream/3.1.8/src/codegen.cc +495 -0
- data/ext/v8/upstream/3.1.8/src/codegen.h +245 -0
- data/ext/v8/upstream/3.1.8/src/compilation-cache.cc +654 -0
- data/ext/v8/upstream/3.1.8/src/compilation-cache.h +112 -0
- data/ext/v8/upstream/3.1.8/src/compiler.cc +806 -0
- data/ext/v8/upstream/3.1.8/src/compiler.h +290 -0
- data/ext/v8/upstream/3.1.8/src/contexts.cc +320 -0
- data/ext/v8/upstream/3.1.8/src/contexts.h +376 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/conversions-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/conversions.cc +1069 -0
- data/ext/v8/upstream/3.1.8/src/conversions.h +122 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/counters.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/counters.h +242 -0
- data/ext/v8/upstream/3.1.8/src/cpu-profiler-inl.h +100 -0
- data/ext/v8/upstream/3.1.8/src/cpu-profiler.cc +554 -0
- data/ext/v8/upstream/3.1.8/src/cpu-profiler.h +291 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/cpu.h +0 -0
- data/ext/v8/upstream/3.1.8/src/d8-debug.cc +367 -0
- data/ext/v8/upstream/3.1.8/src/d8-debug.h +157 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/d8-posix.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/d8-readline.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/d8-windows.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/d8.cc +792 -0
- data/ext/v8/upstream/3.1.8/src/d8.gyp +85 -0
- data/ext/v8/upstream/3.1.8/src/d8.h +231 -0
- data/ext/v8/upstream/3.1.8/src/d8.js +2798 -0
- data/ext/v8/upstream/3.1.8/src/data-flow.cc +545 -0
- data/ext/v8/upstream/3.1.8/src/data-flow.h +379 -0
- data/ext/v8/upstream/3.1.8/src/date.js +1103 -0
- data/ext/v8/upstream/3.1.8/src/dateparser-inl.h +125 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/dateparser.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/dateparser.h +263 -0
- data/ext/v8/upstream/3.1.8/src/debug-agent.cc +446 -0
- data/ext/v8/upstream/3.1.8/src/debug-agent.h +131 -0
- data/ext/v8/upstream/3.1.8/src/debug-debugger.js +2569 -0
- data/ext/v8/upstream/3.1.8/src/debug.cc +3085 -0
- data/ext/v8/upstream/3.1.8/src/debug.h +1025 -0
- data/ext/v8/upstream/3.1.8/src/deoptimizer.cc +1185 -0
- data/ext/v8/upstream/3.1.8/src/deoptimizer.h +529 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/disasm.h +0 -0
- data/ext/v8/upstream/3.1.8/src/disassembler.cc +338 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/disassembler.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/diy-fp.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/diy-fp.h +0 -0
- data/ext/v8/upstream/3.1.8/src/double.h +238 -0
- data/ext/v8/upstream/3.1.8/src/dtoa.cc +103 -0
- data/ext/v8/upstream/3.1.8/src/dtoa.h +85 -0
- data/ext/v8/upstream/3.1.8/src/execution.cc +735 -0
- data/ext/v8/upstream/3.1.8/src/execution.h +322 -0
- data/ext/v8/upstream/3.1.8/src/extensions/experimental/experimental.gyp +53 -0
- data/ext/v8/upstream/3.1.8/src/extensions/experimental/i18n-extension.cc +264 -0
- data/ext/v8/upstream/3.1.8/src/extensions/experimental/i18n-extension.h +64 -0
- data/ext/v8/upstream/3.1.8/src/extensions/externalize-string-extension.cc +141 -0
- data/ext/v8/upstream/3.1.8/src/extensions/externalize-string-extension.h +50 -0
- data/ext/v8/upstream/3.1.8/src/extensions/gc-extension.cc +58 -0
- data/ext/v8/upstream/3.1.8/src/extensions/gc-extension.h +49 -0
- data/ext/v8/upstream/3.1.8/src/factory.cc +1087 -0
- data/ext/v8/upstream/3.1.8/src/factory.h +432 -0
- data/ext/v8/upstream/3.1.8/src/fast-dtoa.cc +736 -0
- data/ext/v8/upstream/3.1.8/src/fast-dtoa.h +83 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/fixed-dtoa.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/fixed-dtoa.h +0 -0
- data/ext/v8/upstream/3.1.8/src/flag-definitions.h +552 -0
- data/ext/v8/upstream/3.1.8/src/flags.cc +551 -0
- data/ext/v8/upstream/3.1.8/src/flags.h +79 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/frame-element.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/frame-element.h +277 -0
- data/ext/v8/upstream/3.1.8/src/frames-inl.h +210 -0
- data/ext/v8/upstream/3.1.8/src/frames.cc +1232 -0
- data/ext/v8/upstream/3.1.8/src/frames.h +826 -0
- data/ext/v8/upstream/3.1.8/src/full-codegen.cc +1382 -0
- data/ext/v8/upstream/3.1.8/src/full-codegen.h +751 -0
- data/ext/v8/upstream/3.1.8/src/func-name-inferrer.cc +90 -0
- data/ext/v8/upstream/3.1.8/src/func-name-inferrer.h +111 -0
- data/ext/v8/upstream/3.1.8/src/gdb-jit.cc +1547 -0
- data/ext/v8/upstream/3.1.8/src/gdb-jit.h +138 -0
- data/ext/v8/upstream/3.1.8/src/global-handles.cc +534 -0
- data/ext/v8/upstream/3.1.8/src/global-handles.h +181 -0
- data/ext/v8/upstream/3.1.8/src/globals.h +325 -0
- data/ext/v8/upstream/3.1.8/src/handles-inl.h +80 -0
- data/ext/v8/upstream/3.1.8/src/handles.cc +910 -0
- data/ext/v8/upstream/3.1.8/src/handles.h +424 -0
- data/ext/v8/upstream/3.1.8/src/hashmap.cc +230 -0
- data/ext/v8/upstream/3.1.8/src/hashmap.h +121 -0
- data/ext/v8/upstream/3.1.8/src/heap-inl.h +587 -0
- data/ext/v8/upstream/3.1.8/src/heap-profiler.cc +1128 -0
- data/ext/v8/upstream/3.1.8/src/heap-profiler.h +381 -0
- data/ext/v8/upstream/3.1.8/src/heap.cc +5610 -0
- data/ext/v8/upstream/3.1.8/src/heap.h +2218 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen-instructions.cc +1490 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen-instructions.h +3493 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen.cc +6056 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen.h +1091 -0
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32-inl.h +429 -0
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32.cc +2800 -0
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32.h +1093 -0
- data/ext/v8/upstream/3.1.8/src/ia32/builtins-ia32.cc +1590 -0
- data/ext/v8/upstream/3.1.8/src/ia32/code-stubs-ia32.cc +6624 -0
- data/ext/v8/upstream/3.1.8/src/ia32/code-stubs-ia32.h +536 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/codegen-ia32-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/ia32/codegen-ia32.cc +10354 -0
- data/ext/v8/upstream/3.1.8/src/ia32/codegen-ia32.h +798 -0
- data/ext/v8/upstream/3.1.8/src/ia32/cpu-ia32.cc +87 -0
- data/ext/v8/upstream/3.1.8/src/ia32/debug-ia32.cc +309 -0
- data/ext/v8/upstream/3.1.8/src/ia32/deoptimizer-ia32.cc +664 -0
- data/ext/v8/upstream/3.1.8/src/ia32/disasm-ia32.cc +1597 -0
- data/ext/v8/upstream/3.1.8/src/ia32/frames-ia32.cc +45 -0
- data/ext/v8/upstream/3.1.8/src/ia32/frames-ia32.h +140 -0
- data/ext/v8/upstream/3.1.8/src/ia32/full-codegen-ia32.cc +4278 -0
- data/ext/v8/upstream/3.1.8/src/ia32/ic-ia32.cc +1786 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/jump-target-ia32.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-codegen-ia32.cc +3880 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-codegen-ia32.h +309 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-gap-resolver-ia32.cc +460 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-gap-resolver-ia32.h +110 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-ia32.cc +2095 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-ia32.h +2127 -0
- data/ext/v8/upstream/3.1.8/src/ia32/macro-assembler-ia32.cc +2031 -0
- data/ext/v8/upstream/3.1.8/src/ia32/macro-assembler-ia32.h +798 -0
- data/ext/v8/upstream/3.1.8/src/ia32/regexp-macro-assembler-ia32.cc +1253 -0
- data/ext/v8/upstream/3.1.8/src/ia32/regexp-macro-assembler-ia32.h +215 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/register-allocator-ia32-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/register-allocator-ia32.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/register-allocator-ia32.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/simulator-ia32.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/ia32/simulator-ia32.h +72 -0
- data/ext/v8/upstream/3.1.8/src/ia32/stub-cache-ia32.cc +3732 -0
- data/ext/v8/upstream/3.1.8/src/ia32/virtual-frame-ia32.cc +1360 -0
- data/ext/v8/upstream/3.1.8/src/ia32/virtual-frame-ia32.h +646 -0
- data/ext/v8/upstream/3.1.8/src/ic-inl.h +129 -0
- data/ext/v8/upstream/3.1.8/src/ic.cc +2333 -0
- data/ext/v8/upstream/3.1.8/src/ic.h +639 -0
- data/ext/v8/upstream/3.1.8/src/inspector.cc +63 -0
- data/ext/v8/upstream/3.1.8/src/inspector.h +62 -0
- data/ext/v8/upstream/3.1.8/src/interpreter-irregexp.cc +655 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/interpreter-irregexp.h +0 -0
- data/ext/v8/upstream/3.1.8/src/json.js +342 -0
- data/ext/v8/upstream/3.1.8/src/jsregexp.cc +5340 -0
- data/ext/v8/upstream/3.1.8/src/jsregexp.h +1484 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target-heavy-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-heavy.cc +430 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-heavy.h +244 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target-light-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-light.cc +111 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-light.h +193 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target.h +0 -0
- data/ext/v8/upstream/3.1.8/src/list-inl.h +206 -0
- data/ext/v8/upstream/3.1.8/src/list.h +164 -0
- data/ext/v8/upstream/3.1.8/src/lithium-allocator-inl.h +140 -0
- data/ext/v8/upstream/3.1.8/src/lithium-allocator.cc +2093 -0
- data/ext/v8/upstream/3.1.8/src/lithium-allocator.h +644 -0
- data/ext/v8/upstream/3.1.8/src/lithium.cc +168 -0
- data/ext/v8/upstream/3.1.8/src/lithium.h +592 -0
- data/ext/v8/upstream/3.1.8/src/liveedit-debugger.js +1082 -0
- data/ext/v8/upstream/3.1.8/src/liveedit.cc +1650 -0
- data/ext/v8/upstream/3.1.8/src/liveedit.h +174 -0
- data/ext/v8/upstream/3.1.8/src/liveobjectlist-inl.h +126 -0
- data/ext/v8/upstream/3.1.8/src/liveobjectlist.cc +2527 -0
- data/ext/v8/upstream/3.1.8/src/liveobjectlist.h +322 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/log-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/log-utils.cc +336 -0
- data/ext/v8/upstream/3.1.8/src/log-utils.h +232 -0
- data/ext/v8/upstream/3.1.8/src/log.cc +1608 -0
- data/ext/v8/upstream/3.1.8/src/log.h +379 -0
- data/ext/v8/upstream/3.1.8/src/macro-assembler.h +120 -0
- data/ext/v8/upstream/3.1.8/src/macros.py +178 -0
- data/ext/v8/upstream/3.1.8/src/mark-compact.cc +2957 -0
- data/ext/v8/upstream/3.1.8/src/mark-compact.h +433 -0
- data/ext/v8/upstream/3.1.8/src/math.js +264 -0
- data/ext/v8/upstream/3.1.8/src/memory.h +82 -0
- data/ext/v8/upstream/3.1.8/src/messages.cc +164 -0
- data/ext/v8/upstream/3.1.8/src/messages.h +114 -0
- data/ext/v8/upstream/3.1.8/src/messages.js +1071 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/assembler-mips-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/assembler-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/assembler-mips.h +667 -0
- data/ext/v8/upstream/3.1.8/src/mips/builtins-mips.cc +205 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/codegen-mips-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/codegen-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/codegen-mips.h +431 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/constants-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/constants-mips.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/cpu-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/debug-mips.cc +127 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/disasm-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/fast-codegen-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/frames-mips.cc +96 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/frames-mips.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/full-codegen-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/ic-mips.cc +208 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/jump-target-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/macro-assembler-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/macro-assembler-mips.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/register-allocator-mips-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/register-allocator-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/register-allocator-mips.h +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/simulator-mips.cc +1650 -0
- data/ext/v8/upstream/3.1.8/src/mips/simulator-mips.h +311 -0
- data/ext/v8/upstream/3.1.8/src/mips/stub-cache-mips.cc +418 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/virtual-frame-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/virtual-frame-mips.h +0 -0
- data/ext/v8/upstream/3.1.8/src/mirror-debugger.js +2380 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mksnapshot.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/natives.h +0 -0
- data/ext/v8/upstream/3.1.8/src/objects-debug.cc +722 -0
- data/ext/v8/upstream/3.1.8/src/objects-inl.h +3946 -0
- data/ext/v8/upstream/3.1.8/src/objects-printer.cc +801 -0
- data/ext/v8/upstream/3.1.8/src/objects-visiting.cc +142 -0
- data/ext/v8/upstream/3.1.8/src/objects-visiting.h +401 -0
- data/ext/v8/upstream/3.1.8/src/objects.cc +10044 -0
- data/ext/v8/upstream/3.1.8/src/objects.h +6571 -0
- data/ext/v8/upstream/3.1.8/src/parser.cc +5165 -0
- data/ext/v8/upstream/3.1.8/src/parser.h +802 -0
- data/ext/v8/upstream/3.1.8/src/platform-cygwin.cc +745 -0
- data/ext/v8/upstream/3.1.8/src/platform-freebsd.cc +702 -0
- data/ext/v8/upstream/3.1.8/src/platform-linux.cc +981 -0
- data/ext/v8/upstream/3.1.8/src/platform-macos.cc +732 -0
- data/ext/v8/upstream/3.1.8/src/platform-nullos.cc +498 -0
- data/ext/v8/upstream/3.1.8/src/platform-openbsd.cc +657 -0
- data/ext/v8/upstream/3.1.8/src/platform-posix.cc +399 -0
- data/ext/v8/upstream/3.1.8/src/platform-solaris.cc +714 -0
- data/ext/v8/upstream/3.1.8/src/platform-win32.cc +1974 -0
- data/ext/v8/upstream/3.1.8/src/platform.h +636 -0
- data/ext/v8/upstream/3.1.8/src/preparse-data.cc +183 -0
- data/ext/v8/upstream/3.1.8/src/preparse-data.h +249 -0
- data/ext/v8/upstream/3.1.8/src/preparser-api.cc +213 -0
- data/ext/v8/upstream/3.1.8/src/preparser.cc +1205 -0
- data/ext/v8/upstream/3.1.8/src/preparser.h +278 -0
- data/ext/v8/upstream/3.1.8/src/prettyprinter.cc +1539 -0
- data/ext/v8/upstream/3.1.8/src/prettyprinter.h +223 -0
- data/ext/v8/upstream/3.1.8/src/profile-generator-inl.h +128 -0
- data/ext/v8/upstream/3.1.8/src/profile-generator.cc +2899 -0
- data/ext/v8/upstream/3.1.8/src/profile-generator.h +1151 -0
- data/ext/v8/upstream/3.1.8/src/property.cc +96 -0
- data/ext/v8/upstream/3.1.8/src/property.h +337 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/regexp-macro-assembler-irregexp-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-irregexp.cc +470 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-irregexp.h +142 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-tracer.cc +373 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-tracer.h +104 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler.cc +257 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler.h +231 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/regexp-stack.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/regexp-stack.h +0 -0
- data/ext/v8/upstream/3.1.8/src/regexp.js +483 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/register-allocator-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/register-allocator.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/register-allocator.h +0 -0
- data/ext/v8/upstream/3.1.8/src/rewriter.cc +1023 -0
- data/ext/v8/upstream/3.1.8/src/rewriter.h +59 -0
- data/ext/v8/upstream/3.1.8/src/runtime-profiler.cc +443 -0
- data/ext/v8/upstream/3.1.8/src/runtime-profiler.h +77 -0
- data/ext/v8/upstream/3.1.8/src/runtime.cc +11592 -0
- data/ext/v8/upstream/3.1.8/src/runtime.h +582 -0
- data/ext/v8/upstream/3.1.8/src/runtime.js +643 -0
- data/ext/v8/upstream/3.1.8/src/safepoint-table.cc +253 -0
- data/ext/v8/upstream/3.1.8/src/safepoint-table.h +263 -0
- data/ext/v8/upstream/3.1.8/src/scanner-base.cc +971 -0
- data/ext/v8/upstream/3.1.8/src/scanner-base.h +653 -0
- data/ext/v8/upstream/3.1.8/src/scanner.cc +586 -0
- data/ext/v8/upstream/3.1.8/src/scanner.h +194 -0
- data/ext/v8/upstream/3.1.8/src/scopeinfo.cc +636 -0
- data/ext/v8/upstream/3.1.8/src/scopeinfo.h +238 -0
- data/ext/v8/upstream/3.1.8/src/scopes.cc +1063 -0
- data/ext/v8/upstream/3.1.8/src/scopes.h +494 -0
- data/ext/v8/upstream/3.1.8/src/serialize.cc +1535 -0
- data/ext/v8/upstream/3.1.8/src/serialize.h +584 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/shell.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/simulator.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/smart-pointer.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/snapshot-common.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/snapshot-empty.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/snapshot.h +0 -0
- data/ext/v8/upstream/3.1.8/src/spaces-inl.h +524 -0
- data/ext/v8/upstream/3.1.8/src/spaces.cc +3254 -0
- data/ext/v8/upstream/3.1.8/src/spaces.h +2362 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/splay-tree-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/splay-tree.h +0 -0
- data/ext/v8/upstream/3.1.8/src/string-search.cc +40 -0
- data/ext/v8/upstream/3.1.8/src/string-search.h +567 -0
- data/ext/v8/upstream/3.1.8/src/string-stream.cc +584 -0
- data/ext/v8/upstream/3.1.8/src/string-stream.h +191 -0
- data/ext/v8/upstream/3.1.8/src/string.js +915 -0
- data/ext/v8/upstream/3.1.8/src/strtod.cc +440 -0
- data/ext/v8/upstream/3.1.8/src/strtod.h +40 -0
- data/ext/v8/upstream/3.1.8/src/stub-cache.cc +1878 -0
- data/ext/v8/upstream/3.1.8/src/stub-cache.h +849 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/third_party/valgrind/valgrind.h +0 -0
- data/ext/v8/upstream/3.1.8/src/token.cc +63 -0
- data/ext/v8/upstream/3.1.8/src/token.h +288 -0
- data/ext/v8/upstream/3.1.8/src/top.cc +1152 -0
- data/ext/v8/upstream/3.1.8/src/top.h +608 -0
- data/ext/v8/upstream/3.1.8/src/type-info.cc +406 -0
- data/ext/v8/upstream/3.1.8/src/type-info.h +283 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/unbound-queue-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/unbound-queue.h +0 -0
- data/ext/v8/upstream/3.1.8/src/unicode-inl.h +238 -0
- data/ext/v8/upstream/3.1.8/src/unicode.cc +1624 -0
- data/ext/v8/upstream/3.1.8/src/unicode.h +280 -0
- data/ext/v8/upstream/3.1.8/src/uri.js +402 -0
- data/ext/v8/upstream/3.1.8/src/utils.cc +371 -0
- data/ext/v8/upstream/3.1.8/src/utils.h +793 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/v8-counters.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/v8-counters.h +290 -0
- data/ext/v8/upstream/3.1.8/src/v8.cc +270 -0
- data/ext/v8/upstream/3.1.8/src/v8.h +127 -0
- data/ext/v8/upstream/3.1.8/src/v8checks.h +64 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/v8dll-main.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/v8globals.h +480 -0
- data/ext/v8/upstream/3.1.8/src/v8natives.js +1252 -0
- data/ext/v8/upstream/3.1.8/src/v8preparserdll-main.cc +39 -0
- data/ext/v8/upstream/3.1.8/src/v8threads.cc +440 -0
- data/ext/v8/upstream/3.1.8/src/v8threads.h +157 -0
- data/ext/v8/upstream/3.1.8/src/v8utils.h +354 -0
- data/ext/v8/upstream/3.1.8/src/variables.cc +132 -0
- data/ext/v8/upstream/3.1.8/src/variables.h +212 -0
- data/ext/v8/upstream/3.1.8/src/version.cc +95 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/version.h +0 -0
- data/ext/v8/upstream/3.1.8/src/virtual-frame-heavy-inl.h +190 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-heavy.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-light-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-light.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/virtual-frame.h +59 -0
- data/ext/v8/upstream/3.1.8/src/vm-state-inl.h +134 -0
- data/ext/v8/upstream/3.1.8/src/vm-state.h +68 -0
- data/ext/v8/upstream/3.1.8/src/win32-headers.h +95 -0
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64-inl.h +455 -0
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64.cc +3162 -0
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64.h +1584 -0
- data/ext/v8/upstream/3.1.8/src/x64/builtins-x64.cc +1492 -0
- data/ext/v8/upstream/3.1.8/src/x64/code-stubs-x64.cc +5150 -0
- data/ext/v8/upstream/3.1.8/src/x64/code-stubs-x64.h +519 -0
- data/ext/v8/upstream/3.1.8/src/x64/codegen-x64-inl.h +46 -0
- data/ext/v8/upstream/3.1.8/src/x64/codegen-x64.cc +8835 -0
- data/ext/v8/upstream/3.1.8/src/x64/codegen-x64.h +750 -0
- data/ext/v8/upstream/3.1.8/src/x64/cpu-x64.cc +86 -0
- data/ext/v8/upstream/3.1.8/src/x64/debug-x64.cc +316 -0
- data/ext/v8/upstream/3.1.8/src/x64/deoptimizer-x64.cc +781 -0
- data/ext/v8/upstream/3.1.8/src/x64/disasm-x64.cc +1737 -0
- data/ext/v8/upstream/3.1.8/src/x64/frames-x64.cc +45 -0
- data/ext/v8/upstream/3.1.8/src/x64/frames-x64.h +130 -0
- data/ext/v8/upstream/3.1.8/src/x64/full-codegen-x64.cc +3984 -0
- data/ext/v8/upstream/3.1.8/src/x64/ic-x64.cc +1761 -0
- data/ext/v8/upstream/3.1.8/src/x64/jump-target-x64.cc +437 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-codegen-x64.cc +3639 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-codegen-x64.h +305 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-gap-resolver-x64.cc +320 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-gap-resolver-x64.h +74 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-x64.cc +2044 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-x64.h +2052 -0
- data/ext/v8/upstream/3.1.8/src/x64/macro-assembler-x64.cc +2660 -0
- data/ext/v8/upstream/3.1.8/src/x64/macro-assembler-x64.h +1852 -0
- data/ext/v8/upstream/3.1.8/src/x64/regexp-macro-assembler-x64.cc +1382 -0
- data/ext/v8/upstream/3.1.8/src/x64/regexp-macro-assembler-x64.h +278 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/register-allocator-x64-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/register-allocator-x64.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/register-allocator-x64.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/simulator-x64.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/x64/simulator-x64.h +71 -0
- data/ext/v8/upstream/3.1.8/src/x64/stub-cache-x64.cc +3509 -0
- data/ext/v8/upstream/3.1.8/src/x64/virtual-frame-x64.cc +1292 -0
- data/ext/v8/upstream/3.1.8/src/x64/virtual-frame-x64.h +593 -0
- data/ext/v8/upstream/3.1.8/src/zone-inl.h +83 -0
- data/ext/v8/upstream/3.1.8/src/zone.cc +195 -0
- data/ext/v8/upstream/3.1.8/src/zone.h +233 -0
- data/ext/v8/upstream/3.1.8/tools/codemap.js +265 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/consarray.js +0 -0
- data/ext/v8/upstream/3.1.8/tools/csvparser.js +78 -0
- data/ext/v8/upstream/3.1.8/tools/disasm.py +92 -0
- data/ext/v8/upstream/3.1.8/tools/gc-nvp-trace-processor.py +328 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/generate-ten-powers.scm +0 -0
- data/ext/v8/upstream/3.1.8/tools/grokdump.py +840 -0
- data/ext/v8/upstream/3.1.8/tools/gyp/v8.gyp +869 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/js2c.py +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/jsmin.py +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/linux-tick-processor +0 -0
- data/ext/v8/upstream/3.1.8/tools/ll_prof.py +919 -0
- data/ext/v8/upstream/3.1.8/tools/logreader.js +185 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/mac-nm +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/mac-tick-processor +0 -0
- data/ext/v8/upstream/3.1.8/tools/oom_dump/README +31 -0
- data/ext/v8/upstream/3.1.8/tools/oom_dump/SConstruct +42 -0
- data/ext/v8/upstream/3.1.8/tools/oom_dump/oom_dump.cc +288 -0
- data/ext/v8/upstream/3.1.8/tools/presubmit.py +305 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/process-heap-prof.py +0 -0
- data/ext/v8/upstream/3.1.8/tools/profile.js +751 -0
- data/ext/v8/upstream/3.1.8/tools/profile_view.js +219 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/run-valgrind.py +0 -0
- data/ext/v8/upstream/3.1.8/tools/splaytree.js +316 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/stats-viewer.py +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/tickprocessor-driver.js +0 -0
- data/ext/v8/upstream/3.1.8/tools/tickprocessor.js +863 -0
- data/ext/v8/upstream/3.1.8/tools/utils.py +96 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/README.txt +70 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/arm.vsprops +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/common.vsprops +34 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8_arm.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8js2c.cmd +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/debug.vsprops +17 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/ia32.vsprops +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/js2c.cmd +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/release.vsprops +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8.sln +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_arm.sln +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_arm.vcproj +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base.vcproj +1296 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base_arm.vcproj +1234 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base_x64.vcproj +1296 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_cctest.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_cctest_arm.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_cctest_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_mksnapshot.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_mksnapshot_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_process_sample.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_process_sample_arm.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_process_sample_x64.vcproj +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_shell_sample.vcproj +147 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_shell_sample_arm.vcproj +147 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_shell_sample_x64.vcproj +163 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot_cc.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot_cc_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_x64.sln +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/x64.vsprops +0 -0
- data/ext/v8/upstream/3.1.8/tools/windows-tick-processor.bat +30 -0
- data/ext/v8/upstream/Makefile +2 -1
- data/ext/v8/v8_template.cpp +2 -2
- data/lib/v8/version.rb +1 -1
- data/spec/redjs/jsapi_spec.rb +2 -2
- metadata +552 -490
- data/ext/v8/upstream/2.3.3/.gitignore +0 -26
- data/ext/v8/upstream/2.3.3/AUTHORS +0 -31
- data/ext/v8/upstream/2.3.3/ChangeLog +0 -1916
- data/ext/v8/upstream/2.3.3/LICENSE +0 -55
- data/ext/v8/upstream/2.3.3/SConstruct +0 -1154
- data/ext/v8/upstream/2.3.3/include/v8-debug.h +0 -381
- data/ext/v8/upstream/2.3.3/include/v8-profiler.h +0 -353
- data/ext/v8/upstream/2.3.3/include/v8.h +0 -3616
- data/ext/v8/upstream/2.3.3/src/SConscript +0 -330
- data/ext/v8/upstream/2.3.3/src/accessors.cc +0 -661
- data/ext/v8/upstream/2.3.3/src/accessors.h +0 -114
- data/ext/v8/upstream/2.3.3/src/allocation.cc +0 -198
- data/ext/v8/upstream/2.3.3/src/allocation.h +0 -169
- data/ext/v8/upstream/2.3.3/src/api.cc +0 -4795
- data/ext/v8/upstream/2.3.3/src/api.h +0 -485
- data/ext/v8/upstream/2.3.3/src/apiutils.h +0 -69
- data/ext/v8/upstream/2.3.3/src/arguments.h +0 -96
- data/ext/v8/upstream/2.3.3/src/arm/assembler-arm-inl.h +0 -305
- data/ext/v8/upstream/2.3.3/src/arm/assembler-arm.cc +0 -2580
- data/ext/v8/upstream/2.3.3/src/arm/assembler-arm.h +0 -1275
- data/ext/v8/upstream/2.3.3/src/arm/builtins-arm.cc +0 -1320
- data/ext/v8/upstream/2.3.3/src/arm/codegen-arm-inl.h +0 -48
- data/ext/v8/upstream/2.3.3/src/arm/codegen-arm.cc +0 -11398
- data/ext/v8/upstream/2.3.3/src/arm/codegen-arm.h +0 -1102
- data/ext/v8/upstream/2.3.3/src/arm/constants-arm.cc +0 -154
- data/ext/v8/upstream/2.3.3/src/arm/constants-arm.h +0 -388
- data/ext/v8/upstream/2.3.3/src/arm/cpu-arm.cc +0 -142
- data/ext/v8/upstream/2.3.3/src/arm/debug-arm.cc +0 -309
- data/ext/v8/upstream/2.3.3/src/arm/disasm-arm.cc +0 -1459
- data/ext/v8/upstream/2.3.3/src/arm/fast-codegen-arm.cc +0 -241
- data/ext/v8/upstream/2.3.3/src/arm/frames-arm.cc +0 -123
- data/ext/v8/upstream/2.3.3/src/arm/frames-arm.h +0 -162
- data/ext/v8/upstream/2.3.3/src/arm/full-codegen-arm.cc +0 -3178
- data/ext/v8/upstream/2.3.3/src/arm/ic-arm.cc +0 -2258
- data/ext/v8/upstream/2.3.3/src/arm/jump-target-arm.cc +0 -164
- data/ext/v8/upstream/2.3.3/src/arm/macro-assembler-arm.cc +0 -1892
- data/ext/v8/upstream/2.3.3/src/arm/macro-assembler-arm.h +0 -727
- data/ext/v8/upstream/2.3.3/src/arm/regexp-macro-assembler-arm.cc +0 -1261
- data/ext/v8/upstream/2.3.3/src/arm/regexp-macro-assembler-arm.h +0 -266
- data/ext/v8/upstream/2.3.3/src/arm/simulator-arm.cc +0 -2822
- data/ext/v8/upstream/2.3.3/src/arm/simulator-arm.h +0 -361
- data/ext/v8/upstream/2.3.3/src/arm/stub-cache-arm.cc +0 -2387
- data/ext/v8/upstream/2.3.3/src/arm/virtual-frame-arm.cc +0 -834
- data/ext/v8/upstream/2.3.3/src/arm/virtual-frame-arm.h +0 -519
- data/ext/v8/upstream/2.3.3/src/array.js +0 -1127
- data/ext/v8/upstream/2.3.3/src/assembler.cc +0 -801
- data/ext/v8/upstream/2.3.3/src/assembler.h +0 -573
- data/ext/v8/upstream/2.3.3/src/ast-inl.h +0 -81
- data/ext/v8/upstream/2.3.3/src/ast.cc +0 -1152
- data/ext/v8/upstream/2.3.3/src/ast.h +0 -2106
- data/ext/v8/upstream/2.3.3/src/bootstrapper.cc +0 -1819
- data/ext/v8/upstream/2.3.3/src/builtins.cc +0 -1529
- data/ext/v8/upstream/2.3.3/src/builtins.h +0 -263
- data/ext/v8/upstream/2.3.3/src/bytecodes-irregexp.h +0 -104
- data/ext/v8/upstream/2.3.3/src/cached-powers.h +0 -119
- data/ext/v8/upstream/2.3.3/src/char-predicates-inl.h +0 -86
- data/ext/v8/upstream/2.3.3/src/checks.cc +0 -100
- data/ext/v8/upstream/2.3.3/src/checks.h +0 -310
- data/ext/v8/upstream/2.3.3/src/circular-queue.cc +0 -121
- data/ext/v8/upstream/2.3.3/src/code-stubs.cc +0 -177
- data/ext/v8/upstream/2.3.3/src/code-stubs.h +0 -177
- data/ext/v8/upstream/2.3.3/src/codegen-inl.h +0 -60
- data/ext/v8/upstream/2.3.3/src/codegen.cc +0 -516
- data/ext/v8/upstream/2.3.3/src/codegen.h +0 -897
- data/ext/v8/upstream/2.3.3/src/compilation-cache.cc +0 -562
- data/ext/v8/upstream/2.3.3/src/compilation-cache.h +0 -102
- data/ext/v8/upstream/2.3.3/src/compiler.cc +0 -654
- data/ext/v8/upstream/2.3.3/src/compiler.h +0 -299
- data/ext/v8/upstream/2.3.3/src/contexts.cc +0 -256
- data/ext/v8/upstream/2.3.3/src/contexts.h +0 -342
- data/ext/v8/upstream/2.3.3/src/conversions.cc +0 -1119
- data/ext/v8/upstream/2.3.3/src/conversions.h +0 -123
- data/ext/v8/upstream/2.3.3/src/counters.h +0 -239
- data/ext/v8/upstream/2.3.3/src/cpu-profiler-inl.h +0 -100
- data/ext/v8/upstream/2.3.3/src/cpu-profiler.cc +0 -538
- data/ext/v8/upstream/2.3.3/src/cpu-profiler.h +0 -285
- data/ext/v8/upstream/2.3.3/src/d8-debug.cc +0 -356
- data/ext/v8/upstream/2.3.3/src/d8-debug.h +0 -155
- data/ext/v8/upstream/2.3.3/src/d8.cc +0 -783
- data/ext/v8/upstream/2.3.3/src/d8.h +0 -227
- data/ext/v8/upstream/2.3.3/src/d8.js +0 -1683
- data/ext/v8/upstream/2.3.3/src/data-flow.cc +0 -758
- data/ext/v8/upstream/2.3.3/src/data-flow.h +0 -278
- data/ext/v8/upstream/2.3.3/src/date.js +0 -1059
- data/ext/v8/upstream/2.3.3/src/dateparser-inl.h +0 -123
- data/ext/v8/upstream/2.3.3/src/dateparser.h +0 -244
- data/ext/v8/upstream/2.3.3/src/debug-agent.cc +0 -427
- data/ext/v8/upstream/2.3.3/src/debug-agent.h +0 -129
- data/ext/v8/upstream/2.3.3/src/debug-debugger.js +0 -2227
- data/ext/v8/upstream/2.3.3/src/debug.cc +0 -3005
- data/ext/v8/upstream/2.3.3/src/debug.h +0 -993
- data/ext/v8/upstream/2.3.3/src/disassembler.cc +0 -312
- data/ext/v8/upstream/2.3.3/src/double.h +0 -169
- data/ext/v8/upstream/2.3.3/src/dtoa-config.c +0 -92
- data/ext/v8/upstream/2.3.3/src/dtoa.cc +0 -77
- data/ext/v8/upstream/2.3.3/src/dtoa.h +0 -81
- data/ext/v8/upstream/2.3.3/src/execution.cc +0 -809
- data/ext/v8/upstream/2.3.3/src/execution.h +0 -336
- data/ext/v8/upstream/2.3.3/src/factory.cc +0 -1003
- data/ext/v8/upstream/2.3.3/src/factory.h +0 -410
- data/ext/v8/upstream/2.3.3/src/fast-codegen.cc +0 -746
- data/ext/v8/upstream/2.3.3/src/fast-codegen.h +0 -161
- data/ext/v8/upstream/2.3.3/src/fast-dtoa.cc +0 -505
- data/ext/v8/upstream/2.3.3/src/fast-dtoa.h +0 -58
- data/ext/v8/upstream/2.3.3/src/flag-definitions.h +0 -455
- data/ext/v8/upstream/2.3.3/src/flags.cc +0 -551
- data/ext/v8/upstream/2.3.3/src/flags.h +0 -81
- data/ext/v8/upstream/2.3.3/src/flow-graph.cc +0 -763
- data/ext/v8/upstream/2.3.3/src/flow-graph.h +0 -180
- data/ext/v8/upstream/2.3.3/src/frame-element.h +0 -273
- data/ext/v8/upstream/2.3.3/src/frames-inl.h +0 -217
- data/ext/v8/upstream/2.3.3/src/frames.cc +0 -826
- data/ext/v8/upstream/2.3.3/src/frames.h +0 -682
- data/ext/v8/upstream/2.3.3/src/full-codegen.cc +0 -1443
- data/ext/v8/upstream/2.3.3/src/full-codegen.h +0 -548
- data/ext/v8/upstream/2.3.3/src/func-name-inferrer.cc +0 -76
- data/ext/v8/upstream/2.3.3/src/func-name-inferrer.h +0 -135
- data/ext/v8/upstream/2.3.3/src/global-handles.cc +0 -520
- data/ext/v8/upstream/2.3.3/src/global-handles.h +0 -180
- data/ext/v8/upstream/2.3.3/src/globals.h +0 -669
- data/ext/v8/upstream/2.3.3/src/handles-inl.h +0 -76
- data/ext/v8/upstream/2.3.3/src/handles.cc +0 -825
- data/ext/v8/upstream/2.3.3/src/handles.h +0 -393
- data/ext/v8/upstream/2.3.3/src/hashmap.cc +0 -226
- data/ext/v8/upstream/2.3.3/src/hashmap.h +0 -120
- data/ext/v8/upstream/2.3.3/src/heap-inl.h +0 -493
- data/ext/v8/upstream/2.3.3/src/heap-profiler.cc +0 -779
- data/ext/v8/upstream/2.3.3/src/heap-profiler.h +0 -323
- data/ext/v8/upstream/2.3.3/src/heap.cc +0 -4994
- data/ext/v8/upstream/2.3.3/src/heap.h +0 -1984
- data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32-inl.h +0 -360
- data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32.cc +0 -2600
- data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32.h +0 -969
- data/ext/v8/upstream/2.3.3/src/ia32/builtins-ia32.cc +0 -1261
- data/ext/v8/upstream/2.3.3/src/ia32/codegen-ia32.cc +0 -13968
- data/ext/v8/upstream/2.3.3/src/ia32/codegen-ia32.h +0 -1097
- data/ext/v8/upstream/2.3.3/src/ia32/cpu-ia32.cc +0 -83
- data/ext/v8/upstream/2.3.3/src/ia32/debug-ia32.cc +0 -309
- data/ext/v8/upstream/2.3.3/src/ia32/disasm-ia32.cc +0 -1471
- data/ext/v8/upstream/2.3.3/src/ia32/fast-codegen-ia32.cc +0 -954
- data/ext/v8/upstream/2.3.3/src/ia32/fast-codegen-ia32.h +0 -155
- data/ext/v8/upstream/2.3.3/src/ia32/frames-ia32.cc +0 -115
- data/ext/v8/upstream/2.3.3/src/ia32/frames-ia32.h +0 -135
- data/ext/v8/upstream/2.3.3/src/ia32/full-codegen-ia32.cc +0 -3281
- data/ext/v8/upstream/2.3.3/src/ia32/ic-ia32.cc +0 -1966
- data/ext/v8/upstream/2.3.3/src/ia32/macro-assembler-ia32.cc +0 -1610
- data/ext/v8/upstream/2.3.3/src/ia32/macro-assembler-ia32.h +0 -610
- data/ext/v8/upstream/2.3.3/src/ia32/regexp-macro-assembler-ia32.cc +0 -1247
- data/ext/v8/upstream/2.3.3/src/ia32/regexp-macro-assembler-ia32.h +0 -214
- data/ext/v8/upstream/2.3.3/src/ia32/simulator-ia32.h +0 -62
- data/ext/v8/upstream/2.3.3/src/ia32/stub-cache-ia32.cc +0 -2750
- data/ext/v8/upstream/2.3.3/src/ia32/virtual-frame-ia32.cc +0 -1334
- data/ext/v8/upstream/2.3.3/src/ia32/virtual-frame-ia32.h +0 -627
- data/ext/v8/upstream/2.3.3/src/ic-inl.h +0 -120
- data/ext/v8/upstream/2.3.3/src/ic.cc +0 -1827
- data/ext/v8/upstream/2.3.3/src/ic.h +0 -515
- data/ext/v8/upstream/2.3.3/src/interpreter-irregexp.cc +0 -646
- data/ext/v8/upstream/2.3.3/src/json.js +0 -268
- data/ext/v8/upstream/2.3.3/src/jsregexp.cc +0 -5283
- data/ext/v8/upstream/2.3.3/src/jsregexp.h +0 -1463
- data/ext/v8/upstream/2.3.3/src/jump-target-heavy.cc +0 -429
- data/ext/v8/upstream/2.3.3/src/jump-target-heavy.h +0 -244
- data/ext/v8/upstream/2.3.3/src/jump-target-light.cc +0 -110
- data/ext/v8/upstream/2.3.3/src/jump-target-light.h +0 -192
- data/ext/v8/upstream/2.3.3/src/list-inl.h +0 -166
- data/ext/v8/upstream/2.3.3/src/list.h +0 -159
- data/ext/v8/upstream/2.3.3/src/liveedit-debugger.js +0 -1057
- data/ext/v8/upstream/2.3.3/src/liveedit.cc +0 -1480
- data/ext/v8/upstream/2.3.3/src/liveedit.h +0 -170
- data/ext/v8/upstream/2.3.3/src/log-utils.cc +0 -497
- data/ext/v8/upstream/2.3.3/src/log-utils.h +0 -289
- data/ext/v8/upstream/2.3.3/src/log.cc +0 -1561
- data/ext/v8/upstream/2.3.3/src/log.h +0 -384
- data/ext/v8/upstream/2.3.3/src/macro-assembler.h +0 -86
- data/ext/v8/upstream/2.3.3/src/macros.py +0 -177
- data/ext/v8/upstream/2.3.3/src/mark-compact.cc +0 -2330
- data/ext/v8/upstream/2.3.3/src/mark-compact.h +0 -451
- data/ext/v8/upstream/2.3.3/src/math.js +0 -264
- data/ext/v8/upstream/2.3.3/src/memory.h +0 -74
- data/ext/v8/upstream/2.3.3/src/messages.cc +0 -183
- data/ext/v8/upstream/2.3.3/src/messages.h +0 -113
- data/ext/v8/upstream/2.3.3/src/messages.js +0 -982
- data/ext/v8/upstream/2.3.3/src/mips/assembler-mips.h +0 -668
- data/ext/v8/upstream/2.3.3/src/mips/builtins-mips.cc +0 -205
- data/ext/v8/upstream/2.3.3/src/mips/codegen-mips.h +0 -434
- data/ext/v8/upstream/2.3.3/src/mips/debug-mips.cc +0 -131
- data/ext/v8/upstream/2.3.3/src/mips/frames-mips.cc +0 -102
- data/ext/v8/upstream/2.3.3/src/mips/ic-mips.cc +0 -220
- data/ext/v8/upstream/2.3.3/src/mips/simulator-mips.cc +0 -1651
- data/ext/v8/upstream/2.3.3/src/mips/simulator-mips.h +0 -311
- data/ext/v8/upstream/2.3.3/src/mips/stub-cache-mips.cc +0 -403
- data/ext/v8/upstream/2.3.3/src/mirror-debugger.js +0 -2380
- data/ext/v8/upstream/2.3.3/src/objects-debug.cc +0 -1366
- data/ext/v8/upstream/2.3.3/src/objects-inl.h +0 -3333
- data/ext/v8/upstream/2.3.3/src/objects.cc +0 -8820
- data/ext/v8/upstream/2.3.3/src/objects.h +0 -5373
- data/ext/v8/upstream/2.3.3/src/oprofile-agent.cc +0 -108
- data/ext/v8/upstream/2.3.3/src/oprofile-agent.h +0 -77
- data/ext/v8/upstream/2.3.3/src/parser.cc +0 -5207
- data/ext/v8/upstream/2.3.3/src/parser.h +0 -197
- data/ext/v8/upstream/2.3.3/src/platform-freebsd.cc +0 -667
- data/ext/v8/upstream/2.3.3/src/platform-linux.cc +0 -862
- data/ext/v8/upstream/2.3.3/src/platform-macos.cc +0 -665
- data/ext/v8/upstream/2.3.3/src/platform-nullos.cc +0 -454
- data/ext/v8/upstream/2.3.3/src/platform-openbsd.cc +0 -622
- data/ext/v8/upstream/2.3.3/src/platform-posix.cc +0 -362
- data/ext/v8/upstream/2.3.3/src/platform-solaris.cc +0 -653
- data/ext/v8/upstream/2.3.3/src/platform-win32.cc +0 -1911
- data/ext/v8/upstream/2.3.3/src/platform.h +0 -577
- data/ext/v8/upstream/2.3.3/src/powers-ten.h +0 -2461
- data/ext/v8/upstream/2.3.3/src/prettyprinter.cc +0 -1531
- data/ext/v8/upstream/2.3.3/src/prettyprinter.h +0 -221
- data/ext/v8/upstream/2.3.3/src/profile-generator-inl.h +0 -148
- data/ext/v8/upstream/2.3.3/src/profile-generator.cc +0 -1830
- data/ext/v8/upstream/2.3.3/src/profile-generator.h +0 -853
- data/ext/v8/upstream/2.3.3/src/property.cc +0 -96
- data/ext/v8/upstream/2.3.3/src/property.h +0 -315
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-irregexp.cc +0 -464
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-irregexp.h +0 -141
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-tracer.cc +0 -356
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-tracer.h +0 -103
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler.cc +0 -261
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler.h +0 -228
- data/ext/v8/upstream/2.3.3/src/regexp.js +0 -549
- data/ext/v8/upstream/2.3.3/src/rewriter.cc +0 -1038
- data/ext/v8/upstream/2.3.3/src/rewriter.h +0 -54
- data/ext/v8/upstream/2.3.3/src/runtime.cc +0 -10599
- data/ext/v8/upstream/2.3.3/src/runtime.h +0 -459
- data/ext/v8/upstream/2.3.3/src/runtime.js +0 -629
- data/ext/v8/upstream/2.3.3/src/scanner.cc +0 -1346
- data/ext/v8/upstream/2.3.3/src/scanner.h +0 -503
- data/ext/v8/upstream/2.3.3/src/scopeinfo.cc +0 -637
- data/ext/v8/upstream/2.3.3/src/scopeinfo.h +0 -233
- data/ext/v8/upstream/2.3.3/src/scopes.cc +0 -962
- data/ext/v8/upstream/2.3.3/src/scopes.h +0 -400
- data/ext/v8/upstream/2.3.3/src/serialize.cc +0 -1461
- data/ext/v8/upstream/2.3.3/src/serialize.h +0 -581
- data/ext/v8/upstream/2.3.3/src/spaces-inl.h +0 -483
- data/ext/v8/upstream/2.3.3/src/spaces.cc +0 -2901
- data/ext/v8/upstream/2.3.3/src/spaces.h +0 -2197
- data/ext/v8/upstream/2.3.3/src/string-stream.cc +0 -584
- data/ext/v8/upstream/2.3.3/src/string-stream.h +0 -189
- data/ext/v8/upstream/2.3.3/src/string.js +0 -1006
- data/ext/v8/upstream/2.3.3/src/stub-cache.cc +0 -1379
- data/ext/v8/upstream/2.3.3/src/stub-cache.h +0 -756
- data/ext/v8/upstream/2.3.3/src/third_party/dtoa/COPYING +0 -15
- data/ext/v8/upstream/2.3.3/src/third_party/dtoa/dtoa.c +0 -3334
- data/ext/v8/upstream/2.3.3/src/token.cc +0 -56
- data/ext/v8/upstream/2.3.3/src/token.h +0 -270
- data/ext/v8/upstream/2.3.3/src/top.cc +0 -1067
- data/ext/v8/upstream/2.3.3/src/top.h +0 -463
- data/ext/v8/upstream/2.3.3/src/type-info.cc +0 -53
- data/ext/v8/upstream/2.3.3/src/type-info.h +0 -244
- data/ext/v8/upstream/2.3.3/src/unicode-inl.h +0 -238
- data/ext/v8/upstream/2.3.3/src/unicode.cc +0 -749
- data/ext/v8/upstream/2.3.3/src/unicode.h +0 -279
- data/ext/v8/upstream/2.3.3/src/uri.js +0 -415
- data/ext/v8/upstream/2.3.3/src/utils.cc +0 -285
- data/ext/v8/upstream/2.3.3/src/utils.h +0 -745
- data/ext/v8/upstream/2.3.3/src/v8-counters.h +0 -250
- data/ext/v8/upstream/2.3.3/src/v8.cc +0 -228
- data/ext/v8/upstream/2.3.3/src/v8.h +0 -121
- data/ext/v8/upstream/2.3.3/src/v8natives.js +0 -1188
- data/ext/v8/upstream/2.3.3/src/v8threads.cc +0 -461
- data/ext/v8/upstream/2.3.3/src/v8threads.h +0 -159
- data/ext/v8/upstream/2.3.3/src/variables.cc +0 -119
- data/ext/v8/upstream/2.3.3/src/variables.h +0 -205
- data/ext/v8/upstream/2.3.3/src/version.cc +0 -88
- data/ext/v8/upstream/2.3.3/src/virtual-frame-heavy-inl.h +0 -192
- data/ext/v8/upstream/2.3.3/src/virtual-frame.h +0 -46
- data/ext/v8/upstream/2.3.3/src/vm-state-inl.h +0 -137
- data/ext/v8/upstream/2.3.3/src/vm-state.cc +0 -39
- data/ext/v8/upstream/2.3.3/src/vm-state.h +0 -77
- data/ext/v8/upstream/2.3.3/src/x64/assembler-x64-inl.h +0 -400
- data/ext/v8/upstream/2.3.3/src/x64/assembler-x64.cc +0 -2963
- data/ext/v8/upstream/2.3.3/src/x64/assembler-x64.h +0 -1438
- data/ext/v8/upstream/2.3.3/src/x64/builtins-x64.cc +0 -1296
- data/ext/v8/upstream/2.3.3/src/x64/codegen-x64-inl.h +0 -46
- data/ext/v8/upstream/2.3.3/src/x64/codegen-x64.cc +0 -12491
- data/ext/v8/upstream/2.3.3/src/x64/codegen-x64.h +0 -1090
- data/ext/v8/upstream/2.3.3/src/x64/cpu-x64.cc +0 -83
- data/ext/v8/upstream/2.3.3/src/x64/debug-x64.cc +0 -267
- data/ext/v8/upstream/2.3.3/src/x64/disasm-x64.cc +0 -1696
- data/ext/v8/upstream/2.3.3/src/x64/fast-codegen-x64.cc +0 -250
- data/ext/v8/upstream/2.3.3/src/x64/frames-x64.cc +0 -113
- data/ext/v8/upstream/2.3.3/src/x64/frames-x64.h +0 -125
- data/ext/v8/upstream/2.3.3/src/x64/full-codegen-x64.cc +0 -3270
- data/ext/v8/upstream/2.3.3/src/x64/ic-x64.cc +0 -1907
- data/ext/v8/upstream/2.3.3/src/x64/jump-target-x64.cc +0 -437
- data/ext/v8/upstream/2.3.3/src/x64/macro-assembler-x64.cc +0 -2793
- data/ext/v8/upstream/2.3.3/src/x64/macro-assembler-x64.h +0 -916
- data/ext/v8/upstream/2.3.3/src/x64/regexp-macro-assembler-x64.cc +0 -1374
- data/ext/v8/upstream/2.3.3/src/x64/regexp-macro-assembler-x64.h +0 -277
- data/ext/v8/upstream/2.3.3/src/x64/simulator-x64.h +0 -63
- data/ext/v8/upstream/2.3.3/src/x64/stub-cache-x64.cc +0 -2560
- data/ext/v8/upstream/2.3.3/src/x64/virtual-frame-x64.cc +0 -1264
- data/ext/v8/upstream/2.3.3/src/x64/virtual-frame-x64.h +0 -590
- data/ext/v8/upstream/2.3.3/src/zone-inl.h +0 -82
- data/ext/v8/upstream/2.3.3/src/zone.cc +0 -194
- data/ext/v8/upstream/2.3.3/src/zone.h +0 -221
- data/ext/v8/upstream/2.3.3/tools/codemap.js +0 -270
- data/ext/v8/upstream/2.3.3/tools/csvparser.js +0 -83
- data/ext/v8/upstream/2.3.3/tools/gc-nvp-trace-processor.py +0 -317
- data/ext/v8/upstream/2.3.3/tools/gyp/v8.gyp +0 -749
- data/ext/v8/upstream/2.3.3/tools/linux-tick-processor.py +0 -78
- data/ext/v8/upstream/2.3.3/tools/logreader.js +0 -338
- data/ext/v8/upstream/2.3.3/tools/oprofile/annotate +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/common +0 -19
- data/ext/v8/upstream/2.3.3/tools/oprofile/dump +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/report +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/reset +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/run +0 -14
- data/ext/v8/upstream/2.3.3/tools/oprofile/shutdown +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/start +0 -7
- data/ext/v8/upstream/2.3.3/tools/presubmit.py +0 -299
- data/ext/v8/upstream/2.3.3/tools/profile.js +0 -691
- data/ext/v8/upstream/2.3.3/tools/profile_view.js +0 -224
- data/ext/v8/upstream/2.3.3/tools/splaytree.js +0 -322
- data/ext/v8/upstream/2.3.3/tools/splaytree.py +0 -226
- data/ext/v8/upstream/2.3.3/tools/tickprocessor.js +0 -862
- data/ext/v8/upstream/2.3.3/tools/tickprocessor.py +0 -571
- data/ext/v8/upstream/2.3.3/tools/utils.py +0 -88
- data/ext/v8/upstream/2.3.3/tools/visual_studio/README.txt +0 -71
- data/ext/v8/upstream/2.3.3/tools/visual_studio/common.vsprops +0 -34
- data/ext/v8/upstream/2.3.3/tools/visual_studio/debug.vsprops +0 -17
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base.vcproj +0 -1143
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base_arm.vcproj +0 -1115
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base_x64.vcproj +0 -1096
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample.vcproj +0 -145
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample_arm.vcproj +0 -145
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample_x64.vcproj +0 -161
- data/ext/v8/upstream/2.3.3/tools/windows-tick-processor.bat +0 -29
- data/ext/v8/upstream/2.3.3/tools/windows-tick-processor.py +0 -137
@@ -0,0 +1,52 @@
|
|
1
|
+
This license applies to all parts of V8 that are not externally
|
2
|
+
maintained libraries. The externally maintained libraries used by V8
|
3
|
+
are:
|
4
|
+
|
5
|
+
- PCRE test suite, located in
|
6
|
+
test/mjsunit/third_party/regexp-pcre.js. This is based on the
|
7
|
+
test suite from PCRE-7.3, which is copyrighted by the University
|
8
|
+
of Cambridge and Google, Inc. The copyright notice and license
|
9
|
+
are embedded in regexp-pcre.js.
|
10
|
+
|
11
|
+
- Layout tests, located in test/mjsunit/third_party. These are
|
12
|
+
based on layout tests from webkit.org which are copyrighted by
|
13
|
+
Apple Computer, Inc. and released under a 3-clause BSD license.
|
14
|
+
|
15
|
+
- Strongtalk assembler, the basis of the files assembler-arm-inl.h,
|
16
|
+
assembler-arm.cc, assembler-arm.h, assembler-ia32-inl.h,
|
17
|
+
assembler-ia32.cc, assembler-ia32.h, assembler.cc and assembler.h.
|
18
|
+
This code is copyrighted by Sun Microsystems Inc. and released
|
19
|
+
under a 3-clause BSD license.
|
20
|
+
|
21
|
+
- Valgrind client API header, located at third_party/valgrind/valgrind.h
|
22
|
+
This is release under the BSD license.
|
23
|
+
|
24
|
+
These libraries have their own licenses; we recommend you read them,
|
25
|
+
as their terms may differ from the terms below.
|
26
|
+
|
27
|
+
Copyright 2006-2011, the V8 project authors. All rights reserved.
|
28
|
+
Redistribution and use in source and binary forms, with or without
|
29
|
+
modification, are permitted provided that the following conditions are
|
30
|
+
met:
|
31
|
+
|
32
|
+
* Redistributions of source code must retain the above copyright
|
33
|
+
notice, this list of conditions and the following disclaimer.
|
34
|
+
* Redistributions in binary form must reproduce the above
|
35
|
+
copyright notice, this list of conditions and the following
|
36
|
+
disclaimer in the documentation and/or other materials provided
|
37
|
+
with the distribution.
|
38
|
+
* Neither the name of Google Inc. nor the names of its
|
39
|
+
contributors may be used to endorse or promote products derived
|
40
|
+
from this software without specific prior written permission.
|
41
|
+
|
42
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
43
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
44
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
45
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
46
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
47
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
48
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
49
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
50
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
51
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
52
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -0,0 +1,29 @@
|
|
1
|
+
Copyright (c) 1994-2006 Sun Microsystems Inc.
|
2
|
+
All Rights Reserved.
|
3
|
+
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
5
|
+
modification, are permitted provided that the following conditions are
|
6
|
+
met:
|
7
|
+
|
8
|
+
- Redistributions of source code must retain the above copyright notice,
|
9
|
+
this list of conditions and the following disclaimer.
|
10
|
+
|
11
|
+
- Redistribution in binary form must reproduce the above copyright
|
12
|
+
notice, this list of conditions and the following disclaimer in the
|
13
|
+
documentation and/or other materials provided with the distribution.
|
14
|
+
|
15
|
+
- Neither the name of Sun Microsystems or the names of contributors may
|
16
|
+
be used to endorse or promote products derived from this software without
|
17
|
+
specific prior written permission.
|
18
|
+
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
20
|
+
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
21
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
22
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
23
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
24
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
25
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
26
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
27
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
28
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
29
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -0,0 +1,26 @@
|
|
1
|
+
Copyright 2006-2011, the V8 project authors. All rights reserved.
|
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.
|
@@ -0,0 +1,45 @@
|
|
1
|
+
----------------------------------------------------------------
|
2
|
+
|
3
|
+
Notice that the following BSD-style license applies to this one
|
4
|
+
file (valgrind.h) only. The rest of Valgrind is licensed under the
|
5
|
+
terms of the GNU General Public License, version 2, unless
|
6
|
+
otherwise indicated. See the COPYING file in the source
|
7
|
+
distribution for details.
|
8
|
+
|
9
|
+
----------------------------------------------------------------
|
10
|
+
|
11
|
+
This file is part of Valgrind, a dynamic binary instrumentation
|
12
|
+
framework.
|
13
|
+
|
14
|
+
Copyright (C) 2000-2007 Julian Seward. All rights reserved.
|
15
|
+
|
16
|
+
Redistribution and use in source and binary forms, with or without
|
17
|
+
modification, are permitted provided that the following conditions
|
18
|
+
are met:
|
19
|
+
|
20
|
+
1. Redistributions of source code must retain the above copyright
|
21
|
+
notice, this list of conditions and the following disclaimer.
|
22
|
+
|
23
|
+
2. The origin of this software must not be misrepresented; you must
|
24
|
+
not claim that you wrote the original software. If you use this
|
25
|
+
software in a product, an acknowledgment in the product
|
26
|
+
documentation would be appreciated but is not required.
|
27
|
+
|
28
|
+
3. Altered source versions must be plainly marked as such, and must
|
29
|
+
not be misrepresented as being the original software.
|
30
|
+
|
31
|
+
4. The name of the author may not be used to endorse or promote
|
32
|
+
products derived from this software without specific prior written
|
33
|
+
permission.
|
34
|
+
|
35
|
+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
|
36
|
+
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
37
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
38
|
+
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
39
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
40
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
41
|
+
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
42
|
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
43
|
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
44
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
45
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -0,0 +1,1192 @@
|
|
1
|
+
# Copyright 2010 the V8 project authors. All rights reserved.
|
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 platform
|
29
|
+
import re
|
30
|
+
import sys
|
31
|
+
import os
|
32
|
+
from os.path import join, dirname, abspath
|
33
|
+
from types import DictType, StringTypes
|
34
|
+
root_dir = dirname(File('SConstruct').rfile().abspath)
|
35
|
+
sys.path.insert(0, join(root_dir, 'tools'))
|
36
|
+
import js2c, utils
|
37
|
+
|
38
|
+
# ANDROID_TOP is the top of the Android checkout, fetched from the environment
|
39
|
+
# variable 'TOP'. You will also need to set the CXX, CC, AR and RANLIB
|
40
|
+
# environment variables to the cross-compiling tools.
|
41
|
+
ANDROID_TOP = os.environ.get('TOP')
|
42
|
+
if ANDROID_TOP is None:
|
43
|
+
ANDROID_TOP=""
|
44
|
+
|
45
|
+
# ARM_TARGET_LIB is the path to the dynamic library to use on the target
|
46
|
+
# machine if cross-compiling to an arm machine. You will also need to set
|
47
|
+
# the additional cross-compiling environment variables to the cross compiler.
|
48
|
+
ARM_TARGET_LIB = os.environ.get('ARM_TARGET_LIB')
|
49
|
+
if ARM_TARGET_LIB:
|
50
|
+
ARM_LINK_FLAGS = ['-Wl,-rpath=' + ARM_TARGET_LIB + '/lib:' +
|
51
|
+
ARM_TARGET_LIB + '/usr/lib',
|
52
|
+
'-Wl,--dynamic-linker=' + ARM_TARGET_LIB +
|
53
|
+
'/lib/ld-linux.so.3']
|
54
|
+
else:
|
55
|
+
ARM_LINK_FLAGS = []
|
56
|
+
|
57
|
+
GCC_EXTRA_CCFLAGS = []
|
58
|
+
GCC_DTOA_EXTRA_CCFLAGS = []
|
59
|
+
|
60
|
+
ANDROID_FLAGS = ['-march=armv7-a',
|
61
|
+
'-mtune=cortex-a8',
|
62
|
+
'-mfloat-abi=softfp',
|
63
|
+
'-mfpu=vfp',
|
64
|
+
'-fpic',
|
65
|
+
'-mthumb-interwork',
|
66
|
+
'-funwind-tables',
|
67
|
+
'-fstack-protector',
|
68
|
+
'-fno-short-enums',
|
69
|
+
'-fmessage-length=0',
|
70
|
+
'-finline-functions',
|
71
|
+
'-fno-inline-functions-called-once',
|
72
|
+
'-fgcse-after-reload',
|
73
|
+
'-frerun-cse-after-loop',
|
74
|
+
'-frename-registers',
|
75
|
+
'-fomit-frame-pointer',
|
76
|
+
'-finline-limit=64',
|
77
|
+
'-DCAN_USE_VFP_INSTRUCTIONS=1',
|
78
|
+
'-DCAN_USE_ARMV7_INSTRUCTIONS=1',
|
79
|
+
'-DCAN_USE_UNALIGNED_ACCESSES=1',
|
80
|
+
'-MD']
|
81
|
+
|
82
|
+
ANDROID_INCLUDES = [ANDROID_TOP + '/bionic/libc/arch-arm/include',
|
83
|
+
ANDROID_TOP + '/bionic/libc/include',
|
84
|
+
ANDROID_TOP + '/bionic/libstdc++/include',
|
85
|
+
ANDROID_TOP + '/bionic/libc/kernel/common',
|
86
|
+
ANDROID_TOP + '/bionic/libc/kernel/arch-arm',
|
87
|
+
ANDROID_TOP + '/bionic/libm/include',
|
88
|
+
ANDROID_TOP + '/bionic/libm/include/arch/arm',
|
89
|
+
ANDROID_TOP + '/bionic/libthread_db/include',
|
90
|
+
ANDROID_TOP + '/frameworks/base/include',
|
91
|
+
ANDROID_TOP + '/system/core/include']
|
92
|
+
|
93
|
+
ANDROID_LINKFLAGS = ['-nostdlib',
|
94
|
+
'-Bdynamic',
|
95
|
+
'-Wl,-T,' + ANDROID_TOP + '/build/core/armelf.x',
|
96
|
+
'-Wl,-dynamic-linker,/system/bin/linker',
|
97
|
+
'-Wl,--gc-sections',
|
98
|
+
'-Wl,-z,nocopyreloc',
|
99
|
+
'-Wl,-rpath-link=' + ANDROID_TOP + '/out/target/product/generic/obj/lib',
|
100
|
+
ANDROID_TOP + '/out/target/product/generic/obj/lib/crtbegin_dynamic.o',
|
101
|
+
ANDROID_TOP + '/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/lib/gcc/arm-eabi/4.4.0/interwork/libgcc.a',
|
102
|
+
ANDROID_TOP + '/out/target/product/generic/obj/lib/crtend_android.o'];
|
103
|
+
|
104
|
+
LIBRARY_FLAGS = {
|
105
|
+
'all': {
|
106
|
+
'CPPPATH': [join(root_dir, 'src')],
|
107
|
+
'regexp:interpreted': {
|
108
|
+
'CPPDEFINES': ['V8_INTERPRETED_REGEXP']
|
109
|
+
},
|
110
|
+
'mode:debug': {
|
111
|
+
'CPPDEFINES': ['V8_ENABLE_CHECKS', 'OBJECT_PRINT']
|
112
|
+
},
|
113
|
+
'vmstate:on': {
|
114
|
+
'CPPDEFINES': ['ENABLE_VMSTATE_TRACKING'],
|
115
|
+
},
|
116
|
+
'objectprint:on': {
|
117
|
+
'CPPDEFINES': ['OBJECT_PRINT'],
|
118
|
+
},
|
119
|
+
'protectheap:on': {
|
120
|
+
'CPPDEFINES': ['ENABLE_VMSTATE_TRACKING', 'ENABLE_HEAP_PROTECTION'],
|
121
|
+
},
|
122
|
+
'profilingsupport:on': {
|
123
|
+
'CPPDEFINES': ['ENABLE_VMSTATE_TRACKING', 'ENABLE_LOGGING_AND_PROFILING'],
|
124
|
+
},
|
125
|
+
'debuggersupport:on': {
|
126
|
+
'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT'],
|
127
|
+
},
|
128
|
+
'inspector:on': {
|
129
|
+
'CPPDEFINES': ['INSPECTOR'],
|
130
|
+
},
|
131
|
+
'liveobjectlist:on': {
|
132
|
+
'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT', 'INSPECTOR',
|
133
|
+
'LIVE_OBJECT_LIST', 'OBJECT_PRINT'],
|
134
|
+
}
|
135
|
+
},
|
136
|
+
'gcc': {
|
137
|
+
'all': {
|
138
|
+
'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'],
|
139
|
+
'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'],
|
140
|
+
},
|
141
|
+
'visibility:hidden': {
|
142
|
+
# Use visibility=default to disable this.
|
143
|
+
'CXXFLAGS': ['-fvisibility=hidden']
|
144
|
+
},
|
145
|
+
'mode:debug': {
|
146
|
+
'CCFLAGS': ['-g', '-O0'],
|
147
|
+
'CPPDEFINES': ['ENABLE_DISASSEMBLER', 'DEBUG'],
|
148
|
+
'os:android': {
|
149
|
+
'CCFLAGS': ['-mthumb']
|
150
|
+
}
|
151
|
+
},
|
152
|
+
'mode:release': {
|
153
|
+
'CCFLAGS': ['-O3', '-fomit-frame-pointer', '-fdata-sections',
|
154
|
+
'-ffunction-sections'],
|
155
|
+
'os:android': {
|
156
|
+
'CCFLAGS': ['-mthumb', '-Os'],
|
157
|
+
'CPPDEFINES': ['SK_RELEASE', 'NDEBUG']
|
158
|
+
}
|
159
|
+
},
|
160
|
+
'os:linux': {
|
161
|
+
'CCFLAGS': ['-ansi'] + GCC_EXTRA_CCFLAGS,
|
162
|
+
'library:shared': {
|
163
|
+
'CPPDEFINES': ['V8_SHARED'],
|
164
|
+
'LIBS': ['pthread']
|
165
|
+
}
|
166
|
+
},
|
167
|
+
'os:macos': {
|
168
|
+
'CCFLAGS': ['-ansi', '-mmacosx-version-min=10.4'],
|
169
|
+
'library:shared': {
|
170
|
+
'CPPDEFINES': ['V8_SHARED']
|
171
|
+
}
|
172
|
+
},
|
173
|
+
'os:freebsd': {
|
174
|
+
'CPPPATH' : ['/usr/local/include'],
|
175
|
+
'LIBPATH' : ['/usr/local/lib'],
|
176
|
+
'CCFLAGS': ['-ansi'],
|
177
|
+
},
|
178
|
+
'os:openbsd': {
|
179
|
+
'CPPPATH' : ['/usr/local/include'],
|
180
|
+
'LIBPATH' : ['/usr/local/lib'],
|
181
|
+
'CCFLAGS': ['-ansi'],
|
182
|
+
},
|
183
|
+
'os:solaris': {
|
184
|
+
# On Solaris, to get isinf, INFINITY, fpclassify and other macros one
|
185
|
+
# needs to define __C99FEATURES__.
|
186
|
+
'CPPDEFINES': ['__C99FEATURES__'],
|
187
|
+
'CPPPATH' : ['/usr/local/include'],
|
188
|
+
'LIBPATH' : ['/usr/local/lib'],
|
189
|
+
'CCFLAGS': ['-ansi'],
|
190
|
+
},
|
191
|
+
'os:win32': {
|
192
|
+
'CCFLAGS': ['-DWIN32'],
|
193
|
+
'CXXFLAGS': ['-DWIN32'],
|
194
|
+
},
|
195
|
+
'os:android': {
|
196
|
+
'CPPDEFINES': ['ANDROID', '__ARM_ARCH_5__', '__ARM_ARCH_5T__',
|
197
|
+
'__ARM_ARCH_5E__', '__ARM_ARCH_5TE__'],
|
198
|
+
'CCFLAGS': ANDROID_FLAGS,
|
199
|
+
'WARNINGFLAGS': ['-Wall', '-Wno-unused', '-Werror=return-type',
|
200
|
+
'-Wstrict-aliasing=2'],
|
201
|
+
'CPPPATH': ANDROID_INCLUDES,
|
202
|
+
},
|
203
|
+
'arch:ia32': {
|
204
|
+
'CPPDEFINES': ['V8_TARGET_ARCH_IA32'],
|
205
|
+
'CCFLAGS': ['-m32'],
|
206
|
+
'LINKFLAGS': ['-m32']
|
207
|
+
},
|
208
|
+
'arch:arm': {
|
209
|
+
'CPPDEFINES': ['V8_TARGET_ARCH_ARM'],
|
210
|
+
'unalignedaccesses:on' : {
|
211
|
+
'CPPDEFINES' : ['CAN_USE_UNALIGNED_ACCESSES=1']
|
212
|
+
},
|
213
|
+
'unalignedaccesses:off' : {
|
214
|
+
'CPPDEFINES' : ['CAN_USE_UNALIGNED_ACCESSES=0']
|
215
|
+
}
|
216
|
+
},
|
217
|
+
'simulator:arm': {
|
218
|
+
'CCFLAGS': ['-m32'],
|
219
|
+
'LINKFLAGS': ['-m32'],
|
220
|
+
},
|
221
|
+
'arch:mips': {
|
222
|
+
'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'],
|
223
|
+
'simulator:none': {
|
224
|
+
'CCFLAGS': ['-EL', '-mips32r2', '-Wa,-mips32r2', '-fno-inline'],
|
225
|
+
'LDFLAGS': ['-EL']
|
226
|
+
}
|
227
|
+
},
|
228
|
+
'simulator:mips': {
|
229
|
+
'CCFLAGS': ['-m32'],
|
230
|
+
'LINKFLAGS': ['-m32'],
|
231
|
+
},
|
232
|
+
'arch:x64': {
|
233
|
+
'CPPDEFINES': ['V8_TARGET_ARCH_X64'],
|
234
|
+
'CCFLAGS': ['-m64'],
|
235
|
+
'LINKFLAGS': ['-m64'],
|
236
|
+
},
|
237
|
+
'gdbjit:on': {
|
238
|
+
'CPPDEFINES': ['ENABLE_GDB_JIT_INTERFACE']
|
239
|
+
}
|
240
|
+
},
|
241
|
+
'msvc': {
|
242
|
+
'all': {
|
243
|
+
'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'],
|
244
|
+
'CXXFLAGS': ['$CCFLAGS', '/GR-', '/Gy'],
|
245
|
+
'CPPDEFINES': ['WIN32'],
|
246
|
+
'LINKFLAGS': ['/INCREMENTAL:NO', '/NXCOMPAT', '/IGNORE:4221'],
|
247
|
+
'CCPDBFLAGS': ['/Zi']
|
248
|
+
},
|
249
|
+
'verbose:off': {
|
250
|
+
'DIALECTFLAGS': ['/nologo'],
|
251
|
+
'ARFLAGS': ['/NOLOGO']
|
252
|
+
},
|
253
|
+
'arch:ia32': {
|
254
|
+
'CPPDEFINES': ['V8_TARGET_ARCH_IA32', '_USE_32BIT_TIME_T'],
|
255
|
+
'LINKFLAGS': ['/MACHINE:X86'],
|
256
|
+
'ARFLAGS': ['/MACHINE:X86']
|
257
|
+
},
|
258
|
+
'arch:x64': {
|
259
|
+
'CPPDEFINES': ['V8_TARGET_ARCH_X64'],
|
260
|
+
'LINKFLAGS': ['/MACHINE:X64'],
|
261
|
+
'ARFLAGS': ['/MACHINE:X64']
|
262
|
+
},
|
263
|
+
'mode:debug': {
|
264
|
+
'CCFLAGS': ['/Od', '/Gm'],
|
265
|
+
'CPPDEFINES': ['_DEBUG', 'ENABLE_DISASSEMBLER', 'DEBUG'],
|
266
|
+
'LINKFLAGS': ['/DEBUG'],
|
267
|
+
'msvcrt:static': {
|
268
|
+
'CCFLAGS': ['/MTd']
|
269
|
+
},
|
270
|
+
'msvcrt:shared': {
|
271
|
+
'CCFLAGS': ['/MDd']
|
272
|
+
}
|
273
|
+
},
|
274
|
+
'mode:release': {
|
275
|
+
'CCFLAGS': ['/O2'],
|
276
|
+
'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'],
|
277
|
+
'msvcrt:static': {
|
278
|
+
'CCFLAGS': ['/MT']
|
279
|
+
},
|
280
|
+
'msvcrt:shared': {
|
281
|
+
'CCFLAGS': ['/MD']
|
282
|
+
},
|
283
|
+
'msvcltcg:on': {
|
284
|
+
'CCFLAGS': ['/GL'],
|
285
|
+
'ARFLAGS': ['/LTCG'],
|
286
|
+
'pgo:off': {
|
287
|
+
'LINKFLAGS': ['/LTCG'],
|
288
|
+
},
|
289
|
+
'pgo:instrument': {
|
290
|
+
'LINKFLAGS': ['/LTCG:PGI']
|
291
|
+
},
|
292
|
+
'pgo:optimize': {
|
293
|
+
'LINKFLAGS': ['/LTCG:PGO']
|
294
|
+
}
|
295
|
+
}
|
296
|
+
}
|
297
|
+
}
|
298
|
+
}
|
299
|
+
|
300
|
+
|
301
|
+
V8_EXTRA_FLAGS = {
|
302
|
+
'gcc': {
|
303
|
+
'all': {
|
304
|
+
'WARNINGFLAGS': ['-Wall',
|
305
|
+
'-Werror',
|
306
|
+
'-W',
|
307
|
+
'-Wno-unused-parameter',
|
308
|
+
'-Wnon-virtual-dtor']
|
309
|
+
},
|
310
|
+
'os:win32': {
|
311
|
+
'WARNINGFLAGS': ['-pedantic', '-Wno-long-long']
|
312
|
+
},
|
313
|
+
'os:linux': {
|
314
|
+
'WARNINGFLAGS': ['-pedantic'],
|
315
|
+
'library:shared': {
|
316
|
+
'soname:on': {
|
317
|
+
'LINKFLAGS': ['-Wl,-soname,${SONAME}']
|
318
|
+
}
|
319
|
+
}
|
320
|
+
},
|
321
|
+
'os:macos': {
|
322
|
+
'WARNINGFLAGS': ['-pedantic']
|
323
|
+
},
|
324
|
+
'disassembler:on': {
|
325
|
+
'CPPDEFINES': ['ENABLE_DISASSEMBLER']
|
326
|
+
}
|
327
|
+
},
|
328
|
+
'msvc': {
|
329
|
+
'all': {
|
330
|
+
'WARNINGFLAGS': ['/W3', '/WX', '/wd4351', '/wd4355', '/wd4800']
|
331
|
+
},
|
332
|
+
'library:shared': {
|
333
|
+
'CPPDEFINES': ['BUILDING_V8_SHARED'],
|
334
|
+
'LIBS': ['winmm', 'ws2_32']
|
335
|
+
},
|
336
|
+
'arch:arm': {
|
337
|
+
'CPPDEFINES': ['V8_TARGET_ARCH_ARM'],
|
338
|
+
# /wd4996 is to silence the warning about sscanf
|
339
|
+
# used by the arm simulator.
|
340
|
+
'WARNINGFLAGS': ['/wd4996']
|
341
|
+
},
|
342
|
+
'arch:mips': {
|
343
|
+
'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'],
|
344
|
+
},
|
345
|
+
'disassembler:on': {
|
346
|
+
'CPPDEFINES': ['ENABLE_DISASSEMBLER']
|
347
|
+
}
|
348
|
+
}
|
349
|
+
}
|
350
|
+
|
351
|
+
|
352
|
+
MKSNAPSHOT_EXTRA_FLAGS = {
|
353
|
+
'gcc': {
|
354
|
+
'os:linux': {
|
355
|
+
'LIBS': ['pthread'],
|
356
|
+
},
|
357
|
+
'os:macos': {
|
358
|
+
'LIBS': ['pthread'],
|
359
|
+
},
|
360
|
+
'os:freebsd': {
|
361
|
+
'LIBS': ['execinfo', 'pthread']
|
362
|
+
},
|
363
|
+
'os:solaris': {
|
364
|
+
'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'],
|
365
|
+
'LINKFLAGS': ['-mt']
|
366
|
+
},
|
367
|
+
'os:openbsd': {
|
368
|
+
'LIBS': ['execinfo', 'pthread']
|
369
|
+
},
|
370
|
+
'os:win32': {
|
371
|
+
'LIBS': ['winmm', 'ws2_32'],
|
372
|
+
},
|
373
|
+
},
|
374
|
+
'msvc': {
|
375
|
+
'all': {
|
376
|
+
'CPPDEFINES': ['_HAS_EXCEPTIONS=0'],
|
377
|
+
'LIBS': ['winmm', 'ws2_32']
|
378
|
+
}
|
379
|
+
}
|
380
|
+
}
|
381
|
+
|
382
|
+
|
383
|
+
DTOA_EXTRA_FLAGS = {
|
384
|
+
'gcc': {
|
385
|
+
'all': {
|
386
|
+
'WARNINGFLAGS': ['-Werror', '-Wno-uninitialized'],
|
387
|
+
'CCFLAGS': GCC_DTOA_EXTRA_CCFLAGS
|
388
|
+
}
|
389
|
+
},
|
390
|
+
'msvc': {
|
391
|
+
'all': {
|
392
|
+
'WARNINGFLAGS': ['/WX', '/wd4018', '/wd4244']
|
393
|
+
}
|
394
|
+
}
|
395
|
+
}
|
396
|
+
|
397
|
+
|
398
|
+
CCTEST_EXTRA_FLAGS = {
|
399
|
+
'all': {
|
400
|
+
'CPPPATH': [join(root_dir, 'src')],
|
401
|
+
},
|
402
|
+
'gcc': {
|
403
|
+
'all': {
|
404
|
+
'LIBPATH': [abspath('.')]
|
405
|
+
},
|
406
|
+
'os:linux': {
|
407
|
+
'LIBS': ['pthread'],
|
408
|
+
},
|
409
|
+
'os:macos': {
|
410
|
+
'LIBS': ['pthread'],
|
411
|
+
},
|
412
|
+
'os:freebsd': {
|
413
|
+
'LIBS': ['execinfo', 'pthread']
|
414
|
+
},
|
415
|
+
'os:solaris': {
|
416
|
+
'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'],
|
417
|
+
'LINKFLAGS': ['-mt']
|
418
|
+
},
|
419
|
+
'os:openbsd': {
|
420
|
+
'LIBS': ['execinfo', 'pthread']
|
421
|
+
},
|
422
|
+
'os:win32': {
|
423
|
+
'LIBS': ['winmm', 'ws2_32']
|
424
|
+
},
|
425
|
+
'os:android': {
|
426
|
+
'CPPDEFINES': ['ANDROID', '__ARM_ARCH_5__', '__ARM_ARCH_5T__',
|
427
|
+
'__ARM_ARCH_5E__', '__ARM_ARCH_5TE__'],
|
428
|
+
'CCFLAGS': ANDROID_FLAGS,
|
429
|
+
'CPPPATH': ANDROID_INCLUDES,
|
430
|
+
'LIBPATH': [ANDROID_TOP + '/out/target/product/generic/obj/lib',
|
431
|
+
ANDROID_TOP + '/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/lib/gcc/arm-eabi/4.4.0/interwork'],
|
432
|
+
'LINKFLAGS': ANDROID_LINKFLAGS,
|
433
|
+
'LIBS': ['log', 'c', 'stdc++', 'm', 'gcc'],
|
434
|
+
'mode:release': {
|
435
|
+
'CPPDEFINES': ['SK_RELEASE', 'NDEBUG']
|
436
|
+
}
|
437
|
+
},
|
438
|
+
'arch:arm': {
|
439
|
+
'LINKFLAGS': ARM_LINK_FLAGS
|
440
|
+
},
|
441
|
+
},
|
442
|
+
'msvc': {
|
443
|
+
'all': {
|
444
|
+
'CPPDEFINES': ['_HAS_EXCEPTIONS=0'],
|
445
|
+
'LIBS': ['winmm', 'ws2_32']
|
446
|
+
},
|
447
|
+
'library:shared': {
|
448
|
+
'CPPDEFINES': ['USING_V8_SHARED']
|
449
|
+
},
|
450
|
+
'arch:ia32': {
|
451
|
+
'CPPDEFINES': ['V8_TARGET_ARCH_IA32']
|
452
|
+
},
|
453
|
+
'arch:x64': {
|
454
|
+
'CPPDEFINES': ['V8_TARGET_ARCH_X64'],
|
455
|
+
'LINKFLAGS': ['/STACK:2091752']
|
456
|
+
},
|
457
|
+
}
|
458
|
+
}
|
459
|
+
|
460
|
+
|
461
|
+
SAMPLE_FLAGS = {
|
462
|
+
'all': {
|
463
|
+
'CPPPATH': [join(abspath('.'), 'include')],
|
464
|
+
},
|
465
|
+
'gcc': {
|
466
|
+
'all': {
|
467
|
+
'LIBPATH': ['.'],
|
468
|
+
'CCFLAGS': ['-fno-rtti', '-fno-exceptions']
|
469
|
+
},
|
470
|
+
'os:linux': {
|
471
|
+
'LIBS': ['pthread'],
|
472
|
+
},
|
473
|
+
'os:macos': {
|
474
|
+
'LIBS': ['pthread'],
|
475
|
+
},
|
476
|
+
'os:freebsd': {
|
477
|
+
'LIBPATH' : ['/usr/local/lib'],
|
478
|
+
'LIBS': ['execinfo', 'pthread']
|
479
|
+
},
|
480
|
+
'os:solaris': {
|
481
|
+
'LIBPATH' : ['/usr/local/lib'],
|
482
|
+
'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'],
|
483
|
+
'LINKFLAGS': ['-mt']
|
484
|
+
},
|
485
|
+
'os:openbsd': {
|
486
|
+
'LIBPATH' : ['/usr/local/lib'],
|
487
|
+
'LIBS': ['execinfo', 'pthread']
|
488
|
+
},
|
489
|
+
'os:win32': {
|
490
|
+
'LIBS': ['winmm', 'ws2_32']
|
491
|
+
},
|
492
|
+
'os:android': {
|
493
|
+
'CPPDEFINES': ['ANDROID', '__ARM_ARCH_5__', '__ARM_ARCH_5T__',
|
494
|
+
'__ARM_ARCH_5E__', '__ARM_ARCH_5TE__'],
|
495
|
+
'CCFLAGS': ANDROID_FLAGS,
|
496
|
+
'CPPPATH': ANDROID_INCLUDES,
|
497
|
+
'LIBPATH': [ANDROID_TOP + '/out/target/product/generic/obj/lib',
|
498
|
+
ANDROID_TOP + '/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/lib/gcc/arm-eabi/4.4.0/interwork'],
|
499
|
+
'LINKFLAGS': ANDROID_LINKFLAGS,
|
500
|
+
'LIBS': ['log', 'c', 'stdc++', 'm', 'gcc'],
|
501
|
+
'mode:release': {
|
502
|
+
'CPPDEFINES': ['SK_RELEASE', 'NDEBUG']
|
503
|
+
}
|
504
|
+
},
|
505
|
+
'arch:arm': {
|
506
|
+
'LINKFLAGS': ARM_LINK_FLAGS
|
507
|
+
},
|
508
|
+
'arch:ia32': {
|
509
|
+
'CCFLAGS': ['-m32'],
|
510
|
+
'LINKFLAGS': ['-m32']
|
511
|
+
},
|
512
|
+
'arch:x64': {
|
513
|
+
'CCFLAGS': ['-m64'],
|
514
|
+
'LINKFLAGS': ['-m64']
|
515
|
+
},
|
516
|
+
'arch:mips': {
|
517
|
+
'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'],
|
518
|
+
'simulator:none': {
|
519
|
+
'CCFLAGS': ['-EL', '-mips32r2', '-Wa,-mips32r2', '-fno-inline'],
|
520
|
+
'LINKFLAGS': ['-EL'],
|
521
|
+
'LDFLAGS': ['-EL']
|
522
|
+
}
|
523
|
+
},
|
524
|
+
'simulator:arm': {
|
525
|
+
'CCFLAGS': ['-m32'],
|
526
|
+
'LINKFLAGS': ['-m32']
|
527
|
+
},
|
528
|
+
'simulator:mips': {
|
529
|
+
'CCFLAGS': ['-m32'],
|
530
|
+
'LINKFLAGS': ['-m32']
|
531
|
+
},
|
532
|
+
'mode:release': {
|
533
|
+
'CCFLAGS': ['-O2']
|
534
|
+
},
|
535
|
+
'mode:debug': {
|
536
|
+
'CCFLAGS': ['-g', '-O0'],
|
537
|
+
'CPPDEFINES': ['DEBUG']
|
538
|
+
},
|
539
|
+
},
|
540
|
+
'msvc': {
|
541
|
+
'all': {
|
542
|
+
'LIBS': ['winmm', 'ws2_32']
|
543
|
+
},
|
544
|
+
'verbose:off': {
|
545
|
+
'CCFLAGS': ['/nologo'],
|
546
|
+
'LINKFLAGS': ['/NOLOGO']
|
547
|
+
},
|
548
|
+
'verbose:on': {
|
549
|
+
'LINKFLAGS': ['/VERBOSE']
|
550
|
+
},
|
551
|
+
'library:shared': {
|
552
|
+
'CPPDEFINES': ['USING_V8_SHARED']
|
553
|
+
},
|
554
|
+
'prof:on': {
|
555
|
+
'LINKFLAGS': ['/MAP']
|
556
|
+
},
|
557
|
+
'mode:release': {
|
558
|
+
'CCFLAGS': ['/O2'],
|
559
|
+
'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'],
|
560
|
+
'msvcrt:static': {
|
561
|
+
'CCFLAGS': ['/MT']
|
562
|
+
},
|
563
|
+
'msvcrt:shared': {
|
564
|
+
'CCFLAGS': ['/MD']
|
565
|
+
},
|
566
|
+
'msvcltcg:on': {
|
567
|
+
'CCFLAGS': ['/GL'],
|
568
|
+
'pgo:off': {
|
569
|
+
'LINKFLAGS': ['/LTCG'],
|
570
|
+
},
|
571
|
+
},
|
572
|
+
'pgo:instrument': {
|
573
|
+
'LINKFLAGS': ['/LTCG:PGI']
|
574
|
+
},
|
575
|
+
'pgo:optimize': {
|
576
|
+
'LINKFLAGS': ['/LTCG:PGO']
|
577
|
+
}
|
578
|
+
},
|
579
|
+
'arch:ia32': {
|
580
|
+
'CPPDEFINES': ['V8_TARGET_ARCH_IA32'],
|
581
|
+
'LINKFLAGS': ['/MACHINE:X86']
|
582
|
+
},
|
583
|
+
'arch:x64': {
|
584
|
+
'CPPDEFINES': ['V8_TARGET_ARCH_X64'],
|
585
|
+
'LINKFLAGS': ['/MACHINE:X64', '/STACK:2091752']
|
586
|
+
},
|
587
|
+
'mode:debug': {
|
588
|
+
'CCFLAGS': ['/Od'],
|
589
|
+
'LINKFLAGS': ['/DEBUG'],
|
590
|
+
'CPPDEFINES': ['DEBUG'],
|
591
|
+
'msvcrt:static': {
|
592
|
+
'CCFLAGS': ['/MTd']
|
593
|
+
},
|
594
|
+
'msvcrt:shared': {
|
595
|
+
'CCFLAGS': ['/MDd']
|
596
|
+
}
|
597
|
+
}
|
598
|
+
}
|
599
|
+
}
|
600
|
+
|
601
|
+
|
602
|
+
D8_FLAGS = {
|
603
|
+
'gcc': {
|
604
|
+
'console:readline': {
|
605
|
+
'LIBS': ['readline']
|
606
|
+
},
|
607
|
+
'os:linux': {
|
608
|
+
'LIBS': ['pthread'],
|
609
|
+
},
|
610
|
+
'os:macos': {
|
611
|
+
'LIBS': ['pthread'],
|
612
|
+
},
|
613
|
+
'os:freebsd': {
|
614
|
+
'LIBS': ['pthread'],
|
615
|
+
},
|
616
|
+
'os:solaris': {
|
617
|
+
'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'],
|
618
|
+
'LINKFLAGS': ['-mt']
|
619
|
+
},
|
620
|
+
'os:openbsd': {
|
621
|
+
'LIBS': ['pthread'],
|
622
|
+
},
|
623
|
+
'os:android': {
|
624
|
+
'LIBPATH': [ANDROID_TOP + '/out/target/product/generic/obj/lib',
|
625
|
+
ANDROID_TOP + '/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/lib/gcc/arm-eabi/4.4.0/interwork'],
|
626
|
+
'LINKFLAGS': ANDROID_LINKFLAGS,
|
627
|
+
'LIBS': ['log', 'c', 'stdc++', 'm', 'gcc'],
|
628
|
+
},
|
629
|
+
'os:win32': {
|
630
|
+
'LIBS': ['winmm', 'ws2_32'],
|
631
|
+
},
|
632
|
+
'arch:arm': {
|
633
|
+
'LINKFLAGS': ARM_LINK_FLAGS
|
634
|
+
},
|
635
|
+
},
|
636
|
+
'msvc': {
|
637
|
+
'all': {
|
638
|
+
'LIBS': ['winmm', 'ws2_32']
|
639
|
+
}
|
640
|
+
}
|
641
|
+
}
|
642
|
+
|
643
|
+
|
644
|
+
SUFFIXES = {
|
645
|
+
'release': '',
|
646
|
+
'debug': '_g'
|
647
|
+
}
|
648
|
+
|
649
|
+
|
650
|
+
def Abort(message):
|
651
|
+
print message
|
652
|
+
sys.exit(1)
|
653
|
+
|
654
|
+
|
655
|
+
def GuessToolchain(os):
|
656
|
+
tools = Environment()['TOOLS']
|
657
|
+
if 'gcc' in tools:
|
658
|
+
return 'gcc'
|
659
|
+
elif 'msvc' in tools:
|
660
|
+
return 'msvc'
|
661
|
+
else:
|
662
|
+
return None
|
663
|
+
|
664
|
+
|
665
|
+
def GuessVisibility(os, toolchain):
|
666
|
+
if (os == 'win32' or os == 'cygwin') and toolchain == 'gcc':
|
667
|
+
# MinGW / Cygwin can't do it.
|
668
|
+
return 'default'
|
669
|
+
elif os == 'solaris':
|
670
|
+
return 'default'
|
671
|
+
else:
|
672
|
+
return 'hidden'
|
673
|
+
|
674
|
+
|
675
|
+
OS_GUESS = utils.GuessOS()
|
676
|
+
TOOLCHAIN_GUESS = GuessToolchain(OS_GUESS)
|
677
|
+
ARCH_GUESS = utils.GuessArchitecture()
|
678
|
+
VISIBILITY_GUESS = GuessVisibility(OS_GUESS, TOOLCHAIN_GUESS)
|
679
|
+
|
680
|
+
|
681
|
+
SIMPLE_OPTIONS = {
|
682
|
+
'toolchain': {
|
683
|
+
'values': ['gcc', 'msvc'],
|
684
|
+
'default': TOOLCHAIN_GUESS,
|
685
|
+
'help': 'the toolchain to use (%s)' % TOOLCHAIN_GUESS
|
686
|
+
},
|
687
|
+
'os': {
|
688
|
+
'values': ['freebsd', 'linux', 'macos', 'win32', 'android', 'openbsd', 'solaris', 'cygwin'],
|
689
|
+
'default': OS_GUESS,
|
690
|
+
'help': 'the os to build for (%s)' % OS_GUESS
|
691
|
+
},
|
692
|
+
'arch': {
|
693
|
+
'values':['arm', 'ia32', 'x64', 'mips'],
|
694
|
+
'default': ARCH_GUESS,
|
695
|
+
'help': 'the architecture to build for (%s)' % ARCH_GUESS
|
696
|
+
},
|
697
|
+
'regexp': {
|
698
|
+
'values': ['native', 'interpreted'],
|
699
|
+
'default': 'native',
|
700
|
+
'help': 'Whether to use native or interpreted regexp implementation'
|
701
|
+
},
|
702
|
+
'snapshot': {
|
703
|
+
'values': ['on', 'off', 'nobuild'],
|
704
|
+
'default': 'off',
|
705
|
+
'help': 'build using snapshots for faster start-up'
|
706
|
+
},
|
707
|
+
'prof': {
|
708
|
+
'values': ['on', 'off'],
|
709
|
+
'default': 'off',
|
710
|
+
'help': 'enable profiling of build target'
|
711
|
+
},
|
712
|
+
'gdbjit': {
|
713
|
+
'values': ['on', 'off'],
|
714
|
+
'default': 'off',
|
715
|
+
'help': 'enable GDB JIT interface'
|
716
|
+
},
|
717
|
+
'library': {
|
718
|
+
'values': ['static', 'shared'],
|
719
|
+
'default': 'static',
|
720
|
+
'help': 'the type of library to produce'
|
721
|
+
},
|
722
|
+
'vmstate': {
|
723
|
+
'values': ['on', 'off'],
|
724
|
+
'default': 'off',
|
725
|
+
'help': 'enable VM state tracking'
|
726
|
+
},
|
727
|
+
'objectprint': {
|
728
|
+
'values': ['on', 'off'],
|
729
|
+
'default': 'off',
|
730
|
+
'help': 'enable object printing'
|
731
|
+
},
|
732
|
+
'protectheap': {
|
733
|
+
'values': ['on', 'off'],
|
734
|
+
'default': 'off',
|
735
|
+
'help': 'enable heap protection'
|
736
|
+
},
|
737
|
+
'profilingsupport': {
|
738
|
+
'values': ['on', 'off'],
|
739
|
+
'default': 'on',
|
740
|
+
'help': 'enable profiling of JavaScript code'
|
741
|
+
},
|
742
|
+
'debuggersupport': {
|
743
|
+
'values': ['on', 'off'],
|
744
|
+
'default': 'on',
|
745
|
+
'help': 'enable debugging of JavaScript code'
|
746
|
+
},
|
747
|
+
'inspector': {
|
748
|
+
'values': ['on', 'off'],
|
749
|
+
'default': 'off',
|
750
|
+
'help': 'enable inspector features'
|
751
|
+
},
|
752
|
+
'liveobjectlist': {
|
753
|
+
'values': ['on', 'off'],
|
754
|
+
'default': 'off',
|
755
|
+
'help': 'enable live object list features in the debugger'
|
756
|
+
},
|
757
|
+
'soname': {
|
758
|
+
'values': ['on', 'off'],
|
759
|
+
'default': 'off',
|
760
|
+
'help': 'turn on setting soname for Linux shared library'
|
761
|
+
},
|
762
|
+
'msvcrt': {
|
763
|
+
'values': ['static', 'shared'],
|
764
|
+
'default': 'static',
|
765
|
+
'help': 'the type of Microsoft Visual C++ runtime library to use'
|
766
|
+
},
|
767
|
+
'msvcltcg': {
|
768
|
+
'values': ['on', 'off'],
|
769
|
+
'default': 'on',
|
770
|
+
'help': 'use Microsoft Visual C++ link-time code generation'
|
771
|
+
},
|
772
|
+
'simulator': {
|
773
|
+
'values': ['arm', 'mips', 'none'],
|
774
|
+
'default': 'none',
|
775
|
+
'help': 'build with simulator'
|
776
|
+
},
|
777
|
+
'unalignedaccesses': {
|
778
|
+
'values': ['default', 'on', 'off'],
|
779
|
+
'default': 'default',
|
780
|
+
'help': 'set whether the ARM target supports unaligned accesses'
|
781
|
+
},
|
782
|
+
'disassembler': {
|
783
|
+
'values': ['on', 'off'],
|
784
|
+
'default': 'off',
|
785
|
+
'help': 'enable the disassembler to inspect generated code'
|
786
|
+
},
|
787
|
+
'sourcesignatures': {
|
788
|
+
'values': ['MD5', 'timestamp'],
|
789
|
+
'default': 'MD5',
|
790
|
+
'help': 'set how the build system detects file changes'
|
791
|
+
},
|
792
|
+
'console': {
|
793
|
+
'values': ['dumb', 'readline'],
|
794
|
+
'default': 'dumb',
|
795
|
+
'help': 'the console to use for the d8 shell'
|
796
|
+
},
|
797
|
+
'verbose': {
|
798
|
+
'values': ['on', 'off'],
|
799
|
+
'default': 'off',
|
800
|
+
'help': 'more output from compiler and linker'
|
801
|
+
},
|
802
|
+
'visibility': {
|
803
|
+
'values': ['default', 'hidden'],
|
804
|
+
'default': VISIBILITY_GUESS,
|
805
|
+
'help': 'shared library symbol visibility (%s)' % VISIBILITY_GUESS
|
806
|
+
},
|
807
|
+
'pgo': {
|
808
|
+
'values': ['off', 'instrument', 'optimize'],
|
809
|
+
'default': 'off',
|
810
|
+
'help': 'select profile guided optimization variant',
|
811
|
+
}
|
812
|
+
}
|
813
|
+
|
814
|
+
|
815
|
+
def GetOptions():
|
816
|
+
result = Options()
|
817
|
+
result.Add('mode', 'compilation mode (debug, release)', 'release')
|
818
|
+
result.Add('sample', 'build sample (shell, process, lineprocessor)', '')
|
819
|
+
result.Add('cache', 'directory to use for scons build cache', '')
|
820
|
+
result.Add('env', 'override environment settings (NAME0:value0,NAME1:value1,...)', '')
|
821
|
+
result.Add('importenv', 'import environment settings (NAME0,NAME1,...)', '')
|
822
|
+
for (name, option) in SIMPLE_OPTIONS.iteritems():
|
823
|
+
help = '%s (%s)' % (name, ", ".join(option['values']))
|
824
|
+
result.Add(name, help, option.get('default'))
|
825
|
+
return result
|
826
|
+
|
827
|
+
|
828
|
+
def GetVersionComponents():
|
829
|
+
MAJOR_VERSION_PATTERN = re.compile(r"#define\s+MAJOR_VERSION\s+(.*)")
|
830
|
+
MINOR_VERSION_PATTERN = re.compile(r"#define\s+MINOR_VERSION\s+(.*)")
|
831
|
+
BUILD_NUMBER_PATTERN = re.compile(r"#define\s+BUILD_NUMBER\s+(.*)")
|
832
|
+
PATCH_LEVEL_PATTERN = re.compile(r"#define\s+PATCH_LEVEL\s+(.*)")
|
833
|
+
|
834
|
+
patterns = [MAJOR_VERSION_PATTERN,
|
835
|
+
MINOR_VERSION_PATTERN,
|
836
|
+
BUILD_NUMBER_PATTERN,
|
837
|
+
PATCH_LEVEL_PATTERN]
|
838
|
+
|
839
|
+
source = open(join(root_dir, 'src', 'version.cc')).read()
|
840
|
+
version_components = []
|
841
|
+
for pattern in patterns:
|
842
|
+
match = pattern.search(source)
|
843
|
+
if match:
|
844
|
+
version_components.append(match.group(1).strip())
|
845
|
+
else:
|
846
|
+
version_components.append('0')
|
847
|
+
|
848
|
+
return version_components
|
849
|
+
|
850
|
+
|
851
|
+
def GetVersion():
|
852
|
+
version_components = GetVersionComponents()
|
853
|
+
|
854
|
+
if version_components[len(version_components) - 1] == '0':
|
855
|
+
version_components.pop()
|
856
|
+
return '.'.join(version_components)
|
857
|
+
|
858
|
+
|
859
|
+
def GetSpecificSONAME():
|
860
|
+
SONAME_PATTERN = re.compile(r"#define\s+SONAME\s+\"(.*)\"")
|
861
|
+
|
862
|
+
source = open(join(root_dir, 'src', 'version.cc')).read()
|
863
|
+
match = SONAME_PATTERN.search(source)
|
864
|
+
|
865
|
+
if match:
|
866
|
+
return match.group(1).strip()
|
867
|
+
else:
|
868
|
+
return ''
|
869
|
+
|
870
|
+
|
871
|
+
def SplitList(str):
|
872
|
+
return [ s for s in str.split(",") if len(s) > 0 ]
|
873
|
+
|
874
|
+
|
875
|
+
def IsLegal(env, option, values):
|
876
|
+
str = env[option]
|
877
|
+
for s in SplitList(str):
|
878
|
+
if not s in values:
|
879
|
+
Abort("Illegal value for option %s '%s'." % (option, s))
|
880
|
+
return False
|
881
|
+
return True
|
882
|
+
|
883
|
+
|
884
|
+
def VerifyOptions(env):
|
885
|
+
if not IsLegal(env, 'mode', ['debug', 'release']):
|
886
|
+
return False
|
887
|
+
if not IsLegal(env, 'sample', ["shell", "process", "lineprocessor"]):
|
888
|
+
return False
|
889
|
+
if not IsLegal(env, 'regexp', ["native", "interpreted"]):
|
890
|
+
return False
|
891
|
+
if env['os'] == 'win32' and env['library'] == 'shared' and env['prof'] == 'on':
|
892
|
+
Abort("Profiling on windows only supported for static library.")
|
893
|
+
if env['gdbjit'] == 'on' and (env['os'] != 'linux' or (env['arch'] != 'ia32' and env['arch'] != 'x64' and env['arch'] != 'arm')):
|
894
|
+
Abort("GDBJIT interface is supported only for Intel-compatible (ia32 or x64) Linux target.")
|
895
|
+
if env['os'] == 'win32' and env['soname'] == 'on':
|
896
|
+
Abort("Shared Object soname not applicable for Windows.")
|
897
|
+
if env['soname'] == 'on' and env['library'] == 'static':
|
898
|
+
Abort("Shared Object soname not applicable for static library.")
|
899
|
+
if env['os'] != 'win32' and env['pgo'] != 'off':
|
900
|
+
Abort("Profile guided optimization only supported on Windows.")
|
901
|
+
if env['cache'] and not os.path.isdir(env['cache']):
|
902
|
+
Abort("The specified cache directory does not exist.")
|
903
|
+
if not (env['arch'] == 'arm' or env['simulator'] == 'arm') and ('unalignedaccesses' in ARGUMENTS):
|
904
|
+
print env['arch']
|
905
|
+
print env['simulator']
|
906
|
+
Abort("Option unalignedaccesses only supported for the ARM architecture.")
|
907
|
+
for (name, option) in SIMPLE_OPTIONS.iteritems():
|
908
|
+
if (not option.get('default')) and (name not in ARGUMENTS):
|
909
|
+
message = ("A value for option %s must be specified (%s)." %
|
910
|
+
(name, ", ".join(option['values'])))
|
911
|
+
Abort(message)
|
912
|
+
if not env[name] in option['values']:
|
913
|
+
message = ("Unknown %s value '%s'. Possible values are (%s)." %
|
914
|
+
(name, env[name], ", ".join(option['values'])))
|
915
|
+
Abort(message)
|
916
|
+
|
917
|
+
|
918
|
+
class BuildContext(object):
|
919
|
+
|
920
|
+
def __init__(self, options, env_overrides, samples):
|
921
|
+
self.library_targets = []
|
922
|
+
self.mksnapshot_targets = []
|
923
|
+
self.cctest_targets = []
|
924
|
+
self.sample_targets = []
|
925
|
+
self.d8_targets = []
|
926
|
+
self.options = options
|
927
|
+
self.env_overrides = env_overrides
|
928
|
+
self.samples = samples
|
929
|
+
self.use_snapshot = (options['snapshot'] != 'off')
|
930
|
+
self.build_snapshot = (options['snapshot'] == 'on')
|
931
|
+
self.flags = None
|
932
|
+
|
933
|
+
def AddRelevantFlags(self, initial, flags):
|
934
|
+
result = initial.copy()
|
935
|
+
toolchain = self.options['toolchain']
|
936
|
+
if toolchain in flags:
|
937
|
+
self.AppendFlags(result, flags[toolchain].get('all'))
|
938
|
+
for option in sorted(self.options.keys()):
|
939
|
+
value = self.options[option]
|
940
|
+
self.AppendFlags(result, flags[toolchain].get(option + ':' + value))
|
941
|
+
self.AppendFlags(result, flags.get('all'))
|
942
|
+
return result
|
943
|
+
|
944
|
+
def AddRelevantSubFlags(self, options, flags):
|
945
|
+
self.AppendFlags(options, flags.get('all'))
|
946
|
+
for option in sorted(self.options.keys()):
|
947
|
+
value = self.options[option]
|
948
|
+
self.AppendFlags(options, flags.get(option + ':' + value))
|
949
|
+
|
950
|
+
def GetRelevantSources(self, source):
|
951
|
+
result = []
|
952
|
+
result += source.get('all', [])
|
953
|
+
for (name, value) in self.options.iteritems():
|
954
|
+
source_value = source.get(name + ':' + value, [])
|
955
|
+
if type(source_value) == dict:
|
956
|
+
result += self.GetRelevantSources(source_value)
|
957
|
+
else:
|
958
|
+
result += source_value
|
959
|
+
return sorted(result)
|
960
|
+
|
961
|
+
def AppendFlags(self, options, added):
|
962
|
+
if not added:
|
963
|
+
return
|
964
|
+
for (key, value) in added.iteritems():
|
965
|
+
if key.find(':') != -1:
|
966
|
+
self.AddRelevantSubFlags(options, { key: value })
|
967
|
+
else:
|
968
|
+
if not key in options:
|
969
|
+
options[key] = value
|
970
|
+
else:
|
971
|
+
prefix = options[key]
|
972
|
+
if isinstance(prefix, StringTypes): prefix = prefix.split()
|
973
|
+
options[key] = prefix + value
|
974
|
+
|
975
|
+
def ConfigureObject(self, env, input, **kw):
|
976
|
+
if (kw.has_key('CPPPATH') and env.has_key('CPPPATH')):
|
977
|
+
kw['CPPPATH'] += env['CPPPATH']
|
978
|
+
if self.options['library'] == 'static':
|
979
|
+
return env.StaticObject(input, **kw)
|
980
|
+
else:
|
981
|
+
return env.SharedObject(input, **kw)
|
982
|
+
|
983
|
+
def ApplyEnvOverrides(self, env):
|
984
|
+
if not self.env_overrides:
|
985
|
+
return
|
986
|
+
if type(env['ENV']) == DictType:
|
987
|
+
env['ENV'].update(**self.env_overrides)
|
988
|
+
else:
|
989
|
+
env['ENV'] = self.env_overrides
|
990
|
+
|
991
|
+
|
992
|
+
def PostprocessOptions(options, os):
|
993
|
+
# Adjust architecture if the simulator option has been set
|
994
|
+
if (options['simulator'] != 'none') and (options['arch'] != options['simulator']):
|
995
|
+
if 'arch' in ARGUMENTS:
|
996
|
+
# Print a warning if arch has explicitly been set
|
997
|
+
print "Warning: forcing architecture to match simulator (%s)" % options['simulator']
|
998
|
+
options['arch'] = options['simulator']
|
999
|
+
if (options['prof'] != 'off') and (options['profilingsupport'] == 'off'):
|
1000
|
+
# Print a warning if profiling is enabled without profiling support
|
1001
|
+
print "Warning: forcing profilingsupport on when prof is on"
|
1002
|
+
options['profilingsupport'] = 'on'
|
1003
|
+
if os == 'win32' and options['pgo'] != 'off' and options['msvcltcg'] == 'off':
|
1004
|
+
if 'msvcltcg' in ARGUMENTS:
|
1005
|
+
print "Warning: forcing msvcltcg on as it is required for pgo (%s)" % options['pgo']
|
1006
|
+
options['msvcltcg'] = 'on'
|
1007
|
+
if options['arch'] == 'mips':
|
1008
|
+
if ('regexp' in ARGUMENTS) and options['regexp'] == 'native':
|
1009
|
+
# Print a warning if native regexp is specified for mips
|
1010
|
+
print "Warning: forcing regexp to interpreted for mips"
|
1011
|
+
options['regexp'] = 'interpreted'
|
1012
|
+
if options['liveobjectlist'] == 'on':
|
1013
|
+
if (options['debuggersupport'] != 'on') or (options['mode'] == 'release'):
|
1014
|
+
# Print a warning that liveobjectlist will implicitly enable the debugger
|
1015
|
+
print "Warning: forcing debuggersupport on for liveobjectlist"
|
1016
|
+
options['debuggersupport'] = 'on'
|
1017
|
+
options['inspector'] = 'on'
|
1018
|
+
options['objectprint'] = 'on'
|
1019
|
+
|
1020
|
+
|
1021
|
+
def ParseEnvOverrides(arg, imports):
|
1022
|
+
# The environment overrides are in the format NAME0:value0,NAME1:value1,...
|
1023
|
+
# The environment imports are in the format NAME0,NAME1,...
|
1024
|
+
overrides = {}
|
1025
|
+
for var in imports.split(','):
|
1026
|
+
if var in os.environ:
|
1027
|
+
overrides[var] = os.environ[var]
|
1028
|
+
for override in arg.split(','):
|
1029
|
+
pos = override.find(':')
|
1030
|
+
if pos == -1:
|
1031
|
+
continue
|
1032
|
+
overrides[override[:pos].strip()] = override[pos+1:].strip()
|
1033
|
+
return overrides
|
1034
|
+
|
1035
|
+
|
1036
|
+
def BuildSpecific(env, mode, env_overrides):
|
1037
|
+
options = {'mode': mode}
|
1038
|
+
for option in SIMPLE_OPTIONS:
|
1039
|
+
options[option] = env[option]
|
1040
|
+
PostprocessOptions(options, env['os'])
|
1041
|
+
|
1042
|
+
context = BuildContext(options, env_overrides, samples=SplitList(env['sample']))
|
1043
|
+
|
1044
|
+
# Remove variables which can't be imported from the user's external
|
1045
|
+
# environment into a construction environment.
|
1046
|
+
user_environ = os.environ.copy()
|
1047
|
+
try:
|
1048
|
+
del user_environ['ENV']
|
1049
|
+
except KeyError:
|
1050
|
+
pass
|
1051
|
+
|
1052
|
+
library_flags = context.AddRelevantFlags(user_environ, LIBRARY_FLAGS)
|
1053
|
+
v8_flags = context.AddRelevantFlags(library_flags, V8_EXTRA_FLAGS)
|
1054
|
+
mksnapshot_flags = context.AddRelevantFlags(library_flags, MKSNAPSHOT_EXTRA_FLAGS)
|
1055
|
+
dtoa_flags = context.AddRelevantFlags(library_flags, DTOA_EXTRA_FLAGS)
|
1056
|
+
cctest_flags = context.AddRelevantFlags(v8_flags, CCTEST_EXTRA_FLAGS)
|
1057
|
+
sample_flags = context.AddRelevantFlags(user_environ, SAMPLE_FLAGS)
|
1058
|
+
d8_flags = context.AddRelevantFlags(library_flags, D8_FLAGS)
|
1059
|
+
|
1060
|
+
context.flags = {
|
1061
|
+
'v8': v8_flags,
|
1062
|
+
'mksnapshot': mksnapshot_flags,
|
1063
|
+
'dtoa': dtoa_flags,
|
1064
|
+
'cctest': cctest_flags,
|
1065
|
+
'sample': sample_flags,
|
1066
|
+
'd8': d8_flags
|
1067
|
+
}
|
1068
|
+
|
1069
|
+
# Generate library base name.
|
1070
|
+
target_id = mode
|
1071
|
+
suffix = SUFFIXES[target_id]
|
1072
|
+
library_name = 'v8' + suffix
|
1073
|
+
version = GetVersion()
|
1074
|
+
if context.options['soname'] == 'on':
|
1075
|
+
# When building shared object with SONAME version the library name.
|
1076
|
+
library_name += '-' + version
|
1077
|
+
|
1078
|
+
# Generate library SONAME if required by the build.
|
1079
|
+
if context.options['soname'] == 'on':
|
1080
|
+
soname = GetSpecificSONAME()
|
1081
|
+
if soname == '':
|
1082
|
+
soname = 'lib' + library_name + '.so'
|
1083
|
+
env['SONAME'] = soname
|
1084
|
+
|
1085
|
+
# Build the object files by invoking SCons recursively.
|
1086
|
+
(object_files, shell_files, mksnapshot) = env.SConscript(
|
1087
|
+
join('src', 'SConscript'),
|
1088
|
+
build_dir=join('obj', target_id),
|
1089
|
+
exports='context',
|
1090
|
+
duplicate=False
|
1091
|
+
)
|
1092
|
+
|
1093
|
+
context.mksnapshot_targets.append(mksnapshot)
|
1094
|
+
|
1095
|
+
# Link the object files into a library.
|
1096
|
+
env.Replace(**context.flags['v8'])
|
1097
|
+
|
1098
|
+
context.ApplyEnvOverrides(env)
|
1099
|
+
if context.options['library'] == 'static':
|
1100
|
+
library = env.StaticLibrary(library_name, object_files)
|
1101
|
+
else:
|
1102
|
+
# There seems to be a glitch in the way scons decides where to put
|
1103
|
+
# PDB files when compiling using MSVC so we specify it manually.
|
1104
|
+
# This should not affect any other platforms.
|
1105
|
+
pdb_name = library_name + '.dll.pdb'
|
1106
|
+
library = env.SharedLibrary(library_name, object_files, PDB=pdb_name)
|
1107
|
+
context.library_targets.append(library)
|
1108
|
+
|
1109
|
+
d8_env = Environment()
|
1110
|
+
d8_env.Replace(**context.flags['d8'])
|
1111
|
+
context.ApplyEnvOverrides(d8_env)
|
1112
|
+
shell = d8_env.Program('d8' + suffix, object_files + shell_files)
|
1113
|
+
context.d8_targets.append(shell)
|
1114
|
+
|
1115
|
+
for sample in context.samples:
|
1116
|
+
sample_env = Environment()
|
1117
|
+
sample_env.Replace(**context.flags['sample'])
|
1118
|
+
sample_env.Prepend(LIBS=[library_name])
|
1119
|
+
context.ApplyEnvOverrides(sample_env)
|
1120
|
+
sample_object = sample_env.SConscript(
|
1121
|
+
join('samples', 'SConscript'),
|
1122
|
+
build_dir=join('obj', 'sample', sample, target_id),
|
1123
|
+
exports='sample context',
|
1124
|
+
duplicate=False
|
1125
|
+
)
|
1126
|
+
sample_name = sample + suffix
|
1127
|
+
sample_program = sample_env.Program(sample_name, sample_object)
|
1128
|
+
sample_env.Depends(sample_program, library)
|
1129
|
+
context.sample_targets.append(sample_program)
|
1130
|
+
|
1131
|
+
cctest_env = env.Copy()
|
1132
|
+
cctest_env.Prepend(LIBS=[library_name])
|
1133
|
+
cctest_program = cctest_env.SConscript(
|
1134
|
+
join('test', 'cctest', 'SConscript'),
|
1135
|
+
build_dir=join('obj', 'test', target_id),
|
1136
|
+
exports='context object_files',
|
1137
|
+
duplicate=False
|
1138
|
+
)
|
1139
|
+
context.cctest_targets.append(cctest_program)
|
1140
|
+
|
1141
|
+
return context
|
1142
|
+
|
1143
|
+
|
1144
|
+
def Build():
|
1145
|
+
opts = GetOptions()
|
1146
|
+
env = Environment(options=opts)
|
1147
|
+
Help(opts.GenerateHelpText(env))
|
1148
|
+
VerifyOptions(env)
|
1149
|
+
env_overrides = ParseEnvOverrides(env['env'], env['importenv'])
|
1150
|
+
|
1151
|
+
SourceSignatures(env['sourcesignatures'])
|
1152
|
+
|
1153
|
+
libraries = []
|
1154
|
+
mksnapshots = []
|
1155
|
+
cctests = []
|
1156
|
+
samples = []
|
1157
|
+
d8s = []
|
1158
|
+
modes = SplitList(env['mode'])
|
1159
|
+
for mode in modes:
|
1160
|
+
context = BuildSpecific(env.Copy(), mode, env_overrides)
|
1161
|
+
libraries += context.library_targets
|
1162
|
+
mksnapshots += context.mksnapshot_targets
|
1163
|
+
cctests += context.cctest_targets
|
1164
|
+
samples += context.sample_targets
|
1165
|
+
d8s += context.d8_targets
|
1166
|
+
|
1167
|
+
env.Alias('library', libraries)
|
1168
|
+
env.Alias('mksnapshot', mksnapshots)
|
1169
|
+
env.Alias('cctests', cctests)
|
1170
|
+
env.Alias('sample', samples)
|
1171
|
+
env.Alias('d8', d8s)
|
1172
|
+
|
1173
|
+
if env['sample']:
|
1174
|
+
env.Default('sample')
|
1175
|
+
else:
|
1176
|
+
env.Default('library')
|
1177
|
+
|
1178
|
+
if env['cache']:
|
1179
|
+
CacheDir(env['cache'])
|
1180
|
+
|
1181
|
+
# We disable deprecation warnings because we need to be able to use
|
1182
|
+
# env.Copy without getting warnings for compatibility with older
|
1183
|
+
# version of scons. Also, there's a bug in some revisions that
|
1184
|
+
# doesn't allow this flag to be set, so we swallow any exceptions.
|
1185
|
+
# Lovely.
|
1186
|
+
try:
|
1187
|
+
SetOption('warn', 'no-deprecated')
|
1188
|
+
except:
|
1189
|
+
pass
|
1190
|
+
|
1191
|
+
|
1192
|
+
Build()
|