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,2179 @@
|
|
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
|
+
#ifndef V8_ARM_LITHIUM_ARM_H_
|
29
|
+
#define V8_ARM_LITHIUM_ARM_H_
|
30
|
+
|
31
|
+
#include "hydrogen.h"
|
32
|
+
#include "lithium-allocator.h"
|
33
|
+
#include "lithium.h"
|
34
|
+
#include "safepoint-table.h"
|
35
|
+
|
36
|
+
namespace v8 {
|
37
|
+
namespace internal {
|
38
|
+
|
39
|
+
// Forward declarations.
|
40
|
+
class LCodeGen;
|
41
|
+
|
42
|
+
#define LITHIUM_ALL_INSTRUCTION_LIST(V) \
|
43
|
+
V(ControlInstruction) \
|
44
|
+
V(Call) \
|
45
|
+
LITHIUM_CONCRETE_INSTRUCTION_LIST(V)
|
46
|
+
|
47
|
+
|
48
|
+
#define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \
|
49
|
+
V(AccessArgumentsAt) \
|
50
|
+
V(AddI) \
|
51
|
+
V(ApplyArguments) \
|
52
|
+
V(ArgumentsElements) \
|
53
|
+
V(ArgumentsLength) \
|
54
|
+
V(ArithmeticD) \
|
55
|
+
V(ArithmeticT) \
|
56
|
+
V(ArrayLiteral) \
|
57
|
+
V(BitI) \
|
58
|
+
V(BitNotI) \
|
59
|
+
V(BoundsCheck) \
|
60
|
+
V(Branch) \
|
61
|
+
V(CallConstantFunction) \
|
62
|
+
V(CallFunction) \
|
63
|
+
V(CallGlobal) \
|
64
|
+
V(CallKeyed) \
|
65
|
+
V(CallKnownGlobal) \
|
66
|
+
V(CallNamed) \
|
67
|
+
V(CallNew) \
|
68
|
+
V(CallRuntime) \
|
69
|
+
V(CallStub) \
|
70
|
+
V(CheckFunction) \
|
71
|
+
V(CheckInstanceType) \
|
72
|
+
V(CheckNonSmi) \
|
73
|
+
V(CheckMap) \
|
74
|
+
V(CheckPrototypeMaps) \
|
75
|
+
V(CheckSmi) \
|
76
|
+
V(ClassOfTest) \
|
77
|
+
V(ClassOfTestAndBranch) \
|
78
|
+
V(CmpID) \
|
79
|
+
V(CmpIDAndBranch) \
|
80
|
+
V(CmpJSObjectEq) \
|
81
|
+
V(CmpJSObjectEqAndBranch) \
|
82
|
+
V(CmpMapAndBranch) \
|
83
|
+
V(CmpT) \
|
84
|
+
V(CmpTAndBranch) \
|
85
|
+
V(ConstantD) \
|
86
|
+
V(ConstantI) \
|
87
|
+
V(ConstantT) \
|
88
|
+
V(Context) \
|
89
|
+
V(DeleteProperty) \
|
90
|
+
V(Deoptimize) \
|
91
|
+
V(DivI) \
|
92
|
+
V(DoubleToI) \
|
93
|
+
V(ExternalArrayLength) \
|
94
|
+
V(FixedArrayLength) \
|
95
|
+
V(FunctionLiteral) \
|
96
|
+
V(Gap) \
|
97
|
+
V(GetCachedArrayIndex) \
|
98
|
+
V(GlobalObject) \
|
99
|
+
V(GlobalReceiver) \
|
100
|
+
V(Goto) \
|
101
|
+
V(HasCachedArrayIndex) \
|
102
|
+
V(HasCachedArrayIndexAndBranch) \
|
103
|
+
V(HasInstanceType) \
|
104
|
+
V(HasInstanceTypeAndBranch) \
|
105
|
+
V(InstanceOf) \
|
106
|
+
V(InstanceOfAndBranch) \
|
107
|
+
V(InstanceOfKnownGlobal) \
|
108
|
+
V(Integer32ToDouble) \
|
109
|
+
V(IsNull) \
|
110
|
+
V(IsNullAndBranch) \
|
111
|
+
V(IsObject) \
|
112
|
+
V(IsObjectAndBranch) \
|
113
|
+
V(IsSmi) \
|
114
|
+
V(IsSmiAndBranch) \
|
115
|
+
V(JSArrayLength) \
|
116
|
+
V(Label) \
|
117
|
+
V(LazyBailout) \
|
118
|
+
V(LoadContextSlot) \
|
119
|
+
V(LoadElements) \
|
120
|
+
V(LoadExternalArrayPointer) \
|
121
|
+
V(LoadFunctionPrototype) \
|
122
|
+
V(LoadGlobalCell) \
|
123
|
+
V(LoadGlobalGeneric) \
|
124
|
+
V(LoadKeyedFastElement) \
|
125
|
+
V(LoadKeyedGeneric) \
|
126
|
+
V(LoadKeyedSpecializedArrayElement) \
|
127
|
+
V(LoadNamedField) \
|
128
|
+
V(LoadNamedFieldPolymorphic) \
|
129
|
+
V(LoadNamedGeneric) \
|
130
|
+
V(ModI) \
|
131
|
+
V(MulI) \
|
132
|
+
V(NumberTagD) \
|
133
|
+
V(NumberTagI) \
|
134
|
+
V(NumberUntagD) \
|
135
|
+
V(ObjectLiteral) \
|
136
|
+
V(OsrEntry) \
|
137
|
+
V(OuterContext) \
|
138
|
+
V(Parameter) \
|
139
|
+
V(Power) \
|
140
|
+
V(PushArgument) \
|
141
|
+
V(RegExpLiteral) \
|
142
|
+
V(Return) \
|
143
|
+
V(ShiftI) \
|
144
|
+
V(SmiTag) \
|
145
|
+
V(SmiUntag) \
|
146
|
+
V(StackCheck) \
|
147
|
+
V(StoreContextSlot) \
|
148
|
+
V(StoreGlobalCell) \
|
149
|
+
V(StoreGlobalGeneric) \
|
150
|
+
V(StoreKeyedFastElement) \
|
151
|
+
V(StoreKeyedGeneric) \
|
152
|
+
V(StoreKeyedSpecializedArrayElement) \
|
153
|
+
V(StoreNamedField) \
|
154
|
+
V(StoreNamedGeneric) \
|
155
|
+
V(StringCharCodeAt) \
|
156
|
+
V(StringCharFromCode) \
|
157
|
+
V(StringLength) \
|
158
|
+
V(SubI) \
|
159
|
+
V(TaggedToI) \
|
160
|
+
V(Throw) \
|
161
|
+
V(ToFastProperties) \
|
162
|
+
V(Typeof) \
|
163
|
+
V(TypeofIs) \
|
164
|
+
V(TypeofIsAndBranch) \
|
165
|
+
V(IsConstructCall) \
|
166
|
+
V(IsConstructCallAndBranch) \
|
167
|
+
V(UnaryMathOperation) \
|
168
|
+
V(UnknownOSRValue) \
|
169
|
+
V(ValueOf)
|
170
|
+
|
171
|
+
|
172
|
+
#define DECLARE_INSTRUCTION(type) \
|
173
|
+
virtual bool Is##type() const { return true; } \
|
174
|
+
static L##type* cast(LInstruction* instr) { \
|
175
|
+
ASSERT(instr->Is##type()); \
|
176
|
+
return reinterpret_cast<L##type*>(instr); \
|
177
|
+
}
|
178
|
+
|
179
|
+
|
180
|
+
#define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
|
181
|
+
virtual void CompileToNative(LCodeGen* generator); \
|
182
|
+
virtual const char* Mnemonic() const { return mnemonic; } \
|
183
|
+
DECLARE_INSTRUCTION(type)
|
184
|
+
|
185
|
+
|
186
|
+
#define DECLARE_HYDROGEN_ACCESSOR(type) \
|
187
|
+
H##type* hydrogen() const { \
|
188
|
+
return H##type::cast(hydrogen_value()); \
|
189
|
+
}
|
190
|
+
|
191
|
+
|
192
|
+
class LInstruction: public ZoneObject {
|
193
|
+
public:
|
194
|
+
LInstruction()
|
195
|
+
: environment_(NULL),
|
196
|
+
hydrogen_value_(NULL),
|
197
|
+
is_call_(false),
|
198
|
+
is_save_doubles_(false) { }
|
199
|
+
virtual ~LInstruction() { }
|
200
|
+
|
201
|
+
virtual void CompileToNative(LCodeGen* generator) = 0;
|
202
|
+
virtual const char* Mnemonic() const = 0;
|
203
|
+
virtual void PrintTo(StringStream* stream);
|
204
|
+
virtual void PrintDataTo(StringStream* stream) = 0;
|
205
|
+
virtual void PrintOutputOperandTo(StringStream* stream) = 0;
|
206
|
+
|
207
|
+
// Declare virtual type testers.
|
208
|
+
#define DECLARE_DO(type) virtual bool Is##type() const { return false; }
|
209
|
+
LITHIUM_ALL_INSTRUCTION_LIST(DECLARE_DO)
|
210
|
+
#undef DECLARE_DO
|
211
|
+
|
212
|
+
virtual bool IsControl() const { return false; }
|
213
|
+
virtual void SetBranchTargets(int true_block_id, int false_block_id) { }
|
214
|
+
|
215
|
+
void set_environment(LEnvironment* env) { environment_ = env; }
|
216
|
+
LEnvironment* environment() const { return environment_; }
|
217
|
+
bool HasEnvironment() const { return environment_ != NULL; }
|
218
|
+
|
219
|
+
void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); }
|
220
|
+
LPointerMap* pointer_map() const { return pointer_map_.get(); }
|
221
|
+
bool HasPointerMap() const { return pointer_map_.is_set(); }
|
222
|
+
|
223
|
+
void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; }
|
224
|
+
HValue* hydrogen_value() const { return hydrogen_value_; }
|
225
|
+
|
226
|
+
void set_deoptimization_environment(LEnvironment* env) {
|
227
|
+
deoptimization_environment_.set(env);
|
228
|
+
}
|
229
|
+
LEnvironment* deoptimization_environment() const {
|
230
|
+
return deoptimization_environment_.get();
|
231
|
+
}
|
232
|
+
bool HasDeoptimizationEnvironment() const {
|
233
|
+
return deoptimization_environment_.is_set();
|
234
|
+
}
|
235
|
+
|
236
|
+
void MarkAsCall() { is_call_ = true; }
|
237
|
+
void MarkAsSaveDoubles() { is_save_doubles_ = true; }
|
238
|
+
|
239
|
+
// Interface to the register allocator and iterators.
|
240
|
+
bool IsMarkedAsCall() const { return is_call_; }
|
241
|
+
bool IsMarkedAsSaveDoubles() const { return is_save_doubles_; }
|
242
|
+
|
243
|
+
virtual bool HasResult() const = 0;
|
244
|
+
virtual LOperand* result() = 0;
|
245
|
+
|
246
|
+
virtual int InputCount() = 0;
|
247
|
+
virtual LOperand* InputAt(int i) = 0;
|
248
|
+
virtual int TempCount() = 0;
|
249
|
+
virtual LOperand* TempAt(int i) = 0;
|
250
|
+
|
251
|
+
LOperand* FirstInput() { return InputAt(0); }
|
252
|
+
LOperand* Output() { return HasResult() ? result() : NULL; }
|
253
|
+
|
254
|
+
#ifdef DEBUG
|
255
|
+
void VerifyCall();
|
256
|
+
#endif
|
257
|
+
|
258
|
+
private:
|
259
|
+
LEnvironment* environment_;
|
260
|
+
SetOncePointer<LPointerMap> pointer_map_;
|
261
|
+
HValue* hydrogen_value_;
|
262
|
+
SetOncePointer<LEnvironment> deoptimization_environment_;
|
263
|
+
bool is_call_;
|
264
|
+
bool is_save_doubles_;
|
265
|
+
};
|
266
|
+
|
267
|
+
|
268
|
+
template<typename ElementType, int NumElements>
|
269
|
+
class OperandContainer {
|
270
|
+
public:
|
271
|
+
OperandContainer() {
|
272
|
+
for (int i = 0; i < NumElements; i++) elems_[i] = NULL;
|
273
|
+
}
|
274
|
+
int length() { return NumElements; }
|
275
|
+
ElementType& operator[](int i) {
|
276
|
+
ASSERT(i < length());
|
277
|
+
return elems_[i];
|
278
|
+
}
|
279
|
+
void PrintOperandsTo(StringStream* stream);
|
280
|
+
|
281
|
+
private:
|
282
|
+
ElementType elems_[NumElements];
|
283
|
+
};
|
284
|
+
|
285
|
+
|
286
|
+
template<typename ElementType>
|
287
|
+
class OperandContainer<ElementType, 0> {
|
288
|
+
public:
|
289
|
+
int length() { return 0; }
|
290
|
+
void PrintOperandsTo(StringStream* stream) { }
|
291
|
+
ElementType& operator[](int i) {
|
292
|
+
UNREACHABLE();
|
293
|
+
static ElementType t = 0;
|
294
|
+
return t;
|
295
|
+
}
|
296
|
+
};
|
297
|
+
|
298
|
+
|
299
|
+
// R = number of result operands (0 or 1).
|
300
|
+
// I = number of input operands.
|
301
|
+
// T = number of temporary operands.
|
302
|
+
template<int R, int I, int T>
|
303
|
+
class LTemplateInstruction: public LInstruction {
|
304
|
+
public:
|
305
|
+
// Allow 0 or 1 output operands.
|
306
|
+
STATIC_ASSERT(R == 0 || R == 1);
|
307
|
+
virtual bool HasResult() const { return R != 0; }
|
308
|
+
void set_result(LOperand* operand) { results_[0] = operand; }
|
309
|
+
LOperand* result() { return results_[0]; }
|
310
|
+
|
311
|
+
int InputCount() { return I; }
|
312
|
+
LOperand* InputAt(int i) { return inputs_[i]; }
|
313
|
+
|
314
|
+
int TempCount() { return T; }
|
315
|
+
LOperand* TempAt(int i) { return temps_[i]; }
|
316
|
+
|
317
|
+
virtual void PrintDataTo(StringStream* stream);
|
318
|
+
virtual void PrintOutputOperandTo(StringStream* stream);
|
319
|
+
|
320
|
+
protected:
|
321
|
+
OperandContainer<LOperand*, R> results_;
|
322
|
+
OperandContainer<LOperand*, I> inputs_;
|
323
|
+
OperandContainer<LOperand*, T> temps_;
|
324
|
+
};
|
325
|
+
|
326
|
+
|
327
|
+
class LGap: public LTemplateInstruction<0, 0, 0> {
|
328
|
+
public:
|
329
|
+
explicit LGap(HBasicBlock* block)
|
330
|
+
: block_(block) {
|
331
|
+
parallel_moves_[BEFORE] = NULL;
|
332
|
+
parallel_moves_[START] = NULL;
|
333
|
+
parallel_moves_[END] = NULL;
|
334
|
+
parallel_moves_[AFTER] = NULL;
|
335
|
+
}
|
336
|
+
|
337
|
+
DECLARE_CONCRETE_INSTRUCTION(Gap, "gap")
|
338
|
+
virtual void PrintDataTo(StringStream* stream) const;
|
339
|
+
|
340
|
+
bool IsRedundant() const;
|
341
|
+
|
342
|
+
HBasicBlock* block() const { return block_; }
|
343
|
+
|
344
|
+
enum InnerPosition {
|
345
|
+
BEFORE,
|
346
|
+
START,
|
347
|
+
END,
|
348
|
+
AFTER,
|
349
|
+
FIRST_INNER_POSITION = BEFORE,
|
350
|
+
LAST_INNER_POSITION = AFTER
|
351
|
+
};
|
352
|
+
|
353
|
+
LParallelMove* GetOrCreateParallelMove(InnerPosition pos) {
|
354
|
+
if (parallel_moves_[pos] == NULL) parallel_moves_[pos] = new LParallelMove;
|
355
|
+
return parallel_moves_[pos];
|
356
|
+
}
|
357
|
+
|
358
|
+
LParallelMove* GetParallelMove(InnerPosition pos) {
|
359
|
+
return parallel_moves_[pos];
|
360
|
+
}
|
361
|
+
|
362
|
+
private:
|
363
|
+
LParallelMove* parallel_moves_[LAST_INNER_POSITION + 1];
|
364
|
+
HBasicBlock* block_;
|
365
|
+
};
|
366
|
+
|
367
|
+
|
368
|
+
class LGoto: public LTemplateInstruction<0, 0, 0> {
|
369
|
+
public:
|
370
|
+
LGoto(int block_id, bool include_stack_check = false)
|
371
|
+
: block_id_(block_id), include_stack_check_(include_stack_check) { }
|
372
|
+
|
373
|
+
DECLARE_CONCRETE_INSTRUCTION(Goto, "goto")
|
374
|
+
virtual void PrintDataTo(StringStream* stream);
|
375
|
+
virtual bool IsControl() const { return true; }
|
376
|
+
|
377
|
+
int block_id() const { return block_id_; }
|
378
|
+
bool include_stack_check() const { return include_stack_check_; }
|
379
|
+
|
380
|
+
private:
|
381
|
+
int block_id_;
|
382
|
+
bool include_stack_check_;
|
383
|
+
};
|
384
|
+
|
385
|
+
|
386
|
+
class LLazyBailout: public LTemplateInstruction<0, 0, 0> {
|
387
|
+
public:
|
388
|
+
LLazyBailout() : gap_instructions_size_(0) { }
|
389
|
+
|
390
|
+
DECLARE_CONCRETE_INSTRUCTION(LazyBailout, "lazy-bailout")
|
391
|
+
|
392
|
+
void set_gap_instructions_size(int gap_instructions_size) {
|
393
|
+
gap_instructions_size_ = gap_instructions_size;
|
394
|
+
}
|
395
|
+
int gap_instructions_size() { return gap_instructions_size_; }
|
396
|
+
|
397
|
+
private:
|
398
|
+
int gap_instructions_size_;
|
399
|
+
};
|
400
|
+
|
401
|
+
|
402
|
+
class LDeoptimize: public LTemplateInstruction<0, 0, 0> {
|
403
|
+
public:
|
404
|
+
DECLARE_CONCRETE_INSTRUCTION(Deoptimize, "deoptimize")
|
405
|
+
};
|
406
|
+
|
407
|
+
|
408
|
+
class LLabel: public LGap {
|
409
|
+
public:
|
410
|
+
explicit LLabel(HBasicBlock* block)
|
411
|
+
: LGap(block), replacement_(NULL) { }
|
412
|
+
|
413
|
+
DECLARE_CONCRETE_INSTRUCTION(Label, "label")
|
414
|
+
|
415
|
+
virtual void PrintDataTo(StringStream* stream);
|
416
|
+
|
417
|
+
int block_id() const { return block()->block_id(); }
|
418
|
+
bool is_loop_header() const { return block()->IsLoopHeader(); }
|
419
|
+
Label* label() { return &label_; }
|
420
|
+
LLabel* replacement() const { return replacement_; }
|
421
|
+
void set_replacement(LLabel* label) { replacement_ = label; }
|
422
|
+
bool HasReplacement() const { return replacement_ != NULL; }
|
423
|
+
|
424
|
+
private:
|
425
|
+
Label label_;
|
426
|
+
LLabel* replacement_;
|
427
|
+
};
|
428
|
+
|
429
|
+
|
430
|
+
class LParameter: public LTemplateInstruction<1, 0, 0> {
|
431
|
+
public:
|
432
|
+
DECLARE_CONCRETE_INSTRUCTION(Parameter, "parameter")
|
433
|
+
};
|
434
|
+
|
435
|
+
|
436
|
+
class LCallStub: public LTemplateInstruction<1, 0, 0> {
|
437
|
+
public:
|
438
|
+
DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub")
|
439
|
+
DECLARE_HYDROGEN_ACCESSOR(CallStub)
|
440
|
+
|
441
|
+
TranscendentalCache::Type transcendental_type() {
|
442
|
+
return hydrogen()->transcendental_type();
|
443
|
+
}
|
444
|
+
};
|
445
|
+
|
446
|
+
|
447
|
+
class LUnknownOSRValue: public LTemplateInstruction<1, 0, 0> {
|
448
|
+
public:
|
449
|
+
DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value")
|
450
|
+
};
|
451
|
+
|
452
|
+
|
453
|
+
template<int I, int T>
|
454
|
+
class LControlInstruction: public LTemplateInstruction<0, I, T> {
|
455
|
+
public:
|
456
|
+
DECLARE_INSTRUCTION(ControlInstruction)
|
457
|
+
virtual bool IsControl() const { return true; }
|
458
|
+
|
459
|
+
int true_block_id() const { return true_block_id_; }
|
460
|
+
int false_block_id() const { return false_block_id_; }
|
461
|
+
void SetBranchTargets(int true_block_id, int false_block_id) {
|
462
|
+
true_block_id_ = true_block_id;
|
463
|
+
false_block_id_ = false_block_id;
|
464
|
+
}
|
465
|
+
|
466
|
+
private:
|
467
|
+
int true_block_id_;
|
468
|
+
int false_block_id_;
|
469
|
+
};
|
470
|
+
|
471
|
+
|
472
|
+
class LApplyArguments: public LTemplateInstruction<1, 4, 0> {
|
473
|
+
public:
|
474
|
+
LApplyArguments(LOperand* function,
|
475
|
+
LOperand* receiver,
|
476
|
+
LOperand* length,
|
477
|
+
LOperand* elements) {
|
478
|
+
inputs_[0] = function;
|
479
|
+
inputs_[1] = receiver;
|
480
|
+
inputs_[2] = length;
|
481
|
+
inputs_[3] = elements;
|
482
|
+
}
|
483
|
+
|
484
|
+
DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments")
|
485
|
+
|
486
|
+
LOperand* function() { return inputs_[0]; }
|
487
|
+
LOperand* receiver() { return inputs_[1]; }
|
488
|
+
LOperand* length() { return inputs_[2]; }
|
489
|
+
LOperand* elements() { return inputs_[3]; }
|
490
|
+
};
|
491
|
+
|
492
|
+
|
493
|
+
class LAccessArgumentsAt: public LTemplateInstruction<1, 3, 0> {
|
494
|
+
public:
|
495
|
+
LAccessArgumentsAt(LOperand* arguments, LOperand* length, LOperand* index) {
|
496
|
+
inputs_[0] = arguments;
|
497
|
+
inputs_[1] = length;
|
498
|
+
inputs_[2] = index;
|
499
|
+
}
|
500
|
+
|
501
|
+
DECLARE_CONCRETE_INSTRUCTION(AccessArgumentsAt, "access-arguments-at")
|
502
|
+
|
503
|
+
LOperand* arguments() { return inputs_[0]; }
|
504
|
+
LOperand* length() { return inputs_[1]; }
|
505
|
+
LOperand* index() { return inputs_[2]; }
|
506
|
+
|
507
|
+
virtual void PrintDataTo(StringStream* stream);
|
508
|
+
};
|
509
|
+
|
510
|
+
|
511
|
+
class LArgumentsLength: public LTemplateInstruction<1, 1, 0> {
|
512
|
+
public:
|
513
|
+
explicit LArgumentsLength(LOperand* elements) {
|
514
|
+
inputs_[0] = elements;
|
515
|
+
}
|
516
|
+
|
517
|
+
DECLARE_CONCRETE_INSTRUCTION(ArgumentsLength, "arguments-length")
|
518
|
+
};
|
519
|
+
|
520
|
+
|
521
|
+
class LArgumentsElements: public LTemplateInstruction<1, 0, 0> {
|
522
|
+
public:
|
523
|
+
LArgumentsElements() { }
|
524
|
+
|
525
|
+
DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements, "arguments-elements")
|
526
|
+
};
|
527
|
+
|
528
|
+
|
529
|
+
class LModI: public LTemplateInstruction<1, 2, 3> {
|
530
|
+
public:
|
531
|
+
// Used when the right hand is a constant power of 2.
|
532
|
+
LModI(LOperand* left,
|
533
|
+
LOperand* right) {
|
534
|
+
inputs_[0] = left;
|
535
|
+
inputs_[1] = right;
|
536
|
+
temps_[0] = NULL;
|
537
|
+
temps_[1] = NULL;
|
538
|
+
temps_[2] = NULL;
|
539
|
+
}
|
540
|
+
|
541
|
+
// Used for the standard case.
|
542
|
+
LModI(LOperand* left,
|
543
|
+
LOperand* right,
|
544
|
+
LOperand* temp1,
|
545
|
+
LOperand* temp2,
|
546
|
+
LOperand* temp3) {
|
547
|
+
inputs_[0] = left;
|
548
|
+
inputs_[1] = right;
|
549
|
+
temps_[0] = temp1;
|
550
|
+
temps_[1] = temp2;
|
551
|
+
temps_[2] = temp3;
|
552
|
+
}
|
553
|
+
|
554
|
+
DECLARE_CONCRETE_INSTRUCTION(ModI, "mod-i")
|
555
|
+
DECLARE_HYDROGEN_ACCESSOR(Mod)
|
556
|
+
};
|
557
|
+
|
558
|
+
|
559
|
+
class LDivI: public LTemplateInstruction<1, 2, 0> {
|
560
|
+
public:
|
561
|
+
LDivI(LOperand* left, LOperand* right) {
|
562
|
+
inputs_[0] = left;
|
563
|
+
inputs_[1] = right;
|
564
|
+
}
|
565
|
+
|
566
|
+
DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i")
|
567
|
+
DECLARE_HYDROGEN_ACCESSOR(Div)
|
568
|
+
};
|
569
|
+
|
570
|
+
|
571
|
+
class LMulI: public LTemplateInstruction<1, 2, 1> {
|
572
|
+
public:
|
573
|
+
LMulI(LOperand* left, LOperand* right, LOperand* temp) {
|
574
|
+
inputs_[0] = left;
|
575
|
+
inputs_[1] = right;
|
576
|
+
temps_[0] = temp;
|
577
|
+
}
|
578
|
+
|
579
|
+
DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i")
|
580
|
+
DECLARE_HYDROGEN_ACCESSOR(Mul)
|
581
|
+
};
|
582
|
+
|
583
|
+
|
584
|
+
class LCmpID: public LTemplateInstruction<1, 2, 0> {
|
585
|
+
public:
|
586
|
+
LCmpID(LOperand* left, LOperand* right) {
|
587
|
+
inputs_[0] = left;
|
588
|
+
inputs_[1] = right;
|
589
|
+
}
|
590
|
+
|
591
|
+
DECLARE_CONCRETE_INSTRUCTION(CmpID, "cmp-id")
|
592
|
+
DECLARE_HYDROGEN_ACCESSOR(Compare)
|
593
|
+
|
594
|
+
Token::Value op() const { return hydrogen()->token(); }
|
595
|
+
bool is_double() const {
|
596
|
+
return hydrogen()->GetInputRepresentation().IsDouble();
|
597
|
+
}
|
598
|
+
};
|
599
|
+
|
600
|
+
|
601
|
+
class LCmpIDAndBranch: public LControlInstruction<2, 0> {
|
602
|
+
public:
|
603
|
+
LCmpIDAndBranch(LOperand* left, LOperand* right) {
|
604
|
+
inputs_[0] = left;
|
605
|
+
inputs_[1] = right;
|
606
|
+
}
|
607
|
+
|
608
|
+
DECLARE_CONCRETE_INSTRUCTION(CmpIDAndBranch, "cmp-id-and-branch")
|
609
|
+
DECLARE_HYDROGEN_ACCESSOR(Compare)
|
610
|
+
|
611
|
+
Token::Value op() const { return hydrogen()->token(); }
|
612
|
+
bool is_double() const {
|
613
|
+
return hydrogen()->GetInputRepresentation().IsDouble();
|
614
|
+
}
|
615
|
+
|
616
|
+
virtual void PrintDataTo(StringStream* stream);
|
617
|
+
};
|
618
|
+
|
619
|
+
|
620
|
+
class LUnaryMathOperation: public LTemplateInstruction<1, 1, 1> {
|
621
|
+
public:
|
622
|
+
LUnaryMathOperation(LOperand* value, LOperand* temp) {
|
623
|
+
inputs_[0] = value;
|
624
|
+
temps_[0] = temp;
|
625
|
+
}
|
626
|
+
|
627
|
+
DECLARE_CONCRETE_INSTRUCTION(UnaryMathOperation, "unary-math-operation")
|
628
|
+
DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation)
|
629
|
+
|
630
|
+
virtual void PrintDataTo(StringStream* stream);
|
631
|
+
BuiltinFunctionId op() const { return hydrogen()->op(); }
|
632
|
+
};
|
633
|
+
|
634
|
+
|
635
|
+
class LCmpJSObjectEq: public LTemplateInstruction<1, 2, 0> {
|
636
|
+
public:
|
637
|
+
LCmpJSObjectEq(LOperand* left, LOperand* right) {
|
638
|
+
inputs_[0] = left;
|
639
|
+
inputs_[1] = right;
|
640
|
+
}
|
641
|
+
|
642
|
+
DECLARE_CONCRETE_INSTRUCTION(CmpJSObjectEq, "cmp-jsobject-eq")
|
643
|
+
};
|
644
|
+
|
645
|
+
|
646
|
+
class LCmpJSObjectEqAndBranch: public LControlInstruction<2, 0> {
|
647
|
+
public:
|
648
|
+
LCmpJSObjectEqAndBranch(LOperand* left, LOperand* right) {
|
649
|
+
inputs_[0] = left;
|
650
|
+
inputs_[1] = right;
|
651
|
+
}
|
652
|
+
|
653
|
+
DECLARE_CONCRETE_INSTRUCTION(CmpJSObjectEqAndBranch,
|
654
|
+
"cmp-jsobject-eq-and-branch")
|
655
|
+
};
|
656
|
+
|
657
|
+
|
658
|
+
class LIsNull: public LTemplateInstruction<1, 1, 0> {
|
659
|
+
public:
|
660
|
+
explicit LIsNull(LOperand* value) {
|
661
|
+
inputs_[0] = value;
|
662
|
+
}
|
663
|
+
|
664
|
+
DECLARE_CONCRETE_INSTRUCTION(IsNull, "is-null")
|
665
|
+
DECLARE_HYDROGEN_ACCESSOR(IsNull)
|
666
|
+
|
667
|
+
bool is_strict() const { return hydrogen()->is_strict(); }
|
668
|
+
};
|
669
|
+
|
670
|
+
class LIsNullAndBranch: public LControlInstruction<1, 0> {
|
671
|
+
public:
|
672
|
+
explicit LIsNullAndBranch(LOperand* value) {
|
673
|
+
inputs_[0] = value;
|
674
|
+
}
|
675
|
+
|
676
|
+
DECLARE_CONCRETE_INSTRUCTION(IsNullAndBranch, "is-null-and-branch")
|
677
|
+
DECLARE_HYDROGEN_ACCESSOR(IsNull)
|
678
|
+
|
679
|
+
bool is_strict() const { return hydrogen()->is_strict(); }
|
680
|
+
|
681
|
+
virtual void PrintDataTo(StringStream* stream);
|
682
|
+
};
|
683
|
+
|
684
|
+
|
685
|
+
class LIsObject: public LTemplateInstruction<1, 1, 1> {
|
686
|
+
public:
|
687
|
+
explicit LIsObject(LOperand* value) {
|
688
|
+
inputs_[0] = value;
|
689
|
+
}
|
690
|
+
|
691
|
+
DECLARE_CONCRETE_INSTRUCTION(IsObject, "is-object")
|
692
|
+
};
|
693
|
+
|
694
|
+
|
695
|
+
class LIsObjectAndBranch: public LControlInstruction<1, 2> {
|
696
|
+
public:
|
697
|
+
LIsObjectAndBranch(LOperand* value, LOperand* temp) {
|
698
|
+
inputs_[0] = value;
|
699
|
+
temps_[0] = temp;
|
700
|
+
}
|
701
|
+
|
702
|
+
DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
|
703
|
+
|
704
|
+
virtual void PrintDataTo(StringStream* stream);
|
705
|
+
};
|
706
|
+
|
707
|
+
|
708
|
+
class LIsSmi: public LTemplateInstruction<1, 1, 0> {
|
709
|
+
public:
|
710
|
+
explicit LIsSmi(LOperand* value) {
|
711
|
+
inputs_[0] = value;
|
712
|
+
}
|
713
|
+
|
714
|
+
DECLARE_CONCRETE_INSTRUCTION(IsSmi, "is-smi")
|
715
|
+
DECLARE_HYDROGEN_ACCESSOR(IsSmi)
|
716
|
+
};
|
717
|
+
|
718
|
+
|
719
|
+
class LIsSmiAndBranch: public LControlInstruction<1, 0> {
|
720
|
+
public:
|
721
|
+
explicit LIsSmiAndBranch(LOperand* value) {
|
722
|
+
inputs_[0] = value;
|
723
|
+
}
|
724
|
+
|
725
|
+
DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch")
|
726
|
+
|
727
|
+
virtual void PrintDataTo(StringStream* stream);
|
728
|
+
};
|
729
|
+
|
730
|
+
|
731
|
+
class LHasInstanceType: public LTemplateInstruction<1, 1, 0> {
|
732
|
+
public:
|
733
|
+
explicit LHasInstanceType(LOperand* value) {
|
734
|
+
inputs_[0] = value;
|
735
|
+
}
|
736
|
+
|
737
|
+
DECLARE_CONCRETE_INSTRUCTION(HasInstanceType, "has-instance-type")
|
738
|
+
DECLARE_HYDROGEN_ACCESSOR(HasInstanceType)
|
739
|
+
};
|
740
|
+
|
741
|
+
|
742
|
+
class LHasInstanceTypeAndBranch: public LControlInstruction<1, 0> {
|
743
|
+
public:
|
744
|
+
explicit LHasInstanceTypeAndBranch(LOperand* value) {
|
745
|
+
inputs_[0] = value;
|
746
|
+
}
|
747
|
+
|
748
|
+
DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch,
|
749
|
+
"has-instance-type-and-branch")
|
750
|
+
DECLARE_HYDROGEN_ACCESSOR(HasInstanceType)
|
751
|
+
|
752
|
+
virtual void PrintDataTo(StringStream* stream);
|
753
|
+
};
|
754
|
+
|
755
|
+
|
756
|
+
class LGetCachedArrayIndex: public LTemplateInstruction<1, 1, 0> {
|
757
|
+
public:
|
758
|
+
explicit LGetCachedArrayIndex(LOperand* value) {
|
759
|
+
inputs_[0] = value;
|
760
|
+
}
|
761
|
+
|
762
|
+
DECLARE_CONCRETE_INSTRUCTION(GetCachedArrayIndex, "get-cached-array-index")
|
763
|
+
DECLARE_HYDROGEN_ACCESSOR(GetCachedArrayIndex)
|
764
|
+
};
|
765
|
+
|
766
|
+
|
767
|
+
class LHasCachedArrayIndex: public LTemplateInstruction<1, 1, 0> {
|
768
|
+
public:
|
769
|
+
explicit LHasCachedArrayIndex(LOperand* value) {
|
770
|
+
inputs_[0] = value;
|
771
|
+
}
|
772
|
+
|
773
|
+
DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndex, "has-cached-array-index")
|
774
|
+
DECLARE_HYDROGEN_ACCESSOR(HasCachedArrayIndex)
|
775
|
+
};
|
776
|
+
|
777
|
+
|
778
|
+
class LHasCachedArrayIndexAndBranch: public LControlInstruction<1, 0> {
|
779
|
+
public:
|
780
|
+
explicit LHasCachedArrayIndexAndBranch(LOperand* value) {
|
781
|
+
inputs_[0] = value;
|
782
|
+
}
|
783
|
+
|
784
|
+
DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch,
|
785
|
+
"has-cached-array-index-and-branch")
|
786
|
+
virtual void PrintDataTo(StringStream* stream);
|
787
|
+
};
|
788
|
+
|
789
|
+
|
790
|
+
class LClassOfTest: public LTemplateInstruction<1, 1, 0> {
|
791
|
+
public:
|
792
|
+
explicit LClassOfTest(LOperand* value) {
|
793
|
+
inputs_[0] = value;
|
794
|
+
}
|
795
|
+
|
796
|
+
DECLARE_CONCRETE_INSTRUCTION(ClassOfTest, "class-of-test")
|
797
|
+
DECLARE_HYDROGEN_ACCESSOR(ClassOfTest)
|
798
|
+
|
799
|
+
virtual void PrintDataTo(StringStream* stream);
|
800
|
+
};
|
801
|
+
|
802
|
+
|
803
|
+
class LClassOfTestAndBranch: public LControlInstruction<1, 1> {
|
804
|
+
public:
|
805
|
+
LClassOfTestAndBranch(LOperand* value, LOperand* temp) {
|
806
|
+
inputs_[0] = value;
|
807
|
+
temps_[0] = temp;
|
808
|
+
}
|
809
|
+
|
810
|
+
DECLARE_CONCRETE_INSTRUCTION(ClassOfTestAndBranch,
|
811
|
+
"class-of-test-and-branch")
|
812
|
+
DECLARE_HYDROGEN_ACCESSOR(ClassOfTest)
|
813
|
+
|
814
|
+
virtual void PrintDataTo(StringStream* stream);
|
815
|
+
};
|
816
|
+
|
817
|
+
|
818
|
+
class LCmpT: public LTemplateInstruction<1, 2, 0> {
|
819
|
+
public:
|
820
|
+
LCmpT(LOperand* left, LOperand* right) {
|
821
|
+
inputs_[0] = left;
|
822
|
+
inputs_[1] = right;
|
823
|
+
}
|
824
|
+
|
825
|
+
DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t")
|
826
|
+
DECLARE_HYDROGEN_ACCESSOR(Compare)
|
827
|
+
|
828
|
+
Token::Value op() const { return hydrogen()->token(); }
|
829
|
+
};
|
830
|
+
|
831
|
+
|
832
|
+
class LCmpTAndBranch: public LControlInstruction<2, 0> {
|
833
|
+
public:
|
834
|
+
LCmpTAndBranch(LOperand* left, LOperand* right) {
|
835
|
+
inputs_[0] = left;
|
836
|
+
inputs_[1] = right;
|
837
|
+
}
|
838
|
+
|
839
|
+
DECLARE_CONCRETE_INSTRUCTION(CmpTAndBranch, "cmp-t-and-branch")
|
840
|
+
DECLARE_HYDROGEN_ACCESSOR(Compare)
|
841
|
+
|
842
|
+
Token::Value op() const { return hydrogen()->token(); }
|
843
|
+
};
|
844
|
+
|
845
|
+
|
846
|
+
class LInstanceOf: public LTemplateInstruction<1, 2, 0> {
|
847
|
+
public:
|
848
|
+
LInstanceOf(LOperand* left, LOperand* right) {
|
849
|
+
inputs_[0] = left;
|
850
|
+
inputs_[1] = right;
|
851
|
+
}
|
852
|
+
|
853
|
+
DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of")
|
854
|
+
};
|
855
|
+
|
856
|
+
|
857
|
+
class LInstanceOfAndBranch: public LControlInstruction<2, 0> {
|
858
|
+
public:
|
859
|
+
LInstanceOfAndBranch(LOperand* left, LOperand* right) {
|
860
|
+
inputs_[0] = left;
|
861
|
+
inputs_[1] = right;
|
862
|
+
}
|
863
|
+
|
864
|
+
DECLARE_CONCRETE_INSTRUCTION(InstanceOfAndBranch, "instance-of-and-branch")
|
865
|
+
};
|
866
|
+
|
867
|
+
|
868
|
+
class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 1> {
|
869
|
+
public:
|
870
|
+
LInstanceOfKnownGlobal(LOperand* value, LOperand* temp) {
|
871
|
+
inputs_[0] = value;
|
872
|
+
temps_[0] = temp;
|
873
|
+
}
|
874
|
+
|
875
|
+
DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal,
|
876
|
+
"instance-of-known-global")
|
877
|
+
DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal)
|
878
|
+
|
879
|
+
Handle<JSFunction> function() const { return hydrogen()->function(); }
|
880
|
+
};
|
881
|
+
|
882
|
+
|
883
|
+
class LBoundsCheck: public LTemplateInstruction<0, 2, 0> {
|
884
|
+
public:
|
885
|
+
LBoundsCheck(LOperand* index, LOperand* length) {
|
886
|
+
inputs_[0] = index;
|
887
|
+
inputs_[1] = length;
|
888
|
+
}
|
889
|
+
|
890
|
+
LOperand* index() { return inputs_[0]; }
|
891
|
+
LOperand* length() { return inputs_[1]; }
|
892
|
+
|
893
|
+
DECLARE_CONCRETE_INSTRUCTION(BoundsCheck, "bounds-check")
|
894
|
+
};
|
895
|
+
|
896
|
+
|
897
|
+
class LBitI: public LTemplateInstruction<1, 2, 0> {
|
898
|
+
public:
|
899
|
+
LBitI(Token::Value op, LOperand* left, LOperand* right)
|
900
|
+
: op_(op) {
|
901
|
+
inputs_[0] = left;
|
902
|
+
inputs_[1] = right;
|
903
|
+
}
|
904
|
+
|
905
|
+
Token::Value op() const { return op_; }
|
906
|
+
|
907
|
+
DECLARE_CONCRETE_INSTRUCTION(BitI, "bit-i")
|
908
|
+
|
909
|
+
private:
|
910
|
+
Token::Value op_;
|
911
|
+
};
|
912
|
+
|
913
|
+
|
914
|
+
class LShiftI: public LTemplateInstruction<1, 2, 0> {
|
915
|
+
public:
|
916
|
+
LShiftI(Token::Value op, LOperand* left, LOperand* right, bool can_deopt)
|
917
|
+
: op_(op), can_deopt_(can_deopt) {
|
918
|
+
inputs_[0] = left;
|
919
|
+
inputs_[1] = right;
|
920
|
+
}
|
921
|
+
|
922
|
+
Token::Value op() const { return op_; }
|
923
|
+
|
924
|
+
bool can_deopt() const { return can_deopt_; }
|
925
|
+
|
926
|
+
DECLARE_CONCRETE_INSTRUCTION(ShiftI, "shift-i")
|
927
|
+
|
928
|
+
private:
|
929
|
+
Token::Value op_;
|
930
|
+
bool can_deopt_;
|
931
|
+
};
|
932
|
+
|
933
|
+
|
934
|
+
class LSubI: public LTemplateInstruction<1, 2, 0> {
|
935
|
+
public:
|
936
|
+
LSubI(LOperand* left, LOperand* right) {
|
937
|
+
inputs_[0] = left;
|
938
|
+
inputs_[1] = right;
|
939
|
+
}
|
940
|
+
|
941
|
+
DECLARE_CONCRETE_INSTRUCTION(SubI, "sub-i")
|
942
|
+
DECLARE_HYDROGEN_ACCESSOR(Sub)
|
943
|
+
};
|
944
|
+
|
945
|
+
|
946
|
+
class LConstantI: public LTemplateInstruction<1, 0, 0> {
|
947
|
+
public:
|
948
|
+
DECLARE_CONCRETE_INSTRUCTION(ConstantI, "constant-i")
|
949
|
+
DECLARE_HYDROGEN_ACCESSOR(Constant)
|
950
|
+
|
951
|
+
int32_t value() const { return hydrogen()->Integer32Value(); }
|
952
|
+
};
|
953
|
+
|
954
|
+
|
955
|
+
class LConstantD: public LTemplateInstruction<1, 0, 0> {
|
956
|
+
public:
|
957
|
+
DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d")
|
958
|
+
DECLARE_HYDROGEN_ACCESSOR(Constant)
|
959
|
+
|
960
|
+
double value() const { return hydrogen()->DoubleValue(); }
|
961
|
+
};
|
962
|
+
|
963
|
+
|
964
|
+
class LConstantT: public LTemplateInstruction<1, 0, 0> {
|
965
|
+
public:
|
966
|
+
DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t")
|
967
|
+
DECLARE_HYDROGEN_ACCESSOR(Constant)
|
968
|
+
|
969
|
+
Handle<Object> value() const { return hydrogen()->handle(); }
|
970
|
+
};
|
971
|
+
|
972
|
+
|
973
|
+
class LBranch: public LControlInstruction<1, 0> {
|
974
|
+
public:
|
975
|
+
explicit LBranch(LOperand* value) {
|
976
|
+
inputs_[0] = value;
|
977
|
+
}
|
978
|
+
|
979
|
+
DECLARE_CONCRETE_INSTRUCTION(Branch, "branch")
|
980
|
+
DECLARE_HYDROGEN_ACCESSOR(Value)
|
981
|
+
|
982
|
+
virtual void PrintDataTo(StringStream* stream);
|
983
|
+
};
|
984
|
+
|
985
|
+
|
986
|
+
class LCmpMapAndBranch: public LTemplateInstruction<0, 1, 1> {
|
987
|
+
public:
|
988
|
+
LCmpMapAndBranch(LOperand* value, LOperand* temp) {
|
989
|
+
inputs_[0] = value;
|
990
|
+
temps_[0] = temp;
|
991
|
+
}
|
992
|
+
|
993
|
+
DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch")
|
994
|
+
DECLARE_HYDROGEN_ACCESSOR(CompareMap)
|
995
|
+
|
996
|
+
virtual bool IsControl() const { return true; }
|
997
|
+
|
998
|
+
Handle<Map> map() const { return hydrogen()->map(); }
|
999
|
+
int true_block_id() const {
|
1000
|
+
return hydrogen()->FirstSuccessor()->block_id();
|
1001
|
+
}
|
1002
|
+
int false_block_id() const {
|
1003
|
+
return hydrogen()->SecondSuccessor()->block_id();
|
1004
|
+
}
|
1005
|
+
};
|
1006
|
+
|
1007
|
+
|
1008
|
+
class LJSArrayLength: public LTemplateInstruction<1, 1, 0> {
|
1009
|
+
public:
|
1010
|
+
explicit LJSArrayLength(LOperand* value) {
|
1011
|
+
inputs_[0] = value;
|
1012
|
+
}
|
1013
|
+
|
1014
|
+
DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length")
|
1015
|
+
DECLARE_HYDROGEN_ACCESSOR(JSArrayLength)
|
1016
|
+
};
|
1017
|
+
|
1018
|
+
|
1019
|
+
class LExternalArrayLength: public LTemplateInstruction<1, 1, 0> {
|
1020
|
+
public:
|
1021
|
+
explicit LExternalArrayLength(LOperand* value) {
|
1022
|
+
inputs_[0] = value;
|
1023
|
+
}
|
1024
|
+
|
1025
|
+
DECLARE_CONCRETE_INSTRUCTION(ExternalArrayLength, "external-array-length")
|
1026
|
+
DECLARE_HYDROGEN_ACCESSOR(ExternalArrayLength)
|
1027
|
+
};
|
1028
|
+
|
1029
|
+
|
1030
|
+
class LFixedArrayLength: public LTemplateInstruction<1, 1, 0> {
|
1031
|
+
public:
|
1032
|
+
explicit LFixedArrayLength(LOperand* value) {
|
1033
|
+
inputs_[0] = value;
|
1034
|
+
}
|
1035
|
+
|
1036
|
+
DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length")
|
1037
|
+
DECLARE_HYDROGEN_ACCESSOR(FixedArrayLength)
|
1038
|
+
};
|
1039
|
+
|
1040
|
+
|
1041
|
+
class LValueOf: public LTemplateInstruction<1, 1, 1> {
|
1042
|
+
public:
|
1043
|
+
LValueOf(LOperand* value, LOperand* temp) {
|
1044
|
+
inputs_[0] = value;
|
1045
|
+
temps_[0] = temp;
|
1046
|
+
}
|
1047
|
+
|
1048
|
+
DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of")
|
1049
|
+
DECLARE_HYDROGEN_ACCESSOR(ValueOf)
|
1050
|
+
};
|
1051
|
+
|
1052
|
+
|
1053
|
+
class LThrow: public LTemplateInstruction<0, 1, 0> {
|
1054
|
+
public:
|
1055
|
+
explicit LThrow(LOperand* value) {
|
1056
|
+
inputs_[0] = value;
|
1057
|
+
}
|
1058
|
+
|
1059
|
+
DECLARE_CONCRETE_INSTRUCTION(Throw, "throw")
|
1060
|
+
};
|
1061
|
+
|
1062
|
+
|
1063
|
+
class LBitNotI: public LTemplateInstruction<1, 1, 0> {
|
1064
|
+
public:
|
1065
|
+
explicit LBitNotI(LOperand* value) {
|
1066
|
+
inputs_[0] = value;
|
1067
|
+
}
|
1068
|
+
|
1069
|
+
DECLARE_CONCRETE_INSTRUCTION(BitNotI, "bit-not-i")
|
1070
|
+
};
|
1071
|
+
|
1072
|
+
|
1073
|
+
class LAddI: public LTemplateInstruction<1, 2, 0> {
|
1074
|
+
public:
|
1075
|
+
LAddI(LOperand* left, LOperand* right) {
|
1076
|
+
inputs_[0] = left;
|
1077
|
+
inputs_[1] = right;
|
1078
|
+
}
|
1079
|
+
|
1080
|
+
DECLARE_CONCRETE_INSTRUCTION(AddI, "add-i")
|
1081
|
+
DECLARE_HYDROGEN_ACCESSOR(Add)
|
1082
|
+
};
|
1083
|
+
|
1084
|
+
|
1085
|
+
class LPower: public LTemplateInstruction<1, 2, 0> {
|
1086
|
+
public:
|
1087
|
+
LPower(LOperand* left, LOperand* right) {
|
1088
|
+
inputs_[0] = left;
|
1089
|
+
inputs_[1] = right;
|
1090
|
+
}
|
1091
|
+
|
1092
|
+
DECLARE_CONCRETE_INSTRUCTION(Power, "power")
|
1093
|
+
DECLARE_HYDROGEN_ACCESSOR(Power)
|
1094
|
+
};
|
1095
|
+
|
1096
|
+
|
1097
|
+
class LArithmeticD: public LTemplateInstruction<1, 2, 0> {
|
1098
|
+
public:
|
1099
|
+
LArithmeticD(Token::Value op, LOperand* left, LOperand* right)
|
1100
|
+
: op_(op) {
|
1101
|
+
inputs_[0] = left;
|
1102
|
+
inputs_[1] = right;
|
1103
|
+
}
|
1104
|
+
|
1105
|
+
Token::Value op() const { return op_; }
|
1106
|
+
|
1107
|
+
virtual void CompileToNative(LCodeGen* generator);
|
1108
|
+
virtual const char* Mnemonic() const;
|
1109
|
+
|
1110
|
+
private:
|
1111
|
+
Token::Value op_;
|
1112
|
+
};
|
1113
|
+
|
1114
|
+
|
1115
|
+
class LArithmeticT: public LTemplateInstruction<1, 2, 0> {
|
1116
|
+
public:
|
1117
|
+
LArithmeticT(Token::Value op, LOperand* left, LOperand* right)
|
1118
|
+
: op_(op) {
|
1119
|
+
inputs_[0] = left;
|
1120
|
+
inputs_[1] = right;
|
1121
|
+
}
|
1122
|
+
|
1123
|
+
virtual void CompileToNative(LCodeGen* generator);
|
1124
|
+
virtual const char* Mnemonic() const;
|
1125
|
+
|
1126
|
+
Token::Value op() const { return op_; }
|
1127
|
+
|
1128
|
+
private:
|
1129
|
+
Token::Value op_;
|
1130
|
+
};
|
1131
|
+
|
1132
|
+
|
1133
|
+
class LReturn: public LTemplateInstruction<0, 1, 0> {
|
1134
|
+
public:
|
1135
|
+
explicit LReturn(LOperand* value) {
|
1136
|
+
inputs_[0] = value;
|
1137
|
+
}
|
1138
|
+
|
1139
|
+
DECLARE_CONCRETE_INSTRUCTION(Return, "return")
|
1140
|
+
};
|
1141
|
+
|
1142
|
+
|
1143
|
+
class LLoadNamedField: public LTemplateInstruction<1, 1, 0> {
|
1144
|
+
public:
|
1145
|
+
explicit LLoadNamedField(LOperand* object) {
|
1146
|
+
inputs_[0] = object;
|
1147
|
+
}
|
1148
|
+
|
1149
|
+
DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field")
|
1150
|
+
DECLARE_HYDROGEN_ACCESSOR(LoadNamedField)
|
1151
|
+
};
|
1152
|
+
|
1153
|
+
|
1154
|
+
class LLoadNamedFieldPolymorphic: public LTemplateInstruction<1, 1, 0> {
|
1155
|
+
public:
|
1156
|
+
explicit LLoadNamedFieldPolymorphic(LOperand* object) {
|
1157
|
+
inputs_[0] = object;
|
1158
|
+
}
|
1159
|
+
|
1160
|
+
DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field-polymorphic")
|
1161
|
+
DECLARE_HYDROGEN_ACCESSOR(LoadNamedFieldPolymorphic)
|
1162
|
+
|
1163
|
+
LOperand* object() { return inputs_[0]; }
|
1164
|
+
};
|
1165
|
+
|
1166
|
+
|
1167
|
+
class LLoadNamedGeneric: public LTemplateInstruction<1, 1, 0> {
|
1168
|
+
public:
|
1169
|
+
explicit LLoadNamedGeneric(LOperand* object) {
|
1170
|
+
inputs_[0] = object;
|
1171
|
+
}
|
1172
|
+
|
1173
|
+
DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic")
|
1174
|
+
DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric)
|
1175
|
+
|
1176
|
+
LOperand* object() { return inputs_[0]; }
|
1177
|
+
Handle<Object> name() const { return hydrogen()->name(); }
|
1178
|
+
};
|
1179
|
+
|
1180
|
+
|
1181
|
+
class LLoadFunctionPrototype: public LTemplateInstruction<1, 1, 0> {
|
1182
|
+
public:
|
1183
|
+
explicit LLoadFunctionPrototype(LOperand* function) {
|
1184
|
+
inputs_[0] = function;
|
1185
|
+
}
|
1186
|
+
|
1187
|
+
DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype")
|
1188
|
+
DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype)
|
1189
|
+
|
1190
|
+
LOperand* function() { return inputs_[0]; }
|
1191
|
+
};
|
1192
|
+
|
1193
|
+
|
1194
|
+
class LLoadElements: public LTemplateInstruction<1, 1, 0> {
|
1195
|
+
public:
|
1196
|
+
explicit LLoadElements(LOperand* object) {
|
1197
|
+
inputs_[0] = object;
|
1198
|
+
}
|
1199
|
+
|
1200
|
+
DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements")
|
1201
|
+
};
|
1202
|
+
|
1203
|
+
|
1204
|
+
class LLoadExternalArrayPointer: public LTemplateInstruction<1, 1, 0> {
|
1205
|
+
public:
|
1206
|
+
explicit LLoadExternalArrayPointer(LOperand* object) {
|
1207
|
+
inputs_[0] = object;
|
1208
|
+
}
|
1209
|
+
|
1210
|
+
DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer,
|
1211
|
+
"load-external-array-pointer")
|
1212
|
+
};
|
1213
|
+
|
1214
|
+
|
1215
|
+
class LLoadKeyedFastElement: public LTemplateInstruction<1, 2, 0> {
|
1216
|
+
public:
|
1217
|
+
LLoadKeyedFastElement(LOperand* elements, LOperand* key) {
|
1218
|
+
inputs_[0] = elements;
|
1219
|
+
inputs_[1] = key;
|
1220
|
+
}
|
1221
|
+
|
1222
|
+
DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element")
|
1223
|
+
DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement)
|
1224
|
+
|
1225
|
+
LOperand* elements() { return inputs_[0]; }
|
1226
|
+
LOperand* key() { return inputs_[1]; }
|
1227
|
+
};
|
1228
|
+
|
1229
|
+
|
1230
|
+
class LLoadKeyedSpecializedArrayElement: public LTemplateInstruction<1, 2, 0> {
|
1231
|
+
public:
|
1232
|
+
LLoadKeyedSpecializedArrayElement(LOperand* external_pointer,
|
1233
|
+
LOperand* key) {
|
1234
|
+
inputs_[0] = external_pointer;
|
1235
|
+
inputs_[1] = key;
|
1236
|
+
}
|
1237
|
+
|
1238
|
+
DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement,
|
1239
|
+
"load-keyed-specialized-array-element")
|
1240
|
+
DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement)
|
1241
|
+
|
1242
|
+
LOperand* external_pointer() { return inputs_[0]; }
|
1243
|
+
LOperand* key() { return inputs_[1]; }
|
1244
|
+
ExternalArrayType array_type() const {
|
1245
|
+
return hydrogen()->array_type();
|
1246
|
+
}
|
1247
|
+
};
|
1248
|
+
|
1249
|
+
|
1250
|
+
class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> {
|
1251
|
+
public:
|
1252
|
+
LLoadKeyedGeneric(LOperand* obj, LOperand* key) {
|
1253
|
+
inputs_[0] = obj;
|
1254
|
+
inputs_[1] = key;
|
1255
|
+
}
|
1256
|
+
|
1257
|
+
DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
|
1258
|
+
|
1259
|
+
LOperand* object() { return inputs_[0]; }
|
1260
|
+
LOperand* key() { return inputs_[1]; }
|
1261
|
+
};
|
1262
|
+
|
1263
|
+
|
1264
|
+
class LLoadGlobalCell: public LTemplateInstruction<1, 0, 0> {
|
1265
|
+
public:
|
1266
|
+
DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell")
|
1267
|
+
DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell)
|
1268
|
+
};
|
1269
|
+
|
1270
|
+
|
1271
|
+
class LLoadGlobalGeneric: public LTemplateInstruction<1, 1, 0> {
|
1272
|
+
public:
|
1273
|
+
explicit LLoadGlobalGeneric(LOperand* global_object) {
|
1274
|
+
inputs_[0] = global_object;
|
1275
|
+
}
|
1276
|
+
|
1277
|
+
DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
|
1278
|
+
DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
|
1279
|
+
|
1280
|
+
LOperand* global_object() { return inputs_[0]; }
|
1281
|
+
Handle<Object> name() const { return hydrogen()->name(); }
|
1282
|
+
bool for_typeof() const { return hydrogen()->for_typeof(); }
|
1283
|
+
};
|
1284
|
+
|
1285
|
+
|
1286
|
+
class LStoreGlobalCell: public LTemplateInstruction<0, 1, 1> {
|
1287
|
+
public:
|
1288
|
+
LStoreGlobalCell(LOperand* value, LOperand* temp) {
|
1289
|
+
inputs_[0] = value;
|
1290
|
+
temps_[0] = temp;
|
1291
|
+
}
|
1292
|
+
|
1293
|
+
DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell")
|
1294
|
+
DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell)
|
1295
|
+
};
|
1296
|
+
|
1297
|
+
|
1298
|
+
class LStoreGlobalGeneric: public LTemplateInstruction<0, 2, 0> {
|
1299
|
+
public:
|
1300
|
+
explicit LStoreGlobalGeneric(LOperand* global_object,
|
1301
|
+
LOperand* value) {
|
1302
|
+
inputs_[0] = global_object;
|
1303
|
+
inputs_[1] = value;
|
1304
|
+
}
|
1305
|
+
|
1306
|
+
DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic")
|
1307
|
+
DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric)
|
1308
|
+
|
1309
|
+
LOperand* global_object() { return InputAt(0); }
|
1310
|
+
Handle<Object> name() const { return hydrogen()->name(); }
|
1311
|
+
LOperand* value() { return InputAt(1); }
|
1312
|
+
};
|
1313
|
+
|
1314
|
+
|
1315
|
+
class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> {
|
1316
|
+
public:
|
1317
|
+
explicit LLoadContextSlot(LOperand* context) {
|
1318
|
+
inputs_[0] = context;
|
1319
|
+
}
|
1320
|
+
|
1321
|
+
DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
|
1322
|
+
DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
|
1323
|
+
|
1324
|
+
LOperand* context() { return InputAt(0); }
|
1325
|
+
int slot_index() { return hydrogen()->slot_index(); }
|
1326
|
+
|
1327
|
+
virtual void PrintDataTo(StringStream* stream);
|
1328
|
+
};
|
1329
|
+
|
1330
|
+
|
1331
|
+
class LStoreContextSlot: public LTemplateInstruction<0, 2, 0> {
|
1332
|
+
public:
|
1333
|
+
LStoreContextSlot(LOperand* context, LOperand* value) {
|
1334
|
+
inputs_[0] = context;
|
1335
|
+
inputs_[1] = value;
|
1336
|
+
}
|
1337
|
+
|
1338
|
+
DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot")
|
1339
|
+
DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot)
|
1340
|
+
|
1341
|
+
LOperand* context() { return InputAt(0); }
|
1342
|
+
LOperand* value() { return InputAt(1); }
|
1343
|
+
int slot_index() { return hydrogen()->slot_index(); }
|
1344
|
+
int needs_write_barrier() { return hydrogen()->NeedsWriteBarrier(); }
|
1345
|
+
|
1346
|
+
virtual void PrintDataTo(StringStream* stream);
|
1347
|
+
};
|
1348
|
+
|
1349
|
+
|
1350
|
+
class LPushArgument: public LTemplateInstruction<0, 1, 0> {
|
1351
|
+
public:
|
1352
|
+
explicit LPushArgument(LOperand* value) {
|
1353
|
+
inputs_[0] = value;
|
1354
|
+
}
|
1355
|
+
|
1356
|
+
DECLARE_CONCRETE_INSTRUCTION(PushArgument, "push-argument")
|
1357
|
+
};
|
1358
|
+
|
1359
|
+
|
1360
|
+
class LContext: public LTemplateInstruction<1, 0, 0> {
|
1361
|
+
public:
|
1362
|
+
DECLARE_CONCRETE_INSTRUCTION(Context, "context")
|
1363
|
+
};
|
1364
|
+
|
1365
|
+
|
1366
|
+
class LOuterContext: public LTemplateInstruction<1, 1, 0> {
|
1367
|
+
public:
|
1368
|
+
explicit LOuterContext(LOperand* context) {
|
1369
|
+
inputs_[0] = context;
|
1370
|
+
}
|
1371
|
+
|
1372
|
+
DECLARE_CONCRETE_INSTRUCTION(OuterContext, "outer-context")
|
1373
|
+
|
1374
|
+
LOperand* context() { return InputAt(0); }
|
1375
|
+
};
|
1376
|
+
|
1377
|
+
|
1378
|
+
class LGlobalObject: public LTemplateInstruction<1, 1, 0> {
|
1379
|
+
public:
|
1380
|
+
explicit LGlobalObject(LOperand* context) {
|
1381
|
+
inputs_[0] = context;
|
1382
|
+
}
|
1383
|
+
|
1384
|
+
DECLARE_CONCRETE_INSTRUCTION(GlobalObject, "global-object")
|
1385
|
+
|
1386
|
+
LOperand* context() { return InputAt(0); }
|
1387
|
+
};
|
1388
|
+
|
1389
|
+
|
1390
|
+
class LGlobalReceiver: public LTemplateInstruction<1, 1, 0> {
|
1391
|
+
public:
|
1392
|
+
explicit LGlobalReceiver(LOperand* global_object) {
|
1393
|
+
inputs_[0] = global_object;
|
1394
|
+
}
|
1395
|
+
|
1396
|
+
DECLARE_CONCRETE_INSTRUCTION(GlobalReceiver, "global-receiver")
|
1397
|
+
|
1398
|
+
LOperand* global() { return InputAt(0); }
|
1399
|
+
};
|
1400
|
+
|
1401
|
+
|
1402
|
+
class LCallConstantFunction: public LTemplateInstruction<1, 0, 0> {
|
1403
|
+
public:
|
1404
|
+
DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function")
|
1405
|
+
DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction)
|
1406
|
+
|
1407
|
+
virtual void PrintDataTo(StringStream* stream);
|
1408
|
+
|
1409
|
+
Handle<JSFunction> function() { return hydrogen()->function(); }
|
1410
|
+
int arity() const { return hydrogen()->argument_count() - 1; }
|
1411
|
+
};
|
1412
|
+
|
1413
|
+
|
1414
|
+
class LCallKeyed: public LTemplateInstruction<1, 1, 0> {
|
1415
|
+
public:
|
1416
|
+
explicit LCallKeyed(LOperand* key) {
|
1417
|
+
inputs_[0] = key;
|
1418
|
+
}
|
1419
|
+
|
1420
|
+
DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed")
|
1421
|
+
DECLARE_HYDROGEN_ACCESSOR(CallKeyed)
|
1422
|
+
|
1423
|
+
virtual void PrintDataTo(StringStream* stream);
|
1424
|
+
|
1425
|
+
int arity() const { return hydrogen()->argument_count() - 1; }
|
1426
|
+
};
|
1427
|
+
|
1428
|
+
|
1429
|
+
|
1430
|
+
class LCallNamed: public LTemplateInstruction<1, 0, 0> {
|
1431
|
+
public:
|
1432
|
+
DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named")
|
1433
|
+
DECLARE_HYDROGEN_ACCESSOR(CallNamed)
|
1434
|
+
|
1435
|
+
virtual void PrintDataTo(StringStream* stream);
|
1436
|
+
|
1437
|
+
Handle<String> name() const { return hydrogen()->name(); }
|
1438
|
+
int arity() const { return hydrogen()->argument_count() - 1; }
|
1439
|
+
};
|
1440
|
+
|
1441
|
+
|
1442
|
+
class LCallFunction: public LTemplateInstruction<1, 0, 0> {
|
1443
|
+
public:
|
1444
|
+
DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
|
1445
|
+
DECLARE_HYDROGEN_ACCESSOR(CallFunction)
|
1446
|
+
|
1447
|
+
int arity() const { return hydrogen()->argument_count() - 2; }
|
1448
|
+
};
|
1449
|
+
|
1450
|
+
|
1451
|
+
class LCallGlobal: public LTemplateInstruction<1, 0, 0> {
|
1452
|
+
public:
|
1453
|
+
DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global")
|
1454
|
+
DECLARE_HYDROGEN_ACCESSOR(CallGlobal)
|
1455
|
+
|
1456
|
+
virtual void PrintDataTo(StringStream* stream);
|
1457
|
+
|
1458
|
+
Handle<String> name() const {return hydrogen()->name(); }
|
1459
|
+
int arity() const { return hydrogen()->argument_count() - 1; }
|
1460
|
+
};
|
1461
|
+
|
1462
|
+
|
1463
|
+
class LCallKnownGlobal: public LTemplateInstruction<1, 0, 0> {
|
1464
|
+
public:
|
1465
|
+
DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal, "call-known-global")
|
1466
|
+
DECLARE_HYDROGEN_ACCESSOR(CallKnownGlobal)
|
1467
|
+
|
1468
|
+
virtual void PrintDataTo(StringStream* stream);
|
1469
|
+
|
1470
|
+
Handle<JSFunction> target() const { return hydrogen()->target(); }
|
1471
|
+
int arity() const { return hydrogen()->argument_count() - 1; }
|
1472
|
+
};
|
1473
|
+
|
1474
|
+
|
1475
|
+
class LCallNew: public LTemplateInstruction<1, 1, 0> {
|
1476
|
+
public:
|
1477
|
+
explicit LCallNew(LOperand* constructor) {
|
1478
|
+
inputs_[0] = constructor;
|
1479
|
+
}
|
1480
|
+
|
1481
|
+
DECLARE_CONCRETE_INSTRUCTION(CallNew, "call-new")
|
1482
|
+
DECLARE_HYDROGEN_ACCESSOR(CallNew)
|
1483
|
+
|
1484
|
+
virtual void PrintDataTo(StringStream* stream);
|
1485
|
+
|
1486
|
+
int arity() const { return hydrogen()->argument_count() - 1; }
|
1487
|
+
};
|
1488
|
+
|
1489
|
+
|
1490
|
+
class LCallRuntime: public LTemplateInstruction<1, 0, 0> {
|
1491
|
+
public:
|
1492
|
+
DECLARE_CONCRETE_INSTRUCTION(CallRuntime, "call-runtime")
|
1493
|
+
DECLARE_HYDROGEN_ACCESSOR(CallRuntime)
|
1494
|
+
|
1495
|
+
const Runtime::Function* function() const { return hydrogen()->function(); }
|
1496
|
+
int arity() const { return hydrogen()->argument_count(); }
|
1497
|
+
};
|
1498
|
+
|
1499
|
+
|
1500
|
+
class LInteger32ToDouble: public LTemplateInstruction<1, 1, 0> {
|
1501
|
+
public:
|
1502
|
+
explicit LInteger32ToDouble(LOperand* value) {
|
1503
|
+
inputs_[0] = value;
|
1504
|
+
}
|
1505
|
+
|
1506
|
+
DECLARE_CONCRETE_INSTRUCTION(Integer32ToDouble, "int32-to-double")
|
1507
|
+
};
|
1508
|
+
|
1509
|
+
|
1510
|
+
class LNumberTagI: public LTemplateInstruction<1, 1, 0> {
|
1511
|
+
public:
|
1512
|
+
explicit LNumberTagI(LOperand* value) {
|
1513
|
+
inputs_[0] = value;
|
1514
|
+
}
|
1515
|
+
|
1516
|
+
DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i")
|
1517
|
+
};
|
1518
|
+
|
1519
|
+
|
1520
|
+
class LNumberTagD: public LTemplateInstruction<1, 1, 2> {
|
1521
|
+
public:
|
1522
|
+
LNumberTagD(LOperand* value, LOperand* temp1, LOperand* temp2) {
|
1523
|
+
inputs_[0] = value;
|
1524
|
+
temps_[0] = temp1;
|
1525
|
+
temps_[1] = temp2;
|
1526
|
+
}
|
1527
|
+
|
1528
|
+
DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d")
|
1529
|
+
};
|
1530
|
+
|
1531
|
+
|
1532
|
+
// Sometimes truncating conversion from a tagged value to an int32.
|
1533
|
+
class LDoubleToI: public LTemplateInstruction<1, 1, 2> {
|
1534
|
+
public:
|
1535
|
+
LDoubleToI(LOperand* value, LOperand* temp1, LOperand* temp2) {
|
1536
|
+
inputs_[0] = value;
|
1537
|
+
temps_[0] = temp1;
|
1538
|
+
temps_[1] = temp2;
|
1539
|
+
}
|
1540
|
+
|
1541
|
+
DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i")
|
1542
|
+
DECLARE_HYDROGEN_ACCESSOR(Change)
|
1543
|
+
|
1544
|
+
bool truncating() { return hydrogen()->CanTruncateToInt32(); }
|
1545
|
+
};
|
1546
|
+
|
1547
|
+
|
1548
|
+
// Truncating conversion from a tagged value to an int32.
|
1549
|
+
class LTaggedToI: public LTemplateInstruction<1, 1, 3> {
|
1550
|
+
public:
|
1551
|
+
LTaggedToI(LOperand* value,
|
1552
|
+
LOperand* temp1,
|
1553
|
+
LOperand* temp2,
|
1554
|
+
LOperand* temp3) {
|
1555
|
+
inputs_[0] = value;
|
1556
|
+
temps_[0] = temp1;
|
1557
|
+
temps_[1] = temp2;
|
1558
|
+
temps_[2] = temp3;
|
1559
|
+
}
|
1560
|
+
|
1561
|
+
DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i")
|
1562
|
+
DECLARE_HYDROGEN_ACCESSOR(Change)
|
1563
|
+
|
1564
|
+
bool truncating() { return hydrogen()->CanTruncateToInt32(); }
|
1565
|
+
};
|
1566
|
+
|
1567
|
+
|
1568
|
+
class LSmiTag: public LTemplateInstruction<1, 1, 0> {
|
1569
|
+
public:
|
1570
|
+
explicit LSmiTag(LOperand* value) {
|
1571
|
+
inputs_[0] = value;
|
1572
|
+
}
|
1573
|
+
|
1574
|
+
DECLARE_CONCRETE_INSTRUCTION(SmiTag, "smi-tag")
|
1575
|
+
};
|
1576
|
+
|
1577
|
+
|
1578
|
+
class LNumberUntagD: public LTemplateInstruction<1, 1, 0> {
|
1579
|
+
public:
|
1580
|
+
explicit LNumberUntagD(LOperand* value) {
|
1581
|
+
inputs_[0] = value;
|
1582
|
+
}
|
1583
|
+
|
1584
|
+
DECLARE_CONCRETE_INSTRUCTION(NumberUntagD, "double-untag")
|
1585
|
+
};
|
1586
|
+
|
1587
|
+
|
1588
|
+
class LSmiUntag: public LTemplateInstruction<1, 1, 0> {
|
1589
|
+
public:
|
1590
|
+
LSmiUntag(LOperand* value, bool needs_check)
|
1591
|
+
: needs_check_(needs_check) {
|
1592
|
+
inputs_[0] = value;
|
1593
|
+
}
|
1594
|
+
|
1595
|
+
DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag")
|
1596
|
+
|
1597
|
+
bool needs_check() const { return needs_check_; }
|
1598
|
+
|
1599
|
+
private:
|
1600
|
+
bool needs_check_;
|
1601
|
+
};
|
1602
|
+
|
1603
|
+
|
1604
|
+
class LStoreNamedField: public LTemplateInstruction<0, 2, 0> {
|
1605
|
+
public:
|
1606
|
+
LStoreNamedField(LOperand* obj, LOperand* val) {
|
1607
|
+
inputs_[0] = obj;
|
1608
|
+
inputs_[1] = val;
|
1609
|
+
}
|
1610
|
+
|
1611
|
+
DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field")
|
1612
|
+
DECLARE_HYDROGEN_ACCESSOR(StoreNamedField)
|
1613
|
+
|
1614
|
+
virtual void PrintDataTo(StringStream* stream);
|
1615
|
+
|
1616
|
+
LOperand* object() { return inputs_[0]; }
|
1617
|
+
LOperand* value() { return inputs_[1]; }
|
1618
|
+
|
1619
|
+
Handle<Object> name() const { return hydrogen()->name(); }
|
1620
|
+
bool is_in_object() { return hydrogen()->is_in_object(); }
|
1621
|
+
int offset() { return hydrogen()->offset(); }
|
1622
|
+
bool needs_write_barrier() { return hydrogen()->NeedsWriteBarrier(); }
|
1623
|
+
Handle<Map> transition() const { return hydrogen()->transition(); }
|
1624
|
+
};
|
1625
|
+
|
1626
|
+
|
1627
|
+
class LStoreNamedGeneric: public LTemplateInstruction<0, 2, 0> {
|
1628
|
+
public:
|
1629
|
+
LStoreNamedGeneric(LOperand* obj, LOperand* val) {
|
1630
|
+
inputs_[0] = obj;
|
1631
|
+
inputs_[1] = val;
|
1632
|
+
}
|
1633
|
+
|
1634
|
+
DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
|
1635
|
+
DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
|
1636
|
+
|
1637
|
+
virtual void PrintDataTo(StringStream* stream);
|
1638
|
+
|
1639
|
+
LOperand* object() { return inputs_[0]; }
|
1640
|
+
LOperand* value() { return inputs_[1]; }
|
1641
|
+
Handle<Object> name() const { return hydrogen()->name(); }
|
1642
|
+
};
|
1643
|
+
|
1644
|
+
|
1645
|
+
class LStoreKeyedFastElement: public LTemplateInstruction<0, 3, 0> {
|
1646
|
+
public:
|
1647
|
+
LStoreKeyedFastElement(LOperand* obj, LOperand* key, LOperand* val) {
|
1648
|
+
inputs_[0] = obj;
|
1649
|
+
inputs_[1] = key;
|
1650
|
+
inputs_[2] = val;
|
1651
|
+
}
|
1652
|
+
|
1653
|
+
DECLARE_CONCRETE_INSTRUCTION(StoreKeyedFastElement,
|
1654
|
+
"store-keyed-fast-element")
|
1655
|
+
DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement)
|
1656
|
+
|
1657
|
+
virtual void PrintDataTo(StringStream* stream);
|
1658
|
+
|
1659
|
+
LOperand* object() { return inputs_[0]; }
|
1660
|
+
LOperand* key() { return inputs_[1]; }
|
1661
|
+
LOperand* value() { return inputs_[2]; }
|
1662
|
+
};
|
1663
|
+
|
1664
|
+
|
1665
|
+
class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> {
|
1666
|
+
public:
|
1667
|
+
LStoreKeyedGeneric(LOperand* obj, LOperand* key, LOperand* val) {
|
1668
|
+
inputs_[0] = obj;
|
1669
|
+
inputs_[1] = key;
|
1670
|
+
inputs_[2] = val;
|
1671
|
+
}
|
1672
|
+
|
1673
|
+
DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic")
|
1674
|
+
DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric)
|
1675
|
+
|
1676
|
+
virtual void PrintDataTo(StringStream* stream);
|
1677
|
+
|
1678
|
+
LOperand* object() { return inputs_[0]; }
|
1679
|
+
LOperand* key() { return inputs_[1]; }
|
1680
|
+
LOperand* value() { return inputs_[2]; }
|
1681
|
+
};
|
1682
|
+
|
1683
|
+
class LStoreKeyedSpecializedArrayElement: public LTemplateInstruction<0, 3, 0> {
|
1684
|
+
public:
|
1685
|
+
LStoreKeyedSpecializedArrayElement(LOperand* external_pointer,
|
1686
|
+
LOperand* key,
|
1687
|
+
LOperand* val) {
|
1688
|
+
inputs_[0] = external_pointer;
|
1689
|
+
inputs_[1] = key;
|
1690
|
+
inputs_[2] = val;
|
1691
|
+
}
|
1692
|
+
|
1693
|
+
DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement,
|
1694
|
+
"store-keyed-specialized-array-element")
|
1695
|
+
DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement)
|
1696
|
+
|
1697
|
+
LOperand* external_pointer() { return inputs_[0]; }
|
1698
|
+
LOperand* key() { return inputs_[1]; }
|
1699
|
+
LOperand* value() { return inputs_[2]; }
|
1700
|
+
ExternalArrayType array_type() const {
|
1701
|
+
return hydrogen()->array_type();
|
1702
|
+
}
|
1703
|
+
};
|
1704
|
+
|
1705
|
+
|
1706
|
+
class LStringCharCodeAt: public LTemplateInstruction<1, 2, 0> {
|
1707
|
+
public:
|
1708
|
+
LStringCharCodeAt(LOperand* string, LOperand* index) {
|
1709
|
+
inputs_[0] = string;
|
1710
|
+
inputs_[1] = index;
|
1711
|
+
}
|
1712
|
+
|
1713
|
+
DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at")
|
1714
|
+
DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt)
|
1715
|
+
|
1716
|
+
LOperand* string() { return inputs_[0]; }
|
1717
|
+
LOperand* index() { return inputs_[1]; }
|
1718
|
+
};
|
1719
|
+
|
1720
|
+
|
1721
|
+
class LStringCharFromCode: public LTemplateInstruction<1, 1, 0> {
|
1722
|
+
public:
|
1723
|
+
explicit LStringCharFromCode(LOperand* char_code) {
|
1724
|
+
inputs_[0] = char_code;
|
1725
|
+
}
|
1726
|
+
|
1727
|
+
DECLARE_CONCRETE_INSTRUCTION(StringCharFromCode, "string-char-from-code")
|
1728
|
+
DECLARE_HYDROGEN_ACCESSOR(StringCharFromCode)
|
1729
|
+
|
1730
|
+
LOperand* char_code() { return inputs_[0]; }
|
1731
|
+
};
|
1732
|
+
|
1733
|
+
|
1734
|
+
class LStringLength: public LTemplateInstruction<1, 1, 0> {
|
1735
|
+
public:
|
1736
|
+
explicit LStringLength(LOperand* string) {
|
1737
|
+
inputs_[0] = string;
|
1738
|
+
}
|
1739
|
+
|
1740
|
+
DECLARE_CONCRETE_INSTRUCTION(StringLength, "string-length")
|
1741
|
+
DECLARE_HYDROGEN_ACCESSOR(StringLength)
|
1742
|
+
|
1743
|
+
LOperand* string() { return inputs_[0]; }
|
1744
|
+
};
|
1745
|
+
|
1746
|
+
|
1747
|
+
class LCheckFunction: public LTemplateInstruction<0, 1, 0> {
|
1748
|
+
public:
|
1749
|
+
explicit LCheckFunction(LOperand* value) {
|
1750
|
+
inputs_[0] = value;
|
1751
|
+
}
|
1752
|
+
|
1753
|
+
DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function")
|
1754
|
+
DECLARE_HYDROGEN_ACCESSOR(CheckFunction)
|
1755
|
+
};
|
1756
|
+
|
1757
|
+
|
1758
|
+
class LCheckInstanceType: public LTemplateInstruction<0, 1, 0> {
|
1759
|
+
public:
|
1760
|
+
explicit LCheckInstanceType(LOperand* value) {
|
1761
|
+
inputs_[0] = value;
|
1762
|
+
}
|
1763
|
+
|
1764
|
+
DECLARE_CONCRETE_INSTRUCTION(CheckInstanceType, "check-instance-type")
|
1765
|
+
DECLARE_HYDROGEN_ACCESSOR(CheckInstanceType)
|
1766
|
+
};
|
1767
|
+
|
1768
|
+
|
1769
|
+
class LCheckMap: public LTemplateInstruction<0, 1, 0> {
|
1770
|
+
public:
|
1771
|
+
explicit LCheckMap(LOperand* value) {
|
1772
|
+
inputs_[0] = value;
|
1773
|
+
}
|
1774
|
+
|
1775
|
+
DECLARE_CONCRETE_INSTRUCTION(CheckMap, "check-map")
|
1776
|
+
DECLARE_HYDROGEN_ACCESSOR(CheckMap)
|
1777
|
+
};
|
1778
|
+
|
1779
|
+
|
1780
|
+
class LCheckPrototypeMaps: public LTemplateInstruction<0, 0, 2> {
|
1781
|
+
public:
|
1782
|
+
LCheckPrototypeMaps(LOperand* temp1, LOperand* temp2) {
|
1783
|
+
temps_[0] = temp1;
|
1784
|
+
temps_[1] = temp2;
|
1785
|
+
}
|
1786
|
+
|
1787
|
+
DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps")
|
1788
|
+
DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps)
|
1789
|
+
|
1790
|
+
Handle<JSObject> prototype() const { return hydrogen()->prototype(); }
|
1791
|
+
Handle<JSObject> holder() const { return hydrogen()->holder(); }
|
1792
|
+
};
|
1793
|
+
|
1794
|
+
|
1795
|
+
class LCheckSmi: public LTemplateInstruction<0, 1, 0> {
|
1796
|
+
public:
|
1797
|
+
explicit LCheckSmi(LOperand* value) {
|
1798
|
+
inputs_[0] = value;
|
1799
|
+
}
|
1800
|
+
|
1801
|
+
DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi")
|
1802
|
+
};
|
1803
|
+
|
1804
|
+
|
1805
|
+
class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> {
|
1806
|
+
public:
|
1807
|
+
explicit LCheckNonSmi(LOperand* value) {
|
1808
|
+
inputs_[0] = value;
|
1809
|
+
}
|
1810
|
+
|
1811
|
+
DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi")
|
1812
|
+
};
|
1813
|
+
|
1814
|
+
|
1815
|
+
class LArrayLiteral: public LTemplateInstruction<1, 0, 0> {
|
1816
|
+
public:
|
1817
|
+
DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal")
|
1818
|
+
DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral)
|
1819
|
+
};
|
1820
|
+
|
1821
|
+
|
1822
|
+
class LObjectLiteral: public LTemplateInstruction<1, 0, 0> {
|
1823
|
+
public:
|
1824
|
+
DECLARE_CONCRETE_INSTRUCTION(ObjectLiteral, "object-literal")
|
1825
|
+
DECLARE_HYDROGEN_ACCESSOR(ObjectLiteral)
|
1826
|
+
};
|
1827
|
+
|
1828
|
+
|
1829
|
+
class LRegExpLiteral: public LTemplateInstruction<1, 0, 0> {
|
1830
|
+
public:
|
1831
|
+
DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal")
|
1832
|
+
DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral)
|
1833
|
+
};
|
1834
|
+
|
1835
|
+
|
1836
|
+
class LFunctionLiteral: public LTemplateInstruction<1, 0, 0> {
|
1837
|
+
public:
|
1838
|
+
DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal")
|
1839
|
+
DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral)
|
1840
|
+
|
1841
|
+
Handle<SharedFunctionInfo> shared_info() { return hydrogen()->shared_info(); }
|
1842
|
+
};
|
1843
|
+
|
1844
|
+
|
1845
|
+
class LToFastProperties: public LTemplateInstruction<1, 1, 0> {
|
1846
|
+
public:
|
1847
|
+
explicit LToFastProperties(LOperand* value) {
|
1848
|
+
inputs_[0] = value;
|
1849
|
+
}
|
1850
|
+
|
1851
|
+
DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties")
|
1852
|
+
DECLARE_HYDROGEN_ACCESSOR(ToFastProperties)
|
1853
|
+
};
|
1854
|
+
|
1855
|
+
|
1856
|
+
class LTypeof: public LTemplateInstruction<1, 1, 0> {
|
1857
|
+
public:
|
1858
|
+
explicit LTypeof(LOperand* value) {
|
1859
|
+
inputs_[0] = value;
|
1860
|
+
}
|
1861
|
+
|
1862
|
+
DECLARE_CONCRETE_INSTRUCTION(Typeof, "typeof")
|
1863
|
+
};
|
1864
|
+
|
1865
|
+
|
1866
|
+
class LTypeofIs: public LTemplateInstruction<1, 1, 0> {
|
1867
|
+
public:
|
1868
|
+
explicit LTypeofIs(LOperand* value) {
|
1869
|
+
inputs_[0] = value;
|
1870
|
+
}
|
1871
|
+
|
1872
|
+
DECLARE_CONCRETE_INSTRUCTION(TypeofIs, "typeof-is")
|
1873
|
+
DECLARE_HYDROGEN_ACCESSOR(TypeofIs)
|
1874
|
+
|
1875
|
+
Handle<String> type_literal() { return hydrogen()->type_literal(); }
|
1876
|
+
|
1877
|
+
virtual void PrintDataTo(StringStream* stream);
|
1878
|
+
};
|
1879
|
+
|
1880
|
+
|
1881
|
+
class LTypeofIsAndBranch: public LControlInstruction<1, 0> {
|
1882
|
+
public:
|
1883
|
+
explicit LTypeofIsAndBranch(LOperand* value) {
|
1884
|
+
inputs_[0] = value;
|
1885
|
+
}
|
1886
|
+
|
1887
|
+
DECLARE_CONCRETE_INSTRUCTION(TypeofIsAndBranch, "typeof-is-and-branch")
|
1888
|
+
DECLARE_HYDROGEN_ACCESSOR(TypeofIs)
|
1889
|
+
|
1890
|
+
Handle<String> type_literal() { return hydrogen()->type_literal(); }
|
1891
|
+
|
1892
|
+
virtual void PrintDataTo(StringStream* stream);
|
1893
|
+
};
|
1894
|
+
|
1895
|
+
|
1896
|
+
class LIsConstructCall: public LTemplateInstruction<1, 0, 0> {
|
1897
|
+
public:
|
1898
|
+
DECLARE_CONCRETE_INSTRUCTION(IsConstructCall, "is-construct-call")
|
1899
|
+
DECLARE_HYDROGEN_ACCESSOR(IsConstructCall)
|
1900
|
+
};
|
1901
|
+
|
1902
|
+
|
1903
|
+
class LIsConstructCallAndBranch: public LControlInstruction<0, 1> {
|
1904
|
+
public:
|
1905
|
+
explicit LIsConstructCallAndBranch(LOperand* temp) {
|
1906
|
+
temps_[0] = temp;
|
1907
|
+
}
|
1908
|
+
|
1909
|
+
DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch,
|
1910
|
+
"is-construct-call-and-branch")
|
1911
|
+
};
|
1912
|
+
|
1913
|
+
|
1914
|
+
class LDeleteProperty: public LTemplateInstruction<1, 2, 0> {
|
1915
|
+
public:
|
1916
|
+
LDeleteProperty(LOperand* obj, LOperand* key) {
|
1917
|
+
inputs_[0] = obj;
|
1918
|
+
inputs_[1] = key;
|
1919
|
+
}
|
1920
|
+
|
1921
|
+
DECLARE_CONCRETE_INSTRUCTION(DeleteProperty, "delete-property")
|
1922
|
+
|
1923
|
+
LOperand* object() { return inputs_[0]; }
|
1924
|
+
LOperand* key() { return inputs_[1]; }
|
1925
|
+
};
|
1926
|
+
|
1927
|
+
|
1928
|
+
class LOsrEntry: public LTemplateInstruction<0, 0, 0> {
|
1929
|
+
public:
|
1930
|
+
LOsrEntry();
|
1931
|
+
|
1932
|
+
DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry")
|
1933
|
+
|
1934
|
+
LOperand** SpilledRegisterArray() { return register_spills_; }
|
1935
|
+
LOperand** SpilledDoubleRegisterArray() { return double_register_spills_; }
|
1936
|
+
|
1937
|
+
void MarkSpilledRegister(int allocation_index, LOperand* spill_operand);
|
1938
|
+
void MarkSpilledDoubleRegister(int allocation_index,
|
1939
|
+
LOperand* spill_operand);
|
1940
|
+
|
1941
|
+
private:
|
1942
|
+
// Arrays of spill slot operands for registers with an assigned spill
|
1943
|
+
// slot, i.e., that must also be restored to the spill slot on OSR entry.
|
1944
|
+
// NULL if the register has no assigned spill slot. Indexed by allocation
|
1945
|
+
// index.
|
1946
|
+
LOperand* register_spills_[Register::kNumAllocatableRegisters];
|
1947
|
+
LOperand* double_register_spills_[DoubleRegister::kNumAllocatableRegisters];
|
1948
|
+
};
|
1949
|
+
|
1950
|
+
|
1951
|
+
class LStackCheck: public LTemplateInstruction<0, 0, 0> {
|
1952
|
+
public:
|
1953
|
+
DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check")
|
1954
|
+
};
|
1955
|
+
|
1956
|
+
|
1957
|
+
class LChunkBuilder;
|
1958
|
+
class LChunk: public ZoneObject {
|
1959
|
+
public:
|
1960
|
+
explicit LChunk(CompilationInfo* info, HGraph* graph);
|
1961
|
+
|
1962
|
+
void AddInstruction(LInstruction* instruction, HBasicBlock* block);
|
1963
|
+
LConstantOperand* DefineConstantOperand(HConstant* constant);
|
1964
|
+
Handle<Object> LookupLiteral(LConstantOperand* operand) const;
|
1965
|
+
Representation LookupLiteralRepresentation(LConstantOperand* operand) const;
|
1966
|
+
|
1967
|
+
int GetNextSpillIndex(bool is_double);
|
1968
|
+
LOperand* GetNextSpillSlot(bool is_double);
|
1969
|
+
|
1970
|
+
int ParameterAt(int index);
|
1971
|
+
int GetParameterStackSlot(int index) const;
|
1972
|
+
int spill_slot_count() const { return spill_slot_count_; }
|
1973
|
+
CompilationInfo* info() const { return info_; }
|
1974
|
+
HGraph* graph() const { return graph_; }
|
1975
|
+
const ZoneList<LInstruction*>* instructions() const { return &instructions_; }
|
1976
|
+
void AddGapMove(int index, LOperand* from, LOperand* to);
|
1977
|
+
LGap* GetGapAt(int index) const;
|
1978
|
+
bool IsGapAt(int index) const;
|
1979
|
+
int NearestGapPos(int index) const;
|
1980
|
+
void MarkEmptyBlocks();
|
1981
|
+
const ZoneList<LPointerMap*>* pointer_maps() const { return &pointer_maps_; }
|
1982
|
+
LLabel* GetLabel(int block_id) const {
|
1983
|
+
HBasicBlock* block = graph_->blocks()->at(block_id);
|
1984
|
+
int first_instruction = block->first_instruction_index();
|
1985
|
+
return LLabel::cast(instructions_[first_instruction]);
|
1986
|
+
}
|
1987
|
+
int LookupDestination(int block_id) const {
|
1988
|
+
LLabel* cur = GetLabel(block_id);
|
1989
|
+
while (cur->replacement() != NULL) {
|
1990
|
+
cur = cur->replacement();
|
1991
|
+
}
|
1992
|
+
return cur->block_id();
|
1993
|
+
}
|
1994
|
+
Label* GetAssemblyLabel(int block_id) const {
|
1995
|
+
LLabel* label = GetLabel(block_id);
|
1996
|
+
ASSERT(!label->HasReplacement());
|
1997
|
+
return label->label();
|
1998
|
+
}
|
1999
|
+
|
2000
|
+
const ZoneList<Handle<JSFunction> >* inlined_closures() const {
|
2001
|
+
return &inlined_closures_;
|
2002
|
+
}
|
2003
|
+
|
2004
|
+
void AddInlinedClosure(Handle<JSFunction> closure) {
|
2005
|
+
inlined_closures_.Add(closure);
|
2006
|
+
}
|
2007
|
+
|
2008
|
+
private:
|
2009
|
+
int spill_slot_count_;
|
2010
|
+
CompilationInfo* info_;
|
2011
|
+
HGraph* const graph_;
|
2012
|
+
ZoneList<LInstruction*> instructions_;
|
2013
|
+
ZoneList<LPointerMap*> pointer_maps_;
|
2014
|
+
ZoneList<Handle<JSFunction> > inlined_closures_;
|
2015
|
+
};
|
2016
|
+
|
2017
|
+
|
2018
|
+
class LChunkBuilder BASE_EMBEDDED {
|
2019
|
+
public:
|
2020
|
+
LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator)
|
2021
|
+
: chunk_(NULL),
|
2022
|
+
info_(info),
|
2023
|
+
graph_(graph),
|
2024
|
+
status_(UNUSED),
|
2025
|
+
current_instruction_(NULL),
|
2026
|
+
current_block_(NULL),
|
2027
|
+
next_block_(NULL),
|
2028
|
+
argument_count_(0),
|
2029
|
+
allocator_(allocator),
|
2030
|
+
position_(RelocInfo::kNoPosition),
|
2031
|
+
instruction_pending_deoptimization_environment_(NULL),
|
2032
|
+
pending_deoptimization_ast_id_(AstNode::kNoNumber) { }
|
2033
|
+
|
2034
|
+
// Build the sequence for the graph.
|
2035
|
+
LChunk* Build();
|
2036
|
+
|
2037
|
+
// Declare methods that deal with the individual node types.
|
2038
|
+
#define DECLARE_DO(type) LInstruction* Do##type(H##type* node);
|
2039
|
+
HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
|
2040
|
+
#undef DECLARE_DO
|
2041
|
+
|
2042
|
+
private:
|
2043
|
+
enum Status {
|
2044
|
+
UNUSED,
|
2045
|
+
BUILDING,
|
2046
|
+
DONE,
|
2047
|
+
ABORTED
|
2048
|
+
};
|
2049
|
+
|
2050
|
+
LChunk* chunk() const { return chunk_; }
|
2051
|
+
CompilationInfo* info() const { return info_; }
|
2052
|
+
HGraph* graph() const { return graph_; }
|
2053
|
+
|
2054
|
+
bool is_unused() const { return status_ == UNUSED; }
|
2055
|
+
bool is_building() const { return status_ == BUILDING; }
|
2056
|
+
bool is_done() const { return status_ == DONE; }
|
2057
|
+
bool is_aborted() const { return status_ == ABORTED; }
|
2058
|
+
|
2059
|
+
void Abort(const char* format, ...);
|
2060
|
+
|
2061
|
+
// Methods for getting operands for Use / Define / Temp.
|
2062
|
+
LRegister* ToOperand(Register reg);
|
2063
|
+
LUnallocated* ToUnallocated(Register reg);
|
2064
|
+
LUnallocated* ToUnallocated(DoubleRegister reg);
|
2065
|
+
|
2066
|
+
// Methods for setting up define-use relationships.
|
2067
|
+
MUST_USE_RESULT LOperand* Use(HValue* value, LUnallocated* operand);
|
2068
|
+
MUST_USE_RESULT LOperand* UseFixed(HValue* value, Register fixed_register);
|
2069
|
+
MUST_USE_RESULT LOperand* UseFixedDouble(HValue* value,
|
2070
|
+
DoubleRegister fixed_register);
|
2071
|
+
|
2072
|
+
// A value that is guaranteed to be allocated to a register.
|
2073
|
+
// Operand created by UseRegister is guaranteed to be live until the end of
|
2074
|
+
// instruction. This means that register allocator will not reuse it's
|
2075
|
+
// register for any other operand inside instruction.
|
2076
|
+
// Operand created by UseRegisterAtStart is guaranteed to be live only at
|
2077
|
+
// instruction start. Register allocator is free to assign the same register
|
2078
|
+
// to some other operand used inside instruction (i.e. temporary or
|
2079
|
+
// output).
|
2080
|
+
MUST_USE_RESULT LOperand* UseRegister(HValue* value);
|
2081
|
+
MUST_USE_RESULT LOperand* UseRegisterAtStart(HValue* value);
|
2082
|
+
|
2083
|
+
// An input operand in a register that may be trashed.
|
2084
|
+
MUST_USE_RESULT LOperand* UseTempRegister(HValue* value);
|
2085
|
+
|
2086
|
+
// An input operand in a register or stack slot.
|
2087
|
+
MUST_USE_RESULT LOperand* Use(HValue* value);
|
2088
|
+
MUST_USE_RESULT LOperand* UseAtStart(HValue* value);
|
2089
|
+
|
2090
|
+
// An input operand in a register, stack slot or a constant operand.
|
2091
|
+
MUST_USE_RESULT LOperand* UseOrConstant(HValue* value);
|
2092
|
+
MUST_USE_RESULT LOperand* UseOrConstantAtStart(HValue* value);
|
2093
|
+
|
2094
|
+
// An input operand in a register or a constant operand.
|
2095
|
+
MUST_USE_RESULT LOperand* UseRegisterOrConstant(HValue* value);
|
2096
|
+
MUST_USE_RESULT LOperand* UseRegisterOrConstantAtStart(HValue* value);
|
2097
|
+
|
2098
|
+
// An input operand in register, stack slot or a constant operand.
|
2099
|
+
// Will not be moved to a register even if one is freely available.
|
2100
|
+
MUST_USE_RESULT LOperand* UseAny(HValue* value);
|
2101
|
+
|
2102
|
+
// Temporary operand that must be in a register.
|
2103
|
+
MUST_USE_RESULT LUnallocated* TempRegister();
|
2104
|
+
MUST_USE_RESULT LOperand* FixedTemp(Register reg);
|
2105
|
+
MUST_USE_RESULT LOperand* FixedTemp(DoubleRegister reg);
|
2106
|
+
|
2107
|
+
// Methods for setting up define-use relationships.
|
2108
|
+
// Return the same instruction that they are passed.
|
2109
|
+
template<int I, int T>
|
2110
|
+
LInstruction* Define(LTemplateInstruction<1, I, T>* instr,
|
2111
|
+
LUnallocated* result);
|
2112
|
+
template<int I, int T>
|
2113
|
+
LInstruction* Define(LTemplateInstruction<1, I, T>* instr);
|
2114
|
+
template<int I, int T>
|
2115
|
+
LInstruction* DefineAsRegister(LTemplateInstruction<1, I, T>* instr);
|
2116
|
+
template<int I, int T>
|
2117
|
+
LInstruction* DefineAsSpilled(LTemplateInstruction<1, I, T>* instr,
|
2118
|
+
int index);
|
2119
|
+
template<int I, int T>
|
2120
|
+
LInstruction* DefineSameAsFirst(LTemplateInstruction<1, I, T>* instr);
|
2121
|
+
template<int I, int T>
|
2122
|
+
LInstruction* DefineFixed(LTemplateInstruction<1, I, T>* instr,
|
2123
|
+
Register reg);
|
2124
|
+
template<int I, int T>
|
2125
|
+
LInstruction* DefineFixedDouble(LTemplateInstruction<1, I, T>* instr,
|
2126
|
+
DoubleRegister reg);
|
2127
|
+
LInstruction* AssignEnvironment(LInstruction* instr);
|
2128
|
+
LInstruction* AssignPointerMap(LInstruction* instr);
|
2129
|
+
|
2130
|
+
enum CanDeoptimize { CAN_DEOPTIMIZE_EAGERLY, CANNOT_DEOPTIMIZE_EAGERLY };
|
2131
|
+
|
2132
|
+
// By default we assume that instruction sequences generated for calls
|
2133
|
+
// cannot deoptimize eagerly and we do not attach environment to this
|
2134
|
+
// instruction.
|
2135
|
+
LInstruction* MarkAsCall(
|
2136
|
+
LInstruction* instr,
|
2137
|
+
HInstruction* hinstr,
|
2138
|
+
CanDeoptimize can_deoptimize = CANNOT_DEOPTIMIZE_EAGERLY);
|
2139
|
+
LInstruction* MarkAsSaveDoubles(LInstruction* instr);
|
2140
|
+
|
2141
|
+
LInstruction* SetInstructionPendingDeoptimizationEnvironment(
|
2142
|
+
LInstruction* instr, int ast_id);
|
2143
|
+
void ClearInstructionPendingDeoptimizationEnvironment();
|
2144
|
+
|
2145
|
+
LEnvironment* CreateEnvironment(HEnvironment* hydrogen_env);
|
2146
|
+
|
2147
|
+
void VisitInstruction(HInstruction* current);
|
2148
|
+
|
2149
|
+
void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block);
|
2150
|
+
LInstruction* DoBit(Token::Value op, HBitwiseBinaryOperation* instr);
|
2151
|
+
LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr);
|
2152
|
+
LInstruction* DoArithmeticD(Token::Value op,
|
2153
|
+
HArithmeticBinaryOperation* instr);
|
2154
|
+
LInstruction* DoArithmeticT(Token::Value op,
|
2155
|
+
HArithmeticBinaryOperation* instr);
|
2156
|
+
|
2157
|
+
LChunk* chunk_;
|
2158
|
+
CompilationInfo* info_;
|
2159
|
+
HGraph* const graph_;
|
2160
|
+
Status status_;
|
2161
|
+
HInstruction* current_instruction_;
|
2162
|
+
HBasicBlock* current_block_;
|
2163
|
+
HBasicBlock* next_block_;
|
2164
|
+
int argument_count_;
|
2165
|
+
LAllocator* allocator_;
|
2166
|
+
int position_;
|
2167
|
+
LInstruction* instruction_pending_deoptimization_environment_;
|
2168
|
+
int pending_deoptimization_ast_id_;
|
2169
|
+
|
2170
|
+
DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
|
2171
|
+
};
|
2172
|
+
|
2173
|
+
#undef DECLARE_HYDROGEN_ACCESSOR
|
2174
|
+
#undef DECLARE_INSTRUCTION
|
2175
|
+
#undef DECLARE_CONCRETE_INSTRUCTION
|
2176
|
+
|
2177
|
+
} } // namespace v8::internal
|
2178
|
+
|
2179
|
+
#endif // V8_ARM_LITHIUM_ARM_H_
|