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,1490 @@
|
|
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
|
+
#include "v8.h"
|
29
|
+
|
30
|
+
#include "factory.h"
|
31
|
+
#include "hydrogen.h"
|
32
|
+
|
33
|
+
#if V8_TARGET_ARCH_IA32
|
34
|
+
#include "ia32/lithium-ia32.h"
|
35
|
+
#elif V8_TARGET_ARCH_X64
|
36
|
+
#include "x64/lithium-x64.h"
|
37
|
+
#elif V8_TARGET_ARCH_ARM
|
38
|
+
#include "arm/lithium-arm.h"
|
39
|
+
#else
|
40
|
+
#error Unsupported target architecture.
|
41
|
+
#endif
|
42
|
+
|
43
|
+
namespace v8 {
|
44
|
+
namespace internal {
|
45
|
+
|
46
|
+
#define DEFINE_COMPILE(type) \
|
47
|
+
LInstruction* H##type::CompileToLithium(LChunkBuilder* builder) { \
|
48
|
+
return builder->Do##type(this); \
|
49
|
+
}
|
50
|
+
HYDROGEN_CONCRETE_INSTRUCTION_LIST(DEFINE_COMPILE)
|
51
|
+
#undef DEFINE_COMPILE
|
52
|
+
|
53
|
+
|
54
|
+
const char* Representation::Mnemonic() const {
|
55
|
+
switch (kind_) {
|
56
|
+
case kNone: return "v";
|
57
|
+
case kTagged: return "t";
|
58
|
+
case kDouble: return "d";
|
59
|
+
case kInteger32: return "i";
|
60
|
+
case kExternal: return "x";
|
61
|
+
case kNumRepresentations:
|
62
|
+
UNREACHABLE();
|
63
|
+
return NULL;
|
64
|
+
}
|
65
|
+
UNREACHABLE();
|
66
|
+
return NULL;
|
67
|
+
}
|
68
|
+
|
69
|
+
|
70
|
+
static int32_t ConvertAndSetOverflow(int64_t result, bool* overflow) {
|
71
|
+
if (result > kMaxInt) {
|
72
|
+
*overflow = true;
|
73
|
+
return kMaxInt;
|
74
|
+
}
|
75
|
+
if (result < kMinInt) {
|
76
|
+
*overflow = true;
|
77
|
+
return kMinInt;
|
78
|
+
}
|
79
|
+
return static_cast<int32_t>(result);
|
80
|
+
}
|
81
|
+
|
82
|
+
|
83
|
+
static int32_t AddWithoutOverflow(int32_t a, int32_t b, bool* overflow) {
|
84
|
+
int64_t result = static_cast<int64_t>(a) + static_cast<int64_t>(b);
|
85
|
+
return ConvertAndSetOverflow(result, overflow);
|
86
|
+
}
|
87
|
+
|
88
|
+
|
89
|
+
static int32_t SubWithoutOverflow(int32_t a, int32_t b, bool* overflow) {
|
90
|
+
int64_t result = static_cast<int64_t>(a) - static_cast<int64_t>(b);
|
91
|
+
return ConvertAndSetOverflow(result, overflow);
|
92
|
+
}
|
93
|
+
|
94
|
+
|
95
|
+
static int32_t MulWithoutOverflow(int32_t a, int32_t b, bool* overflow) {
|
96
|
+
int64_t result = static_cast<int64_t>(a) * static_cast<int64_t>(b);
|
97
|
+
return ConvertAndSetOverflow(result, overflow);
|
98
|
+
}
|
99
|
+
|
100
|
+
|
101
|
+
int32_t Range::Mask() const {
|
102
|
+
if (lower_ == upper_) return lower_;
|
103
|
+
if (lower_ >= 0) {
|
104
|
+
int32_t res = 1;
|
105
|
+
while (res < upper_) {
|
106
|
+
res = (res << 1) | 1;
|
107
|
+
}
|
108
|
+
return res;
|
109
|
+
}
|
110
|
+
return 0xffffffff;
|
111
|
+
}
|
112
|
+
|
113
|
+
|
114
|
+
void Range::AddConstant(int32_t value) {
|
115
|
+
if (value == 0) return;
|
116
|
+
bool may_overflow = false; // Overflow is ignored here.
|
117
|
+
lower_ = AddWithoutOverflow(lower_, value, &may_overflow);
|
118
|
+
upper_ = AddWithoutOverflow(upper_, value, &may_overflow);
|
119
|
+
Verify();
|
120
|
+
}
|
121
|
+
|
122
|
+
|
123
|
+
bool Range::AddAndCheckOverflow(Range* other) {
|
124
|
+
bool may_overflow = false;
|
125
|
+
lower_ = AddWithoutOverflow(lower_, other->lower(), &may_overflow);
|
126
|
+
upper_ = AddWithoutOverflow(upper_, other->upper(), &may_overflow);
|
127
|
+
KeepOrder();
|
128
|
+
Verify();
|
129
|
+
return may_overflow;
|
130
|
+
}
|
131
|
+
|
132
|
+
|
133
|
+
bool Range::SubAndCheckOverflow(Range* other) {
|
134
|
+
bool may_overflow = false;
|
135
|
+
lower_ = SubWithoutOverflow(lower_, other->upper(), &may_overflow);
|
136
|
+
upper_ = SubWithoutOverflow(upper_, other->lower(), &may_overflow);
|
137
|
+
KeepOrder();
|
138
|
+
Verify();
|
139
|
+
return may_overflow;
|
140
|
+
}
|
141
|
+
|
142
|
+
|
143
|
+
void Range::KeepOrder() {
|
144
|
+
if (lower_ > upper_) {
|
145
|
+
int32_t tmp = lower_;
|
146
|
+
lower_ = upper_;
|
147
|
+
upper_ = tmp;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
|
152
|
+
void Range::Verify() const {
|
153
|
+
ASSERT(lower_ <= upper_);
|
154
|
+
}
|
155
|
+
|
156
|
+
|
157
|
+
bool Range::MulAndCheckOverflow(Range* other) {
|
158
|
+
bool may_overflow = false;
|
159
|
+
int v1 = MulWithoutOverflow(lower_, other->lower(), &may_overflow);
|
160
|
+
int v2 = MulWithoutOverflow(lower_, other->upper(), &may_overflow);
|
161
|
+
int v3 = MulWithoutOverflow(upper_, other->lower(), &may_overflow);
|
162
|
+
int v4 = MulWithoutOverflow(upper_, other->upper(), &may_overflow);
|
163
|
+
lower_ = Min(Min(v1, v2), Min(v3, v4));
|
164
|
+
upper_ = Max(Max(v1, v2), Max(v3, v4));
|
165
|
+
Verify();
|
166
|
+
return may_overflow;
|
167
|
+
}
|
168
|
+
|
169
|
+
|
170
|
+
const char* HType::ToString() {
|
171
|
+
switch (type_) {
|
172
|
+
case kTagged: return "tagged";
|
173
|
+
case kTaggedPrimitive: return "primitive";
|
174
|
+
case kTaggedNumber: return "number";
|
175
|
+
case kSmi: return "smi";
|
176
|
+
case kHeapNumber: return "heap-number";
|
177
|
+
case kString: return "string";
|
178
|
+
case kBoolean: return "boolean";
|
179
|
+
case kNonPrimitive: return "non-primitive";
|
180
|
+
case kJSArray: return "array";
|
181
|
+
case kJSObject: return "object";
|
182
|
+
case kUninitialized: return "uninitialized";
|
183
|
+
}
|
184
|
+
UNREACHABLE();
|
185
|
+
return "Unreachable code";
|
186
|
+
}
|
187
|
+
|
188
|
+
|
189
|
+
const char* HType::ToShortString() {
|
190
|
+
switch (type_) {
|
191
|
+
case kTagged: return "t";
|
192
|
+
case kTaggedPrimitive: return "p";
|
193
|
+
case kTaggedNumber: return "n";
|
194
|
+
case kSmi: return "m";
|
195
|
+
case kHeapNumber: return "h";
|
196
|
+
case kString: return "s";
|
197
|
+
case kBoolean: return "b";
|
198
|
+
case kNonPrimitive: return "r";
|
199
|
+
case kJSArray: return "a";
|
200
|
+
case kJSObject: return "o";
|
201
|
+
case kUninitialized: return "z";
|
202
|
+
}
|
203
|
+
UNREACHABLE();
|
204
|
+
return "Unreachable code";
|
205
|
+
}
|
206
|
+
|
207
|
+
|
208
|
+
HType HType::TypeFromValue(Handle<Object> value) {
|
209
|
+
HType result = HType::Tagged();
|
210
|
+
if (value->IsSmi()) {
|
211
|
+
result = HType::Smi();
|
212
|
+
} else if (value->IsHeapNumber()) {
|
213
|
+
result = HType::HeapNumber();
|
214
|
+
} else if (value->IsString()) {
|
215
|
+
result = HType::String();
|
216
|
+
} else if (value->IsBoolean()) {
|
217
|
+
result = HType::Boolean();
|
218
|
+
} else if (value->IsJSObject()) {
|
219
|
+
result = HType::JSObject();
|
220
|
+
} else if (value->IsJSArray()) {
|
221
|
+
result = HType::JSArray();
|
222
|
+
}
|
223
|
+
return result;
|
224
|
+
}
|
225
|
+
|
226
|
+
|
227
|
+
int HValue::LookupOperandIndex(int occurrence_index, HValue* op) {
|
228
|
+
for (int i = 0; i < OperandCount(); ++i) {
|
229
|
+
if (OperandAt(i) == op) {
|
230
|
+
if (occurrence_index == 0) return i;
|
231
|
+
--occurrence_index;
|
232
|
+
}
|
233
|
+
}
|
234
|
+
return -1;
|
235
|
+
}
|
236
|
+
|
237
|
+
|
238
|
+
bool HValue::IsDefinedAfter(HBasicBlock* other) const {
|
239
|
+
return block()->block_id() > other->block_id();
|
240
|
+
}
|
241
|
+
|
242
|
+
|
243
|
+
bool HValue::UsesMultipleTimes(HValue* op) {
|
244
|
+
bool seen = false;
|
245
|
+
for (int i = 0; i < OperandCount(); ++i) {
|
246
|
+
if (OperandAt(i) == op) {
|
247
|
+
if (seen) return true;
|
248
|
+
seen = true;
|
249
|
+
}
|
250
|
+
}
|
251
|
+
return false;
|
252
|
+
}
|
253
|
+
|
254
|
+
|
255
|
+
bool HValue::Equals(HValue* other) {
|
256
|
+
if (other->opcode() != opcode()) return false;
|
257
|
+
if (!other->representation().Equals(representation())) return false;
|
258
|
+
if (!other->type_.Equals(type_)) return false;
|
259
|
+
if (other->flags() != flags()) return false;
|
260
|
+
if (OperandCount() != other->OperandCount()) return false;
|
261
|
+
for (int i = 0; i < OperandCount(); ++i) {
|
262
|
+
if (OperandAt(i)->id() != other->OperandAt(i)->id()) return false;
|
263
|
+
}
|
264
|
+
bool result = DataEquals(other);
|
265
|
+
ASSERT(!result || Hashcode() == other->Hashcode());
|
266
|
+
return result;
|
267
|
+
}
|
268
|
+
|
269
|
+
|
270
|
+
intptr_t HValue::Hashcode() {
|
271
|
+
intptr_t result = opcode();
|
272
|
+
int count = OperandCount();
|
273
|
+
for (int i = 0; i < count; ++i) {
|
274
|
+
result = result * 19 + OperandAt(i)->id() + (result >> 7);
|
275
|
+
}
|
276
|
+
return result;
|
277
|
+
}
|
278
|
+
|
279
|
+
|
280
|
+
void HValue::SetOperandAt(int index, HValue* value) {
|
281
|
+
ASSERT(value == NULL || !value->representation().IsNone());
|
282
|
+
RegisterUse(index, value);
|
283
|
+
InternalSetOperandAt(index, value);
|
284
|
+
}
|
285
|
+
|
286
|
+
|
287
|
+
void HValue::ReplaceAndDelete(HValue* other) {
|
288
|
+
ReplaceValue(other);
|
289
|
+
Delete();
|
290
|
+
}
|
291
|
+
|
292
|
+
|
293
|
+
void HValue::ReplaceValue(HValue* other) {
|
294
|
+
ZoneList<HValue*> start_uses(2);
|
295
|
+
for (int i = 0; i < uses_.length(); ++i) {
|
296
|
+
HValue* use = uses_.at(i);
|
297
|
+
if (!use->block()->IsStartBlock()) {
|
298
|
+
InternalReplaceAtUse(use, other);
|
299
|
+
other->uses_.Add(use);
|
300
|
+
} else {
|
301
|
+
start_uses.Add(use);
|
302
|
+
}
|
303
|
+
}
|
304
|
+
uses_.Clear();
|
305
|
+
uses_.AddAll(start_uses);
|
306
|
+
}
|
307
|
+
|
308
|
+
|
309
|
+
void HValue::ClearOperands() {
|
310
|
+
for (int i = 0; i < OperandCount(); ++i) {
|
311
|
+
SetOperandAt(i, NULL);
|
312
|
+
}
|
313
|
+
}
|
314
|
+
|
315
|
+
|
316
|
+
void HValue::Delete() {
|
317
|
+
ASSERT(HasNoUses());
|
318
|
+
ClearOperands();
|
319
|
+
DeleteFromGraph();
|
320
|
+
}
|
321
|
+
|
322
|
+
|
323
|
+
void HValue::ReplaceAtUse(HValue* use, HValue* other) {
|
324
|
+
for (int i = 0; i < use->OperandCount(); ++i) {
|
325
|
+
if (use->OperandAt(i) == this) {
|
326
|
+
use->SetOperandAt(i, other);
|
327
|
+
}
|
328
|
+
}
|
329
|
+
}
|
330
|
+
|
331
|
+
|
332
|
+
void HValue::ReplaceFirstAtUse(HValue* use, HValue* other, Representation r) {
|
333
|
+
for (int i = 0; i < use->OperandCount(); ++i) {
|
334
|
+
if (use->RequiredInputRepresentation(i).Equals(r) &&
|
335
|
+
use->OperandAt(i) == this) {
|
336
|
+
use->SetOperandAt(i, other);
|
337
|
+
return;
|
338
|
+
}
|
339
|
+
}
|
340
|
+
}
|
341
|
+
|
342
|
+
|
343
|
+
void HValue::InternalReplaceAtUse(HValue* use, HValue* other) {
|
344
|
+
for (int i = 0; i < use->OperandCount(); ++i) {
|
345
|
+
if (use->OperandAt(i) == this) {
|
346
|
+
// Call internal method that does not update use lists. The caller is
|
347
|
+
// responsible for doing so.
|
348
|
+
use->InternalSetOperandAt(i, other);
|
349
|
+
}
|
350
|
+
}
|
351
|
+
}
|
352
|
+
|
353
|
+
|
354
|
+
void HValue::SetBlock(HBasicBlock* block) {
|
355
|
+
ASSERT(block_ == NULL || block == NULL);
|
356
|
+
block_ = block;
|
357
|
+
if (id_ == kNoNumber && block != NULL) {
|
358
|
+
id_ = block->graph()->GetNextValueID(this);
|
359
|
+
}
|
360
|
+
}
|
361
|
+
|
362
|
+
|
363
|
+
void HValue::PrintTypeTo(HType type, StringStream* stream) {
|
364
|
+
stream->Add(type.ToShortString());
|
365
|
+
}
|
366
|
+
|
367
|
+
|
368
|
+
void HValue::PrintNameTo(StringStream* stream) {
|
369
|
+
stream->Add("%s%d", representation_.Mnemonic(), id());
|
370
|
+
}
|
371
|
+
|
372
|
+
|
373
|
+
bool HValue::UpdateInferredType() {
|
374
|
+
HType type = CalculateInferredType();
|
375
|
+
bool result = (!type.Equals(type_));
|
376
|
+
type_ = type;
|
377
|
+
return result;
|
378
|
+
}
|
379
|
+
|
380
|
+
|
381
|
+
void HValue::RegisterUse(int index, HValue* new_value) {
|
382
|
+
HValue* old_value = OperandAt(index);
|
383
|
+
if (old_value == new_value) return;
|
384
|
+
if (old_value != NULL) {
|
385
|
+
ASSERT(old_value->uses_.Contains(this));
|
386
|
+
old_value->uses_.RemoveElement(this);
|
387
|
+
}
|
388
|
+
if (new_value != NULL) {
|
389
|
+
new_value->uses_.Add(this);
|
390
|
+
}
|
391
|
+
}
|
392
|
+
|
393
|
+
|
394
|
+
void HValue::AddNewRange(Range* r) {
|
395
|
+
if (!HasRange()) ComputeInitialRange();
|
396
|
+
if (!HasRange()) range_ = new Range();
|
397
|
+
ASSERT(HasRange());
|
398
|
+
r->StackUpon(range_);
|
399
|
+
range_ = r;
|
400
|
+
}
|
401
|
+
|
402
|
+
|
403
|
+
void HValue::RemoveLastAddedRange() {
|
404
|
+
ASSERT(HasRange());
|
405
|
+
ASSERT(range_->next() != NULL);
|
406
|
+
range_ = range_->next();
|
407
|
+
}
|
408
|
+
|
409
|
+
|
410
|
+
void HValue::ComputeInitialRange() {
|
411
|
+
ASSERT(!HasRange());
|
412
|
+
range_ = InferRange();
|
413
|
+
ASSERT(HasRange());
|
414
|
+
}
|
415
|
+
|
416
|
+
|
417
|
+
void HInstruction::PrintTo(StringStream* stream) {
|
418
|
+
stream->Add("%s", Mnemonic());
|
419
|
+
if (HasSideEffects()) stream->Add("*");
|
420
|
+
stream->Add(" ");
|
421
|
+
PrintDataTo(stream);
|
422
|
+
|
423
|
+
if (range() != NULL) {
|
424
|
+
stream->Add(" range[%d,%d,m0=%d]",
|
425
|
+
range()->lower(),
|
426
|
+
range()->upper(),
|
427
|
+
static_cast<int>(range()->CanBeMinusZero()));
|
428
|
+
}
|
429
|
+
|
430
|
+
int changes_flags = (flags() & HValue::ChangesFlagsMask());
|
431
|
+
if (changes_flags != 0) {
|
432
|
+
stream->Add(" changes[0x%x]", changes_flags);
|
433
|
+
}
|
434
|
+
|
435
|
+
if (representation().IsTagged() && !type().Equals(HType::Tagged())) {
|
436
|
+
stream->Add(" type[%s]", type().ToString());
|
437
|
+
}
|
438
|
+
}
|
439
|
+
|
440
|
+
|
441
|
+
void HInstruction::Unlink() {
|
442
|
+
ASSERT(IsLinked());
|
443
|
+
ASSERT(!IsControlInstruction()); // Must never move control instructions.
|
444
|
+
ASSERT(!IsBlockEntry()); // Doesn't make sense to delete these.
|
445
|
+
ASSERT(previous_ != NULL);
|
446
|
+
previous_->next_ = next_;
|
447
|
+
if (next_ == NULL) {
|
448
|
+
ASSERT(block()->last() == this);
|
449
|
+
block()->set_last(previous_);
|
450
|
+
} else {
|
451
|
+
next_->previous_ = previous_;
|
452
|
+
}
|
453
|
+
clear_block();
|
454
|
+
}
|
455
|
+
|
456
|
+
|
457
|
+
void HInstruction::InsertBefore(HInstruction* next) {
|
458
|
+
ASSERT(!IsLinked());
|
459
|
+
ASSERT(!next->IsBlockEntry());
|
460
|
+
ASSERT(!IsControlInstruction());
|
461
|
+
ASSERT(!next->block()->IsStartBlock());
|
462
|
+
ASSERT(next->previous_ != NULL);
|
463
|
+
HInstruction* prev = next->previous();
|
464
|
+
prev->next_ = this;
|
465
|
+
next->previous_ = this;
|
466
|
+
next_ = next;
|
467
|
+
previous_ = prev;
|
468
|
+
SetBlock(next->block());
|
469
|
+
}
|
470
|
+
|
471
|
+
|
472
|
+
void HInstruction::InsertAfter(HInstruction* previous) {
|
473
|
+
ASSERT(!IsLinked());
|
474
|
+
ASSERT(!previous->IsControlInstruction());
|
475
|
+
ASSERT(!IsControlInstruction() || previous->next_ == NULL);
|
476
|
+
HBasicBlock* block = previous->block();
|
477
|
+
// Never insert anything except constants into the start block after finishing
|
478
|
+
// it.
|
479
|
+
if (block->IsStartBlock() && block->IsFinished() && !IsConstant()) {
|
480
|
+
ASSERT(block->end()->SecondSuccessor() == NULL);
|
481
|
+
InsertAfter(block->end()->FirstSuccessor()->first());
|
482
|
+
return;
|
483
|
+
}
|
484
|
+
|
485
|
+
// If we're inserting after an instruction with side-effects that is
|
486
|
+
// followed by a simulate instruction, we need to insert after the
|
487
|
+
// simulate instruction instead.
|
488
|
+
HInstruction* next = previous->next_;
|
489
|
+
if (previous->HasSideEffects() && next != NULL) {
|
490
|
+
ASSERT(next->IsSimulate());
|
491
|
+
previous = next;
|
492
|
+
next = previous->next_;
|
493
|
+
}
|
494
|
+
|
495
|
+
previous_ = previous;
|
496
|
+
next_ = next;
|
497
|
+
SetBlock(block);
|
498
|
+
previous->next_ = this;
|
499
|
+
if (next != NULL) next->previous_ = this;
|
500
|
+
}
|
501
|
+
|
502
|
+
|
503
|
+
#ifdef DEBUG
|
504
|
+
void HInstruction::Verify() {
|
505
|
+
// Verify that input operands are defined before use.
|
506
|
+
HBasicBlock* cur_block = block();
|
507
|
+
for (int i = 0; i < OperandCount(); ++i) {
|
508
|
+
HValue* other_operand = OperandAt(i);
|
509
|
+
HBasicBlock* other_block = other_operand->block();
|
510
|
+
if (cur_block == other_block) {
|
511
|
+
if (!other_operand->IsPhi()) {
|
512
|
+
HInstruction* cur = cur_block->first();
|
513
|
+
while (cur != NULL) {
|
514
|
+
ASSERT(cur != this); // We should reach other_operand before!
|
515
|
+
if (cur == other_operand) break;
|
516
|
+
cur = cur->next();
|
517
|
+
}
|
518
|
+
// Must reach other operand in the same block!
|
519
|
+
ASSERT(cur == other_operand);
|
520
|
+
}
|
521
|
+
} else {
|
522
|
+
ASSERT(other_block->Dominates(cur_block));
|
523
|
+
}
|
524
|
+
}
|
525
|
+
|
526
|
+
// Verify that instructions that may have side-effects are followed
|
527
|
+
// by a simulate instruction.
|
528
|
+
if (HasSideEffects() && !IsOsrEntry()) {
|
529
|
+
ASSERT(next()->IsSimulate());
|
530
|
+
}
|
531
|
+
|
532
|
+
// Verify that instructions that can be eliminated by GVN have overridden
|
533
|
+
// HValue::DataEquals. The default implementation is UNREACHABLE. We
|
534
|
+
// don't actually care whether DataEquals returns true or false here.
|
535
|
+
if (CheckFlag(kUseGVN)) DataEquals(this);
|
536
|
+
}
|
537
|
+
#endif
|
538
|
+
|
539
|
+
|
540
|
+
void HUnaryCall::PrintDataTo(StringStream* stream) {
|
541
|
+
value()->PrintNameTo(stream);
|
542
|
+
stream->Add(" ");
|
543
|
+
stream->Add("#%d", argument_count());
|
544
|
+
}
|
545
|
+
|
546
|
+
|
547
|
+
void HBinaryCall::PrintDataTo(StringStream* stream) {
|
548
|
+
first()->PrintNameTo(stream);
|
549
|
+
stream->Add(" ");
|
550
|
+
second()->PrintNameTo(stream);
|
551
|
+
stream->Add(" ");
|
552
|
+
stream->Add("#%d", argument_count());
|
553
|
+
}
|
554
|
+
|
555
|
+
|
556
|
+
void HCallConstantFunction::PrintDataTo(StringStream* stream) {
|
557
|
+
if (IsApplyFunction()) {
|
558
|
+
stream->Add("optimized apply ");
|
559
|
+
} else {
|
560
|
+
stream->Add("%o ", function()->shared()->DebugName());
|
561
|
+
}
|
562
|
+
stream->Add("#%d", argument_count());
|
563
|
+
}
|
564
|
+
|
565
|
+
|
566
|
+
void HCallNamed::PrintDataTo(StringStream* stream) {
|
567
|
+
stream->Add("%o ", *name());
|
568
|
+
HUnaryCall::PrintDataTo(stream);
|
569
|
+
}
|
570
|
+
|
571
|
+
|
572
|
+
void HCallGlobal::PrintDataTo(StringStream* stream) {
|
573
|
+
stream->Add("%o ", *name());
|
574
|
+
HUnaryCall::PrintDataTo(stream);
|
575
|
+
}
|
576
|
+
|
577
|
+
|
578
|
+
void HCallKnownGlobal::PrintDataTo(StringStream* stream) {
|
579
|
+
stream->Add("o ", target()->shared()->DebugName());
|
580
|
+
stream->Add("#%d", argument_count());
|
581
|
+
}
|
582
|
+
|
583
|
+
|
584
|
+
void HCallRuntime::PrintDataTo(StringStream* stream) {
|
585
|
+
stream->Add("%o ", *name());
|
586
|
+
stream->Add("#%d", argument_count());
|
587
|
+
}
|
588
|
+
|
589
|
+
|
590
|
+
void HClassOfTest::PrintDataTo(StringStream* stream) {
|
591
|
+
stream->Add("class_of_test(");
|
592
|
+
value()->PrintNameTo(stream);
|
593
|
+
stream->Add(", \"%o\")", *class_name());
|
594
|
+
}
|
595
|
+
|
596
|
+
|
597
|
+
void HAccessArgumentsAt::PrintDataTo(StringStream* stream) {
|
598
|
+
arguments()->PrintNameTo(stream);
|
599
|
+
stream->Add("[");
|
600
|
+
index()->PrintNameTo(stream);
|
601
|
+
stream->Add("], length ");
|
602
|
+
length()->PrintNameTo(stream);
|
603
|
+
}
|
604
|
+
|
605
|
+
|
606
|
+
void HControlInstruction::PrintDataTo(StringStream* stream) {
|
607
|
+
if (FirstSuccessor() != NULL) {
|
608
|
+
int first_id = FirstSuccessor()->block_id();
|
609
|
+
if (SecondSuccessor() == NULL) {
|
610
|
+
stream->Add(" B%d", first_id);
|
611
|
+
} else {
|
612
|
+
int second_id = SecondSuccessor()->block_id();
|
613
|
+
stream->Add(" goto (B%d, B%d)", first_id, second_id);
|
614
|
+
}
|
615
|
+
}
|
616
|
+
}
|
617
|
+
|
618
|
+
|
619
|
+
void HUnaryControlInstruction::PrintDataTo(StringStream* stream) {
|
620
|
+
value()->PrintNameTo(stream);
|
621
|
+
HControlInstruction::PrintDataTo(stream);
|
622
|
+
}
|
623
|
+
|
624
|
+
|
625
|
+
void HCompareMap::PrintDataTo(StringStream* stream) {
|
626
|
+
value()->PrintNameTo(stream);
|
627
|
+
stream->Add(" (%p)", *map());
|
628
|
+
HControlInstruction::PrintDataTo(stream);
|
629
|
+
}
|
630
|
+
|
631
|
+
|
632
|
+
const char* HUnaryMathOperation::OpName() const {
|
633
|
+
switch (op()) {
|
634
|
+
case kMathFloor: return "floor";
|
635
|
+
case kMathRound: return "round";
|
636
|
+
case kMathCeil: return "ceil";
|
637
|
+
case kMathAbs: return "abs";
|
638
|
+
case kMathLog: return "log";
|
639
|
+
case kMathSin: return "sin";
|
640
|
+
case kMathCos: return "cos";
|
641
|
+
case kMathTan: return "tan";
|
642
|
+
case kMathASin: return "asin";
|
643
|
+
case kMathACos: return "acos";
|
644
|
+
case kMathATan: return "atan";
|
645
|
+
case kMathExp: return "exp";
|
646
|
+
case kMathSqrt: return "sqrt";
|
647
|
+
default: break;
|
648
|
+
}
|
649
|
+
return "(unknown operation)";
|
650
|
+
}
|
651
|
+
|
652
|
+
|
653
|
+
void HUnaryMathOperation::PrintDataTo(StringStream* stream) {
|
654
|
+
const char* name = OpName();
|
655
|
+
stream->Add("%s ", name);
|
656
|
+
value()->PrintNameTo(stream);
|
657
|
+
}
|
658
|
+
|
659
|
+
|
660
|
+
void HUnaryOperation::PrintDataTo(StringStream* stream) {
|
661
|
+
value()->PrintNameTo(stream);
|
662
|
+
}
|
663
|
+
|
664
|
+
|
665
|
+
void HHasInstanceType::PrintDataTo(StringStream* stream) {
|
666
|
+
value()->PrintNameTo(stream);
|
667
|
+
switch (from_) {
|
668
|
+
case FIRST_JS_OBJECT_TYPE:
|
669
|
+
if (to_ == LAST_TYPE) stream->Add(" spec_object");
|
670
|
+
break;
|
671
|
+
case JS_REGEXP_TYPE:
|
672
|
+
if (to_ == JS_REGEXP_TYPE) stream->Add(" reg_exp");
|
673
|
+
break;
|
674
|
+
case JS_ARRAY_TYPE:
|
675
|
+
if (to_ == JS_ARRAY_TYPE) stream->Add(" array");
|
676
|
+
break;
|
677
|
+
case JS_FUNCTION_TYPE:
|
678
|
+
if (to_ == JS_FUNCTION_TYPE) stream->Add(" function");
|
679
|
+
break;
|
680
|
+
default:
|
681
|
+
break;
|
682
|
+
}
|
683
|
+
}
|
684
|
+
|
685
|
+
|
686
|
+
void HTypeofIs::PrintDataTo(StringStream* stream) {
|
687
|
+
value()->PrintNameTo(stream);
|
688
|
+
stream->Add(" == ");
|
689
|
+
stream->Add(type_literal_->ToAsciiVector());
|
690
|
+
}
|
691
|
+
|
692
|
+
|
693
|
+
void HChange::PrintDataTo(StringStream* stream) {
|
694
|
+
HUnaryOperation::PrintDataTo(stream);
|
695
|
+
stream->Add(" %s to %s", from_.Mnemonic(), to_.Mnemonic());
|
696
|
+
|
697
|
+
if (CanTruncateToInt32()) stream->Add(" truncating-int32");
|
698
|
+
if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?");
|
699
|
+
}
|
700
|
+
|
701
|
+
|
702
|
+
HCheckInstanceType* HCheckInstanceType::NewIsJSObjectOrJSFunction(
|
703
|
+
HValue* value) {
|
704
|
+
STATIC_ASSERT((LAST_JS_OBJECT_TYPE + 1) == JS_FUNCTION_TYPE);
|
705
|
+
return new HCheckInstanceType(value, FIRST_JS_OBJECT_TYPE, JS_FUNCTION_TYPE);
|
706
|
+
}
|
707
|
+
|
708
|
+
|
709
|
+
void HCheckMap::PrintDataTo(StringStream* stream) {
|
710
|
+
value()->PrintNameTo(stream);
|
711
|
+
stream->Add(" %p", *map());
|
712
|
+
}
|
713
|
+
|
714
|
+
|
715
|
+
void HCheckFunction::PrintDataTo(StringStream* stream) {
|
716
|
+
value()->PrintNameTo(stream);
|
717
|
+
stream->Add(" %p", *target());
|
718
|
+
}
|
719
|
+
|
720
|
+
|
721
|
+
void HCallStub::PrintDataTo(StringStream* stream) {
|
722
|
+
stream->Add("%s ",
|
723
|
+
CodeStub::MajorName(major_key_, false));
|
724
|
+
HUnaryCall::PrintDataTo(stream);
|
725
|
+
}
|
726
|
+
|
727
|
+
|
728
|
+
void HInstanceOf::PrintDataTo(StringStream* stream) {
|
729
|
+
left()->PrintNameTo(stream);
|
730
|
+
stream->Add(" ");
|
731
|
+
right()->PrintNameTo(stream);
|
732
|
+
stream->Add(" ");
|
733
|
+
context()->PrintNameTo(stream);
|
734
|
+
}
|
735
|
+
|
736
|
+
|
737
|
+
Range* HValue::InferRange() {
|
738
|
+
if (representation().IsTagged()) {
|
739
|
+
// Tagged values are always in int32 range when converted to integer,
|
740
|
+
// but they can contain -0.
|
741
|
+
Range* result = new Range();
|
742
|
+
result->set_can_be_minus_zero(true);
|
743
|
+
return result;
|
744
|
+
} else if (representation().IsNone()) {
|
745
|
+
return NULL;
|
746
|
+
} else {
|
747
|
+
return new Range();
|
748
|
+
}
|
749
|
+
}
|
750
|
+
|
751
|
+
|
752
|
+
Range* HConstant::InferRange() {
|
753
|
+
if (has_int32_value_) {
|
754
|
+
Range* result = new Range(int32_value_, int32_value_);
|
755
|
+
result->set_can_be_minus_zero(false);
|
756
|
+
return result;
|
757
|
+
}
|
758
|
+
return HInstruction::InferRange();
|
759
|
+
}
|
760
|
+
|
761
|
+
|
762
|
+
Range* HPhi::InferRange() {
|
763
|
+
if (representation().IsInteger32()) {
|
764
|
+
if (block()->IsLoopHeader()) {
|
765
|
+
Range* range = new Range(kMinInt, kMaxInt);
|
766
|
+
return range;
|
767
|
+
} else {
|
768
|
+
Range* range = OperandAt(0)->range()->Copy();
|
769
|
+
for (int i = 1; i < OperandCount(); ++i) {
|
770
|
+
range->Union(OperandAt(i)->range());
|
771
|
+
}
|
772
|
+
return range;
|
773
|
+
}
|
774
|
+
} else {
|
775
|
+
return HValue::InferRange();
|
776
|
+
}
|
777
|
+
}
|
778
|
+
|
779
|
+
|
780
|
+
Range* HAdd::InferRange() {
|
781
|
+
if (representation().IsInteger32()) {
|
782
|
+
Range* a = left()->range();
|
783
|
+
Range* b = right()->range();
|
784
|
+
Range* res = a->Copy();
|
785
|
+
if (!res->AddAndCheckOverflow(b)) {
|
786
|
+
ClearFlag(kCanOverflow);
|
787
|
+
}
|
788
|
+
bool m0 = a->CanBeMinusZero() && b->CanBeMinusZero();
|
789
|
+
res->set_can_be_minus_zero(m0);
|
790
|
+
return res;
|
791
|
+
} else {
|
792
|
+
return HArithmeticBinaryOperation::InferRange();
|
793
|
+
}
|
794
|
+
}
|
795
|
+
|
796
|
+
|
797
|
+
Range* HSub::InferRange() {
|
798
|
+
if (representation().IsInteger32()) {
|
799
|
+
Range* a = left()->range();
|
800
|
+
Range* b = right()->range();
|
801
|
+
Range* res = a->Copy();
|
802
|
+
if (!res->SubAndCheckOverflow(b)) {
|
803
|
+
ClearFlag(kCanOverflow);
|
804
|
+
}
|
805
|
+
res->set_can_be_minus_zero(a->CanBeMinusZero() && b->CanBeZero());
|
806
|
+
return res;
|
807
|
+
} else {
|
808
|
+
return HArithmeticBinaryOperation::InferRange();
|
809
|
+
}
|
810
|
+
}
|
811
|
+
|
812
|
+
|
813
|
+
Range* HMul::InferRange() {
|
814
|
+
if (representation().IsInteger32()) {
|
815
|
+
Range* a = left()->range();
|
816
|
+
Range* b = right()->range();
|
817
|
+
Range* res = a->Copy();
|
818
|
+
if (!res->MulAndCheckOverflow(b)) {
|
819
|
+
ClearFlag(kCanOverflow);
|
820
|
+
}
|
821
|
+
bool m0 = (a->CanBeZero() && b->CanBeNegative()) ||
|
822
|
+
(a->CanBeNegative() && b->CanBeZero());
|
823
|
+
res->set_can_be_minus_zero(m0);
|
824
|
+
return res;
|
825
|
+
} else {
|
826
|
+
return HArithmeticBinaryOperation::InferRange();
|
827
|
+
}
|
828
|
+
}
|
829
|
+
|
830
|
+
|
831
|
+
Range* HDiv::InferRange() {
|
832
|
+
if (representation().IsInteger32()) {
|
833
|
+
Range* result = new Range();
|
834
|
+
if (left()->range()->CanBeMinusZero()) {
|
835
|
+
result->set_can_be_minus_zero(true);
|
836
|
+
}
|
837
|
+
|
838
|
+
if (left()->range()->CanBeZero() && right()->range()->CanBeNegative()) {
|
839
|
+
result->set_can_be_minus_zero(true);
|
840
|
+
}
|
841
|
+
|
842
|
+
if (right()->range()->Includes(-1) && left()->range()->Includes(kMinInt)) {
|
843
|
+
SetFlag(HValue::kCanOverflow);
|
844
|
+
}
|
845
|
+
|
846
|
+
if (!right()->range()->CanBeZero()) {
|
847
|
+
ClearFlag(HValue::kCanBeDivByZero);
|
848
|
+
}
|
849
|
+
return result;
|
850
|
+
} else {
|
851
|
+
return HArithmeticBinaryOperation::InferRange();
|
852
|
+
}
|
853
|
+
}
|
854
|
+
|
855
|
+
|
856
|
+
Range* HMod::InferRange() {
|
857
|
+
if (representation().IsInteger32()) {
|
858
|
+
Range* a = left()->range();
|
859
|
+
Range* result = new Range();
|
860
|
+
if (a->CanBeMinusZero() || a->CanBeNegative()) {
|
861
|
+
result->set_can_be_minus_zero(true);
|
862
|
+
}
|
863
|
+
if (!right()->range()->CanBeZero()) {
|
864
|
+
ClearFlag(HValue::kCanBeDivByZero);
|
865
|
+
}
|
866
|
+
return result;
|
867
|
+
} else {
|
868
|
+
return HArithmeticBinaryOperation::InferRange();
|
869
|
+
}
|
870
|
+
}
|
871
|
+
|
872
|
+
|
873
|
+
void HPhi::PrintTo(StringStream* stream) {
|
874
|
+
stream->Add("[");
|
875
|
+
for (int i = 0; i < OperandCount(); ++i) {
|
876
|
+
HValue* value = OperandAt(i);
|
877
|
+
stream->Add(" ");
|
878
|
+
value->PrintNameTo(stream);
|
879
|
+
stream->Add(" ");
|
880
|
+
}
|
881
|
+
stream->Add(" uses%d_%di_%dd_%dt]",
|
882
|
+
uses()->length(),
|
883
|
+
int32_non_phi_uses() + int32_indirect_uses(),
|
884
|
+
double_non_phi_uses() + double_indirect_uses(),
|
885
|
+
tagged_non_phi_uses() + tagged_indirect_uses());
|
886
|
+
}
|
887
|
+
|
888
|
+
|
889
|
+
void HPhi::AddInput(HValue* value) {
|
890
|
+
inputs_.Add(NULL);
|
891
|
+
SetOperandAt(OperandCount() - 1, value);
|
892
|
+
// Mark phis that may have 'arguments' directly or indirectly as an operand.
|
893
|
+
if (!CheckFlag(kIsArguments) && value->CheckFlag(kIsArguments)) {
|
894
|
+
SetFlag(kIsArguments);
|
895
|
+
}
|
896
|
+
}
|
897
|
+
|
898
|
+
|
899
|
+
HValue* HPhi::GetRedundantReplacement() {
|
900
|
+
HValue* candidate = NULL;
|
901
|
+
int count = OperandCount();
|
902
|
+
int position = 0;
|
903
|
+
while (position < count && candidate == NULL) {
|
904
|
+
HValue* current = OperandAt(position++);
|
905
|
+
if (current != this) candidate = current;
|
906
|
+
}
|
907
|
+
while (position < count) {
|
908
|
+
HValue* current = OperandAt(position++);
|
909
|
+
if (current != this && current != candidate) return NULL;
|
910
|
+
}
|
911
|
+
ASSERT(candidate != this);
|
912
|
+
return candidate;
|
913
|
+
}
|
914
|
+
|
915
|
+
|
916
|
+
void HPhi::DeleteFromGraph() {
|
917
|
+
ASSERT(block() != NULL);
|
918
|
+
block()->RemovePhi(this);
|
919
|
+
ASSERT(block() == NULL);
|
920
|
+
}
|
921
|
+
|
922
|
+
|
923
|
+
void HPhi::InitRealUses(int phi_id) {
|
924
|
+
// Initialize real uses.
|
925
|
+
phi_id_ = phi_id;
|
926
|
+
for (int j = 0; j < uses()->length(); j++) {
|
927
|
+
HValue* use = uses()->at(j);
|
928
|
+
if (!use->IsPhi()) {
|
929
|
+
int index = use->LookupOperandIndex(0, this);
|
930
|
+
Representation req_rep = use->RequiredInputRepresentation(index);
|
931
|
+
non_phi_uses_[req_rep.kind()]++;
|
932
|
+
}
|
933
|
+
}
|
934
|
+
}
|
935
|
+
|
936
|
+
|
937
|
+
void HPhi::AddNonPhiUsesFrom(HPhi* other) {
|
938
|
+
for (int i = 0; i < Representation::kNumRepresentations; i++) {
|
939
|
+
indirect_uses_[i] += other->non_phi_uses_[i];
|
940
|
+
}
|
941
|
+
}
|
942
|
+
|
943
|
+
|
944
|
+
void HPhi::AddIndirectUsesTo(int* dest) {
|
945
|
+
for (int i = 0; i < Representation::kNumRepresentations; i++) {
|
946
|
+
dest[i] += indirect_uses_[i];
|
947
|
+
}
|
948
|
+
}
|
949
|
+
|
950
|
+
|
951
|
+
void HSimulate::PrintDataTo(StringStream* stream) {
|
952
|
+
stream->Add("id=%d ", ast_id());
|
953
|
+
if (pop_count_ > 0) stream->Add("pop %d", pop_count_);
|
954
|
+
if (values_.length() > 0) {
|
955
|
+
if (pop_count_ > 0) stream->Add(" /");
|
956
|
+
for (int i = 0; i < values_.length(); ++i) {
|
957
|
+
if (!HasAssignedIndexAt(i)) {
|
958
|
+
stream->Add(" push ");
|
959
|
+
} else {
|
960
|
+
stream->Add(" var[%d] = ", GetAssignedIndexAt(i));
|
961
|
+
}
|
962
|
+
values_[i]->PrintNameTo(stream);
|
963
|
+
}
|
964
|
+
}
|
965
|
+
}
|
966
|
+
|
967
|
+
|
968
|
+
void HEnterInlined::PrintDataTo(StringStream* stream) {
|
969
|
+
SmartPointer<char> name = function()->debug_name()->ToCString();
|
970
|
+
stream->Add("%s, id=%d", *name, function()->id());
|
971
|
+
}
|
972
|
+
|
973
|
+
|
974
|
+
HConstant::HConstant(Handle<Object> handle, Representation r)
|
975
|
+
: handle_(handle),
|
976
|
+
constant_type_(HType::TypeFromValue(handle)),
|
977
|
+
has_int32_value_(false),
|
978
|
+
int32_value_(0),
|
979
|
+
has_double_value_(false),
|
980
|
+
double_value_(0) {
|
981
|
+
set_representation(r);
|
982
|
+
SetFlag(kUseGVN);
|
983
|
+
if (handle_->IsNumber()) {
|
984
|
+
double n = handle_->Number();
|
985
|
+
double roundtrip_value = static_cast<double>(static_cast<int32_t>(n));
|
986
|
+
has_int32_value_ = BitCast<int64_t>(roundtrip_value) == BitCast<int64_t>(n);
|
987
|
+
if (has_int32_value_) int32_value_ = static_cast<int32_t>(n);
|
988
|
+
double_value_ = n;
|
989
|
+
has_double_value_ = true;
|
990
|
+
}
|
991
|
+
}
|
992
|
+
|
993
|
+
|
994
|
+
HConstant* HConstant::CopyToRepresentation(Representation r) const {
|
995
|
+
if (r.IsInteger32() && !has_int32_value_) return NULL;
|
996
|
+
if (r.IsDouble() && !has_double_value_) return NULL;
|
997
|
+
return new HConstant(handle_, r);
|
998
|
+
}
|
999
|
+
|
1000
|
+
|
1001
|
+
HConstant* HConstant::CopyToTruncatedInt32() const {
|
1002
|
+
if (!has_double_value_) return NULL;
|
1003
|
+
int32_t truncated = NumberToInt32(*handle_);
|
1004
|
+
return new HConstant(Factory::NewNumberFromInt(truncated),
|
1005
|
+
Representation::Integer32());
|
1006
|
+
}
|
1007
|
+
|
1008
|
+
|
1009
|
+
void HConstant::PrintDataTo(StringStream* stream) {
|
1010
|
+
handle()->ShortPrint(stream);
|
1011
|
+
}
|
1012
|
+
|
1013
|
+
|
1014
|
+
bool HArrayLiteral::IsCopyOnWrite() const {
|
1015
|
+
return constant_elements()->map() == Heap::fixed_cow_array_map();
|
1016
|
+
}
|
1017
|
+
|
1018
|
+
|
1019
|
+
void HBinaryOperation::PrintDataTo(StringStream* stream) {
|
1020
|
+
left()->PrintNameTo(stream);
|
1021
|
+
stream->Add(" ");
|
1022
|
+
right()->PrintNameTo(stream);
|
1023
|
+
if (CheckFlag(kCanOverflow)) stream->Add(" !");
|
1024
|
+
if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?");
|
1025
|
+
}
|
1026
|
+
|
1027
|
+
|
1028
|
+
Range* HBitAnd::InferRange() {
|
1029
|
+
Range* a = left()->range();
|
1030
|
+
Range* b = right()->range();
|
1031
|
+
int32_t a_mask = 0xffffffff;
|
1032
|
+
int32_t b_mask = 0xffffffff;
|
1033
|
+
if (a != NULL) a_mask = a->Mask();
|
1034
|
+
if (b != NULL) b_mask = b->Mask();
|
1035
|
+
int32_t result_mask = a_mask & b_mask;
|
1036
|
+
if (result_mask >= 0) {
|
1037
|
+
return new Range(0, result_mask);
|
1038
|
+
} else {
|
1039
|
+
return HBinaryOperation::InferRange();
|
1040
|
+
}
|
1041
|
+
}
|
1042
|
+
|
1043
|
+
|
1044
|
+
Range* HBitOr::InferRange() {
|
1045
|
+
Range* a = left()->range();
|
1046
|
+
Range* b = right()->range();
|
1047
|
+
int32_t a_mask = 0xffffffff;
|
1048
|
+
int32_t b_mask = 0xffffffff;
|
1049
|
+
if (a != NULL) a_mask = a->Mask();
|
1050
|
+
if (b != NULL) b_mask = b->Mask();
|
1051
|
+
int32_t result_mask = a_mask | b_mask;
|
1052
|
+
if (result_mask >= 0) {
|
1053
|
+
return new Range(0, result_mask);
|
1054
|
+
} else {
|
1055
|
+
return HBinaryOperation::InferRange();
|
1056
|
+
}
|
1057
|
+
}
|
1058
|
+
|
1059
|
+
|
1060
|
+
Range* HSar::InferRange() {
|
1061
|
+
if (right()->IsConstant()) {
|
1062
|
+
HConstant* c = HConstant::cast(right());
|
1063
|
+
if (c->HasInteger32Value()) {
|
1064
|
+
int32_t val = c->Integer32Value();
|
1065
|
+
Range* result = NULL;
|
1066
|
+
Range* left_range = left()->range();
|
1067
|
+
if (left_range == NULL) {
|
1068
|
+
result = new Range();
|
1069
|
+
} else {
|
1070
|
+
result = left_range->Copy();
|
1071
|
+
}
|
1072
|
+
result->Sar(val);
|
1073
|
+
return result;
|
1074
|
+
}
|
1075
|
+
}
|
1076
|
+
|
1077
|
+
return HBinaryOperation::InferRange();
|
1078
|
+
}
|
1079
|
+
|
1080
|
+
|
1081
|
+
Range* HShl::InferRange() {
|
1082
|
+
if (right()->IsConstant()) {
|
1083
|
+
HConstant* c = HConstant::cast(right());
|
1084
|
+
if (c->HasInteger32Value()) {
|
1085
|
+
int32_t val = c->Integer32Value();
|
1086
|
+
Range* result = NULL;
|
1087
|
+
Range* left_range = left()->range();
|
1088
|
+
if (left_range == NULL) {
|
1089
|
+
result = new Range();
|
1090
|
+
} else {
|
1091
|
+
result = left_range->Copy();
|
1092
|
+
}
|
1093
|
+
result->Shl(val);
|
1094
|
+
return result;
|
1095
|
+
}
|
1096
|
+
}
|
1097
|
+
|
1098
|
+
return HBinaryOperation::InferRange();
|
1099
|
+
}
|
1100
|
+
|
1101
|
+
|
1102
|
+
|
1103
|
+
void HCompare::PrintDataTo(StringStream* stream) {
|
1104
|
+
stream->Add(Token::Name(token()));
|
1105
|
+
stream->Add(" ");
|
1106
|
+
HBinaryOperation::PrintDataTo(stream);
|
1107
|
+
}
|
1108
|
+
|
1109
|
+
|
1110
|
+
void HCompare::SetInputRepresentation(Representation r) {
|
1111
|
+
input_representation_ = r;
|
1112
|
+
if (r.IsTagged()) {
|
1113
|
+
SetAllSideEffects();
|
1114
|
+
ClearFlag(kUseGVN);
|
1115
|
+
} else {
|
1116
|
+
ClearAllSideEffects();
|
1117
|
+
SetFlag(kUseGVN);
|
1118
|
+
}
|
1119
|
+
}
|
1120
|
+
|
1121
|
+
|
1122
|
+
void HParameter::PrintDataTo(StringStream* stream) {
|
1123
|
+
stream->Add("%u", index());
|
1124
|
+
}
|
1125
|
+
|
1126
|
+
|
1127
|
+
void HLoadNamedField::PrintDataTo(StringStream* stream) {
|
1128
|
+
object()->PrintNameTo(stream);
|
1129
|
+
stream->Add(" @%d%s", offset(), is_in_object() ? "[in-object]" : "");
|
1130
|
+
}
|
1131
|
+
|
1132
|
+
|
1133
|
+
void HLoadKeyedFastElement::PrintDataTo(StringStream* stream) {
|
1134
|
+
object()->PrintNameTo(stream);
|
1135
|
+
stream->Add("[");
|
1136
|
+
key()->PrintNameTo(stream);
|
1137
|
+
stream->Add("]");
|
1138
|
+
}
|
1139
|
+
|
1140
|
+
|
1141
|
+
void HLoadKeyedGeneric::PrintDataTo(StringStream* stream) {
|
1142
|
+
object()->PrintNameTo(stream);
|
1143
|
+
stream->Add("[");
|
1144
|
+
key()->PrintNameTo(stream);
|
1145
|
+
stream->Add("]");
|
1146
|
+
}
|
1147
|
+
|
1148
|
+
|
1149
|
+
void HLoadPixelArrayElement::PrintDataTo(StringStream* stream) {
|
1150
|
+
external_pointer()->PrintNameTo(stream);
|
1151
|
+
stream->Add("[");
|
1152
|
+
key()->PrintNameTo(stream);
|
1153
|
+
stream->Add("]");
|
1154
|
+
}
|
1155
|
+
|
1156
|
+
|
1157
|
+
void HStoreNamedGeneric::PrintDataTo(StringStream* stream) {
|
1158
|
+
object()->PrintNameTo(stream);
|
1159
|
+
stream->Add(".");
|
1160
|
+
ASSERT(name()->IsString());
|
1161
|
+
stream->Add(*String::cast(*name())->ToCString());
|
1162
|
+
stream->Add(" = ");
|
1163
|
+
value()->PrintNameTo(stream);
|
1164
|
+
}
|
1165
|
+
|
1166
|
+
|
1167
|
+
void HStoreNamedField::PrintDataTo(StringStream* stream) {
|
1168
|
+
object()->PrintNameTo(stream);
|
1169
|
+
stream->Add(".");
|
1170
|
+
ASSERT(name()->IsString());
|
1171
|
+
stream->Add(*String::cast(*name())->ToCString());
|
1172
|
+
stream->Add(" = ");
|
1173
|
+
value()->PrintNameTo(stream);
|
1174
|
+
if (!transition().is_null()) {
|
1175
|
+
stream->Add(" (transition map %p)", *transition());
|
1176
|
+
}
|
1177
|
+
}
|
1178
|
+
|
1179
|
+
|
1180
|
+
void HStoreKeyedFastElement::PrintDataTo(StringStream* stream) {
|
1181
|
+
object()->PrintNameTo(stream);
|
1182
|
+
stream->Add("[");
|
1183
|
+
key()->PrintNameTo(stream);
|
1184
|
+
stream->Add("] = ");
|
1185
|
+
value()->PrintNameTo(stream);
|
1186
|
+
}
|
1187
|
+
|
1188
|
+
|
1189
|
+
void HStoreKeyedGeneric::PrintDataTo(StringStream* stream) {
|
1190
|
+
object()->PrintNameTo(stream);
|
1191
|
+
stream->Add("[");
|
1192
|
+
key()->PrintNameTo(stream);
|
1193
|
+
stream->Add("] = ");
|
1194
|
+
value()->PrintNameTo(stream);
|
1195
|
+
}
|
1196
|
+
|
1197
|
+
|
1198
|
+
void HStorePixelArrayElement::PrintDataTo(StringStream* stream) {
|
1199
|
+
external_pointer()->PrintNameTo(stream);
|
1200
|
+
stream->Add("[");
|
1201
|
+
key()->PrintNameTo(stream);
|
1202
|
+
stream->Add("] = ");
|
1203
|
+
value()->PrintNameTo(stream);
|
1204
|
+
}
|
1205
|
+
|
1206
|
+
|
1207
|
+
void HLoadGlobal::PrintDataTo(StringStream* stream) {
|
1208
|
+
stream->Add("[%p]", *cell());
|
1209
|
+
if (check_hole_value()) stream->Add(" (deleteable/read-only)");
|
1210
|
+
}
|
1211
|
+
|
1212
|
+
|
1213
|
+
void HStoreGlobal::PrintDataTo(StringStream* stream) {
|
1214
|
+
stream->Add("[%p] = ", *cell());
|
1215
|
+
value()->PrintNameTo(stream);
|
1216
|
+
}
|
1217
|
+
|
1218
|
+
|
1219
|
+
void HLoadContextSlot::PrintDataTo(StringStream* stream) {
|
1220
|
+
value()->PrintNameTo(stream);
|
1221
|
+
stream->Add("[%d]", slot_index());
|
1222
|
+
}
|
1223
|
+
|
1224
|
+
|
1225
|
+
void HStoreContextSlot::PrintDataTo(StringStream* stream) {
|
1226
|
+
context()->PrintNameTo(stream);
|
1227
|
+
stream->Add("[%d] = ", slot_index());
|
1228
|
+
value()->PrintNameTo(stream);
|
1229
|
+
}
|
1230
|
+
|
1231
|
+
|
1232
|
+
// Implementation of type inference and type conversions. Calculates
|
1233
|
+
// the inferred type of this instruction based on the input operands.
|
1234
|
+
|
1235
|
+
HType HValue::CalculateInferredType() {
|
1236
|
+
return type_;
|
1237
|
+
}
|
1238
|
+
|
1239
|
+
|
1240
|
+
HType HCheckMap::CalculateInferredType() {
|
1241
|
+
return value()->type();
|
1242
|
+
}
|
1243
|
+
|
1244
|
+
|
1245
|
+
HType HCheckFunction::CalculateInferredType() {
|
1246
|
+
return value()->type();
|
1247
|
+
}
|
1248
|
+
|
1249
|
+
|
1250
|
+
HType HCheckNonSmi::CalculateInferredType() {
|
1251
|
+
// TODO(kasperl): Is there any way to signal that this isn't a smi?
|
1252
|
+
return HType::Tagged();
|
1253
|
+
}
|
1254
|
+
|
1255
|
+
|
1256
|
+
HType HCheckSmi::CalculateInferredType() {
|
1257
|
+
return HType::Smi();
|
1258
|
+
}
|
1259
|
+
|
1260
|
+
|
1261
|
+
HType HPhi::CalculateInferredType() {
|
1262
|
+
HType result = HType::Uninitialized();
|
1263
|
+
for (int i = 0; i < OperandCount(); ++i) {
|
1264
|
+
HType current = OperandAt(i)->type();
|
1265
|
+
result = result.Combine(current);
|
1266
|
+
}
|
1267
|
+
return result;
|
1268
|
+
}
|
1269
|
+
|
1270
|
+
|
1271
|
+
HType HConstant::CalculateInferredType() {
|
1272
|
+
return constant_type_;
|
1273
|
+
}
|
1274
|
+
|
1275
|
+
|
1276
|
+
HType HCompare::CalculateInferredType() {
|
1277
|
+
return HType::Boolean();
|
1278
|
+
}
|
1279
|
+
|
1280
|
+
|
1281
|
+
HType HCompareJSObjectEq::CalculateInferredType() {
|
1282
|
+
return HType::Boolean();
|
1283
|
+
}
|
1284
|
+
|
1285
|
+
|
1286
|
+
HType HUnaryPredicate::CalculateInferredType() {
|
1287
|
+
return HType::Boolean();
|
1288
|
+
}
|
1289
|
+
|
1290
|
+
|
1291
|
+
HType HBitwiseBinaryOperation::CalculateInferredType() {
|
1292
|
+
return HType::TaggedNumber();
|
1293
|
+
}
|
1294
|
+
|
1295
|
+
|
1296
|
+
HType HArithmeticBinaryOperation::CalculateInferredType() {
|
1297
|
+
return HType::TaggedNumber();
|
1298
|
+
}
|
1299
|
+
|
1300
|
+
|
1301
|
+
HType HAdd::CalculateInferredType() {
|
1302
|
+
return HType::Tagged();
|
1303
|
+
}
|
1304
|
+
|
1305
|
+
|
1306
|
+
HType HBitAnd::CalculateInferredType() {
|
1307
|
+
return HType::TaggedNumber();
|
1308
|
+
}
|
1309
|
+
|
1310
|
+
|
1311
|
+
HType HBitXor::CalculateInferredType() {
|
1312
|
+
return HType::TaggedNumber();
|
1313
|
+
}
|
1314
|
+
|
1315
|
+
|
1316
|
+
HType HBitOr::CalculateInferredType() {
|
1317
|
+
return HType::TaggedNumber();
|
1318
|
+
}
|
1319
|
+
|
1320
|
+
|
1321
|
+
HType HBitNot::CalculateInferredType() {
|
1322
|
+
return HType::TaggedNumber();
|
1323
|
+
}
|
1324
|
+
|
1325
|
+
|
1326
|
+
HType HUnaryMathOperation::CalculateInferredType() {
|
1327
|
+
return HType::TaggedNumber();
|
1328
|
+
}
|
1329
|
+
|
1330
|
+
|
1331
|
+
HType HShl::CalculateInferredType() {
|
1332
|
+
return HType::TaggedNumber();
|
1333
|
+
}
|
1334
|
+
|
1335
|
+
|
1336
|
+
HType HShr::CalculateInferredType() {
|
1337
|
+
return HType::TaggedNumber();
|
1338
|
+
}
|
1339
|
+
|
1340
|
+
|
1341
|
+
HType HSar::CalculateInferredType() {
|
1342
|
+
return HType::TaggedNumber();
|
1343
|
+
}
|
1344
|
+
|
1345
|
+
|
1346
|
+
HValue* HUnaryMathOperation::EnsureAndPropagateNotMinusZero(
|
1347
|
+
BitVector* visited) {
|
1348
|
+
visited->Add(id());
|
1349
|
+
if (representation().IsInteger32() &&
|
1350
|
+
!value()->representation().IsInteger32()) {
|
1351
|
+
if (value()->range() == NULL || value()->range()->CanBeMinusZero()) {
|
1352
|
+
SetFlag(kBailoutOnMinusZero);
|
1353
|
+
}
|
1354
|
+
}
|
1355
|
+
if (RequiredInputRepresentation(0).IsInteger32() &&
|
1356
|
+
representation().IsInteger32()) {
|
1357
|
+
return value();
|
1358
|
+
}
|
1359
|
+
return NULL;
|
1360
|
+
}
|
1361
|
+
|
1362
|
+
|
1363
|
+
|
1364
|
+
HValue* HChange::EnsureAndPropagateNotMinusZero(BitVector* visited) {
|
1365
|
+
visited->Add(id());
|
1366
|
+
if (from().IsInteger32()) return NULL;
|
1367
|
+
if (CanTruncateToInt32()) return NULL;
|
1368
|
+
if (value()->range() == NULL || value()->range()->CanBeMinusZero()) {
|
1369
|
+
SetFlag(kBailoutOnMinusZero);
|
1370
|
+
}
|
1371
|
+
ASSERT(!from().IsInteger32() || !to().IsInteger32());
|
1372
|
+
return NULL;
|
1373
|
+
}
|
1374
|
+
|
1375
|
+
|
1376
|
+
HValue* HMod::EnsureAndPropagateNotMinusZero(BitVector* visited) {
|
1377
|
+
visited->Add(id());
|
1378
|
+
if (range() == NULL || range()->CanBeMinusZero()) {
|
1379
|
+
SetFlag(kBailoutOnMinusZero);
|
1380
|
+
return left();
|
1381
|
+
}
|
1382
|
+
return NULL;
|
1383
|
+
}
|
1384
|
+
|
1385
|
+
|
1386
|
+
HValue* HDiv::EnsureAndPropagateNotMinusZero(BitVector* visited) {
|
1387
|
+
visited->Add(id());
|
1388
|
+
if (range() == NULL || range()->CanBeMinusZero()) {
|
1389
|
+
SetFlag(kBailoutOnMinusZero);
|
1390
|
+
}
|
1391
|
+
return NULL;
|
1392
|
+
}
|
1393
|
+
|
1394
|
+
|
1395
|
+
HValue* HMul::EnsureAndPropagateNotMinusZero(BitVector* visited) {
|
1396
|
+
visited->Add(id());
|
1397
|
+
if (range() == NULL || range()->CanBeMinusZero()) {
|
1398
|
+
SetFlag(kBailoutOnMinusZero);
|
1399
|
+
}
|
1400
|
+
return NULL;
|
1401
|
+
}
|
1402
|
+
|
1403
|
+
|
1404
|
+
HValue* HSub::EnsureAndPropagateNotMinusZero(BitVector* visited) {
|
1405
|
+
visited->Add(id());
|
1406
|
+
// Propagate to the left argument. If the left argument cannot be -0, then
|
1407
|
+
// the result of the add operation cannot be either.
|
1408
|
+
if (range() == NULL || range()->CanBeMinusZero()) {
|
1409
|
+
return left();
|
1410
|
+
}
|
1411
|
+
return NULL;
|
1412
|
+
}
|
1413
|
+
|
1414
|
+
|
1415
|
+
HValue* HAdd::EnsureAndPropagateNotMinusZero(BitVector* visited) {
|
1416
|
+
visited->Add(id());
|
1417
|
+
// Propagate to the left argument. If the left argument cannot be -0, then
|
1418
|
+
// the result of the sub operation cannot be either.
|
1419
|
+
if (range() == NULL || range()->CanBeMinusZero()) {
|
1420
|
+
return left();
|
1421
|
+
}
|
1422
|
+
return NULL;
|
1423
|
+
}
|
1424
|
+
|
1425
|
+
|
1426
|
+
// Node-specific verification code is only included in debug mode.
|
1427
|
+
#ifdef DEBUG
|
1428
|
+
|
1429
|
+
void HPhi::Verify() {
|
1430
|
+
ASSERT(OperandCount() == block()->predecessors()->length());
|
1431
|
+
for (int i = 0; i < OperandCount(); ++i) {
|
1432
|
+
HValue* value = OperandAt(i);
|
1433
|
+
HBasicBlock* defining_block = value->block();
|
1434
|
+
HBasicBlock* predecessor_block = block()->predecessors()->at(i);
|
1435
|
+
ASSERT(defining_block == predecessor_block ||
|
1436
|
+
defining_block->Dominates(predecessor_block));
|
1437
|
+
}
|
1438
|
+
}
|
1439
|
+
|
1440
|
+
|
1441
|
+
void HSimulate::Verify() {
|
1442
|
+
HInstruction::Verify();
|
1443
|
+
ASSERT(HasAstId());
|
1444
|
+
}
|
1445
|
+
|
1446
|
+
|
1447
|
+
void HBoundsCheck::Verify() {
|
1448
|
+
HInstruction::Verify();
|
1449
|
+
ASSERT(HasNoUses());
|
1450
|
+
}
|
1451
|
+
|
1452
|
+
|
1453
|
+
void HCheckSmi::Verify() {
|
1454
|
+
HInstruction::Verify();
|
1455
|
+
ASSERT(HasNoUses());
|
1456
|
+
}
|
1457
|
+
|
1458
|
+
|
1459
|
+
void HCheckNonSmi::Verify() {
|
1460
|
+
HInstruction::Verify();
|
1461
|
+
ASSERT(HasNoUses());
|
1462
|
+
}
|
1463
|
+
|
1464
|
+
|
1465
|
+
void HCheckInstanceType::Verify() {
|
1466
|
+
HInstruction::Verify();
|
1467
|
+
ASSERT(HasNoUses());
|
1468
|
+
}
|
1469
|
+
|
1470
|
+
|
1471
|
+
void HCheckMap::Verify() {
|
1472
|
+
HInstruction::Verify();
|
1473
|
+
ASSERT(HasNoUses());
|
1474
|
+
}
|
1475
|
+
|
1476
|
+
|
1477
|
+
void HCheckFunction::Verify() {
|
1478
|
+
HInstruction::Verify();
|
1479
|
+
ASSERT(HasNoUses());
|
1480
|
+
}
|
1481
|
+
|
1482
|
+
|
1483
|
+
void HCheckPrototypeMaps::Verify() {
|
1484
|
+
HInstruction::Verify();
|
1485
|
+
ASSERT(HasNoUses());
|
1486
|
+
}
|
1487
|
+
|
1488
|
+
#endif
|
1489
|
+
|
1490
|
+
} } // namespace v8::internal
|