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
@@ -0,0 +1,436 @@
|
|
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
|
+
#ifndef V8_FACTORY_H_
|
29
|
+
#define V8_FACTORY_H_
|
30
|
+
|
31
|
+
#include "globals.h"
|
32
|
+
#include "handles.h"
|
33
|
+
#include "heap.h"
|
34
|
+
|
35
|
+
namespace v8 {
|
36
|
+
namespace internal {
|
37
|
+
|
38
|
+
// Interface for handle based allocation.
|
39
|
+
|
40
|
+
class Factory {
|
41
|
+
public:
|
42
|
+
// Allocate a new fixed array with undefined entries.
|
43
|
+
Handle<FixedArray> NewFixedArray(
|
44
|
+
int size,
|
45
|
+
PretenureFlag pretenure = NOT_TENURED);
|
46
|
+
|
47
|
+
// Allocate a new fixed array with non-existing entries (the hole).
|
48
|
+
Handle<FixedArray> NewFixedArrayWithHoles(
|
49
|
+
int size,
|
50
|
+
PretenureFlag pretenure = NOT_TENURED);
|
51
|
+
|
52
|
+
Handle<NumberDictionary> NewNumberDictionary(int at_least_space_for);
|
53
|
+
|
54
|
+
Handle<StringDictionary> NewStringDictionary(int at_least_space_for);
|
55
|
+
|
56
|
+
Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors);
|
57
|
+
Handle<DeoptimizationInputData> NewDeoptimizationInputData(
|
58
|
+
int deopt_entry_count,
|
59
|
+
PretenureFlag pretenure);
|
60
|
+
Handle<DeoptimizationOutputData> NewDeoptimizationOutputData(
|
61
|
+
int deopt_entry_count,
|
62
|
+
PretenureFlag pretenure);
|
63
|
+
|
64
|
+
Handle<String> LookupSymbol(Vector<const char> str);
|
65
|
+
Handle<String> LookupAsciiSymbol(Vector<const char> str);
|
66
|
+
Handle<String> LookupTwoByteSymbol(Vector<const uc16> str);
|
67
|
+
Handle<String> LookupAsciiSymbol(const char* str) {
|
68
|
+
return LookupSymbol(CStrVector(str));
|
69
|
+
}
|
70
|
+
|
71
|
+
|
72
|
+
// String creation functions. Most of the string creation functions take
|
73
|
+
// a Heap::PretenureFlag argument to optionally request that they be
|
74
|
+
// allocated in the old generation. The pretenure flag defaults to
|
75
|
+
// DONT_TENURE.
|
76
|
+
//
|
77
|
+
// Creates a new String object. There are two String encodings: ASCII and
|
78
|
+
// two byte. One should choose between the three string factory functions
|
79
|
+
// based on the encoding of the string buffer that the string is
|
80
|
+
// initialized from.
|
81
|
+
// - ...FromAscii initializes the string from a buffer that is ASCII
|
82
|
+
// encoded (it does not check that the buffer is ASCII encoded) and
|
83
|
+
// the result will be ASCII encoded.
|
84
|
+
// - ...FromUtf8 initializes the string from a buffer that is UTF-8
|
85
|
+
// encoded. If the characters are all single-byte characters, the
|
86
|
+
// result will be ASCII encoded, otherwise it will converted to two
|
87
|
+
// byte.
|
88
|
+
// - ...FromTwoByte initializes the string from a buffer that is two
|
89
|
+
// byte encoded. If the characters are all single-byte characters,
|
90
|
+
// the result will be converted to ASCII, otherwise it will be left as
|
91
|
+
// two byte.
|
92
|
+
//
|
93
|
+
// ASCII strings are pretenured when used as keys in the SourceCodeCache.
|
94
|
+
Handle<String> NewStringFromAscii(
|
95
|
+
Vector<const char> str,
|
96
|
+
PretenureFlag pretenure = NOT_TENURED);
|
97
|
+
|
98
|
+
// UTF8 strings are pretenured when used for regexp literal patterns and
|
99
|
+
// flags in the parser.
|
100
|
+
Handle<String> NewStringFromUtf8(
|
101
|
+
Vector<const char> str,
|
102
|
+
PretenureFlag pretenure = NOT_TENURED);
|
103
|
+
|
104
|
+
Handle<String> NewStringFromTwoByte(
|
105
|
+
Vector<const uc16> str,
|
106
|
+
PretenureFlag pretenure = NOT_TENURED);
|
107
|
+
|
108
|
+
// Allocates and partially initializes an ASCII or TwoByte String. The
|
109
|
+
// characters of the string are uninitialized. Currently used in regexp code
|
110
|
+
// only, where they are pretenured.
|
111
|
+
Handle<String> NewRawAsciiString(
|
112
|
+
int length,
|
113
|
+
PretenureFlag pretenure = NOT_TENURED);
|
114
|
+
Handle<String> NewRawTwoByteString(
|
115
|
+
int length,
|
116
|
+
PretenureFlag pretenure = NOT_TENURED);
|
117
|
+
|
118
|
+
// Create a new cons string object which consists of a pair of strings.
|
119
|
+
Handle<String> NewConsString(Handle<String> first,
|
120
|
+
Handle<String> second);
|
121
|
+
|
122
|
+
// Create a new string object which holds a substring of a string.
|
123
|
+
Handle<String> NewSubString(Handle<String> str,
|
124
|
+
int begin,
|
125
|
+
int end);
|
126
|
+
|
127
|
+
// Creates a new external String object. There are two String encodings
|
128
|
+
// in the system: ASCII and two byte. Unlike other String types, it does
|
129
|
+
// not make sense to have a UTF-8 factory function for external strings,
|
130
|
+
// because we cannot change the underlying buffer.
|
131
|
+
Handle<String> NewExternalStringFromAscii(
|
132
|
+
ExternalAsciiString::Resource* resource);
|
133
|
+
Handle<String> NewExternalStringFromTwoByte(
|
134
|
+
ExternalTwoByteString::Resource* resource);
|
135
|
+
|
136
|
+
// Create a global (but otherwise uninitialized) context.
|
137
|
+
Handle<Context> NewGlobalContext();
|
138
|
+
|
139
|
+
// Create a function context.
|
140
|
+
Handle<Context> NewFunctionContext(int length,
|
141
|
+
Handle<JSFunction> closure);
|
142
|
+
|
143
|
+
// Create a 'with' context.
|
144
|
+
Handle<Context> NewWithContext(Handle<Context> previous,
|
145
|
+
Handle<JSObject> extension,
|
146
|
+
bool is_catch_context);
|
147
|
+
|
148
|
+
// Return the Symbol matching the passed in string.
|
149
|
+
Handle<String> SymbolFromString(Handle<String> value);
|
150
|
+
|
151
|
+
// Allocate a new struct. The struct is pretenured (allocated directly in
|
152
|
+
// the old generation).
|
153
|
+
Handle<Struct> NewStruct(InstanceType type);
|
154
|
+
|
155
|
+
Handle<AccessorInfo> NewAccessorInfo();
|
156
|
+
|
157
|
+
Handle<Script> NewScript(Handle<String> source);
|
158
|
+
|
159
|
+
// Proxies are pretenured when allocated by the bootstrapper.
|
160
|
+
Handle<Proxy> NewProxy(Address addr,
|
161
|
+
PretenureFlag pretenure = NOT_TENURED);
|
162
|
+
|
163
|
+
// Allocate a new proxy. The proxy is pretenured (allocated directly in
|
164
|
+
// the old generation).
|
165
|
+
Handle<Proxy> NewProxy(const AccessorDescriptor* proxy);
|
166
|
+
|
167
|
+
Handle<ByteArray> NewByteArray(int length,
|
168
|
+
PretenureFlag pretenure = NOT_TENURED);
|
169
|
+
|
170
|
+
Handle<ExternalArray> NewExternalArray(
|
171
|
+
int length,
|
172
|
+
ExternalArrayType array_type,
|
173
|
+
void* external_pointer,
|
174
|
+
PretenureFlag pretenure = NOT_TENURED);
|
175
|
+
|
176
|
+
Handle<JSGlobalPropertyCell> NewJSGlobalPropertyCell(
|
177
|
+
Handle<Object> value);
|
178
|
+
|
179
|
+
Handle<Map> NewMap(InstanceType type, int instance_size);
|
180
|
+
|
181
|
+
Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function);
|
182
|
+
|
183
|
+
Handle<Map> CopyMapDropDescriptors(Handle<Map> map);
|
184
|
+
|
185
|
+
// Copy the map adding more inobject properties if possible without
|
186
|
+
// overflowing the instance size.
|
187
|
+
Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props);
|
188
|
+
|
189
|
+
Handle<Map> CopyMapDropTransitions(Handle<Map> map);
|
190
|
+
|
191
|
+
Handle<Map> GetFastElementsMap(Handle<Map> map);
|
192
|
+
|
193
|
+
Handle<Map> GetSlowElementsMap(Handle<Map> map);
|
194
|
+
|
195
|
+
Handle<Map> GetExternalArrayElementsMap(Handle<Map> map,
|
196
|
+
ExternalArrayType array_type,
|
197
|
+
bool safe_to_add_transition);
|
198
|
+
|
199
|
+
Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array);
|
200
|
+
|
201
|
+
// Numbers (eg, literals) are pretenured by the parser.
|
202
|
+
Handle<Object> NewNumber(double value,
|
203
|
+
PretenureFlag pretenure = NOT_TENURED);
|
204
|
+
|
205
|
+
Handle<Object> NewNumberFromInt(int value);
|
206
|
+
Handle<Object> NewNumberFromUint(uint32_t value);
|
207
|
+
|
208
|
+
// These objects are used by the api to create env-independent data
|
209
|
+
// structures in the heap.
|
210
|
+
Handle<JSObject> NewNeanderObject();
|
211
|
+
|
212
|
+
Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length);
|
213
|
+
|
214
|
+
// JS objects are pretenured when allocated by the bootstrapper and
|
215
|
+
// runtime.
|
216
|
+
Handle<JSObject> NewJSObject(Handle<JSFunction> constructor,
|
217
|
+
PretenureFlag pretenure = NOT_TENURED);
|
218
|
+
|
219
|
+
// Global objects are pretenured.
|
220
|
+
Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor);
|
221
|
+
|
222
|
+
// JS objects are pretenured when allocated by the bootstrapper and
|
223
|
+
// runtime.
|
224
|
+
Handle<JSObject> NewJSObjectFromMap(Handle<Map> map);
|
225
|
+
|
226
|
+
// JS arrays are pretenured when allocated by the parser.
|
227
|
+
Handle<JSArray> NewJSArray(int capacity,
|
228
|
+
PretenureFlag pretenure = NOT_TENURED);
|
229
|
+
|
230
|
+
Handle<JSArray> NewJSArrayWithElements(
|
231
|
+
Handle<FixedArray> elements,
|
232
|
+
PretenureFlag pretenure = NOT_TENURED);
|
233
|
+
|
234
|
+
Handle<JSFunction> NewFunction(Handle<String> name,
|
235
|
+
Handle<Object> prototype);
|
236
|
+
|
237
|
+
Handle<JSFunction> NewFunctionWithoutPrototype(
|
238
|
+
Handle<String> name,
|
239
|
+
StrictModeFlag strict_mode);
|
240
|
+
|
241
|
+
Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global);
|
242
|
+
|
243
|
+
Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo(
|
244
|
+
Handle<SharedFunctionInfo> function_info,
|
245
|
+
Handle<Map> function_map,
|
246
|
+
PretenureFlag pretenure);
|
247
|
+
|
248
|
+
Handle<JSFunction> NewFunctionFromSharedFunctionInfo(
|
249
|
+
Handle<SharedFunctionInfo> function_info,
|
250
|
+
Handle<Context> context,
|
251
|
+
PretenureFlag pretenure = TENURED);
|
252
|
+
|
253
|
+
Handle<Code> NewCode(const CodeDesc& desc,
|
254
|
+
Code::Flags flags,
|
255
|
+
Handle<Object> self_reference,
|
256
|
+
bool immovable = false);
|
257
|
+
|
258
|
+
Handle<Code> CopyCode(Handle<Code> code);
|
259
|
+
|
260
|
+
Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info);
|
261
|
+
|
262
|
+
Handle<Object> ToObject(Handle<Object> object);
|
263
|
+
Handle<Object> ToObject(Handle<Object> object,
|
264
|
+
Handle<Context> global_context);
|
265
|
+
|
266
|
+
// Interface for creating error objects.
|
267
|
+
|
268
|
+
Handle<Object> NewError(const char* maker, const char* type,
|
269
|
+
Handle<JSArray> args);
|
270
|
+
Handle<Object> NewError(const char* maker, const char* type,
|
271
|
+
Vector< Handle<Object> > args);
|
272
|
+
Handle<Object> NewError(const char* type,
|
273
|
+
Vector< Handle<Object> > args);
|
274
|
+
Handle<Object> NewError(Handle<String> message);
|
275
|
+
Handle<Object> NewError(const char* constructor,
|
276
|
+
Handle<String> message);
|
277
|
+
|
278
|
+
Handle<Object> NewTypeError(const char* type,
|
279
|
+
Vector< Handle<Object> > args);
|
280
|
+
Handle<Object> NewTypeError(Handle<String> message);
|
281
|
+
|
282
|
+
Handle<Object> NewRangeError(const char* type,
|
283
|
+
Vector< Handle<Object> > args);
|
284
|
+
Handle<Object> NewRangeError(Handle<String> message);
|
285
|
+
|
286
|
+
Handle<Object> NewSyntaxError(const char* type, Handle<JSArray> args);
|
287
|
+
Handle<Object> NewSyntaxError(Handle<String> message);
|
288
|
+
|
289
|
+
Handle<Object> NewReferenceError(const char* type,
|
290
|
+
Vector< Handle<Object> > args);
|
291
|
+
Handle<Object> NewReferenceError(Handle<String> message);
|
292
|
+
|
293
|
+
Handle<Object> NewEvalError(const char* type,
|
294
|
+
Vector< Handle<Object> > args);
|
295
|
+
|
296
|
+
|
297
|
+
Handle<JSFunction> NewFunction(Handle<String> name,
|
298
|
+
InstanceType type,
|
299
|
+
int instance_size,
|
300
|
+
Handle<Code> code,
|
301
|
+
bool force_initial_map);
|
302
|
+
|
303
|
+
Handle<JSFunction> NewFunction(Handle<Map> function_map,
|
304
|
+
Handle<SharedFunctionInfo> shared, Handle<Object> prototype);
|
305
|
+
|
306
|
+
|
307
|
+
Handle<JSFunction> NewFunctionWithPrototype(Handle<String> name,
|
308
|
+
InstanceType type,
|
309
|
+
int instance_size,
|
310
|
+
Handle<JSObject> prototype,
|
311
|
+
Handle<Code> code,
|
312
|
+
bool force_initial_map);
|
313
|
+
|
314
|
+
Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name,
|
315
|
+
Handle<Code> code);
|
316
|
+
|
317
|
+
Handle<DescriptorArray> CopyAppendProxyDescriptor(
|
318
|
+
Handle<DescriptorArray> array,
|
319
|
+
Handle<String> key,
|
320
|
+
Handle<Object> value,
|
321
|
+
PropertyAttributes attributes);
|
322
|
+
|
323
|
+
Handle<String> NumberToString(Handle<Object> number);
|
324
|
+
|
325
|
+
enum ApiInstanceType {
|
326
|
+
JavaScriptObject,
|
327
|
+
InnerGlobalObject,
|
328
|
+
OuterGlobalObject
|
329
|
+
};
|
330
|
+
|
331
|
+
Handle<JSFunction> CreateApiFunction(
|
332
|
+
Handle<FunctionTemplateInfo> data,
|
333
|
+
ApiInstanceType type = JavaScriptObject);
|
334
|
+
|
335
|
+
Handle<JSFunction> InstallMembers(Handle<JSFunction> function);
|
336
|
+
|
337
|
+
// Installs interceptors on the instance. 'desc' is a function template,
|
338
|
+
// and instance is an object instance created by the function of this
|
339
|
+
// function template.
|
340
|
+
void ConfigureInstance(Handle<FunctionTemplateInfo> desc,
|
341
|
+
Handle<JSObject> instance,
|
342
|
+
bool* pending_exception);
|
343
|
+
|
344
|
+
#define ROOT_ACCESSOR(type, name, camel_name) \
|
345
|
+
inline Handle<type> name() { \
|
346
|
+
return Handle<type>(BitCast<type**>( \
|
347
|
+
&isolate()->heap()->roots_[Heap::k##camel_name##RootIndex])); \
|
348
|
+
}
|
349
|
+
ROOT_LIST(ROOT_ACCESSOR)
|
350
|
+
#undef ROOT_ACCESSOR_ACCESSOR
|
351
|
+
|
352
|
+
#define SYMBOL_ACCESSOR(name, str) \
|
353
|
+
inline Handle<String> name() { \
|
354
|
+
return Handle<String>(BitCast<String**>( \
|
355
|
+
&isolate()->heap()->roots_[Heap::k##name##RootIndex])); \
|
356
|
+
}
|
357
|
+
SYMBOL_LIST(SYMBOL_ACCESSOR)
|
358
|
+
#undef SYMBOL_ACCESSOR
|
359
|
+
|
360
|
+
Handle<String> hidden_symbol() {
|
361
|
+
return Handle<String>(&isolate()->heap()->hidden_symbol_);
|
362
|
+
}
|
363
|
+
|
364
|
+
Handle<SharedFunctionInfo> NewSharedFunctionInfo(
|
365
|
+
Handle<String> name,
|
366
|
+
int number_of_literals,
|
367
|
+
Handle<Code> code,
|
368
|
+
Handle<SerializedScopeInfo> scope_info);
|
369
|
+
Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name);
|
370
|
+
|
371
|
+
Handle<JSMessageObject> NewJSMessageObject(
|
372
|
+
Handle<String> type,
|
373
|
+
Handle<JSArray> arguments,
|
374
|
+
int start_position,
|
375
|
+
int end_position,
|
376
|
+
Handle<Object> script,
|
377
|
+
Handle<Object> stack_trace,
|
378
|
+
Handle<Object> stack_frames);
|
379
|
+
|
380
|
+
Handle<NumberDictionary> DictionaryAtNumberPut(
|
381
|
+
Handle<NumberDictionary>,
|
382
|
+
uint32_t key,
|
383
|
+
Handle<Object> value);
|
384
|
+
|
385
|
+
#ifdef ENABLE_DEBUGGER_SUPPORT
|
386
|
+
Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared);
|
387
|
+
#endif
|
388
|
+
|
389
|
+
// Return a map using the map cache in the global context.
|
390
|
+
// The key the an ordered set of property names.
|
391
|
+
Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context,
|
392
|
+
Handle<FixedArray> keys);
|
393
|
+
|
394
|
+
// Creates a new FixedArray that holds the data associated with the
|
395
|
+
// atom regexp and stores it in the regexp.
|
396
|
+
void SetRegExpAtomData(Handle<JSRegExp> regexp,
|
397
|
+
JSRegExp::Type type,
|
398
|
+
Handle<String> source,
|
399
|
+
JSRegExp::Flags flags,
|
400
|
+
Handle<Object> match_pattern);
|
401
|
+
|
402
|
+
// Creates a new FixedArray that holds the data associated with the
|
403
|
+
// irregexp regexp and stores it in the regexp.
|
404
|
+
void SetRegExpIrregexpData(Handle<JSRegExp> regexp,
|
405
|
+
JSRegExp::Type type,
|
406
|
+
Handle<String> source,
|
407
|
+
JSRegExp::Flags flags,
|
408
|
+
int capture_count);
|
409
|
+
|
410
|
+
private:
|
411
|
+
Isolate* isolate() { return reinterpret_cast<Isolate*>(this); }
|
412
|
+
|
413
|
+
Handle<JSFunction> NewFunctionHelper(Handle<String> name,
|
414
|
+
Handle<Object> prototype);
|
415
|
+
|
416
|
+
Handle<JSFunction> NewFunctionWithoutPrototypeHelper(
|
417
|
+
Handle<String> name,
|
418
|
+
StrictModeFlag strict_mode);
|
419
|
+
|
420
|
+
Handle<DescriptorArray> CopyAppendCallbackDescriptors(
|
421
|
+
Handle<DescriptorArray> array,
|
422
|
+
Handle<Object> descriptors);
|
423
|
+
|
424
|
+
// Create a new map cache.
|
425
|
+
Handle<MapCache> NewMapCache(int at_least_space_for);
|
426
|
+
|
427
|
+
// Update the map cache in the global context with (keys, map)
|
428
|
+
Handle<MapCache> AddToMapCache(Handle<Context> context,
|
429
|
+
Handle<FixedArray> keys,
|
430
|
+
Handle<Map> map);
|
431
|
+
};
|
432
|
+
|
433
|
+
|
434
|
+
} } // namespace v8::internal
|
435
|
+
|
436
|
+
#endif // V8_FACTORY_H_
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,556 @@
|
|
1
|
+
// Copyright 2011 the V8 project authors. All rights reserved.
|
2
|
+
// Redistribution and use in source and binary forms, with or without
|
3
|
+
// modification, are permitted provided that the following conditions are
|
4
|
+
// met:
|
5
|
+
//
|
6
|
+
// * Redistributions of source code must retain the above copyright
|
7
|
+
// notice, this list of conditions and the following disclaimer.
|
8
|
+
// * Redistributions in binary form must reproduce the above
|
9
|
+
// copyright notice, this list of conditions and the following
|
10
|
+
// disclaimer in the documentation and/or other materials provided
|
11
|
+
// with the distribution.
|
12
|
+
// * Neither the name of Google Inc. nor the names of its
|
13
|
+
// contributors may be used to endorse or promote products derived
|
14
|
+
// from this software without specific prior written permission.
|
15
|
+
//
|
16
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
|
28
|
+
// This file defines all of the flags. It is separated into different section,
|
29
|
+
// for Debug, Release, Logging and Profiling, etc. To add a new flag, find the
|
30
|
+
// correct section, and use one of the DEFINE_ macros, without a trailing ';'.
|
31
|
+
//
|
32
|
+
// This include does not have a guard, because it is a template-style include,
|
33
|
+
// which can be included multiple times in different modes. It expects to have
|
34
|
+
// a mode defined before it's included. The modes are FLAG_MODE_... below:
|
35
|
+
|
36
|
+
// We want to declare the names of the variables for the header file. Normally
|
37
|
+
// this will just be an extern declaration, but for a readonly flag we let the
|
38
|
+
// compiler make better optimizations by giving it the value.
|
39
|
+
#if defined(FLAG_MODE_DECLARE)
|
40
|
+
#define FLAG_FULL(ftype, ctype, nam, def, cmt) \
|
41
|
+
extern ctype FLAG_##nam;
|
42
|
+
#define FLAG_READONLY(ftype, ctype, nam, def, cmt) \
|
43
|
+
static ctype const FLAG_##nam = def;
|
44
|
+
|
45
|
+
// We want to supply the actual storage and value for the flag variable in the
|
46
|
+
// .cc file. We only do this for writable flags.
|
47
|
+
#elif defined(FLAG_MODE_DEFINE)
|
48
|
+
#define FLAG_FULL(ftype, ctype, nam, def, cmt) \
|
49
|
+
ctype FLAG_##nam = def;
|
50
|
+
#define FLAG_READONLY(ftype, ctype, nam, def, cmt)
|
51
|
+
|
52
|
+
// We need to define all of our default values so that the Flag structure can
|
53
|
+
// access them by pointer. These are just used internally inside of one .cc,
|
54
|
+
// for MODE_META, so there is no impact on the flags interface.
|
55
|
+
#elif defined(FLAG_MODE_DEFINE_DEFAULTS)
|
56
|
+
#define FLAG_FULL(ftype, ctype, nam, def, cmt) \
|
57
|
+
static ctype const FLAGDEFAULT_##nam = def;
|
58
|
+
#define FLAG_READONLY(ftype, ctype, nam, def, cmt)
|
59
|
+
|
60
|
+
|
61
|
+
// We want to write entries into our meta data table, for internal parsing and
|
62
|
+
// printing / etc in the flag parser code. We only do this for writable flags.
|
63
|
+
#elif defined(FLAG_MODE_META)
|
64
|
+
#define FLAG_FULL(ftype, ctype, nam, def, cmt) \
|
65
|
+
{ Flag::TYPE_##ftype, #nam, &FLAG_##nam, &FLAGDEFAULT_##nam, cmt, false },
|
66
|
+
#define FLAG_READONLY(ftype, ctype, nam, def, cmt)
|
67
|
+
|
68
|
+
#else
|
69
|
+
#error No mode supplied when including flags.defs
|
70
|
+
#endif
|
71
|
+
|
72
|
+
#ifdef FLAG_MODE_DECLARE
|
73
|
+
// Structure used to hold a collection of arguments to the JavaScript code.
|
74
|
+
struct JSArguments {
|
75
|
+
public:
|
76
|
+
JSArguments();
|
77
|
+
JSArguments(int argc, const char** argv);
|
78
|
+
int argc() const;
|
79
|
+
const char** argv();
|
80
|
+
const char*& operator[](int idx);
|
81
|
+
JSArguments& operator=(JSArguments args);
|
82
|
+
private:
|
83
|
+
int argc_;
|
84
|
+
const char** argv_;
|
85
|
+
};
|
86
|
+
#endif
|
87
|
+
|
88
|
+
#define DEFINE_bool(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt)
|
89
|
+
#define DEFINE_int(nam, def, cmt) FLAG(INT, int, nam, def, cmt)
|
90
|
+
#define DEFINE_float(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt)
|
91
|
+
#define DEFINE_string(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt)
|
92
|
+
#define DEFINE_args(nam, def, cmt) FLAG(ARGS, JSArguments, nam, def, cmt)
|
93
|
+
|
94
|
+
//
|
95
|
+
// Flags in all modes.
|
96
|
+
//
|
97
|
+
#define FLAG FLAG_FULL
|
98
|
+
|
99
|
+
// Flags for Crankshaft.
|
100
|
+
#ifdef V8_TARGET_ARCH_MIPS
|
101
|
+
DEFINE_bool(crankshaft, false, "use crankshaft")
|
102
|
+
#else
|
103
|
+
DEFINE_bool(crankshaft, true, "use crankshaft")
|
104
|
+
#endif
|
105
|
+
DEFINE_string(hydrogen_filter, "", "hydrogen use/trace filter")
|
106
|
+
DEFINE_bool(use_hydrogen, true, "use generated hydrogen for compilation")
|
107
|
+
DEFINE_bool(build_lithium, true, "use lithium chunk builder")
|
108
|
+
DEFINE_bool(alloc_lithium, true, "use lithium register allocator")
|
109
|
+
DEFINE_bool(use_lithium, true, "use lithium code generator")
|
110
|
+
DEFINE_bool(use_range, true, "use hydrogen range analysis")
|
111
|
+
DEFINE_bool(eliminate_dead_phis, true, "eliminate dead phis")
|
112
|
+
DEFINE_bool(use_gvn, true, "use hydrogen global value numbering")
|
113
|
+
DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing")
|
114
|
+
DEFINE_bool(use_inlining, true, "use function inlining")
|
115
|
+
DEFINE_bool(limit_inlining, true, "limit code size growth from inlining")
|
116
|
+
DEFINE_bool(eliminate_empty_blocks, true, "eliminate empty blocks")
|
117
|
+
DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion")
|
118
|
+
DEFINE_bool(hydrogen_stats, false, "print statistics for hydrogen")
|
119
|
+
DEFINE_bool(trace_hydrogen, false, "trace generated hydrogen to file")
|
120
|
+
DEFINE_bool(trace_inlining, false, "trace inlining decisions")
|
121
|
+
DEFINE_bool(trace_alloc, false, "trace register allocator")
|
122
|
+
DEFINE_bool(trace_all_uses, false, "trace all use positions")
|
123
|
+
DEFINE_bool(trace_range, false, "trace range analysis")
|
124
|
+
DEFINE_bool(trace_gvn, false, "trace global value numbering")
|
125
|
+
DEFINE_bool(trace_representation, false, "trace representation types")
|
126
|
+
DEFINE_bool(stress_pointer_maps, false, "pointer map for every instruction")
|
127
|
+
DEFINE_bool(stress_environments, false, "environment for every instruction")
|
128
|
+
DEFINE_int(deopt_every_n_times,
|
129
|
+
0,
|
130
|
+
"deoptimize every n times a deopt point is passed")
|
131
|
+
DEFINE_bool(process_arguments_object, true, "try to deal with arguments object")
|
132
|
+
DEFINE_bool(trap_on_deopt, false, "put a break point before deoptimizing")
|
133
|
+
DEFINE_bool(deoptimize_uncommon_cases, true, "deoptimize uncommon cases")
|
134
|
+
DEFINE_bool(polymorphic_inlining, true, "polymorphic inlining")
|
135
|
+
DEFINE_bool(aggressive_loop_invariant_motion, true,
|
136
|
+
"aggressive motion of instructions out of loops")
|
137
|
+
DEFINE_bool(use_osr, true, "use on-stack replacement")
|
138
|
+
|
139
|
+
DEFINE_bool(trace_osr, false, "trace on-stack replacement")
|
140
|
+
DEFINE_int(stress_runs, 0, "number of stress runs")
|
141
|
+
DEFINE_bool(optimize_closures, true, "optimize closures")
|
142
|
+
|
143
|
+
// assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc
|
144
|
+
DEFINE_bool(debug_code, false,
|
145
|
+
"generate extra code (assertions) for debugging")
|
146
|
+
DEFINE_bool(code_comments, false, "emit comments in code disassembly")
|
147
|
+
DEFINE_bool(emit_branch_hints, false, "emit branch hints")
|
148
|
+
DEFINE_bool(peephole_optimization, true,
|
149
|
+
"perform peephole optimizations in assembly code")
|
150
|
+
DEFINE_bool(print_peephole_optimization, false,
|
151
|
+
"print peephole optimizations in assembly code")
|
152
|
+
DEFINE_bool(enable_sse2, true,
|
153
|
+
"enable use of SSE2 instructions if available")
|
154
|
+
DEFINE_bool(enable_sse3, true,
|
155
|
+
"enable use of SSE3 instructions if available")
|
156
|
+
DEFINE_bool(enable_sse4_1, true,
|
157
|
+
"enable use of SSE4.1 instructions if available")
|
158
|
+
DEFINE_bool(enable_cmov, true,
|
159
|
+
"enable use of CMOV instruction if available")
|
160
|
+
DEFINE_bool(enable_rdtsc, true,
|
161
|
+
"enable use of RDTSC instruction if available")
|
162
|
+
DEFINE_bool(enable_sahf, true,
|
163
|
+
"enable use of SAHF instruction if available (X64 only)")
|
164
|
+
DEFINE_bool(enable_vfp3, true,
|
165
|
+
"enable use of VFP3 instructions if available (ARM only)")
|
166
|
+
DEFINE_bool(enable_armv7, true,
|
167
|
+
"enable use of ARMv7 instructions if available (ARM only)")
|
168
|
+
DEFINE_bool(enable_fpu, true,
|
169
|
+
"enable use of MIPS FPU instructions if available (MIPS only)")
|
170
|
+
|
171
|
+
// bootstrapper.cc
|
172
|
+
DEFINE_string(expose_natives_as, NULL, "expose natives in global object")
|
173
|
+
DEFINE_string(expose_debug_as, NULL, "expose debug in global object")
|
174
|
+
DEFINE_bool(expose_gc, false, "expose gc extension")
|
175
|
+
DEFINE_bool(expose_externalize_string, false,
|
176
|
+
"expose externalize string extension")
|
177
|
+
DEFINE_int(stack_trace_limit, 10, "number of stack frames to capture")
|
178
|
+
DEFINE_bool(disable_native_files, false, "disable builtin natives files")
|
179
|
+
|
180
|
+
// builtins-ia32.cc
|
181
|
+
DEFINE_bool(inline_new, true, "use fast inline allocation")
|
182
|
+
|
183
|
+
// checks.cc
|
184
|
+
DEFINE_bool(stack_trace_on_abort, true,
|
185
|
+
"print a stack trace if an assertion failure occurs")
|
186
|
+
|
187
|
+
// codegen-ia32.cc / codegen-arm.cc
|
188
|
+
DEFINE_bool(trace, false, "trace function calls")
|
189
|
+
DEFINE_bool(defer_negation, true, "defer negation operation")
|
190
|
+
DEFINE_bool(mask_constants_with_cookie,
|
191
|
+
true,
|
192
|
+
"use random jit cookie to mask large constants")
|
193
|
+
|
194
|
+
// codegen.cc
|
195
|
+
DEFINE_bool(lazy, true, "use lazy compilation")
|
196
|
+
DEFINE_bool(trace_opt, false, "trace lazy optimization")
|
197
|
+
DEFINE_bool(trace_opt_stats, false, "trace lazy optimization statistics")
|
198
|
+
DEFINE_bool(opt, true, "use adaptive optimizations")
|
199
|
+
DEFINE_bool(opt_eagerly, false, "be more eager when adaptively optimizing")
|
200
|
+
DEFINE_bool(always_opt, false, "always try to optimize functions")
|
201
|
+
DEFINE_bool(prepare_always_opt, false, "prepare for turning on always opt")
|
202
|
+
DEFINE_bool(debug_info, true, "add debug information to compiled functions")
|
203
|
+
DEFINE_bool(deopt, true, "support deoptimization")
|
204
|
+
DEFINE_bool(trace_deopt, false, "trace deoptimization")
|
205
|
+
|
206
|
+
// compiler.cc
|
207
|
+
DEFINE_bool(strict, false, "strict error checking")
|
208
|
+
DEFINE_int(min_preparse_length, 1024,
|
209
|
+
"minimum length for automatic enable preparsing")
|
210
|
+
DEFINE_bool(full_compiler, true, "enable dedicated backend for run-once code")
|
211
|
+
DEFINE_bool(always_full_compiler, false,
|
212
|
+
"try to use the dedicated run-once backend for all code")
|
213
|
+
DEFINE_bool(trace_bailout, false,
|
214
|
+
"print reasons for falling back to using the classic V8 backend")
|
215
|
+
DEFINE_bool(safe_int32_compiler, true,
|
216
|
+
"enable optimized side-effect-free int32 expressions.")
|
217
|
+
DEFINE_bool(use_flow_graph, false, "perform flow-graph based optimizations")
|
218
|
+
|
219
|
+
// compilation-cache.cc
|
220
|
+
DEFINE_bool(compilation_cache, true, "enable compilation cache")
|
221
|
+
|
222
|
+
// data-flow.cc
|
223
|
+
DEFINE_bool(loop_peeling, false, "Peel off the first iteration of loops.")
|
224
|
+
|
225
|
+
// debug.cc
|
226
|
+
DEFINE_bool(remote_debugging, false, "enable remote debugging")
|
227
|
+
DEFINE_bool(trace_debug_json, false, "trace debugging JSON request/response")
|
228
|
+
DEFINE_bool(debugger_auto_break, true,
|
229
|
+
"automatically set the debug break flag when debugger commands are "
|
230
|
+
"in the queue")
|
231
|
+
DEFINE_bool(enable_liveedit, true, "enable liveedit experimental feature")
|
232
|
+
|
233
|
+
// execution.cc
|
234
|
+
DEFINE_int(stack_size, kPointerSize * 128,
|
235
|
+
"default size of stack region v8 is allowed to use (in KkBytes)")
|
236
|
+
|
237
|
+
// frames.cc
|
238
|
+
DEFINE_int(max_stack_trace_source_length, 300,
|
239
|
+
"maximum length of function source code printed in a stack trace.")
|
240
|
+
|
241
|
+
// full-codegen.cc
|
242
|
+
DEFINE_bool(always_inline_smi_code, false,
|
243
|
+
"always inline smi code in non-opt code")
|
244
|
+
|
245
|
+
// heap.cc
|
246
|
+
DEFINE_int(max_new_space_size, 0, "max size of the new generation (in kBytes)")
|
247
|
+
DEFINE_int(max_old_space_size, 0, "max size of the old generation (in Mbytes)")
|
248
|
+
DEFINE_int(max_executable_size, 0, "max size of executable memory (in Mbytes)")
|
249
|
+
DEFINE_bool(gc_global, false, "always perform global GCs")
|
250
|
+
DEFINE_int(gc_interval, -1, "garbage collect after <n> allocations")
|
251
|
+
DEFINE_bool(trace_gc, false,
|
252
|
+
"print one trace line following each garbage collection")
|
253
|
+
DEFINE_bool(trace_gc_nvp, false,
|
254
|
+
"print one detailed trace line in name=value format "
|
255
|
+
"after each garbage collection")
|
256
|
+
DEFINE_bool(print_cumulative_gc_stat, false,
|
257
|
+
"print cumulative GC statistics in name=value format on exit")
|
258
|
+
DEFINE_bool(trace_gc_verbose, false,
|
259
|
+
"print more details following each garbage collection")
|
260
|
+
DEFINE_bool(collect_maps, true,
|
261
|
+
"garbage collect maps from which no objects can be reached")
|
262
|
+
DEFINE_bool(flush_code, true,
|
263
|
+
"flush code that we expect not to use again before full gc")
|
264
|
+
|
265
|
+
// v8.cc
|
266
|
+
DEFINE_bool(use_idle_notification, true,
|
267
|
+
"Use idle notification to reduce memory footprint.")
|
268
|
+
// ic.cc
|
269
|
+
DEFINE_bool(use_ic, true, "use inline caching")
|
270
|
+
|
271
|
+
#ifdef LIVE_OBJECT_LIST
|
272
|
+
// liveobjectlist.cc
|
273
|
+
DEFINE_string(lol_workdir, NULL, "path for lol temp files")
|
274
|
+
DEFINE_bool(verify_lol, false, "perform debugging verification for lol")
|
275
|
+
#endif
|
276
|
+
|
277
|
+
// macro-assembler-ia32.cc
|
278
|
+
DEFINE_bool(native_code_counters, false,
|
279
|
+
"generate extra code for manipulating stats counters")
|
280
|
+
|
281
|
+
// mark-compact.cc
|
282
|
+
DEFINE_bool(always_compact, false, "Perform compaction on every full GC")
|
283
|
+
DEFINE_bool(never_compact, false,
|
284
|
+
"Never perform compaction on full GC - testing only")
|
285
|
+
DEFINE_bool(cleanup_ics_at_gc, true,
|
286
|
+
"Flush inline caches prior to mark compact collection.")
|
287
|
+
DEFINE_bool(cleanup_caches_in_maps_at_gc, true,
|
288
|
+
"Flush code caches in maps during mark compact cycle.")
|
289
|
+
DEFINE_int(random_seed, 0,
|
290
|
+
"Default seed for initializing random generator "
|
291
|
+
"(0, the default, means to use system random).")
|
292
|
+
|
293
|
+
DEFINE_bool(canonicalize_object_literal_maps, true,
|
294
|
+
"Canonicalize maps for object literals.")
|
295
|
+
|
296
|
+
DEFINE_bool(use_big_map_space, true,
|
297
|
+
"Use big map space, but don't compact if it grew too big.")
|
298
|
+
|
299
|
+
DEFINE_int(max_map_space_pages, MapSpace::kMaxMapPageIndex - 1,
|
300
|
+
"Maximum number of pages in map space which still allows to encode "
|
301
|
+
"forwarding pointers. That's actually a constant, but it's useful "
|
302
|
+
"to control it with a flag for better testing.")
|
303
|
+
|
304
|
+
// mksnapshot.cc
|
305
|
+
DEFINE_bool(h, false, "print this message")
|
306
|
+
DEFINE_bool(new_snapshot, true, "use new snapshot implementation")
|
307
|
+
|
308
|
+
// objects.cc
|
309
|
+
DEFINE_bool(use_verbose_printer, true, "allows verbose printing")
|
310
|
+
|
311
|
+
// parser.cc
|
312
|
+
DEFINE_bool(allow_natives_syntax, false, "allow natives syntax")
|
313
|
+
DEFINE_bool(strict_mode, true, "allow strict mode directives")
|
314
|
+
|
315
|
+
// rewriter.cc
|
316
|
+
DEFINE_bool(optimize_ast, true, "optimize the ast")
|
317
|
+
|
318
|
+
// simulator-arm.cc and simulator-mips.cc
|
319
|
+
DEFINE_bool(trace_sim, false, "Trace simulator execution")
|
320
|
+
DEFINE_bool(check_icache, false, "Check icache flushes in ARM simulator")
|
321
|
+
DEFINE_int(stop_sim_at, 0, "Simulator stop after x number of instructions")
|
322
|
+
DEFINE_int(sim_stack_alignment, 8,
|
323
|
+
"Stack alingment in bytes in simulator (4 or 8, 8 is default)")
|
324
|
+
|
325
|
+
// top.cc
|
326
|
+
DEFINE_bool(trace_exception, false,
|
327
|
+
"print stack trace when throwing exceptions")
|
328
|
+
DEFINE_bool(preallocate_message_memory, false,
|
329
|
+
"preallocate some memory to build stack traces.")
|
330
|
+
|
331
|
+
// v8.cc
|
332
|
+
DEFINE_bool(preemption, false,
|
333
|
+
"activate a 100ms timer that switches between V8 threads")
|
334
|
+
|
335
|
+
// Regexp
|
336
|
+
DEFINE_bool(trace_regexps, false, "trace regexp execution")
|
337
|
+
DEFINE_bool(regexp_optimization, true, "generate optimized regexp code")
|
338
|
+
DEFINE_bool(regexp_entry_native, true, "use native code to enter regexp")
|
339
|
+
|
340
|
+
// Testing flags test/cctest/test-{flags,api,serialization}.cc
|
341
|
+
DEFINE_bool(testing_bool_flag, true, "testing_bool_flag")
|
342
|
+
DEFINE_int(testing_int_flag, 13, "testing_int_flag")
|
343
|
+
DEFINE_float(testing_float_flag, 2.5, "float-flag")
|
344
|
+
DEFINE_string(testing_string_flag, "Hello, world!", "string-flag")
|
345
|
+
DEFINE_int(testing_prng_seed, 42, "Seed used for threading test randomness")
|
346
|
+
#ifdef WIN32
|
347
|
+
DEFINE_string(testing_serialization_file, "C:\\Windows\\Temp\\serdes",
|
348
|
+
"file in which to testing_serialize heap")
|
349
|
+
#else
|
350
|
+
DEFINE_string(testing_serialization_file, "/tmp/serdes",
|
351
|
+
"file in which to serialize heap")
|
352
|
+
#endif
|
353
|
+
|
354
|
+
//
|
355
|
+
// Dev shell flags
|
356
|
+
//
|
357
|
+
|
358
|
+
DEFINE_bool(help, false, "Print usage message, including flags, on console")
|
359
|
+
DEFINE_bool(dump_counters, false, "Dump counters on exit")
|
360
|
+
DEFINE_bool(debugger, false, "Enable JavaScript debugger")
|
361
|
+
DEFINE_bool(remote_debugger, false, "Connect JavaScript debugger to the "
|
362
|
+
"debugger agent in another process")
|
363
|
+
DEFINE_bool(debugger_agent, false, "Enable debugger agent")
|
364
|
+
DEFINE_int(debugger_port, 5858, "Port to use for remote debugging")
|
365
|
+
DEFINE_string(map_counters, "", "Map counters to a file")
|
366
|
+
DEFINE_args(js_arguments, JSArguments(),
|
367
|
+
"Pass all remaining arguments to the script. Alias for \"--\".")
|
368
|
+
|
369
|
+
#if defined(WEBOS__)
|
370
|
+
DEFINE_bool(debug_compile_events, false, "Enable debugger compile events")
|
371
|
+
DEFINE_bool(debug_script_collected_events, false,
|
372
|
+
"Enable debugger script collected events")
|
373
|
+
#else
|
374
|
+
DEFINE_bool(debug_compile_events, true, "Enable debugger compile events")
|
375
|
+
DEFINE_bool(debug_script_collected_events, true,
|
376
|
+
"Enable debugger script collected events")
|
377
|
+
#endif
|
378
|
+
|
379
|
+
|
380
|
+
//
|
381
|
+
// GDB JIT integration flags.
|
382
|
+
//
|
383
|
+
|
384
|
+
DEFINE_bool(gdbjit, false, "enable GDBJIT interface (disables compacting GC)")
|
385
|
+
DEFINE_bool(gdbjit_full, false, "enable GDBJIT interface for all code objects")
|
386
|
+
DEFINE_bool(gdbjit_dump, false, "dump elf objects with debug info to disk")
|
387
|
+
|
388
|
+
//
|
389
|
+
// Debug only flags
|
390
|
+
//
|
391
|
+
#undef FLAG
|
392
|
+
#ifdef DEBUG
|
393
|
+
#define FLAG FLAG_FULL
|
394
|
+
#else
|
395
|
+
#define FLAG FLAG_READONLY
|
396
|
+
#endif
|
397
|
+
|
398
|
+
// checks.cc
|
399
|
+
DEFINE_bool(enable_slow_asserts, false,
|
400
|
+
"enable asserts that are slow to execute")
|
401
|
+
|
402
|
+
// codegen-ia32.cc / codegen-arm.cc
|
403
|
+
DEFINE_bool(trace_codegen, false,
|
404
|
+
"print name of functions for which code is generated")
|
405
|
+
DEFINE_bool(print_source, false, "pretty print source code")
|
406
|
+
DEFINE_bool(print_builtin_source, false,
|
407
|
+
"pretty print source code for builtins")
|
408
|
+
DEFINE_bool(print_ast, false, "print source AST")
|
409
|
+
DEFINE_bool(print_builtin_ast, false, "print source AST for builtins")
|
410
|
+
DEFINE_bool(print_json_ast, false, "print source AST as JSON")
|
411
|
+
DEFINE_bool(print_builtin_json_ast, false,
|
412
|
+
"print source AST for builtins as JSON")
|
413
|
+
DEFINE_bool(trace_calls, false, "trace calls")
|
414
|
+
DEFINE_bool(trace_builtin_calls, false, "trace builtins calls")
|
415
|
+
DEFINE_string(stop_at, "", "function name where to insert a breakpoint")
|
416
|
+
|
417
|
+
// compiler.cc
|
418
|
+
DEFINE_bool(print_builtin_scopes, false, "print scopes for builtins")
|
419
|
+
DEFINE_bool(print_scopes, false, "print scopes")
|
420
|
+
DEFINE_bool(print_ir, false, "print the AST as seen by the backend")
|
421
|
+
DEFINE_bool(print_graph_text, false,
|
422
|
+
"print a text representation of the flow graph")
|
423
|
+
|
424
|
+
// contexts.cc
|
425
|
+
DEFINE_bool(trace_contexts, false, "trace contexts operations")
|
426
|
+
|
427
|
+
// heap.cc
|
428
|
+
DEFINE_bool(gc_greedy, false, "perform GC prior to some allocations")
|
429
|
+
DEFINE_bool(gc_verbose, false, "print stuff during garbage collection")
|
430
|
+
DEFINE_bool(heap_stats, false, "report heap statistics before and after GC")
|
431
|
+
DEFINE_bool(code_stats, false, "report code statistics after GC")
|
432
|
+
DEFINE_bool(verify_heap, false, "verify heap pointers before and after GC")
|
433
|
+
DEFINE_bool(print_handles, false, "report handles after GC")
|
434
|
+
DEFINE_bool(print_global_handles, false, "report global handles after GC")
|
435
|
+
|
436
|
+
// ic.cc
|
437
|
+
DEFINE_bool(trace_ic, false, "trace inline cache state transitions")
|
438
|
+
|
439
|
+
// objects.cc
|
440
|
+
DEFINE_bool(trace_normalization,
|
441
|
+
false,
|
442
|
+
"prints when objects are turned into dictionaries.")
|
443
|
+
|
444
|
+
// runtime.cc
|
445
|
+
DEFINE_bool(trace_lazy, false, "trace lazy compilation")
|
446
|
+
|
447
|
+
// serialize.cc
|
448
|
+
DEFINE_bool(debug_serialization, false,
|
449
|
+
"write debug information into the snapshot.")
|
450
|
+
|
451
|
+
// spaces.cc
|
452
|
+
DEFINE_bool(collect_heap_spill_statistics, false,
|
453
|
+
"report heap spill statistics along with heap_stats "
|
454
|
+
"(requires heap_stats)")
|
455
|
+
|
456
|
+
DEFINE_bool(trace_isolates, false, "trace isolate state changes")
|
457
|
+
|
458
|
+
// VM state
|
459
|
+
DEFINE_bool(log_state_changes, false, "Log state changes.")
|
460
|
+
|
461
|
+
// Regexp
|
462
|
+
DEFINE_bool(regexp_possessive_quantifier,
|
463
|
+
false,
|
464
|
+
"enable possessive quantifier syntax for testing")
|
465
|
+
DEFINE_bool(trace_regexp_bytecodes, false, "trace regexp bytecode execution")
|
466
|
+
DEFINE_bool(trace_regexp_assembler,
|
467
|
+
false,
|
468
|
+
"trace regexp macro assembler calls.")
|
469
|
+
|
470
|
+
//
|
471
|
+
// Logging and profiling only flags
|
472
|
+
//
|
473
|
+
#undef FLAG
|
474
|
+
#ifdef ENABLE_LOGGING_AND_PROFILING
|
475
|
+
#define FLAG FLAG_FULL
|
476
|
+
#else
|
477
|
+
#define FLAG FLAG_READONLY
|
478
|
+
#endif
|
479
|
+
|
480
|
+
// log.cc
|
481
|
+
DEFINE_bool(log, false,
|
482
|
+
"Minimal logging (no API, code, GC, suspect, or handles samples).")
|
483
|
+
DEFINE_bool(log_all, false, "Log all events to the log file.")
|
484
|
+
DEFINE_bool(log_runtime, false, "Activate runtime system %Log call.")
|
485
|
+
DEFINE_bool(log_api, false, "Log API events to the log file.")
|
486
|
+
DEFINE_bool(log_code, false,
|
487
|
+
"Log code events to the log file without profiling.")
|
488
|
+
DEFINE_bool(log_gc, false,
|
489
|
+
"Log heap samples on garbage collection for the hp2ps tool.")
|
490
|
+
DEFINE_bool(log_handles, false, "Log global handle events.")
|
491
|
+
DEFINE_bool(log_snapshot_positions, false,
|
492
|
+
"log positions of (de)serialized objects in the snapshot.")
|
493
|
+
DEFINE_bool(log_suspect, false, "Log suspect operations.")
|
494
|
+
DEFINE_bool(log_producers, false, "Log stack traces of JS objects allocations.")
|
495
|
+
DEFINE_bool(prof, false,
|
496
|
+
"Log statistical profiling information (implies --log-code).")
|
497
|
+
DEFINE_bool(prof_auto, true,
|
498
|
+
"Used with --prof, starts profiling automatically")
|
499
|
+
DEFINE_bool(prof_lazy, false,
|
500
|
+
"Used with --prof, only does sampling and logging"
|
501
|
+
" when profiler is active (implies --noprof_auto).")
|
502
|
+
DEFINE_bool(prof_browser_mode, true,
|
503
|
+
"Used with --prof, turns on browser-compatible mode for profiling.")
|
504
|
+
DEFINE_bool(log_regexp, false, "Log regular expression execution.")
|
505
|
+
DEFINE_bool(sliding_state_window, false,
|
506
|
+
"Update sliding state window counters.")
|
507
|
+
DEFINE_string(logfile, "v8.log", "Specify the name of the log file.")
|
508
|
+
DEFINE_bool(ll_prof, false, "Enable low-level linux profiler.")
|
509
|
+
|
510
|
+
//
|
511
|
+
// Heap protection flags
|
512
|
+
// Using heap protection requires ENABLE_LOGGING_AND_PROFILING as well.
|
513
|
+
//
|
514
|
+
#ifdef ENABLE_HEAP_PROTECTION
|
515
|
+
#undef FLAG
|
516
|
+
#define FLAG FLAG_FULL
|
517
|
+
|
518
|
+
DEFINE_bool(protect_heap, false,
|
519
|
+
"Protect/unprotect V8's heap when leaving/entring the VM.")
|
520
|
+
|
521
|
+
#endif
|
522
|
+
|
523
|
+
//
|
524
|
+
// Disassembler only flags
|
525
|
+
//
|
526
|
+
#undef FLAG
|
527
|
+
#ifdef ENABLE_DISASSEMBLER
|
528
|
+
#define FLAG FLAG_FULL
|
529
|
+
#else
|
530
|
+
#define FLAG FLAG_READONLY
|
531
|
+
#endif
|
532
|
+
|
533
|
+
// code-stubs.cc
|
534
|
+
DEFINE_bool(print_code_stubs, false, "print code stubs")
|
535
|
+
|
536
|
+
// codegen-ia32.cc / codegen-arm.cc
|
537
|
+
DEFINE_bool(print_code, false, "print generated code")
|
538
|
+
DEFINE_bool(print_opt_code, false, "print optimized code")
|
539
|
+
DEFINE_bool(print_unopt_code, false, "print unoptimized code before "
|
540
|
+
"printing optimized code based on it")
|
541
|
+
DEFINE_bool(print_code_verbose, false, "print more information for code")
|
542
|
+
DEFINE_bool(print_builtin_code, false, "print generated code for builtins")
|
543
|
+
|
544
|
+
// Cleanup...
|
545
|
+
#undef FLAG_FULL
|
546
|
+
#undef FLAG_READONLY
|
547
|
+
#undef FLAG
|
548
|
+
|
549
|
+
#undef DEFINE_bool
|
550
|
+
#undef DEFINE_int
|
551
|
+
#undef DEFINE_string
|
552
|
+
|
553
|
+
#undef FLAG_MODE_DECLARE
|
554
|
+
#undef FLAG_MODE_DEFINE
|
555
|
+
#undef FLAG_MODE_DEFINE_DEFAULTS
|
556
|
+
#undef FLAG_MODE_META
|