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