therubyracer 0.9.0beta2 → 0.9.0beta3
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/.gitmodules +3 -0
- data/ext/v8/upstream/Makefile +1 -2
- data/ext/v8/upstream/v8/.gitignore +33 -0
- data/ext/v8/upstream/v8/AUTHORS +42 -0
- data/ext/v8/upstream/v8/ChangeLog +2663 -0
- data/ext/v8/upstream/{3.1.8 → v8}/LICENSE +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/LICENSE.strongtalk +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/LICENSE.v8 +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/LICENSE.valgrind +0 -0
- data/ext/v8/upstream/v8/SConstruct +1473 -0
- data/ext/v8/upstream/{3.1.8 → v8}/build/README.txt +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/build/all.gyp +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/build/armu.gypi +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/build/common.gypi +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/build/gyp_v8 +0 -0
- data/ext/v8/upstream/v8/include/v8-debug.h +394 -0
- data/ext/v8/upstream/v8/include/v8-preparser.h +116 -0
- data/ext/v8/upstream/v8/include/v8-profiler.h +505 -0
- data/ext/v8/upstream/v8/include/v8-testing.h +104 -0
- data/ext/v8/upstream/v8/include/v8.h +4000 -0
- data/ext/v8/upstream/{3.1.8 → v8}/include/v8stdint.h +0 -0
- data/ext/v8/upstream/v8/preparser/SConscript +38 -0
- data/ext/v8/upstream/v8/preparser/preparser-process.cc +169 -0
- data/ext/v8/upstream/v8/src/SConscript +380 -0
- data/ext/v8/upstream/v8/src/accessors.cc +766 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/accessors.h +0 -0
- data/ext/v8/upstream/v8/src/allocation-inl.h +49 -0
- data/ext/v8/upstream/v8/src/allocation.cc +122 -0
- data/ext/v8/upstream/v8/src/allocation.h +143 -0
- data/ext/v8/upstream/v8/src/api.cc +5678 -0
- data/ext/v8/upstream/v8/src/api.h +572 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/apinatives.js +0 -0
- data/ext/v8/upstream/v8/src/apiutils.h +73 -0
- data/ext/v8/upstream/v8/src/arguments.h +116 -0
- data/ext/v8/upstream/v8/src/arm/assembler-arm-inl.h +353 -0
- data/ext/v8/upstream/v8/src/arm/assembler-arm.cc +2877 -0
- data/ext/v8/upstream/v8/src/arm/assembler-arm.h +1382 -0
- data/ext/v8/upstream/v8/src/arm/builtins-arm.cc +1634 -0
- data/ext/v8/upstream/v8/src/arm/code-stubs-arm.cc +6917 -0
- data/ext/v8/upstream/v8/src/arm/code-stubs-arm.h +623 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/arm/codegen-arm-inl.h +0 -0
- data/ext/v8/upstream/v8/src/arm/codegen-arm.cc +7437 -0
- data/ext/v8/upstream/v8/src/arm/codegen-arm.h +595 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/arm/constants-arm.cc +0 -0
- data/ext/v8/upstream/v8/src/arm/constants-arm.h +778 -0
- data/ext/v8/upstream/v8/src/arm/cpu-arm.cc +149 -0
- data/ext/v8/upstream/v8/src/arm/debug-arm.cc +317 -0
- data/ext/v8/upstream/v8/src/arm/deoptimizer-arm.cc +737 -0
- data/ext/v8/upstream/v8/src/arm/disasm-arm.cc +1503 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/arm/frames-arm.cc +0 -0
- data/ext/v8/upstream/v8/src/arm/frames-arm.h +168 -0
- data/ext/v8/upstream/v8/src/arm/full-codegen-arm.cc +4374 -0
- data/ext/v8/upstream/v8/src/arm/ic-arm.cc +1793 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/arm/jump-target-arm.cc +0 -0
- data/ext/v8/upstream/v8/src/arm/lithium-arm.cc +2120 -0
- data/ext/v8/upstream/v8/src/arm/lithium-arm.h +2179 -0
- data/ext/v8/upstream/v8/src/arm/lithium-codegen-arm.cc +4132 -0
- data/ext/v8/upstream/v8/src/arm/lithium-codegen-arm.h +329 -0
- data/ext/v8/upstream/v8/src/arm/lithium-gap-resolver-arm.cc +305 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/arm/lithium-gap-resolver-arm.h +0 -0
- data/ext/v8/upstream/v8/src/arm/macro-assembler-arm.cc +2939 -0
- data/ext/v8/upstream/v8/src/arm/macro-assembler-arm.h +1071 -0
- data/ext/v8/upstream/v8/src/arm/regexp-macro-assembler-arm.cc +1287 -0
- data/ext/v8/upstream/v8/src/arm/regexp-macro-assembler-arm.h +253 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/arm/register-allocator-arm-inl.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/arm/register-allocator-arm.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/arm/register-allocator-arm.h +0 -0
- data/ext/v8/upstream/v8/src/arm/simulator-arm.cc +3288 -0
- data/ext/v8/upstream/v8/src/arm/simulator-arm.h +413 -0
- data/ext/v8/upstream/v8/src/arm/stub-cache-arm.cc +4034 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/arm/virtual-frame-arm-inl.h +0 -0
- data/ext/v8/upstream/v8/src/arm/virtual-frame-arm.cc +843 -0
- data/ext/v8/upstream/v8/src/arm/virtual-frame-arm.h +523 -0
- data/ext/v8/upstream/v8/src/array.js +1249 -0
- data/ext/v8/upstream/v8/src/assembler.cc +1067 -0
- data/ext/v8/upstream/v8/src/assembler.h +823 -0
- data/ext/v8/upstream/v8/src/ast-inl.h +112 -0
- data/ext/v8/upstream/v8/src/ast.cc +1078 -0
- data/ext/v8/upstream/v8/src/ast.h +2234 -0
- data/ext/v8/upstream/v8/src/atomicops.h +167 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/atomicops_internals_arm_gcc.h +0 -0
- data/ext/v8/upstream/v8/src/atomicops_internals_mips_gcc.h +169 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/atomicops_internals_x86_gcc.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/atomicops_internals_x86_gcc.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/atomicops_internals_x86_macosx.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/atomicops_internals_x86_msvc.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/bignum-dtoa.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/bignum-dtoa.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/bignum.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/bignum.h +0 -0
- data/ext/v8/upstream/v8/src/bootstrapper.cc +2138 -0
- data/ext/v8/upstream/v8/src/bootstrapper.h +185 -0
- data/ext/v8/upstream/v8/src/builtins.cc +1708 -0
- data/ext/v8/upstream/v8/src/builtins.h +368 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/bytecodes-irregexp.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/cached-powers.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/cached-powers.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/char-predicates-inl.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/char-predicates.h +0 -0
- data/ext/v8/upstream/v8/src/checks.cc +110 -0
- data/ext/v8/upstream/v8/src/checks.h +296 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/circular-queue-inl.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/circular-queue.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/circular-queue.h +0 -0
- data/ext/v8/upstream/v8/src/code-stubs.cc +240 -0
- data/ext/v8/upstream/v8/src/code-stubs.h +971 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/code.h +0 -0
- data/ext/v8/upstream/v8/src/codegen-inl.h +68 -0
- data/ext/v8/upstream/v8/src/codegen.cc +505 -0
- data/ext/v8/upstream/v8/src/codegen.h +245 -0
- data/ext/v8/upstream/v8/src/compilation-cache.cc +540 -0
- data/ext/v8/upstream/v8/src/compilation-cache.h +287 -0
- data/ext/v8/upstream/v8/src/compiler.cc +792 -0
- data/ext/v8/upstream/v8/src/compiler.h +307 -0
- data/ext/v8/upstream/v8/src/contexts.cc +327 -0
- data/ext/v8/upstream/v8/src/contexts.h +382 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/conversions-inl.h +0 -0
- data/ext/v8/upstream/v8/src/conversions.cc +1125 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/conversions.h +0 -0
- data/ext/v8/upstream/v8/src/counters.cc +93 -0
- data/ext/v8/upstream/v8/src/counters.h +254 -0
- data/ext/v8/upstream/v8/src/cpu-profiler-inl.h +101 -0
- data/ext/v8/upstream/v8/src/cpu-profiler.cc +606 -0
- data/ext/v8/upstream/v8/src/cpu-profiler.h +305 -0
- data/ext/v8/upstream/v8/src/cpu.h +67 -0
- data/ext/v8/upstream/v8/src/d8-debug.cc +367 -0
- data/ext/v8/upstream/v8/src/d8-debug.h +158 -0
- data/ext/v8/upstream/v8/src/d8-posix.cc +695 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/d8-readline.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/d8-windows.cc +0 -0
- data/ext/v8/upstream/v8/src/d8.cc +796 -0
- data/ext/v8/upstream/v8/src/d8.gyp +88 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/d8.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/d8.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/data-flow.cc +0 -0
- data/ext/v8/upstream/v8/src/data-flow.h +379 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/date.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/dateparser-inl.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/dateparser.cc +0 -0
- data/ext/v8/upstream/v8/src/dateparser.h +265 -0
- data/ext/v8/upstream/v8/src/debug-agent.cc +447 -0
- data/ext/v8/upstream/v8/src/debug-agent.h +129 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/debug-debugger.js +0 -0
- data/ext/v8/upstream/v8/src/debug.cc +3188 -0
- data/ext/v8/upstream/v8/src/debug.h +1055 -0
- data/ext/v8/upstream/v8/src/deoptimizer.cc +1296 -0
- data/ext/v8/upstream/v8/src/deoptimizer.h +629 -0
- data/ext/v8/upstream/v8/src/disasm.h +80 -0
- data/ext/v8/upstream/v8/src/disassembler.cc +339 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/disassembler.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/diy-fp.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/diy-fp.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/double.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/dtoa.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/dtoa.h +0 -0
- data/ext/v8/upstream/v8/src/execution.cc +791 -0
- data/ext/v8/upstream/v8/src/execution.h +291 -0
- data/ext/v8/upstream/v8/src/extensions/experimental/break-iterator.cc +250 -0
- data/ext/v8/upstream/v8/src/extensions/experimental/break-iterator.h +89 -0
- data/ext/v8/upstream/v8/src/extensions/experimental/experimental.gyp +55 -0
- data/ext/v8/upstream/v8/src/extensions/experimental/i18n-extension.cc +284 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/extensions/experimental/i18n-extension.h +0 -0
- data/ext/v8/upstream/v8/src/extensions/externalize-string-extension.cc +141 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/extensions/externalize-string-extension.h +0 -0
- data/ext/v8/upstream/v8/src/extensions/gc-extension.cc +58 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/extensions/gc-extension.h +0 -0
- data/ext/v8/upstream/v8/src/factory.cc +1194 -0
- data/ext/v8/upstream/v8/src/factory.h +436 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/fast-dtoa.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/fast-dtoa.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/fixed-dtoa.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/fixed-dtoa.h +0 -0
- data/ext/v8/upstream/v8/src/flag-definitions.h +556 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/flags.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/flags.h +0 -0
- data/ext/v8/upstream/v8/src/frame-element.cc +37 -0
- data/ext/v8/upstream/v8/src/frame-element.h +269 -0
- data/ext/v8/upstream/v8/src/frames-inl.h +236 -0
- data/ext/v8/upstream/v8/src/frames.cc +1273 -0
- data/ext/v8/upstream/v8/src/frames.h +854 -0
- data/ext/v8/upstream/v8/src/full-codegen.cc +1385 -0
- data/ext/v8/upstream/v8/src/full-codegen.h +753 -0
- data/ext/v8/upstream/v8/src/func-name-inferrer.cc +91 -0
- data/ext/v8/upstream/v8/src/func-name-inferrer.h +111 -0
- data/ext/v8/upstream/v8/src/gdb-jit.cc +1548 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/gdb-jit.h +0 -0
- data/ext/v8/upstream/v8/src/global-handles.cc +596 -0
- data/ext/v8/upstream/v8/src/global-handles.h +239 -0
- data/ext/v8/upstream/v8/src/globals.h +325 -0
- data/ext/v8/upstream/v8/src/handles-inl.h +177 -0
- data/ext/v8/upstream/v8/src/handles.cc +965 -0
- data/ext/v8/upstream/v8/src/handles.h +372 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/hashmap.cc +0 -0
- data/ext/v8/upstream/v8/src/hashmap.h +121 -0
- data/ext/v8/upstream/v8/src/heap-inl.h +703 -0
- data/ext/v8/upstream/v8/src/heap-profiler.cc +1173 -0
- data/ext/v8/upstream/v8/src/heap-profiler.h +396 -0
- data/ext/v8/upstream/v8/src/heap.cc +5856 -0
- data/ext/v8/upstream/v8/src/heap.h +2264 -0
- data/ext/v8/upstream/v8/src/hydrogen-instructions.cc +1639 -0
- data/ext/v8/upstream/v8/src/hydrogen-instructions.h +3657 -0
- data/ext/v8/upstream/v8/src/hydrogen.cc +6011 -0
- data/ext/v8/upstream/v8/src/hydrogen.h +1137 -0
- data/ext/v8/upstream/v8/src/ia32/assembler-ia32-inl.h +430 -0
- data/ext/v8/upstream/v8/src/ia32/assembler-ia32.cc +2846 -0
- data/ext/v8/upstream/v8/src/ia32/assembler-ia32.h +1159 -0
- data/ext/v8/upstream/v8/src/ia32/builtins-ia32.cc +1596 -0
- data/ext/v8/upstream/v8/src/ia32/code-stubs-ia32.cc +6549 -0
- data/ext/v8/upstream/v8/src/ia32/code-stubs-ia32.h +495 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/codegen-ia32-inl.h +0 -0
- data/ext/v8/upstream/v8/src/ia32/codegen-ia32.cc +10385 -0
- data/ext/v8/upstream/v8/src/ia32/codegen-ia32.h +801 -0
- data/ext/v8/upstream/v8/src/ia32/cpu-ia32.cc +88 -0
- data/ext/v8/upstream/v8/src/ia32/debug-ia32.cc +312 -0
- data/ext/v8/upstream/v8/src/ia32/deoptimizer-ia32.cc +774 -0
- data/ext/v8/upstream/v8/src/ia32/disasm-ia32.cc +1620 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/frames-ia32.cc +0 -0
- data/ext/v8/upstream/v8/src/ia32/frames-ia32.h +140 -0
- data/ext/v8/upstream/v8/src/ia32/full-codegen-ia32.cc +4357 -0
- data/ext/v8/upstream/v8/src/ia32/ic-ia32.cc +1779 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/jump-target-ia32.cc +0 -0
- data/ext/v8/upstream/v8/src/ia32/lithium-codegen-ia32.cc +4158 -0
- data/ext/v8/upstream/v8/src/ia32/lithium-codegen-ia32.h +318 -0
- data/ext/v8/upstream/v8/src/ia32/lithium-gap-resolver-ia32.cc +466 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/lithium-gap-resolver-ia32.h +0 -0
- data/ext/v8/upstream/v8/src/ia32/lithium-ia32.cc +2181 -0
- data/ext/v8/upstream/v8/src/ia32/lithium-ia32.h +2235 -0
- data/ext/v8/upstream/v8/src/ia32/macro-assembler-ia32.cc +2056 -0
- data/ext/v8/upstream/v8/src/ia32/macro-assembler-ia32.h +807 -0
- data/ext/v8/upstream/v8/src/ia32/regexp-macro-assembler-ia32.cc +1264 -0
- data/ext/v8/upstream/v8/src/ia32/regexp-macro-assembler-ia32.h +216 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/register-allocator-ia32-inl.h +0 -0
- data/ext/v8/upstream/v8/src/ia32/register-allocator-ia32.cc +157 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/register-allocator-ia32.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/simulator-ia32.cc +0 -0
- data/ext/v8/upstream/v8/src/ia32/simulator-ia32.h +72 -0
- data/ext/v8/upstream/v8/src/ia32/stub-cache-ia32.cc +3711 -0
- data/ext/v8/upstream/v8/src/ia32/virtual-frame-ia32.cc +1366 -0
- data/ext/v8/upstream/v8/src/ia32/virtual-frame-ia32.h +650 -0
- data/ext/v8/upstream/v8/src/ic-inl.h +130 -0
- data/ext/v8/upstream/v8/src/ic.cc +2389 -0
- data/ext/v8/upstream/v8/src/ic.h +675 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/inspector.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/inspector.h +0 -0
- data/ext/v8/upstream/v8/src/interpreter-irregexp.cc +659 -0
- data/ext/v8/upstream/v8/src/interpreter-irregexp.h +49 -0
- data/ext/v8/upstream/v8/src/isolate.cc +883 -0
- data/ext/v8/upstream/v8/src/isolate.h +1306 -0
- data/ext/v8/upstream/v8/src/json.js +342 -0
- data/ext/v8/upstream/v8/src/jsregexp.cc +5371 -0
- data/ext/v8/upstream/v8/src/jsregexp.h +1483 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/jump-target-heavy-inl.h +0 -0
- data/ext/v8/upstream/v8/src/jump-target-heavy.cc +427 -0
- data/ext/v8/upstream/v8/src/jump-target-heavy.h +238 -0
- data/ext/v8/upstream/v8/src/jump-target-inl.h +48 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/jump-target-light-inl.h +0 -0
- data/ext/v8/upstream/v8/src/jump-target-light.cc +111 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/jump-target-light.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/jump-target.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/jump-target.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/list-inl.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/list.h +0 -0
- data/ext/v8/upstream/v8/src/lithium-allocator-inl.h +142 -0
- data/ext/v8/upstream/v8/src/lithium-allocator.cc +2105 -0
- data/ext/v8/upstream/v8/src/lithium-allocator.h +630 -0
- data/ext/v8/upstream/v8/src/lithium.cc +169 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/lithium.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/liveedit-debugger.js +0 -0
- data/ext/v8/upstream/v8/src/liveedit.cc +1693 -0
- data/ext/v8/upstream/v8/src/liveedit.h +179 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/liveobjectlist-inl.h +0 -0
- data/ext/v8/upstream/v8/src/liveobjectlist.cc +2589 -0
- data/ext/v8/upstream/v8/src/liveobjectlist.h +322 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/log-inl.h +0 -0
- data/ext/v8/upstream/v8/src/log-utils.cc +423 -0
- data/ext/v8/upstream/v8/src/log-utils.h +229 -0
- data/ext/v8/upstream/v8/src/log.cc +1666 -0
- data/ext/v8/upstream/v8/src/log.h +446 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/macro-assembler.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/macros.py +0 -0
- data/ext/v8/upstream/v8/src/mark-compact.cc +3092 -0
- data/ext/v8/upstream/v8/src/mark-compact.h +506 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/math.js +0 -0
- data/ext/v8/upstream/v8/src/messages.cc +166 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/messages.h +0 -0
- data/ext/v8/upstream/v8/src/messages.js +1090 -0
- data/ext/v8/upstream/v8/src/mips/assembler-mips-inl.h +335 -0
- data/ext/v8/upstream/v8/src/mips/assembler-mips.cc +2093 -0
- data/ext/v8/upstream/v8/src/mips/assembler-mips.h +1066 -0
- data/ext/v8/upstream/v8/src/mips/builtins-mips.cc +148 -0
- data/ext/v8/upstream/v8/src/mips/code-stubs-mips.cc +752 -0
- data/ext/v8/upstream/v8/src/mips/code-stubs-mips.h +511 -0
- data/ext/v8/upstream/v8/src/mips/codegen-mips-inl.h +64 -0
- data/ext/v8/upstream/v8/src/mips/codegen-mips.cc +1213 -0
- data/ext/v8/upstream/v8/src/mips/codegen-mips.h +633 -0
- data/ext/v8/upstream/v8/src/mips/constants-mips.cc +352 -0
- data/ext/v8/upstream/v8/src/mips/constants-mips.h +723 -0
- data/ext/v8/upstream/v8/src/mips/cpu-mips.cc +90 -0
- data/ext/v8/upstream/v8/src/mips/debug-mips.cc +155 -0
- data/ext/v8/upstream/v8/src/mips/deoptimizer-mips.cc +91 -0
- data/ext/v8/upstream/v8/src/mips/disasm-mips.cc +1023 -0
- data/ext/v8/upstream/v8/src/mips/frames-mips.cc +48 -0
- data/ext/v8/upstream/v8/src/mips/frames-mips.h +179 -0
- data/ext/v8/upstream/v8/src/mips/full-codegen-mips.cc +727 -0
- data/ext/v8/upstream/v8/src/mips/ic-mips.cc +244 -0
- data/ext/v8/upstream/v8/src/mips/jump-target-mips.cc +80 -0
- data/ext/v8/upstream/v8/src/mips/lithium-codegen-mips.h +65 -0
- data/ext/v8/upstream/v8/src/mips/lithium-mips.h +304 -0
- data/ext/v8/upstream/v8/src/mips/macro-assembler-mips.cc +3327 -0
- data/ext/v8/upstream/v8/src/mips/macro-assembler-mips.h +1058 -0
- data/ext/v8/upstream/v8/src/mips/regexp-macro-assembler-mips.cc +478 -0
- data/ext/v8/upstream/v8/src/mips/regexp-macro-assembler-mips.h +250 -0
- data/ext/v8/upstream/v8/src/mips/register-allocator-mips-inl.h +134 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/mips/register-allocator-mips.cc +0 -0
- data/ext/v8/upstream/v8/src/mips/register-allocator-mips.h +47 -0
- data/ext/v8/upstream/v8/src/mips/simulator-mips.cc +2438 -0
- data/ext/v8/upstream/v8/src/mips/simulator-mips.h +394 -0
- data/ext/v8/upstream/v8/src/mips/stub-cache-mips.cc +601 -0
- data/ext/v8/upstream/v8/src/mips/virtual-frame-mips-inl.h +58 -0
- data/ext/v8/upstream/v8/src/mips/virtual-frame-mips.cc +307 -0
- data/ext/v8/upstream/v8/src/mips/virtual-frame-mips.h +530 -0
- data/ext/v8/upstream/v8/src/mirror-debugger.js +2381 -0
- data/ext/v8/upstream/v8/src/mksnapshot.cc +256 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/natives.h +0 -0
- data/ext/v8/upstream/v8/src/objects-debug.cc +722 -0
- data/ext/v8/upstream/v8/src/objects-inl.h +4166 -0
- data/ext/v8/upstream/v8/src/objects-printer.cc +801 -0
- data/ext/v8/upstream/v8/src/objects-visiting.cc +142 -0
- data/ext/v8/upstream/v8/src/objects-visiting.h +422 -0
- data/ext/v8/upstream/v8/src/objects.cc +10296 -0
- data/ext/v8/upstream/v8/src/objects.h +6662 -0
- data/ext/v8/upstream/v8/src/parser.cc +5168 -0
- data/ext/v8/upstream/v8/src/parser.h +823 -0
- data/ext/v8/upstream/v8/src/platform-cygwin.cc +811 -0
- data/ext/v8/upstream/v8/src/platform-freebsd.cc +854 -0
- data/ext/v8/upstream/v8/src/platform-linux.cc +1120 -0
- data/ext/v8/upstream/v8/src/platform-macos.cc +865 -0
- data/ext/v8/upstream/v8/src/platform-nullos.cc +504 -0
- data/ext/v8/upstream/v8/src/platform-openbsd.cc +672 -0
- data/ext/v8/upstream/v8/src/platform-posix.cc +424 -0
- data/ext/v8/upstream/v8/src/platform-solaris.cc +796 -0
- data/ext/v8/upstream/v8/src/platform-tls-mac.h +62 -0
- data/ext/v8/upstream/v8/src/platform-tls-win32.h +62 -0
- data/ext/v8/upstream/v8/src/platform-tls.h +50 -0
- data/ext/v8/upstream/v8/src/platform-win32.cc +2072 -0
- data/ext/v8/upstream/v8/src/platform.h +693 -0
- data/ext/v8/upstream/v8/src/preparse-data.cc +185 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/preparse-data.h +0 -0
- data/ext/v8/upstream/v8/src/preparser-api.cc +219 -0
- data/ext/v8/upstream/v8/src/preparser.cc +1205 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/preparser.h +0 -0
- data/ext/v8/upstream/v8/src/prettyprinter.cc +1530 -0
- data/ext/v8/upstream/v8/src/prettyprinter.h +223 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/profile-generator-inl.h +0 -0
- data/ext/v8/upstream/v8/src/profile-generator.cc +3095 -0
- data/ext/v8/upstream/v8/src/profile-generator.h +1125 -0
- data/ext/v8/upstream/v8/src/property.cc +102 -0
- data/ext/v8/upstream/v8/src/property.h +348 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/regexp-macro-assembler-irregexp-inl.h +0 -0
- data/ext/v8/upstream/v8/src/regexp-macro-assembler-irregexp.cc +470 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/regexp-macro-assembler-irregexp.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/regexp-macro-assembler-tracer.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/regexp-macro-assembler-tracer.h +0 -0
- data/ext/v8/upstream/v8/src/regexp-macro-assembler.cc +266 -0
- data/ext/v8/upstream/v8/src/regexp-macro-assembler.h +236 -0
- data/ext/v8/upstream/v8/src/regexp-stack.cc +111 -0
- data/ext/v8/upstream/v8/src/regexp-stack.h +147 -0
- data/ext/v8/upstream/v8/src/regexp.js +483 -0
- data/ext/v8/upstream/v8/src/register-allocator-inl.h +141 -0
- data/ext/v8/upstream/v8/src/register-allocator.cc +98 -0
- data/ext/v8/upstream/v8/src/register-allocator.h +310 -0
- data/ext/v8/upstream/v8/src/rewriter.cc +1024 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/rewriter.h +0 -0
- data/ext/v8/upstream/v8/src/runtime-profiler.cc +478 -0
- data/ext/v8/upstream/v8/src/runtime-profiler.h +192 -0
- data/ext/v8/upstream/v8/src/runtime.cc +11949 -0
- data/ext/v8/upstream/v8/src/runtime.h +643 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/runtime.js +0 -0
- data/ext/v8/upstream/v8/src/safepoint-table.cc +256 -0
- data/ext/v8/upstream/v8/src/safepoint-table.h +269 -0
- data/ext/v8/upstream/v8/src/scanner-base.cc +964 -0
- data/ext/v8/upstream/v8/src/scanner-base.h +664 -0
- data/ext/v8/upstream/v8/src/scanner.cc +584 -0
- data/ext/v8/upstream/v8/src/scanner.h +196 -0
- data/ext/v8/upstream/v8/src/scopeinfo.cc +631 -0
- data/ext/v8/upstream/v8/src/scopeinfo.h +249 -0
- data/ext/v8/upstream/v8/src/scopes.cc +1093 -0
- data/ext/v8/upstream/v8/src/scopes.h +508 -0
- data/ext/v8/upstream/v8/src/serialize.cc +1574 -0
- data/ext/v8/upstream/v8/src/serialize.h +589 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/shell.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/simulator.h +0 -0
- data/ext/v8/upstream/v8/src/small-pointer-list.h +163 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/smart-pointer.h +0 -0
- data/ext/v8/upstream/v8/src/snapshot-common.cc +82 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/snapshot-empty.cc +0 -0
- data/ext/v8/upstream/v8/src/snapshot.h +73 -0
- data/ext/v8/upstream/v8/src/spaces-inl.h +529 -0
- data/ext/v8/upstream/v8/src/spaces.cc +3147 -0
- data/ext/v8/upstream/v8/src/spaces.h +2368 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/splay-tree-inl.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/splay-tree.h +0 -0
- data/ext/v8/upstream/v8/src/string-search.cc +41 -0
- data/ext/v8/upstream/v8/src/string-search.h +568 -0
- data/ext/v8/upstream/v8/src/string-stream.cc +592 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/string-stream.h +0 -0
- data/ext/v8/upstream/v8/src/string.js +915 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/strtod.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/strtod.h +0 -0
- data/ext/v8/upstream/v8/src/stub-cache.cc +1940 -0
- data/ext/v8/upstream/v8/src/stub-cache.h +866 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/third_party/valgrind/valgrind.h +0 -0
- data/ext/v8/upstream/v8/src/token.cc +63 -0
- data/ext/v8/upstream/v8/src/token.h +288 -0
- data/ext/v8/upstream/v8/src/top.cc +983 -0
- data/ext/v8/upstream/v8/src/type-info.cc +472 -0
- data/ext/v8/upstream/v8/src/type-info.h +290 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/unbound-queue-inl.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/unbound-queue.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/unicode-inl.h +0 -0
- data/ext/v8/upstream/v8/src/unicode.cc +1624 -0
- data/ext/v8/upstream/v8/src/unicode.h +280 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/uri.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/utils.cc +0 -0
- data/ext/v8/upstream/v8/src/utils.h +796 -0
- data/ext/v8/upstream/v8/src/v8-counters.cc +62 -0
- data/ext/v8/upstream/v8/src/v8-counters.h +311 -0
- data/ext/v8/upstream/v8/src/v8.cc +215 -0
- data/ext/v8/upstream/v8/src/v8.h +130 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/v8checks.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/v8dll-main.cc +0 -0
- data/ext/v8/upstream/v8/src/v8globals.h +486 -0
- data/ext/v8/upstream/{3.1.8/src/memory.h → v8/src/v8memory.h} +0 -0
- data/ext/v8/upstream/v8/src/v8natives.js +1293 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/v8preparserdll-main.cc +0 -0
- data/ext/v8/upstream/v8/src/v8threads.cc +453 -0
- data/ext/v8/upstream/v8/src/v8threads.h +164 -0
- data/ext/v8/upstream/v8/src/v8utils.h +317 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/variables.cc +0 -0
- data/ext/v8/upstream/v8/src/variables.h +212 -0
- data/ext/v8/upstream/v8/src/version.cc +116 -0
- data/ext/v8/upstream/v8/src/version.h +68 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/virtual-frame-heavy-inl.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/virtual-frame-heavy.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/virtual-frame-inl.h +0 -0
- data/ext/v8/upstream/v8/src/virtual-frame-light-inl.h +171 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/virtual-frame-light.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/virtual-frame.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/virtual-frame.h +0 -0
- data/ext/v8/upstream/v8/src/vm-state-inl.h +138 -0
- data/ext/v8/upstream/v8/src/vm-state.h +70 -0
- data/ext/v8/upstream/v8/src/win32-headers.h +96 -0
- data/ext/v8/upstream/v8/src/x64/assembler-x64-inl.h +456 -0
- data/ext/v8/upstream/v8/src/x64/assembler-x64.cc +2954 -0
- data/ext/v8/upstream/v8/src/x64/assembler-x64.h +1630 -0
- data/ext/v8/upstream/v8/src/x64/builtins-x64.cc +1493 -0
- data/ext/v8/upstream/v8/src/x64/code-stubs-x64.cc +5132 -0
- data/ext/v8/upstream/v8/src/x64/code-stubs-x64.h +477 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/x64/codegen-x64-inl.h +0 -0
- data/ext/v8/upstream/v8/src/x64/codegen-x64.cc +8843 -0
- data/ext/v8/upstream/v8/src/x64/codegen-x64.h +753 -0
- data/ext/v8/upstream/v8/src/x64/cpu-x64.cc +88 -0
- data/ext/v8/upstream/v8/src/x64/debug-x64.cc +318 -0
- data/ext/v8/upstream/v8/src/x64/deoptimizer-x64.cc +815 -0
- data/ext/v8/upstream/v8/src/x64/disasm-x64.cc +1752 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/x64/frames-x64.cc +0 -0
- data/ext/v8/upstream/v8/src/x64/frames-x64.h +130 -0
- data/ext/v8/upstream/v8/src/x64/full-codegen-x64.cc +4339 -0
- data/ext/v8/upstream/v8/src/x64/ic-x64.cc +1752 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/x64/jump-target-x64.cc +0 -0
- data/ext/v8/upstream/v8/src/x64/lithium-codegen-x64.cc +3970 -0
- data/ext/v8/upstream/v8/src/x64/lithium-codegen-x64.h +318 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/x64/lithium-gap-resolver-x64.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/x64/lithium-gap-resolver-x64.h +0 -0
- data/ext/v8/upstream/v8/src/x64/lithium-x64.cc +2115 -0
- data/ext/v8/upstream/v8/src/x64/lithium-x64.h +2161 -0
- data/ext/v8/upstream/v8/src/x64/macro-assembler-x64.cc +2911 -0
- data/ext/v8/upstream/v8/src/x64/macro-assembler-x64.h +1984 -0
- data/ext/v8/upstream/v8/src/x64/regexp-macro-assembler-x64.cc +1398 -0
- data/ext/v8/upstream/v8/src/x64/regexp-macro-assembler-x64.h +282 -0
- data/ext/v8/upstream/v8/src/x64/register-allocator-x64-inl.h +87 -0
- data/ext/v8/upstream/v8/src/x64/register-allocator-x64.cc +95 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/x64/register-allocator-x64.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/x64/simulator-x64.cc +0 -0
- data/ext/v8/upstream/v8/src/x64/simulator-x64.h +71 -0
- data/ext/v8/upstream/v8/src/x64/stub-cache-x64.cc +3460 -0
- data/ext/v8/upstream/v8/src/x64/virtual-frame-x64.cc +1296 -0
- data/ext/v8/upstream/v8/src/x64/virtual-frame-x64.h +597 -0
- data/ext/v8/upstream/v8/src/zone-inl.h +129 -0
- data/ext/v8/upstream/v8/src/zone.cc +196 -0
- data/ext/v8/upstream/v8/src/zone.h +236 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/codemap.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/consarray.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/csvparser.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/disasm.py +0 -0
- data/ext/v8/upstream/v8/tools/freebsd-tick-processor +10 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/gc-nvp-trace-processor.py +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/generate-ten-powers.scm +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/grokdump.py +0 -0
- data/ext/v8/upstream/v8/tools/gyp/v8.gyp +844 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/js2c.py +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/jsmin.py +0 -0
- data/ext/v8/upstream/v8/tools/linux-tick-processor +35 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/ll_prof.py +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/logreader.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/mac-nm +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/mac-tick-processor +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/oom_dump/README +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/oom_dump/SConstruct +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/oom_dump/oom_dump.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/presubmit.py +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/process-heap-prof.py +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/profile.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/profile_view.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/run-valgrind.py +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/splaytree.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/stats-viewer.py +0 -0
- data/ext/v8/upstream/v8/tools/test.py +1490 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/tickprocessor-driver.js +0 -0
- data/ext/v8/upstream/v8/tools/tickprocessor.js +877 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/utils.py +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/README.txt +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/arm.vsprops +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/common.vsprops +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/d8.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/d8_arm.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/d8_x64.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/d8js2c.cmd +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/debug.vsprops +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/ia32.vsprops +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/js2c.cmd +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/release.vsprops +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8.sln +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_arm.sln +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_arm.vcproj +0 -0
- data/ext/v8/upstream/v8/tools/visual_studio/v8_base.vcproj +1308 -0
- data/ext/v8/upstream/v8/tools/visual_studio/v8_base_arm.vcproj +1238 -0
- data/ext/v8/upstream/v8/tools/visual_studio/v8_base_x64.vcproj +1300 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_cctest.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_cctest_arm.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_cctest_x64.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_mksnapshot.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_mksnapshot_x64.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_process_sample.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_process_sample_arm.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_process_sample_x64.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_shell_sample.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_shell_sample_arm.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_shell_sample_x64.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_snapshot.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_snapshot_cc.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_snapshot_cc_x64.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_snapshot_x64.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_x64.sln +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_x64.vcproj +0 -0
- data/ext/v8/upstream/v8/tools/visual_studio/x64.vsprops +18 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/windows-tick-processor.bat +0 -0
- data/ext/v8/v8_callbacks.cpp +52 -92
- data/ext/v8/v8_date.cpp +2 -3
- data/ext/v8/v8_object.cpp +4 -0
- data/ext/v8/v8_template.cpp +2 -2
- data/ext/v8/v8_try_catch.cpp +8 -38
- data/lib/v8/version.rb +1 -1
- data/spec/ext/ext_spec_helper.rb +2 -20
- data/spec/ext/object_spec.rb +0 -12
- data/spec/ext/try_catch_spec.rb +29 -1
- data/spec/spec_helper.rb +1 -0
- data/spec/v8/portal/proxies_spec.rb +1 -84
- data/specmem/handle_memspec.rb +41 -0
- data/specmem/object_memspec.rb +16 -0
- data/specmem/proxies_memspec.rb +86 -0
- data/specmem/spec_helper.rb +24 -0
- data/therubyracer.gemspec +7 -2
- metadata +564 -541
- data/ext/v8/upstream/3.1.8/.gitignore +0 -31
- data/ext/v8/upstream/3.1.8/AUTHORS +0 -40
- data/ext/v8/upstream/3.1.8/ChangeLog +0 -2566
- data/ext/v8/upstream/3.1.8/SConstruct +0 -1192
- data/ext/v8/upstream/3.1.8/include/v8-debug.h +0 -384
- data/ext/v8/upstream/3.1.8/include/v8-preparser.h +0 -116
- data/ext/v8/upstream/3.1.8/include/v8-profiler.h +0 -426
- data/ext/v8/upstream/3.1.8/include/v8-testing.h +0 -99
- data/ext/v8/upstream/3.1.8/include/v8.h +0 -3846
- data/ext/v8/upstream/3.1.8/preparser/preparser-process.cc +0 -206
- data/ext/v8/upstream/3.1.8/src/SConscript +0 -356
- data/ext/v8/upstream/3.1.8/src/accessors.cc +0 -907
- data/ext/v8/upstream/3.1.8/src/allocation.cc +0 -204
- data/ext/v8/upstream/3.1.8/src/allocation.h +0 -176
- data/ext/v8/upstream/3.1.8/src/api.cc +0 -5191
- data/ext/v8/upstream/3.1.8/src/api.h +0 -508
- data/ext/v8/upstream/3.1.8/src/apiutils.h +0 -80
- data/ext/v8/upstream/3.1.8/src/arguments.h +0 -105
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm-inl.h +0 -352
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm.cc +0 -2756
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm.h +0 -1294
- data/ext/v8/upstream/3.1.8/src/arm/builtins-arm.cc +0 -1628
- data/ext/v8/upstream/3.1.8/src/arm/code-stubs-arm.cc +0 -6783
- data/ext/v8/upstream/3.1.8/src/arm/code-stubs-arm.h +0 -657
- data/ext/v8/upstream/3.1.8/src/arm/codegen-arm.cc +0 -7403
- data/ext/v8/upstream/3.1.8/src/arm/codegen-arm.h +0 -595
- data/ext/v8/upstream/3.1.8/src/arm/constants-arm.h +0 -769
- data/ext/v8/upstream/3.1.8/src/arm/cpu-arm.cc +0 -147
- data/ext/v8/upstream/3.1.8/src/arm/debug-arm.cc +0 -315
- data/ext/v8/upstream/3.1.8/src/arm/deoptimizer-arm.cc +0 -700
- data/ext/v8/upstream/3.1.8/src/arm/disasm-arm.cc +0 -1439
- data/ext/v8/upstream/3.1.8/src/arm/frames-arm.h +0 -168
- data/ext/v8/upstream/3.1.8/src/arm/full-codegen-arm.cc +0 -4230
- data/ext/v8/upstream/3.1.8/src/arm/ic-arm.cc +0 -1799
- data/ext/v8/upstream/3.1.8/src/arm/lithium-arm.cc +0 -2041
- data/ext/v8/upstream/3.1.8/src/arm/lithium-arm.h +0 -2046
- data/ext/v8/upstream/3.1.8/src/arm/lithium-codegen-arm.cc +0 -3822
- data/ext/v8/upstream/3.1.8/src/arm/lithium-codegen-arm.h +0 -312
- data/ext/v8/upstream/3.1.8/src/arm/lithium-gap-resolver-arm.cc +0 -303
- data/ext/v8/upstream/3.1.8/src/arm/macro-assembler-arm.cc +0 -2701
- data/ext/v8/upstream/3.1.8/src/arm/macro-assembler-arm.h +0 -1015
- data/ext/v8/upstream/3.1.8/src/arm/regexp-macro-assembler-arm.cc +0 -1280
- data/ext/v8/upstream/3.1.8/src/arm/regexp-macro-assembler-arm.h +0 -252
- data/ext/v8/upstream/3.1.8/src/arm/simulator-arm.cc +0 -3165
- data/ext/v8/upstream/3.1.8/src/arm/simulator-arm.h +0 -402
- data/ext/v8/upstream/3.1.8/src/arm/stub-cache-arm.cc +0 -4077
- data/ext/v8/upstream/3.1.8/src/arm/virtual-frame-arm.cc +0 -843
- data/ext/v8/upstream/3.1.8/src/arm/virtual-frame-arm.h +0 -520
- data/ext/v8/upstream/3.1.8/src/array.js +0 -1231
- data/ext/v8/upstream/3.1.8/src/assembler.cc +0 -973
- data/ext/v8/upstream/3.1.8/src/assembler.h +0 -787
- data/ext/v8/upstream/3.1.8/src/ast-inl.h +0 -107
- data/ext/v8/upstream/3.1.8/src/ast.cc +0 -1067
- data/ext/v8/upstream/3.1.8/src/ast.h +0 -2177
- data/ext/v8/upstream/3.1.8/src/atomicops.h +0 -165
- data/ext/v8/upstream/3.1.8/src/bootstrapper.cc +0 -1888
- data/ext/v8/upstream/3.1.8/src/bootstrapper.h +0 -118
- data/ext/v8/upstream/3.1.8/src/builtins.cc +0 -1586
- data/ext/v8/upstream/3.1.8/src/builtins.h +0 -339
- data/ext/v8/upstream/3.1.8/src/checks.cc +0 -110
- data/ext/v8/upstream/3.1.8/src/checks.h +0 -292
- data/ext/v8/upstream/3.1.8/src/code-stubs.cc +0 -230
- data/ext/v8/upstream/3.1.8/src/code-stubs.h +0 -950
- data/ext/v8/upstream/3.1.8/src/codegen-inl.h +0 -64
- data/ext/v8/upstream/3.1.8/src/codegen.cc +0 -495
- data/ext/v8/upstream/3.1.8/src/codegen.h +0 -245
- data/ext/v8/upstream/3.1.8/src/compilation-cache.cc +0 -654
- data/ext/v8/upstream/3.1.8/src/compilation-cache.h +0 -112
- data/ext/v8/upstream/3.1.8/src/compiler.cc +0 -806
- data/ext/v8/upstream/3.1.8/src/compiler.h +0 -290
- data/ext/v8/upstream/3.1.8/src/contexts.cc +0 -320
- data/ext/v8/upstream/3.1.8/src/contexts.h +0 -376
- data/ext/v8/upstream/3.1.8/src/conversions.cc +0 -1069
- data/ext/v8/upstream/3.1.8/src/counters.cc +0 -78
- data/ext/v8/upstream/3.1.8/src/counters.h +0 -242
- data/ext/v8/upstream/3.1.8/src/cpu-profiler-inl.h +0 -100
- data/ext/v8/upstream/3.1.8/src/cpu-profiler.cc +0 -554
- data/ext/v8/upstream/3.1.8/src/cpu-profiler.h +0 -291
- data/ext/v8/upstream/3.1.8/src/cpu.h +0 -65
- data/ext/v8/upstream/3.1.8/src/d8-debug.cc +0 -367
- data/ext/v8/upstream/3.1.8/src/d8-debug.h +0 -157
- data/ext/v8/upstream/3.1.8/src/d8-posix.cc +0 -693
- data/ext/v8/upstream/3.1.8/src/d8.cc +0 -792
- data/ext/v8/upstream/3.1.8/src/d8.gyp +0 -85
- data/ext/v8/upstream/3.1.8/src/data-flow.h +0 -379
- data/ext/v8/upstream/3.1.8/src/dateparser.h +0 -263
- data/ext/v8/upstream/3.1.8/src/debug-agent.cc +0 -446
- data/ext/v8/upstream/3.1.8/src/debug-agent.h +0 -131
- data/ext/v8/upstream/3.1.8/src/debug.cc +0 -3085
- data/ext/v8/upstream/3.1.8/src/debug.h +0 -1025
- data/ext/v8/upstream/3.1.8/src/deoptimizer.cc +0 -1185
- data/ext/v8/upstream/3.1.8/src/deoptimizer.h +0 -529
- data/ext/v8/upstream/3.1.8/src/disasm.h +0 -77
- data/ext/v8/upstream/3.1.8/src/disassembler.cc +0 -338
- data/ext/v8/upstream/3.1.8/src/execution.cc +0 -735
- data/ext/v8/upstream/3.1.8/src/execution.h +0 -322
- data/ext/v8/upstream/3.1.8/src/extensions/experimental/experimental.gyp +0 -53
- data/ext/v8/upstream/3.1.8/src/extensions/experimental/i18n-extension.cc +0 -264
- data/ext/v8/upstream/3.1.8/src/extensions/externalize-string-extension.cc +0 -141
- data/ext/v8/upstream/3.1.8/src/extensions/gc-extension.cc +0 -58
- data/ext/v8/upstream/3.1.8/src/factory.cc +0 -1087
- data/ext/v8/upstream/3.1.8/src/factory.h +0 -432
- data/ext/v8/upstream/3.1.8/src/flag-definitions.h +0 -552
- data/ext/v8/upstream/3.1.8/src/frame-element.cc +0 -42
- data/ext/v8/upstream/3.1.8/src/frame-element.h +0 -277
- data/ext/v8/upstream/3.1.8/src/frames-inl.h +0 -210
- data/ext/v8/upstream/3.1.8/src/frames.cc +0 -1232
- data/ext/v8/upstream/3.1.8/src/frames.h +0 -826
- data/ext/v8/upstream/3.1.8/src/full-codegen.cc +0 -1382
- data/ext/v8/upstream/3.1.8/src/full-codegen.h +0 -751
- data/ext/v8/upstream/3.1.8/src/func-name-inferrer.cc +0 -90
- data/ext/v8/upstream/3.1.8/src/func-name-inferrer.h +0 -111
- data/ext/v8/upstream/3.1.8/src/gdb-jit.cc +0 -1547
- data/ext/v8/upstream/3.1.8/src/global-handles.cc +0 -534
- data/ext/v8/upstream/3.1.8/src/global-handles.h +0 -181
- data/ext/v8/upstream/3.1.8/src/globals.h +0 -325
- data/ext/v8/upstream/3.1.8/src/handles-inl.h +0 -80
- data/ext/v8/upstream/3.1.8/src/handles.cc +0 -910
- data/ext/v8/upstream/3.1.8/src/handles.h +0 -424
- data/ext/v8/upstream/3.1.8/src/hashmap.h +0 -121
- data/ext/v8/upstream/3.1.8/src/heap-inl.h +0 -587
- data/ext/v8/upstream/3.1.8/src/heap-profiler.cc +0 -1128
- data/ext/v8/upstream/3.1.8/src/heap-profiler.h +0 -381
- data/ext/v8/upstream/3.1.8/src/heap.cc +0 -5610
- data/ext/v8/upstream/3.1.8/src/heap.h +0 -2218
- data/ext/v8/upstream/3.1.8/src/hydrogen-instructions.cc +0 -1490
- data/ext/v8/upstream/3.1.8/src/hydrogen-instructions.h +0 -3493
- data/ext/v8/upstream/3.1.8/src/hydrogen.cc +0 -6056
- data/ext/v8/upstream/3.1.8/src/hydrogen.h +0 -1091
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32-inl.h +0 -429
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32.cc +0 -2800
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32.h +0 -1093
- data/ext/v8/upstream/3.1.8/src/ia32/builtins-ia32.cc +0 -1590
- data/ext/v8/upstream/3.1.8/src/ia32/code-stubs-ia32.cc +0 -6624
- data/ext/v8/upstream/3.1.8/src/ia32/code-stubs-ia32.h +0 -536
- data/ext/v8/upstream/3.1.8/src/ia32/codegen-ia32.cc +0 -10354
- data/ext/v8/upstream/3.1.8/src/ia32/codegen-ia32.h +0 -798
- data/ext/v8/upstream/3.1.8/src/ia32/cpu-ia32.cc +0 -87
- data/ext/v8/upstream/3.1.8/src/ia32/debug-ia32.cc +0 -309
- data/ext/v8/upstream/3.1.8/src/ia32/deoptimizer-ia32.cc +0 -664
- data/ext/v8/upstream/3.1.8/src/ia32/disasm-ia32.cc +0 -1597
- data/ext/v8/upstream/3.1.8/src/ia32/frames-ia32.h +0 -140
- data/ext/v8/upstream/3.1.8/src/ia32/full-codegen-ia32.cc +0 -4278
- data/ext/v8/upstream/3.1.8/src/ia32/ic-ia32.cc +0 -1786
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-codegen-ia32.cc +0 -3880
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-codegen-ia32.h +0 -309
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-gap-resolver-ia32.cc +0 -460
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-ia32.cc +0 -2095
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-ia32.h +0 -2127
- data/ext/v8/upstream/3.1.8/src/ia32/macro-assembler-ia32.cc +0 -2031
- data/ext/v8/upstream/3.1.8/src/ia32/macro-assembler-ia32.h +0 -798
- data/ext/v8/upstream/3.1.8/src/ia32/regexp-macro-assembler-ia32.cc +0 -1253
- data/ext/v8/upstream/3.1.8/src/ia32/regexp-macro-assembler-ia32.h +0 -215
- data/ext/v8/upstream/3.1.8/src/ia32/register-allocator-ia32.cc +0 -157
- data/ext/v8/upstream/3.1.8/src/ia32/simulator-ia32.h +0 -72
- data/ext/v8/upstream/3.1.8/src/ia32/stub-cache-ia32.cc +0 -3732
- data/ext/v8/upstream/3.1.8/src/ia32/virtual-frame-ia32.cc +0 -1360
- data/ext/v8/upstream/3.1.8/src/ia32/virtual-frame-ia32.h +0 -646
- data/ext/v8/upstream/3.1.8/src/ic-inl.h +0 -129
- data/ext/v8/upstream/3.1.8/src/ic.cc +0 -2333
- data/ext/v8/upstream/3.1.8/src/ic.h +0 -639
- data/ext/v8/upstream/3.1.8/src/interpreter-irregexp.cc +0 -655
- data/ext/v8/upstream/3.1.8/src/interpreter-irregexp.h +0 -48
- data/ext/v8/upstream/3.1.8/src/json.js +0 -342
- data/ext/v8/upstream/3.1.8/src/jsregexp.cc +0 -5340
- data/ext/v8/upstream/3.1.8/src/jsregexp.h +0 -1484
- data/ext/v8/upstream/3.1.8/src/jump-target-heavy.cc +0 -430
- data/ext/v8/upstream/3.1.8/src/jump-target-heavy.h +0 -244
- data/ext/v8/upstream/3.1.8/src/jump-target-inl.h +0 -48
- data/ext/v8/upstream/3.1.8/src/jump-target-light.cc +0 -111
- data/ext/v8/upstream/3.1.8/src/lithium-allocator-inl.h +0 -140
- data/ext/v8/upstream/3.1.8/src/lithium-allocator.cc +0 -2093
- data/ext/v8/upstream/3.1.8/src/lithium-allocator.h +0 -644
- data/ext/v8/upstream/3.1.8/src/lithium.cc +0 -168
- data/ext/v8/upstream/3.1.8/src/liveedit.cc +0 -1650
- data/ext/v8/upstream/3.1.8/src/liveedit.h +0 -174
- data/ext/v8/upstream/3.1.8/src/liveobjectlist.cc +0 -2527
- data/ext/v8/upstream/3.1.8/src/liveobjectlist.h +0 -322
- data/ext/v8/upstream/3.1.8/src/log-utils.cc +0 -336
- data/ext/v8/upstream/3.1.8/src/log-utils.h +0 -232
- data/ext/v8/upstream/3.1.8/src/log.cc +0 -1608
- data/ext/v8/upstream/3.1.8/src/log.h +0 -379
- data/ext/v8/upstream/3.1.8/src/mark-compact.cc +0 -2957
- data/ext/v8/upstream/3.1.8/src/mark-compact.h +0 -433
- data/ext/v8/upstream/3.1.8/src/messages.cc +0 -164
- data/ext/v8/upstream/3.1.8/src/messages.js +0 -1071
- data/ext/v8/upstream/3.1.8/src/mips/assembler-mips-inl.h +0 -215
- data/ext/v8/upstream/3.1.8/src/mips/assembler-mips.cc +0 -1219
- data/ext/v8/upstream/3.1.8/src/mips/assembler-mips.h +0 -667
- data/ext/v8/upstream/3.1.8/src/mips/builtins-mips.cc +0 -205
- data/ext/v8/upstream/3.1.8/src/mips/codegen-mips-inl.h +0 -70
- data/ext/v8/upstream/3.1.8/src/mips/codegen-mips.cc +0 -1437
- data/ext/v8/upstream/3.1.8/src/mips/codegen-mips.h +0 -431
- data/ext/v8/upstream/3.1.8/src/mips/constants-mips.cc +0 -328
- data/ext/v8/upstream/3.1.8/src/mips/constants-mips.h +0 -525
- data/ext/v8/upstream/3.1.8/src/mips/cpu-mips.cc +0 -73
- data/ext/v8/upstream/3.1.8/src/mips/debug-mips.cc +0 -127
- data/ext/v8/upstream/3.1.8/src/mips/disasm-mips.cc +0 -787
- data/ext/v8/upstream/3.1.8/src/mips/fast-codegen-mips.cc +0 -77
- data/ext/v8/upstream/3.1.8/src/mips/frames-mips.cc +0 -96
- data/ext/v8/upstream/3.1.8/src/mips/frames-mips.h +0 -164
- data/ext/v8/upstream/3.1.8/src/mips/full-codegen-mips.cc +0 -277
- data/ext/v8/upstream/3.1.8/src/mips/ic-mips.cc +0 -208
- data/ext/v8/upstream/3.1.8/src/mips/jump-target-mips.cc +0 -175
- data/ext/v8/upstream/3.1.8/src/mips/macro-assembler-mips.cc +0 -1326
- data/ext/v8/upstream/3.1.8/src/mips/macro-assembler-mips.h +0 -461
- data/ext/v8/upstream/3.1.8/src/mips/register-allocator-mips-inl.h +0 -137
- data/ext/v8/upstream/3.1.8/src/mips/register-allocator-mips.h +0 -46
- data/ext/v8/upstream/3.1.8/src/mips/simulator-mips.cc +0 -1650
- data/ext/v8/upstream/3.1.8/src/mips/simulator-mips.h +0 -311
- data/ext/v8/upstream/3.1.8/src/mips/stub-cache-mips.cc +0 -418
- data/ext/v8/upstream/3.1.8/src/mips/virtual-frame-mips.cc +0 -319
- data/ext/v8/upstream/3.1.8/src/mips/virtual-frame-mips.h +0 -548
- data/ext/v8/upstream/3.1.8/src/mirror-debugger.js +0 -2380
- data/ext/v8/upstream/3.1.8/src/mksnapshot.cc +0 -256
- data/ext/v8/upstream/3.1.8/src/objects-debug.cc +0 -722
- data/ext/v8/upstream/3.1.8/src/objects-inl.h +0 -3946
- data/ext/v8/upstream/3.1.8/src/objects-printer.cc +0 -801
- data/ext/v8/upstream/3.1.8/src/objects-visiting.cc +0 -142
- data/ext/v8/upstream/3.1.8/src/objects-visiting.h +0 -401
- data/ext/v8/upstream/3.1.8/src/objects.cc +0 -10044
- data/ext/v8/upstream/3.1.8/src/objects.h +0 -6571
- data/ext/v8/upstream/3.1.8/src/parser.cc +0 -5165
- data/ext/v8/upstream/3.1.8/src/parser.h +0 -802
- data/ext/v8/upstream/3.1.8/src/platform-cygwin.cc +0 -745
- data/ext/v8/upstream/3.1.8/src/platform-freebsd.cc +0 -702
- data/ext/v8/upstream/3.1.8/src/platform-linux.cc +0 -981
- data/ext/v8/upstream/3.1.8/src/platform-macos.cc +0 -732
- data/ext/v8/upstream/3.1.8/src/platform-nullos.cc +0 -498
- data/ext/v8/upstream/3.1.8/src/platform-openbsd.cc +0 -657
- data/ext/v8/upstream/3.1.8/src/platform-posix.cc +0 -399
- data/ext/v8/upstream/3.1.8/src/platform-solaris.cc +0 -714
- data/ext/v8/upstream/3.1.8/src/platform-win32.cc +0 -1974
- data/ext/v8/upstream/3.1.8/src/platform.h +0 -636
- data/ext/v8/upstream/3.1.8/src/preparse-data.cc +0 -183
- data/ext/v8/upstream/3.1.8/src/preparser-api.cc +0 -213
- data/ext/v8/upstream/3.1.8/src/preparser.cc +0 -1205
- data/ext/v8/upstream/3.1.8/src/prettyprinter.cc +0 -1539
- data/ext/v8/upstream/3.1.8/src/prettyprinter.h +0 -223
- data/ext/v8/upstream/3.1.8/src/profile-generator.cc +0 -2899
- data/ext/v8/upstream/3.1.8/src/profile-generator.h +0 -1151
- data/ext/v8/upstream/3.1.8/src/property.cc +0 -96
- data/ext/v8/upstream/3.1.8/src/property.h +0 -337
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-irregexp.cc +0 -470
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler.cc +0 -257
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler.h +0 -231
- data/ext/v8/upstream/3.1.8/src/regexp-stack.cc +0 -103
- data/ext/v8/upstream/3.1.8/src/regexp-stack.h +0 -123
- data/ext/v8/upstream/3.1.8/src/regexp.js +0 -483
- data/ext/v8/upstream/3.1.8/src/register-allocator-inl.h +0 -141
- data/ext/v8/upstream/3.1.8/src/register-allocator.cc +0 -104
- data/ext/v8/upstream/3.1.8/src/register-allocator.h +0 -320
- data/ext/v8/upstream/3.1.8/src/rewriter.cc +0 -1023
- data/ext/v8/upstream/3.1.8/src/runtime-profiler.cc +0 -443
- data/ext/v8/upstream/3.1.8/src/runtime-profiler.h +0 -77
- data/ext/v8/upstream/3.1.8/src/runtime.cc +0 -11592
- data/ext/v8/upstream/3.1.8/src/runtime.h +0 -582
- data/ext/v8/upstream/3.1.8/src/safepoint-table.cc +0 -253
- data/ext/v8/upstream/3.1.8/src/safepoint-table.h +0 -263
- data/ext/v8/upstream/3.1.8/src/scanner-base.cc +0 -971
- data/ext/v8/upstream/3.1.8/src/scanner-base.h +0 -653
- data/ext/v8/upstream/3.1.8/src/scanner.cc +0 -586
- data/ext/v8/upstream/3.1.8/src/scanner.h +0 -194
- data/ext/v8/upstream/3.1.8/src/scopeinfo.cc +0 -636
- data/ext/v8/upstream/3.1.8/src/scopeinfo.h +0 -238
- data/ext/v8/upstream/3.1.8/src/scopes.cc +0 -1063
- data/ext/v8/upstream/3.1.8/src/scopes.h +0 -494
- data/ext/v8/upstream/3.1.8/src/serialize.cc +0 -1535
- data/ext/v8/upstream/3.1.8/src/serialize.h +0 -584
- data/ext/v8/upstream/3.1.8/src/snapshot-common.cc +0 -82
- data/ext/v8/upstream/3.1.8/src/snapshot.h +0 -71
- data/ext/v8/upstream/3.1.8/src/spaces-inl.h +0 -524
- data/ext/v8/upstream/3.1.8/src/spaces.cc +0 -3254
- data/ext/v8/upstream/3.1.8/src/spaces.h +0 -2362
- data/ext/v8/upstream/3.1.8/src/string-search.cc +0 -40
- data/ext/v8/upstream/3.1.8/src/string-search.h +0 -567
- data/ext/v8/upstream/3.1.8/src/string-stream.cc +0 -584
- data/ext/v8/upstream/3.1.8/src/string.js +0 -915
- data/ext/v8/upstream/3.1.8/src/stub-cache.cc +0 -1878
- data/ext/v8/upstream/3.1.8/src/stub-cache.h +0 -849
- data/ext/v8/upstream/3.1.8/src/token.cc +0 -63
- data/ext/v8/upstream/3.1.8/src/token.h +0 -288
- data/ext/v8/upstream/3.1.8/src/top.cc +0 -1152
- data/ext/v8/upstream/3.1.8/src/top.h +0 -608
- data/ext/v8/upstream/3.1.8/src/type-info.cc +0 -406
- data/ext/v8/upstream/3.1.8/src/type-info.h +0 -283
- data/ext/v8/upstream/3.1.8/src/unicode.cc +0 -1624
- data/ext/v8/upstream/3.1.8/src/unicode.h +0 -280
- data/ext/v8/upstream/3.1.8/src/utils.h +0 -793
- data/ext/v8/upstream/3.1.8/src/v8-counters.cc +0 -55
- data/ext/v8/upstream/3.1.8/src/v8-counters.h +0 -290
- data/ext/v8/upstream/3.1.8/src/v8.cc +0 -270
- data/ext/v8/upstream/3.1.8/src/v8.h +0 -127
- data/ext/v8/upstream/3.1.8/src/v8globals.h +0 -480
- data/ext/v8/upstream/3.1.8/src/v8natives.js +0 -1252
- data/ext/v8/upstream/3.1.8/src/v8threads.cc +0 -440
- data/ext/v8/upstream/3.1.8/src/v8threads.h +0 -157
- data/ext/v8/upstream/3.1.8/src/v8utils.h +0 -354
- data/ext/v8/upstream/3.1.8/src/variables.h +0 -212
- data/ext/v8/upstream/3.1.8/src/version.cc +0 -95
- data/ext/v8/upstream/3.1.8/src/version.h +0 -64
- data/ext/v8/upstream/3.1.8/src/virtual-frame-light-inl.h +0 -170
- data/ext/v8/upstream/3.1.8/src/vm-state-inl.h +0 -134
- data/ext/v8/upstream/3.1.8/src/vm-state.h +0 -68
- data/ext/v8/upstream/3.1.8/src/win32-headers.h +0 -95
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64-inl.h +0 -455
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64.cc +0 -3162
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64.h +0 -1584
- data/ext/v8/upstream/3.1.8/src/x64/builtins-x64.cc +0 -1492
- data/ext/v8/upstream/3.1.8/src/x64/code-stubs-x64.cc +0 -5150
- data/ext/v8/upstream/3.1.8/src/x64/code-stubs-x64.h +0 -519
- data/ext/v8/upstream/3.1.8/src/x64/codegen-x64.cc +0 -8835
- data/ext/v8/upstream/3.1.8/src/x64/codegen-x64.h +0 -750
- data/ext/v8/upstream/3.1.8/src/x64/cpu-x64.cc +0 -86
- data/ext/v8/upstream/3.1.8/src/x64/debug-x64.cc +0 -316
- data/ext/v8/upstream/3.1.8/src/x64/deoptimizer-x64.cc +0 -781
- data/ext/v8/upstream/3.1.8/src/x64/disasm-x64.cc +0 -1737
- data/ext/v8/upstream/3.1.8/src/x64/frames-x64.h +0 -130
- data/ext/v8/upstream/3.1.8/src/x64/full-codegen-x64.cc +0 -3984
- data/ext/v8/upstream/3.1.8/src/x64/ic-x64.cc +0 -1761
- data/ext/v8/upstream/3.1.8/src/x64/lithium-codegen-x64.cc +0 -3639
- data/ext/v8/upstream/3.1.8/src/x64/lithium-codegen-x64.h +0 -305
- data/ext/v8/upstream/3.1.8/src/x64/lithium-x64.cc +0 -2044
- data/ext/v8/upstream/3.1.8/src/x64/lithium-x64.h +0 -2052
- data/ext/v8/upstream/3.1.8/src/x64/macro-assembler-x64.cc +0 -2660
- data/ext/v8/upstream/3.1.8/src/x64/macro-assembler-x64.h +0 -1852
- data/ext/v8/upstream/3.1.8/src/x64/regexp-macro-assembler-x64.cc +0 -1382
- data/ext/v8/upstream/3.1.8/src/x64/regexp-macro-assembler-x64.h +0 -278
- data/ext/v8/upstream/3.1.8/src/x64/register-allocator-x64-inl.h +0 -87
- data/ext/v8/upstream/3.1.8/src/x64/register-allocator-x64.cc +0 -91
- data/ext/v8/upstream/3.1.8/src/x64/simulator-x64.h +0 -71
- data/ext/v8/upstream/3.1.8/src/x64/stub-cache-x64.cc +0 -3509
- data/ext/v8/upstream/3.1.8/src/x64/virtual-frame-x64.cc +0 -1292
- data/ext/v8/upstream/3.1.8/src/x64/virtual-frame-x64.h +0 -593
- data/ext/v8/upstream/3.1.8/src/zone-inl.h +0 -83
- data/ext/v8/upstream/3.1.8/src/zone.cc +0 -195
- data/ext/v8/upstream/3.1.8/src/zone.h +0 -233
- data/ext/v8/upstream/3.1.8/tools/gyp/v8.gyp +0 -869
- data/ext/v8/upstream/3.1.8/tools/linux-tick-processor +0 -33
- data/ext/v8/upstream/3.1.8/tools/tickprocessor.js +0 -863
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base.vcproj +0 -1296
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base_arm.vcproj +0 -1234
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base_x64.vcproj +0 -1296
- data/ext/v8/upstream/3.1.8/tools/visual_studio/x64.vsprops +0 -17
- data/spec/ext/mem_spec.rb +0 -42
@@ -1,1192 +0,0 @@
|
|
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()
|