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
@@ -1,1459 +0,0 @@
|
|
1
|
-
// Copyright 2010 the V8 project authors. All rights reserved.
|
2
|
-
// Redistribution and use in source and binary forms, with or without
|
3
|
-
// modification, are permitted provided that the following conditions are
|
4
|
-
// met:
|
5
|
-
//
|
6
|
-
// * Redistributions of source code must retain the above copyright
|
7
|
-
// notice, this list of conditions and the following disclaimer.
|
8
|
-
// * Redistributions in binary form must reproduce the above
|
9
|
-
// copyright notice, this list of conditions and the following
|
10
|
-
// disclaimer in the documentation and/or other materials provided
|
11
|
-
// with the distribution.
|
12
|
-
// * Neither the name of Google Inc. nor the names of its
|
13
|
-
// contributors may be used to endorse or promote products derived
|
14
|
-
// from this software without specific prior written permission.
|
15
|
-
//
|
16
|
-
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
-
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
-
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
-
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
-
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
-
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
-
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
-
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
-
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
-
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
-
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
-
|
28
|
-
// A Disassembler object is used to disassemble a block of code instruction by
|
29
|
-
// instruction. The default implementation of the NameConverter object can be
|
30
|
-
// overriden to modify register names or to do symbol lookup on addresses.
|
31
|
-
//
|
32
|
-
// The example below will disassemble a block of code and print it to stdout.
|
33
|
-
//
|
34
|
-
// NameConverter converter;
|
35
|
-
// Disassembler d(converter);
|
36
|
-
// for (byte* pc = begin; pc < end;) {
|
37
|
-
// v8::internal::EmbeddedVector<char, 256> buffer;
|
38
|
-
// byte* prev_pc = pc;
|
39
|
-
// pc += d.InstructionDecode(buffer, pc);
|
40
|
-
// printf("%p %08x %s\n",
|
41
|
-
// prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer);
|
42
|
-
// }
|
43
|
-
//
|
44
|
-
// The Disassembler class also has a convenience method to disassemble a block
|
45
|
-
// of code into a FILE*, meaning that the above functionality could also be
|
46
|
-
// achieved by just calling Disassembler::Disassemble(stdout, begin, end);
|
47
|
-
|
48
|
-
|
49
|
-
#include <assert.h>
|
50
|
-
#include <stdio.h>
|
51
|
-
#include <stdarg.h>
|
52
|
-
#include <string.h>
|
53
|
-
#ifndef WIN32
|
54
|
-
#include <stdint.h>
|
55
|
-
#endif
|
56
|
-
|
57
|
-
#include "v8.h"
|
58
|
-
|
59
|
-
#if defined(V8_TARGET_ARCH_ARM)
|
60
|
-
|
61
|
-
#include "constants-arm.h"
|
62
|
-
#include "disasm.h"
|
63
|
-
#include "macro-assembler.h"
|
64
|
-
#include "platform.h"
|
65
|
-
|
66
|
-
|
67
|
-
namespace assembler {
|
68
|
-
namespace arm {
|
69
|
-
|
70
|
-
namespace v8i = v8::internal;
|
71
|
-
|
72
|
-
|
73
|
-
//------------------------------------------------------------------------------
|
74
|
-
|
75
|
-
// Decoder decodes and disassembles instructions into an output buffer.
|
76
|
-
// It uses the converter to convert register names and call destinations into
|
77
|
-
// more informative description.
|
78
|
-
class Decoder {
|
79
|
-
public:
|
80
|
-
Decoder(const disasm::NameConverter& converter,
|
81
|
-
v8::internal::Vector<char> out_buffer)
|
82
|
-
: converter_(converter),
|
83
|
-
out_buffer_(out_buffer),
|
84
|
-
out_buffer_pos_(0) {
|
85
|
-
out_buffer_[out_buffer_pos_] = '\0';
|
86
|
-
}
|
87
|
-
|
88
|
-
~Decoder() {}
|
89
|
-
|
90
|
-
// Writes one disassembled instruction into 'buffer' (0-terminated).
|
91
|
-
// Returns the length of the disassembled machine instruction in bytes.
|
92
|
-
int InstructionDecode(byte* instruction);
|
93
|
-
|
94
|
-
private:
|
95
|
-
// Bottleneck functions to print into the out_buffer.
|
96
|
-
void PrintChar(const char ch);
|
97
|
-
void Print(const char* str);
|
98
|
-
|
99
|
-
// Printing of common values.
|
100
|
-
void PrintRegister(int reg);
|
101
|
-
void PrintSRegister(int reg);
|
102
|
-
void PrintDRegister(int reg);
|
103
|
-
int FormatVFPRegister(Instr* instr, const char* format);
|
104
|
-
void PrintMovwMovt(Instr* instr);
|
105
|
-
int FormatVFPinstruction(Instr* instr, const char* format);
|
106
|
-
void PrintCondition(Instr* instr);
|
107
|
-
void PrintShiftRm(Instr* instr);
|
108
|
-
void PrintShiftImm(Instr* instr);
|
109
|
-
void PrintShiftSat(Instr* instr);
|
110
|
-
void PrintPU(Instr* instr);
|
111
|
-
void PrintSoftwareInterrupt(SoftwareInterruptCodes swi);
|
112
|
-
|
113
|
-
// Handle formatting of instructions and their options.
|
114
|
-
int FormatRegister(Instr* instr, const char* option);
|
115
|
-
int FormatOption(Instr* instr, const char* option);
|
116
|
-
void Format(Instr* instr, const char* format);
|
117
|
-
void Unknown(Instr* instr);
|
118
|
-
|
119
|
-
// Each of these functions decodes one particular instruction type, a 3-bit
|
120
|
-
// field in the instruction encoding.
|
121
|
-
// Types 0 and 1 are combined as they are largely the same except for the way
|
122
|
-
// they interpret the shifter operand.
|
123
|
-
void DecodeType01(Instr* instr);
|
124
|
-
void DecodeType2(Instr* instr);
|
125
|
-
void DecodeType3(Instr* instr);
|
126
|
-
void DecodeType4(Instr* instr);
|
127
|
-
void DecodeType5(Instr* instr);
|
128
|
-
void DecodeType6(Instr* instr);
|
129
|
-
void DecodeType7(Instr* instr);
|
130
|
-
void DecodeUnconditional(Instr* instr);
|
131
|
-
// For VFP support.
|
132
|
-
void DecodeTypeVFP(Instr* instr);
|
133
|
-
void DecodeType6CoprocessorIns(Instr* instr);
|
134
|
-
|
135
|
-
void DecodeVMOVBetweenCoreAndSinglePrecisionRegisters(Instr* instr);
|
136
|
-
void DecodeVCMP(Instr* instr);
|
137
|
-
void DecodeVCVTBetweenDoubleAndSingle(Instr* instr);
|
138
|
-
void DecodeVCVTBetweenFloatingPointAndInteger(Instr* instr);
|
139
|
-
|
140
|
-
const disasm::NameConverter& converter_;
|
141
|
-
v8::internal::Vector<char> out_buffer_;
|
142
|
-
int out_buffer_pos_;
|
143
|
-
|
144
|
-
DISALLOW_COPY_AND_ASSIGN(Decoder);
|
145
|
-
};
|
146
|
-
|
147
|
-
|
148
|
-
// Support for assertions in the Decoder formatting functions.
|
149
|
-
#define STRING_STARTS_WITH(string, compare_string) \
|
150
|
-
(strncmp(string, compare_string, strlen(compare_string)) == 0)
|
151
|
-
|
152
|
-
|
153
|
-
// Append the ch to the output buffer.
|
154
|
-
void Decoder::PrintChar(const char ch) {
|
155
|
-
out_buffer_[out_buffer_pos_++] = ch;
|
156
|
-
}
|
157
|
-
|
158
|
-
|
159
|
-
// Append the str to the output buffer.
|
160
|
-
void Decoder::Print(const char* str) {
|
161
|
-
char cur = *str++;
|
162
|
-
while (cur != '\0' && (out_buffer_pos_ < (out_buffer_.length() - 1))) {
|
163
|
-
PrintChar(cur);
|
164
|
-
cur = *str++;
|
165
|
-
}
|
166
|
-
out_buffer_[out_buffer_pos_] = 0;
|
167
|
-
}
|
168
|
-
|
169
|
-
|
170
|
-
// These condition names are defined in a way to match the native disassembler
|
171
|
-
// formatting. See for example the command "objdump -d <binary file>".
|
172
|
-
static const char* cond_names[max_condition] = {
|
173
|
-
"eq", "ne", "cs" , "cc" , "mi" , "pl" , "vs" , "vc" ,
|
174
|
-
"hi", "ls", "ge", "lt", "gt", "le", "", "invalid",
|
175
|
-
};
|
176
|
-
|
177
|
-
|
178
|
-
// Print the condition guarding the instruction.
|
179
|
-
void Decoder::PrintCondition(Instr* instr) {
|
180
|
-
Print(cond_names[instr->ConditionField()]);
|
181
|
-
}
|
182
|
-
|
183
|
-
|
184
|
-
// Print the register name according to the active name converter.
|
185
|
-
void Decoder::PrintRegister(int reg) {
|
186
|
-
Print(converter_.NameOfCPURegister(reg));
|
187
|
-
}
|
188
|
-
|
189
|
-
// Print the VFP S register name according to the active name converter.
|
190
|
-
void Decoder::PrintSRegister(int reg) {
|
191
|
-
Print(assembler::arm::VFPRegisters::Name(reg, false));
|
192
|
-
}
|
193
|
-
|
194
|
-
// Print the VFP D register name according to the active name converter.
|
195
|
-
void Decoder::PrintDRegister(int reg) {
|
196
|
-
Print(assembler::arm::VFPRegisters::Name(reg, true));
|
197
|
-
}
|
198
|
-
|
199
|
-
|
200
|
-
// These shift names are defined in a way to match the native disassembler
|
201
|
-
// formatting. See for example the command "objdump -d <binary file>".
|
202
|
-
static const char* shift_names[max_shift] = {
|
203
|
-
"lsl", "lsr", "asr", "ror"
|
204
|
-
};
|
205
|
-
|
206
|
-
|
207
|
-
// Print the register shift operands for the instruction. Generally used for
|
208
|
-
// data processing instructions.
|
209
|
-
void Decoder::PrintShiftRm(Instr* instr) {
|
210
|
-
Shift shift = instr->ShiftField();
|
211
|
-
int shift_amount = instr->ShiftAmountField();
|
212
|
-
int rm = instr->RmField();
|
213
|
-
|
214
|
-
PrintRegister(rm);
|
215
|
-
|
216
|
-
if ((instr->RegShiftField() == 0) && (shift == LSL) && (shift_amount == 0)) {
|
217
|
-
// Special case for using rm only.
|
218
|
-
return;
|
219
|
-
}
|
220
|
-
if (instr->RegShiftField() == 0) {
|
221
|
-
// by immediate
|
222
|
-
if ((shift == ROR) && (shift_amount == 0)) {
|
223
|
-
Print(", RRX");
|
224
|
-
return;
|
225
|
-
} else if (((shift == LSR) || (shift == ASR)) && (shift_amount == 0)) {
|
226
|
-
shift_amount = 32;
|
227
|
-
}
|
228
|
-
out_buffer_pos_ += v8i::OS::SNPrintF(out_buffer_ + out_buffer_pos_,
|
229
|
-
", %s #%d",
|
230
|
-
shift_names[shift], shift_amount);
|
231
|
-
} else {
|
232
|
-
// by register
|
233
|
-
int rs = instr->RsField();
|
234
|
-
out_buffer_pos_ += v8i::OS::SNPrintF(out_buffer_ + out_buffer_pos_,
|
235
|
-
", %s ", shift_names[shift]);
|
236
|
-
PrintRegister(rs);
|
237
|
-
}
|
238
|
-
}
|
239
|
-
|
240
|
-
|
241
|
-
// Print the immediate operand for the instruction. Generally used for data
|
242
|
-
// processing instructions.
|
243
|
-
void Decoder::PrintShiftImm(Instr* instr) {
|
244
|
-
int rotate = instr->RotateField() * 2;
|
245
|
-
int immed8 = instr->Immed8Field();
|
246
|
-
int imm = (immed8 >> rotate) | (immed8 << (32 - rotate));
|
247
|
-
out_buffer_pos_ += v8i::OS::SNPrintF(out_buffer_ + out_buffer_pos_,
|
248
|
-
"#%d", imm);
|
249
|
-
}
|
250
|
-
|
251
|
-
|
252
|
-
// Print the optional shift and immediate used by saturating instructions.
|
253
|
-
void Decoder::PrintShiftSat(Instr* instr) {
|
254
|
-
int shift = instr->Bits(11, 7);
|
255
|
-
if (shift > 0) {
|
256
|
-
out_buffer_pos_ += v8i::OS::SNPrintF(out_buffer_ + out_buffer_pos_,
|
257
|
-
", %s #%d",
|
258
|
-
shift_names[instr->Bit(6) * 2],
|
259
|
-
instr->Bits(11, 7));
|
260
|
-
}
|
261
|
-
}
|
262
|
-
|
263
|
-
|
264
|
-
// Print PU formatting to reduce complexity of FormatOption.
|
265
|
-
void Decoder::PrintPU(Instr* instr) {
|
266
|
-
switch (instr->PUField()) {
|
267
|
-
case 0: {
|
268
|
-
Print("da");
|
269
|
-
break;
|
270
|
-
}
|
271
|
-
case 1: {
|
272
|
-
Print("ia");
|
273
|
-
break;
|
274
|
-
}
|
275
|
-
case 2: {
|
276
|
-
Print("db");
|
277
|
-
break;
|
278
|
-
}
|
279
|
-
case 3: {
|
280
|
-
Print("ib");
|
281
|
-
break;
|
282
|
-
}
|
283
|
-
default: {
|
284
|
-
UNREACHABLE();
|
285
|
-
break;
|
286
|
-
}
|
287
|
-
}
|
288
|
-
}
|
289
|
-
|
290
|
-
|
291
|
-
// Print SoftwareInterrupt codes. Factoring this out reduces the complexity of
|
292
|
-
// the FormatOption method.
|
293
|
-
void Decoder::PrintSoftwareInterrupt(SoftwareInterruptCodes swi) {
|
294
|
-
switch (swi) {
|
295
|
-
case call_rt_redirected:
|
296
|
-
Print("call_rt_redirected");
|
297
|
-
return;
|
298
|
-
case break_point:
|
299
|
-
Print("break_point");
|
300
|
-
return;
|
301
|
-
default:
|
302
|
-
out_buffer_pos_ += v8i::OS::SNPrintF(out_buffer_ + out_buffer_pos_,
|
303
|
-
"%d",
|
304
|
-
swi);
|
305
|
-
return;
|
306
|
-
}
|
307
|
-
}
|
308
|
-
|
309
|
-
|
310
|
-
// Handle all register based formatting in this function to reduce the
|
311
|
-
// complexity of FormatOption.
|
312
|
-
int Decoder::FormatRegister(Instr* instr, const char* format) {
|
313
|
-
ASSERT(format[0] == 'r');
|
314
|
-
if (format[1] == 'n') { // 'rn: Rn register
|
315
|
-
int reg = instr->RnField();
|
316
|
-
PrintRegister(reg);
|
317
|
-
return 2;
|
318
|
-
} else if (format[1] == 'd') { // 'rd: Rd register
|
319
|
-
int reg = instr->RdField();
|
320
|
-
PrintRegister(reg);
|
321
|
-
return 2;
|
322
|
-
} else if (format[1] == 's') { // 'rs: Rs register
|
323
|
-
int reg = instr->RsField();
|
324
|
-
PrintRegister(reg);
|
325
|
-
return 2;
|
326
|
-
} else if (format[1] == 'm') { // 'rm: Rm register
|
327
|
-
int reg = instr->RmField();
|
328
|
-
PrintRegister(reg);
|
329
|
-
return 2;
|
330
|
-
} else if (format[1] == 't') { // 'rt: Rt register
|
331
|
-
int reg = instr->RtField();
|
332
|
-
PrintRegister(reg);
|
333
|
-
return 2;
|
334
|
-
} else if (format[1] == 'l') {
|
335
|
-
// 'rlist: register list for load and store multiple instructions
|
336
|
-
ASSERT(STRING_STARTS_WITH(format, "rlist"));
|
337
|
-
int rlist = instr->RlistField();
|
338
|
-
int reg = 0;
|
339
|
-
Print("{");
|
340
|
-
// Print register list in ascending order, by scanning the bit mask.
|
341
|
-
while (rlist != 0) {
|
342
|
-
if ((rlist & 1) != 0) {
|
343
|
-
PrintRegister(reg);
|
344
|
-
if ((rlist >> 1) != 0) {
|
345
|
-
Print(", ");
|
346
|
-
}
|
347
|
-
}
|
348
|
-
reg++;
|
349
|
-
rlist >>= 1;
|
350
|
-
}
|
351
|
-
Print("}");
|
352
|
-
return 5;
|
353
|
-
}
|
354
|
-
UNREACHABLE();
|
355
|
-
return -1;
|
356
|
-
}
|
357
|
-
|
358
|
-
|
359
|
-
// Handle all VFP register based formatting in this function to reduce the
|
360
|
-
// complexity of FormatOption.
|
361
|
-
int Decoder::FormatVFPRegister(Instr* instr, const char* format) {
|
362
|
-
ASSERT((format[0] == 'S') || (format[0] == 'D'));
|
363
|
-
|
364
|
-
if (format[1] == 'n') {
|
365
|
-
int reg = instr->VnField();
|
366
|
-
if (format[0] == 'S') PrintSRegister(((reg << 1) | instr->NField()));
|
367
|
-
if (format[0] == 'D') PrintDRegister(reg);
|
368
|
-
return 2;
|
369
|
-
} else if (format[1] == 'm') {
|
370
|
-
int reg = instr->VmField();
|
371
|
-
if (format[0] == 'S') PrintSRegister(((reg << 1) | instr->MField()));
|
372
|
-
if (format[0] == 'D') PrintDRegister(reg);
|
373
|
-
return 2;
|
374
|
-
} else if (format[1] == 'd') {
|
375
|
-
int reg = instr->VdField();
|
376
|
-
if (format[0] == 'S') PrintSRegister(((reg << 1) | instr->DField()));
|
377
|
-
if (format[0] == 'D') PrintDRegister(reg);
|
378
|
-
return 2;
|
379
|
-
}
|
380
|
-
|
381
|
-
UNREACHABLE();
|
382
|
-
return -1;
|
383
|
-
}
|
384
|
-
|
385
|
-
|
386
|
-
int Decoder::FormatVFPinstruction(Instr* instr, const char* format) {
|
387
|
-
Print(format);
|
388
|
-
return 0;
|
389
|
-
}
|
390
|
-
|
391
|
-
|
392
|
-
// Print the movw or movt instruction.
|
393
|
-
void Decoder::PrintMovwMovt(Instr* instr) {
|
394
|
-
int imm = instr->ImmedMovwMovtField();
|
395
|
-
int rd = instr->RdField();
|
396
|
-
PrintRegister(rd);
|
397
|
-
out_buffer_pos_ += v8i::OS::SNPrintF(out_buffer_ + out_buffer_pos_,
|
398
|
-
", #%d", imm);
|
399
|
-
}
|
400
|
-
|
401
|
-
|
402
|
-
// FormatOption takes a formatting string and interprets it based on
|
403
|
-
// the current instructions. The format string points to the first
|
404
|
-
// character of the option string (the option escape has already been
|
405
|
-
// consumed by the caller.) FormatOption returns the number of
|
406
|
-
// characters that were consumed from the formatting string.
|
407
|
-
int Decoder::FormatOption(Instr* instr, const char* format) {
|
408
|
-
switch (format[0]) {
|
409
|
-
case 'a': { // 'a: accumulate multiplies
|
410
|
-
if (instr->Bit(21) == 0) {
|
411
|
-
Print("ul");
|
412
|
-
} else {
|
413
|
-
Print("la");
|
414
|
-
}
|
415
|
-
return 1;
|
416
|
-
}
|
417
|
-
case 'b': { // 'b: byte loads or stores
|
418
|
-
if (instr->HasB()) {
|
419
|
-
Print("b");
|
420
|
-
}
|
421
|
-
return 1;
|
422
|
-
}
|
423
|
-
case 'c': { // 'cond: conditional execution
|
424
|
-
ASSERT(STRING_STARTS_WITH(format, "cond"));
|
425
|
-
PrintCondition(instr);
|
426
|
-
return 4;
|
427
|
-
}
|
428
|
-
case 'd': { // 'd: vmov double immediate.
|
429
|
-
double d = instr->DoubleImmedVmov();
|
430
|
-
out_buffer_pos_ += v8i::OS::SNPrintF(out_buffer_ + out_buffer_pos_,
|
431
|
-
"#%g", d);
|
432
|
-
return 1;
|
433
|
-
}
|
434
|
-
case 'f': { // 'f: bitfield instructions - v7 and above.
|
435
|
-
uint32_t lsbit = instr->Bits(11, 7);
|
436
|
-
uint32_t width = instr->Bits(20, 16) + 1;
|
437
|
-
if (instr->Bit(21) == 0) {
|
438
|
-
// BFC/BFI:
|
439
|
-
// Bits 20-16 represent most-significant bit. Covert to width.
|
440
|
-
width -= lsbit;
|
441
|
-
ASSERT(width > 0);
|
442
|
-
}
|
443
|
-
ASSERT((width + lsbit) <= 32);
|
444
|
-
out_buffer_pos_ += v8i::OS::SNPrintF(out_buffer_ + out_buffer_pos_,
|
445
|
-
"#%d, #%d", lsbit, width);
|
446
|
-
return 1;
|
447
|
-
}
|
448
|
-
case 'h': { // 'h: halfword operation for extra loads and stores
|
449
|
-
if (instr->HasH()) {
|
450
|
-
Print("h");
|
451
|
-
} else {
|
452
|
-
Print("b");
|
453
|
-
}
|
454
|
-
return 1;
|
455
|
-
}
|
456
|
-
case 'i': { // 'i: immediate value from adjacent bits.
|
457
|
-
// Expects tokens in the form imm%02d@%02d, ie. imm05@07, imm10@16
|
458
|
-
int width = (format[3] - '0') * 10 + (format[4] - '0');
|
459
|
-
int lsb = (format[6] - '0') * 10 + (format[7] - '0');
|
460
|
-
|
461
|
-
ASSERT((width >= 1) && (width <= 32));
|
462
|
-
ASSERT((lsb >= 0) && (lsb <= 31));
|
463
|
-
ASSERT((width + lsb) <= 32);
|
464
|
-
|
465
|
-
out_buffer_pos_ += v8i::OS::SNPrintF(out_buffer_ + out_buffer_pos_,
|
466
|
-
"#%d",
|
467
|
-
instr->Bits(width + lsb - 1, lsb));
|
468
|
-
return 8;
|
469
|
-
}
|
470
|
-
case 'l': { // 'l: branch and link
|
471
|
-
if (instr->HasLink()) {
|
472
|
-
Print("l");
|
473
|
-
}
|
474
|
-
return 1;
|
475
|
-
}
|
476
|
-
case 'm': {
|
477
|
-
if (format[1] == 'w') {
|
478
|
-
// 'mw: movt/movw instructions.
|
479
|
-
PrintMovwMovt(instr);
|
480
|
-
return 2;
|
481
|
-
}
|
482
|
-
if (format[1] == 'e') { // 'memop: load/store instructions.
|
483
|
-
ASSERT(STRING_STARTS_WITH(format, "memop"));
|
484
|
-
if (instr->HasL()) {
|
485
|
-
Print("ldr");
|
486
|
-
} else if ((instr->Bits(27, 25) == 0) && (instr->Bit(20) == 0)) {
|
487
|
-
if (instr->Bits(7, 4) == 0xf) {
|
488
|
-
Print("strd");
|
489
|
-
} else {
|
490
|
-
Print("ldrd");
|
491
|
-
}
|
492
|
-
} else {
|
493
|
-
Print("str");
|
494
|
-
}
|
495
|
-
return 5;
|
496
|
-
}
|
497
|
-
// 'msg: for simulator break instructions
|
498
|
-
ASSERT(STRING_STARTS_WITH(format, "msg"));
|
499
|
-
byte* str =
|
500
|
-
reinterpret_cast<byte*>(instr->InstructionBits() & 0x0fffffff);
|
501
|
-
out_buffer_pos_ += v8i::OS::SNPrintF(out_buffer_ + out_buffer_pos_,
|
502
|
-
"%s", converter_.NameInCode(str));
|
503
|
-
return 3;
|
504
|
-
}
|
505
|
-
case 'o': {
|
506
|
-
if ((format[3] == '1') && (format[4] == '2')) {
|
507
|
-
// 'off12: 12-bit offset for load and store instructions
|
508
|
-
ASSERT(STRING_STARTS_WITH(format, "off12"));
|
509
|
-
out_buffer_pos_ += v8i::OS::SNPrintF(out_buffer_ + out_buffer_pos_,
|
510
|
-
"%d", instr->Offset12Field());
|
511
|
-
return 5;
|
512
|
-
} else if (format[3] == '0') {
|
513
|
-
// 'off0to3and8to19 16-bit immediate encoded in bits 19-8 and 3-0.
|
514
|
-
ASSERT(STRING_STARTS_WITH(format, "off0to3and8to19"));
|
515
|
-
out_buffer_pos_ += v8i::OS::SNPrintF(out_buffer_ + out_buffer_pos_,
|
516
|
-
"%d",
|
517
|
-
(instr->Bits(19, 8) << 4) +
|
518
|
-
instr->Bits(3, 0));
|
519
|
-
return 15;
|
520
|
-
}
|
521
|
-
// 'off8: 8-bit offset for extra load and store instructions
|
522
|
-
ASSERT(STRING_STARTS_WITH(format, "off8"));
|
523
|
-
int offs8 = (instr->ImmedHField() << 4) | instr->ImmedLField();
|
524
|
-
out_buffer_pos_ += v8i::OS::SNPrintF(out_buffer_ + out_buffer_pos_,
|
525
|
-
"%d", offs8);
|
526
|
-
return 4;
|
527
|
-
}
|
528
|
-
case 'p': { // 'pu: P and U bits for load and store instructions
|
529
|
-
ASSERT(STRING_STARTS_WITH(format, "pu"));
|
530
|
-
PrintPU(instr);
|
531
|
-
return 2;
|
532
|
-
}
|
533
|
-
case 'r': {
|
534
|
-
return FormatRegister(instr, format);
|
535
|
-
}
|
536
|
-
case 's': {
|
537
|
-
if (format[1] == 'h') { // 'shift_op or 'shift_rm or 'shift_sat.
|
538
|
-
if (format[6] == 'o') { // 'shift_op
|
539
|
-
ASSERT(STRING_STARTS_WITH(format, "shift_op"));
|
540
|
-
if (instr->TypeField() == 0) {
|
541
|
-
PrintShiftRm(instr);
|
542
|
-
} else {
|
543
|
-
ASSERT(instr->TypeField() == 1);
|
544
|
-
PrintShiftImm(instr);
|
545
|
-
}
|
546
|
-
return 8;
|
547
|
-
} else if (format[6] == 's') { // 'shift_sat.
|
548
|
-
ASSERT(STRING_STARTS_WITH(format, "shift_sat"));
|
549
|
-
PrintShiftSat(instr);
|
550
|
-
return 9;
|
551
|
-
} else { // 'shift_rm
|
552
|
-
ASSERT(STRING_STARTS_WITH(format, "shift_rm"));
|
553
|
-
PrintShiftRm(instr);
|
554
|
-
return 8;
|
555
|
-
}
|
556
|
-
} else if (format[1] == 'w') { // 'swi
|
557
|
-
ASSERT(STRING_STARTS_WITH(format, "swi"));
|
558
|
-
PrintSoftwareInterrupt(instr->SwiField());
|
559
|
-
return 3;
|
560
|
-
} else if (format[1] == 'i') { // 'sign: signed extra loads and stores
|
561
|
-
ASSERT(STRING_STARTS_WITH(format, "sign"));
|
562
|
-
if (instr->HasSign()) {
|
563
|
-
Print("s");
|
564
|
-
}
|
565
|
-
return 4;
|
566
|
-
}
|
567
|
-
// 's: S field of data processing instructions
|
568
|
-
if (instr->HasS()) {
|
569
|
-
Print("s");
|
570
|
-
}
|
571
|
-
return 1;
|
572
|
-
}
|
573
|
-
case 't': { // 'target: target of branch instructions
|
574
|
-
ASSERT(STRING_STARTS_WITH(format, "target"));
|
575
|
-
int off = (instr->SImmed24Field() << 2) + 8;
|
576
|
-
out_buffer_pos_ += v8i::OS::SNPrintF(
|
577
|
-
out_buffer_ + out_buffer_pos_,
|
578
|
-
"%+d -> %s",
|
579
|
-
off,
|
580
|
-
converter_.NameOfAddress(reinterpret_cast<byte*>(instr) + off));
|
581
|
-
return 6;
|
582
|
-
}
|
583
|
-
case 'u': { // 'u: signed or unsigned multiplies
|
584
|
-
// The manual gets the meaning of bit 22 backwards in the multiply
|
585
|
-
// instruction overview on page A3.16.2. The instructions that
|
586
|
-
// exist in u and s variants are the following:
|
587
|
-
// smull A4.1.87
|
588
|
-
// umull A4.1.129
|
589
|
-
// umlal A4.1.128
|
590
|
-
// smlal A4.1.76
|
591
|
-
// For these 0 means u and 1 means s. As can be seen on their individual
|
592
|
-
// pages. The other 18 mul instructions have the bit set or unset in
|
593
|
-
// arbitrary ways that are unrelated to the signedness of the instruction.
|
594
|
-
// None of these 18 instructions exist in both a 'u' and an 's' variant.
|
595
|
-
|
596
|
-
if (instr->Bit(22) == 0) {
|
597
|
-
Print("u");
|
598
|
-
} else {
|
599
|
-
Print("s");
|
600
|
-
}
|
601
|
-
return 1;
|
602
|
-
}
|
603
|
-
case 'v': {
|
604
|
-
return FormatVFPinstruction(instr, format);
|
605
|
-
}
|
606
|
-
case 'S':
|
607
|
-
case 'D': {
|
608
|
-
return FormatVFPRegister(instr, format);
|
609
|
-
}
|
610
|
-
case 'w': { // 'w: W field of load and store instructions
|
611
|
-
if (instr->HasW()) {
|
612
|
-
Print("!");
|
613
|
-
}
|
614
|
-
return 1;
|
615
|
-
}
|
616
|
-
default: {
|
617
|
-
UNREACHABLE();
|
618
|
-
break;
|
619
|
-
}
|
620
|
-
}
|
621
|
-
UNREACHABLE();
|
622
|
-
return -1;
|
623
|
-
}
|
624
|
-
|
625
|
-
|
626
|
-
// Format takes a formatting string for a whole instruction and prints it into
|
627
|
-
// the output buffer. All escaped options are handed to FormatOption to be
|
628
|
-
// parsed further.
|
629
|
-
void Decoder::Format(Instr* instr, const char* format) {
|
630
|
-
char cur = *format++;
|
631
|
-
while ((cur != 0) && (out_buffer_pos_ < (out_buffer_.length() - 1))) {
|
632
|
-
if (cur == '\'') { // Single quote is used as the formatting escape.
|
633
|
-
format += FormatOption(instr, format);
|
634
|
-
} else {
|
635
|
-
out_buffer_[out_buffer_pos_++] = cur;
|
636
|
-
}
|
637
|
-
cur = *format++;
|
638
|
-
}
|
639
|
-
out_buffer_[out_buffer_pos_] = '\0';
|
640
|
-
}
|
641
|
-
|
642
|
-
|
643
|
-
// For currently unimplemented decodings the disassembler calls Unknown(instr)
|
644
|
-
// which will just print "unknown" of the instruction bits.
|
645
|
-
void Decoder::Unknown(Instr* instr) {
|
646
|
-
Format(instr, "unknown");
|
647
|
-
}
|
648
|
-
|
649
|
-
|
650
|
-
void Decoder::DecodeType01(Instr* instr) {
|
651
|
-
int type = instr->TypeField();
|
652
|
-
if ((type == 0) && instr->IsSpecialType0()) {
|
653
|
-
// multiply instruction or extra loads and stores
|
654
|
-
if (instr->Bits(7, 4) == 9) {
|
655
|
-
if (instr->Bit(24) == 0) {
|
656
|
-
// multiply instructions
|
657
|
-
if (instr->Bit(23) == 0) {
|
658
|
-
if (instr->Bit(21) == 0) {
|
659
|
-
// The MUL instruction description (A 4.1.33) refers to Rd as being
|
660
|
-
// the destination for the operation, but it confusingly uses the
|
661
|
-
// Rn field to encode it.
|
662
|
-
Format(instr, "mul'cond's 'rn, 'rm, 'rs");
|
663
|
-
} else {
|
664
|
-
// The MLA instruction description (A 4.1.28) refers to the order
|
665
|
-
// of registers as "Rd, Rm, Rs, Rn". But confusingly it uses the
|
666
|
-
// Rn field to encode the Rd register and the Rd field to encode
|
667
|
-
// the Rn register.
|
668
|
-
Format(instr, "mla'cond's 'rn, 'rm, 'rs, 'rd");
|
669
|
-
}
|
670
|
-
} else {
|
671
|
-
// The signed/long multiply instructions use the terms RdHi and RdLo
|
672
|
-
// when referring to the target registers. They are mapped to the Rn
|
673
|
-
// and Rd fields as follows:
|
674
|
-
// RdLo == Rd field
|
675
|
-
// RdHi == Rn field
|
676
|
-
// The order of registers is: <RdLo>, <RdHi>, <Rm>, <Rs>
|
677
|
-
Format(instr, "'um'al'cond's 'rd, 'rn, 'rm, 'rs");
|
678
|
-
}
|
679
|
-
} else {
|
680
|
-
Unknown(instr); // not used by V8
|
681
|
-
}
|
682
|
-
} else if ((instr->Bit(20) == 0) && ((instr->Bits(7, 4) & 0xd) == 0xd)) {
|
683
|
-
// ldrd, strd
|
684
|
-
switch (instr->PUField()) {
|
685
|
-
case 0: {
|
686
|
-
if (instr->Bit(22) == 0) {
|
687
|
-
Format(instr, "'memop'cond's 'rd, ['rn], -'rm");
|
688
|
-
} else {
|
689
|
-
Format(instr, "'memop'cond's 'rd, ['rn], #-'off8");
|
690
|
-
}
|
691
|
-
break;
|
692
|
-
}
|
693
|
-
case 1: {
|
694
|
-
if (instr->Bit(22) == 0) {
|
695
|
-
Format(instr, "'memop'cond's 'rd, ['rn], +'rm");
|
696
|
-
} else {
|
697
|
-
Format(instr, "'memop'cond's 'rd, ['rn], #+'off8");
|
698
|
-
}
|
699
|
-
break;
|
700
|
-
}
|
701
|
-
case 2: {
|
702
|
-
if (instr->Bit(22) == 0) {
|
703
|
-
Format(instr, "'memop'cond's 'rd, ['rn, -'rm]'w");
|
704
|
-
} else {
|
705
|
-
Format(instr, "'memop'cond's 'rd, ['rn, #-'off8]'w");
|
706
|
-
}
|
707
|
-
break;
|
708
|
-
}
|
709
|
-
case 3: {
|
710
|
-
if (instr->Bit(22) == 0) {
|
711
|
-
Format(instr, "'memop'cond's 'rd, ['rn, +'rm]'w");
|
712
|
-
} else {
|
713
|
-
Format(instr, "'memop'cond's 'rd, ['rn, #+'off8]'w");
|
714
|
-
}
|
715
|
-
break;
|
716
|
-
}
|
717
|
-
default: {
|
718
|
-
// The PU field is a 2-bit field.
|
719
|
-
UNREACHABLE();
|
720
|
-
break;
|
721
|
-
}
|
722
|
-
}
|
723
|
-
} else {
|
724
|
-
// extra load/store instructions
|
725
|
-
switch (instr->PUField()) {
|
726
|
-
case 0: {
|
727
|
-
if (instr->Bit(22) == 0) {
|
728
|
-
Format(instr, "'memop'cond'sign'h 'rd, ['rn], -'rm");
|
729
|
-
} else {
|
730
|
-
Format(instr, "'memop'cond'sign'h 'rd, ['rn], #-'off8");
|
731
|
-
}
|
732
|
-
break;
|
733
|
-
}
|
734
|
-
case 1: {
|
735
|
-
if (instr->Bit(22) == 0) {
|
736
|
-
Format(instr, "'memop'cond'sign'h 'rd, ['rn], +'rm");
|
737
|
-
} else {
|
738
|
-
Format(instr, "'memop'cond'sign'h 'rd, ['rn], #+'off8");
|
739
|
-
}
|
740
|
-
break;
|
741
|
-
}
|
742
|
-
case 2: {
|
743
|
-
if (instr->Bit(22) == 0) {
|
744
|
-
Format(instr, "'memop'cond'sign'h 'rd, ['rn, -'rm]'w");
|
745
|
-
} else {
|
746
|
-
Format(instr, "'memop'cond'sign'h 'rd, ['rn, #-'off8]'w");
|
747
|
-
}
|
748
|
-
break;
|
749
|
-
}
|
750
|
-
case 3: {
|
751
|
-
if (instr->Bit(22) == 0) {
|
752
|
-
Format(instr, "'memop'cond'sign'h 'rd, ['rn, +'rm]'w");
|
753
|
-
} else {
|
754
|
-
Format(instr, "'memop'cond'sign'h 'rd, ['rn, #+'off8]'w");
|
755
|
-
}
|
756
|
-
break;
|
757
|
-
}
|
758
|
-
default: {
|
759
|
-
// The PU field is a 2-bit field.
|
760
|
-
UNREACHABLE();
|
761
|
-
break;
|
762
|
-
}
|
763
|
-
}
|
764
|
-
return;
|
765
|
-
}
|
766
|
-
} else if ((type == 0) && instr->IsMiscType0()) {
|
767
|
-
if (instr->Bits(22, 21) == 1) {
|
768
|
-
switch (instr->Bits(7, 4)) {
|
769
|
-
case BX:
|
770
|
-
Format(instr, "bx'cond 'rm");
|
771
|
-
break;
|
772
|
-
case BLX:
|
773
|
-
Format(instr, "blx'cond 'rm");
|
774
|
-
break;
|
775
|
-
case BKPT:
|
776
|
-
Format(instr, "bkpt 'off0to3and8to19");
|
777
|
-
break;
|
778
|
-
default:
|
779
|
-
Unknown(instr); // not used by V8
|
780
|
-
break;
|
781
|
-
}
|
782
|
-
} else if (instr->Bits(22, 21) == 3) {
|
783
|
-
switch (instr->Bits(7, 4)) {
|
784
|
-
case CLZ:
|
785
|
-
Format(instr, "clz'cond 'rd, 'rm");
|
786
|
-
break;
|
787
|
-
default:
|
788
|
-
Unknown(instr); // not used by V8
|
789
|
-
break;
|
790
|
-
}
|
791
|
-
} else {
|
792
|
-
Unknown(instr); // not used by V8
|
793
|
-
}
|
794
|
-
} else {
|
795
|
-
switch (instr->OpcodeField()) {
|
796
|
-
case AND: {
|
797
|
-
Format(instr, "and'cond's 'rd, 'rn, 'shift_op");
|
798
|
-
break;
|
799
|
-
}
|
800
|
-
case EOR: {
|
801
|
-
Format(instr, "eor'cond's 'rd, 'rn, 'shift_op");
|
802
|
-
break;
|
803
|
-
}
|
804
|
-
case SUB: {
|
805
|
-
Format(instr, "sub'cond's 'rd, 'rn, 'shift_op");
|
806
|
-
break;
|
807
|
-
}
|
808
|
-
case RSB: {
|
809
|
-
Format(instr, "rsb'cond's 'rd, 'rn, 'shift_op");
|
810
|
-
break;
|
811
|
-
}
|
812
|
-
case ADD: {
|
813
|
-
Format(instr, "add'cond's 'rd, 'rn, 'shift_op");
|
814
|
-
break;
|
815
|
-
}
|
816
|
-
case ADC: {
|
817
|
-
Format(instr, "adc'cond's 'rd, 'rn, 'shift_op");
|
818
|
-
break;
|
819
|
-
}
|
820
|
-
case SBC: {
|
821
|
-
Format(instr, "sbc'cond's 'rd, 'rn, 'shift_op");
|
822
|
-
break;
|
823
|
-
}
|
824
|
-
case RSC: {
|
825
|
-
Format(instr, "rsc'cond's 'rd, 'rn, 'shift_op");
|
826
|
-
break;
|
827
|
-
}
|
828
|
-
case TST: {
|
829
|
-
if (instr->HasS()) {
|
830
|
-
Format(instr, "tst'cond 'rn, 'shift_op");
|
831
|
-
} else {
|
832
|
-
Format(instr, "movw'cond 'mw");
|
833
|
-
}
|
834
|
-
break;
|
835
|
-
}
|
836
|
-
case TEQ: {
|
837
|
-
if (instr->HasS()) {
|
838
|
-
Format(instr, "teq'cond 'rn, 'shift_op");
|
839
|
-
} else {
|
840
|
-
// Other instructions matching this pattern are handled in the
|
841
|
-
// miscellaneous instructions part above.
|
842
|
-
UNREACHABLE();
|
843
|
-
}
|
844
|
-
break;
|
845
|
-
}
|
846
|
-
case CMP: {
|
847
|
-
if (instr->HasS()) {
|
848
|
-
Format(instr, "cmp'cond 'rn, 'shift_op");
|
849
|
-
} else {
|
850
|
-
Format(instr, "movt'cond 'mw");
|
851
|
-
}
|
852
|
-
break;
|
853
|
-
}
|
854
|
-
case CMN: {
|
855
|
-
if (instr->HasS()) {
|
856
|
-
Format(instr, "cmn'cond 'rn, 'shift_op");
|
857
|
-
} else {
|
858
|
-
// Other instructions matching this pattern are handled in the
|
859
|
-
// miscellaneous instructions part above.
|
860
|
-
UNREACHABLE();
|
861
|
-
}
|
862
|
-
break;
|
863
|
-
}
|
864
|
-
case ORR: {
|
865
|
-
Format(instr, "orr'cond's 'rd, 'rn, 'shift_op");
|
866
|
-
break;
|
867
|
-
}
|
868
|
-
case MOV: {
|
869
|
-
Format(instr, "mov'cond's 'rd, 'shift_op");
|
870
|
-
break;
|
871
|
-
}
|
872
|
-
case BIC: {
|
873
|
-
Format(instr, "bic'cond's 'rd, 'rn, 'shift_op");
|
874
|
-
break;
|
875
|
-
}
|
876
|
-
case MVN: {
|
877
|
-
Format(instr, "mvn'cond's 'rd, 'shift_op");
|
878
|
-
break;
|
879
|
-
}
|
880
|
-
default: {
|
881
|
-
// The Opcode field is a 4-bit field.
|
882
|
-
UNREACHABLE();
|
883
|
-
break;
|
884
|
-
}
|
885
|
-
}
|
886
|
-
}
|
887
|
-
}
|
888
|
-
|
889
|
-
|
890
|
-
void Decoder::DecodeType2(Instr* instr) {
|
891
|
-
switch (instr->PUField()) {
|
892
|
-
case 0: {
|
893
|
-
if (instr->HasW()) {
|
894
|
-
Unknown(instr); // not used in V8
|
895
|
-
}
|
896
|
-
Format(instr, "'memop'cond'b 'rd, ['rn], #-'off12");
|
897
|
-
break;
|
898
|
-
}
|
899
|
-
case 1: {
|
900
|
-
if (instr->HasW()) {
|
901
|
-
Unknown(instr); // not used in V8
|
902
|
-
}
|
903
|
-
Format(instr, "'memop'cond'b 'rd, ['rn], #+'off12");
|
904
|
-
break;
|
905
|
-
}
|
906
|
-
case 2: {
|
907
|
-
Format(instr, "'memop'cond'b 'rd, ['rn, #-'off12]'w");
|
908
|
-
break;
|
909
|
-
}
|
910
|
-
case 3: {
|
911
|
-
Format(instr, "'memop'cond'b 'rd, ['rn, #+'off12]'w");
|
912
|
-
break;
|
913
|
-
}
|
914
|
-
default: {
|
915
|
-
// The PU field is a 2-bit field.
|
916
|
-
UNREACHABLE();
|
917
|
-
break;
|
918
|
-
}
|
919
|
-
}
|
920
|
-
}
|
921
|
-
|
922
|
-
|
923
|
-
void Decoder::DecodeType3(Instr* instr) {
|
924
|
-
switch (instr->PUField()) {
|
925
|
-
case 0: {
|
926
|
-
ASSERT(!instr->HasW());
|
927
|
-
Format(instr, "'memop'cond'b 'rd, ['rn], -'shift_rm");
|
928
|
-
break;
|
929
|
-
}
|
930
|
-
case 1: {
|
931
|
-
if (instr->HasW()) {
|
932
|
-
ASSERT(instr->Bits(5, 4) == 0x1);
|
933
|
-
if (instr->Bit(22) == 0x1) {
|
934
|
-
Format(instr, "usat 'rd, 'imm05@16, 'rm'shift_sat");
|
935
|
-
} else {
|
936
|
-
UNREACHABLE(); // SSAT.
|
937
|
-
}
|
938
|
-
} else {
|
939
|
-
Format(instr, "'memop'cond'b 'rd, ['rn], +'shift_rm");
|
940
|
-
}
|
941
|
-
break;
|
942
|
-
}
|
943
|
-
case 2: {
|
944
|
-
Format(instr, "'memop'cond'b 'rd, ['rn, -'shift_rm]'w");
|
945
|
-
break;
|
946
|
-
}
|
947
|
-
case 3: {
|
948
|
-
if (instr->HasW() && (instr->Bits(6, 4) == 0x5)) {
|
949
|
-
uint32_t widthminus1 = static_cast<uint32_t>(instr->Bits(20, 16));
|
950
|
-
uint32_t lsbit = static_cast<uint32_t>(instr->Bits(11, 7));
|
951
|
-
uint32_t msbit = widthminus1 + lsbit;
|
952
|
-
if (msbit <= 31) {
|
953
|
-
if (instr->Bit(22)) {
|
954
|
-
Format(instr, "ubfx'cond 'rd, 'rm, 'f");
|
955
|
-
} else {
|
956
|
-
Format(instr, "sbfx'cond 'rd, 'rm, 'f");
|
957
|
-
}
|
958
|
-
} else {
|
959
|
-
UNREACHABLE();
|
960
|
-
}
|
961
|
-
} else if (!instr->HasW() && (instr->Bits(6, 4) == 0x1)) {
|
962
|
-
uint32_t lsbit = static_cast<uint32_t>(instr->Bits(11, 7));
|
963
|
-
uint32_t msbit = static_cast<uint32_t>(instr->Bits(20, 16));
|
964
|
-
if (msbit >= lsbit) {
|
965
|
-
if (instr->RmField() == 15) {
|
966
|
-
Format(instr, "bfc'cond 'rd, 'f");
|
967
|
-
} else {
|
968
|
-
Format(instr, "bfi'cond 'rd, 'rm, 'f");
|
969
|
-
}
|
970
|
-
} else {
|
971
|
-
UNREACHABLE();
|
972
|
-
}
|
973
|
-
} else {
|
974
|
-
Format(instr, "'memop'cond'b 'rd, ['rn, +'shift_rm]'w");
|
975
|
-
}
|
976
|
-
break;
|
977
|
-
}
|
978
|
-
default: {
|
979
|
-
// The PU field is a 2-bit field.
|
980
|
-
UNREACHABLE();
|
981
|
-
break;
|
982
|
-
}
|
983
|
-
}
|
984
|
-
}
|
985
|
-
|
986
|
-
|
987
|
-
void Decoder::DecodeType4(Instr* instr) {
|
988
|
-
ASSERT(instr->Bit(22) == 0); // Privileged mode currently not supported.
|
989
|
-
if (instr->HasL()) {
|
990
|
-
Format(instr, "ldm'cond'pu 'rn'w, 'rlist");
|
991
|
-
} else {
|
992
|
-
Format(instr, "stm'cond'pu 'rn'w, 'rlist");
|
993
|
-
}
|
994
|
-
}
|
995
|
-
|
996
|
-
|
997
|
-
void Decoder::DecodeType5(Instr* instr) {
|
998
|
-
Format(instr, "b'l'cond 'target");
|
999
|
-
}
|
1000
|
-
|
1001
|
-
|
1002
|
-
void Decoder::DecodeType6(Instr* instr) {
|
1003
|
-
DecodeType6CoprocessorIns(instr);
|
1004
|
-
}
|
1005
|
-
|
1006
|
-
|
1007
|
-
void Decoder::DecodeType7(Instr* instr) {
|
1008
|
-
if (instr->Bit(24) == 1) {
|
1009
|
-
Format(instr, "swi'cond 'swi");
|
1010
|
-
} else {
|
1011
|
-
DecodeTypeVFP(instr);
|
1012
|
-
}
|
1013
|
-
}
|
1014
|
-
|
1015
|
-
void Decoder::DecodeUnconditional(Instr* instr) {
|
1016
|
-
if (instr->Bits(7, 4) == 0xB && instr->Bits(27, 25) == 0 && instr->HasL()) {
|
1017
|
-
Format(instr, "'memop'h'pu 'rd, ");
|
1018
|
-
bool immediate = instr->HasB();
|
1019
|
-
switch (instr->PUField()) {
|
1020
|
-
case 0: {
|
1021
|
-
// Post index, negative.
|
1022
|
-
if (instr->HasW()) {
|
1023
|
-
Unknown(instr);
|
1024
|
-
break;
|
1025
|
-
}
|
1026
|
-
if (immediate) {
|
1027
|
-
Format(instr, "['rn], #-'imm12");
|
1028
|
-
} else {
|
1029
|
-
Format(instr, "['rn], -'rm");
|
1030
|
-
}
|
1031
|
-
break;
|
1032
|
-
}
|
1033
|
-
case 1: {
|
1034
|
-
// Post index, positive.
|
1035
|
-
if (instr->HasW()) {
|
1036
|
-
Unknown(instr);
|
1037
|
-
break;
|
1038
|
-
}
|
1039
|
-
if (immediate) {
|
1040
|
-
Format(instr, "['rn], #+'imm12");
|
1041
|
-
} else {
|
1042
|
-
Format(instr, "['rn], +'rm");
|
1043
|
-
}
|
1044
|
-
break;
|
1045
|
-
}
|
1046
|
-
case 2: {
|
1047
|
-
// Pre index or offset, negative.
|
1048
|
-
if (immediate) {
|
1049
|
-
Format(instr, "['rn, #-'imm12]'w");
|
1050
|
-
} else {
|
1051
|
-
Format(instr, "['rn, -'rm]'w");
|
1052
|
-
}
|
1053
|
-
break;
|
1054
|
-
}
|
1055
|
-
case 3: {
|
1056
|
-
// Pre index or offset, positive.
|
1057
|
-
if (immediate) {
|
1058
|
-
Format(instr, "['rn, #+'imm12]'w");
|
1059
|
-
} else {
|
1060
|
-
Format(instr, "['rn, +'rm]'w");
|
1061
|
-
}
|
1062
|
-
break;
|
1063
|
-
}
|
1064
|
-
default: {
|
1065
|
-
// The PU field is a 2-bit field.
|
1066
|
-
UNREACHABLE();
|
1067
|
-
break;
|
1068
|
-
}
|
1069
|
-
}
|
1070
|
-
return;
|
1071
|
-
}
|
1072
|
-
Format(instr, "break 'msg");
|
1073
|
-
}
|
1074
|
-
|
1075
|
-
|
1076
|
-
// void Decoder::DecodeTypeVFP(Instr* instr)
|
1077
|
-
// vmov: Sn = Rt
|
1078
|
-
// vmov: Rt = Sn
|
1079
|
-
// vcvt: Dd = Sm
|
1080
|
-
// vcvt: Sd = Dm
|
1081
|
-
// Dd = vadd(Dn, Dm)
|
1082
|
-
// Dd = vsub(Dn, Dm)
|
1083
|
-
// Dd = vmul(Dn, Dm)
|
1084
|
-
// Dd = vdiv(Dn, Dm)
|
1085
|
-
// vcmp(Dd, Dm)
|
1086
|
-
// vmrs
|
1087
|
-
// Dd = vsqrt(Dm)
|
1088
|
-
void Decoder::DecodeTypeVFP(Instr* instr) {
|
1089
|
-
ASSERT((instr->TypeField() == 7) && (instr->Bit(24) == 0x0) );
|
1090
|
-
ASSERT(instr->Bits(11, 9) == 0x5);
|
1091
|
-
|
1092
|
-
if (instr->Bit(4) == 0) {
|
1093
|
-
if (instr->Opc1Field() == 0x7) {
|
1094
|
-
// Other data processing instructions
|
1095
|
-
if ((instr->Opc2Field() == 0x0) && (instr->Opc3Field() == 0x1)) {
|
1096
|
-
// vmov register to register.
|
1097
|
-
if (instr->SzField() == 0x1) {
|
1098
|
-
Format(instr, "vmov.f64'cond 'Dd, 'Dm");
|
1099
|
-
} else {
|
1100
|
-
Format(instr, "vmov.f32'cond 'Sd, 'Sm");
|
1101
|
-
}
|
1102
|
-
} else if ((instr->Opc2Field() == 0x7) && (instr->Opc3Field() == 0x3)) {
|
1103
|
-
DecodeVCVTBetweenDoubleAndSingle(instr);
|
1104
|
-
} else if ((instr->Opc2Field() == 0x8) && (instr->Opc3Field() & 0x1)) {
|
1105
|
-
DecodeVCVTBetweenFloatingPointAndInteger(instr);
|
1106
|
-
} else if (((instr->Opc2Field() >> 1) == 0x6) &&
|
1107
|
-
(instr->Opc3Field() & 0x1)) {
|
1108
|
-
DecodeVCVTBetweenFloatingPointAndInteger(instr);
|
1109
|
-
} else if (((instr->Opc2Field() == 0x4) || (instr->Opc2Field() == 0x5)) &&
|
1110
|
-
(instr->Opc3Field() & 0x1)) {
|
1111
|
-
DecodeVCMP(instr);
|
1112
|
-
} else if (((instr->Opc2Field() == 0x1)) && (instr->Opc3Field() == 0x3)) {
|
1113
|
-
Format(instr, "vsqrt.f64'cond 'Dd, 'Dm");
|
1114
|
-
} else if (instr->Opc3Field() == 0x0) {
|
1115
|
-
if (instr->SzField() == 0x1) {
|
1116
|
-
Format(instr, "vmov.f64'cond 'Dd, 'd");
|
1117
|
-
} else {
|
1118
|
-
Unknown(instr); // Not used by V8.
|
1119
|
-
}
|
1120
|
-
} else {
|
1121
|
-
Unknown(instr); // Not used by V8.
|
1122
|
-
}
|
1123
|
-
} else if (instr->Opc1Field() == 0x3) {
|
1124
|
-
if (instr->SzField() == 0x1) {
|
1125
|
-
if (instr->Opc3Field() & 0x1) {
|
1126
|
-
Format(instr, "vsub.f64'cond 'Dd, 'Dn, 'Dm");
|
1127
|
-
} else {
|
1128
|
-
Format(instr, "vadd.f64'cond 'Dd, 'Dn, 'Dm");
|
1129
|
-
}
|
1130
|
-
} else {
|
1131
|
-
Unknown(instr); // Not used by V8.
|
1132
|
-
}
|
1133
|
-
} else if ((instr->Opc1Field() == 0x2) && !(instr->Opc3Field() & 0x1)) {
|
1134
|
-
if (instr->SzField() == 0x1) {
|
1135
|
-
Format(instr, "vmul.f64'cond 'Dd, 'Dn, 'Dm");
|
1136
|
-
} else {
|
1137
|
-
Unknown(instr); // Not used by V8.
|
1138
|
-
}
|
1139
|
-
} else if ((instr->Opc1Field() == 0x4) && !(instr->Opc3Field() & 0x1)) {
|
1140
|
-
if (instr->SzField() == 0x1) {
|
1141
|
-
Format(instr, "vdiv.f64'cond 'Dd, 'Dn, 'Dm");
|
1142
|
-
} else {
|
1143
|
-
Unknown(instr); // Not used by V8.
|
1144
|
-
}
|
1145
|
-
} else {
|
1146
|
-
Unknown(instr); // Not used by V8.
|
1147
|
-
}
|
1148
|
-
} else {
|
1149
|
-
if ((instr->VCField() == 0x0) &&
|
1150
|
-
(instr->VAField() == 0x0)) {
|
1151
|
-
DecodeVMOVBetweenCoreAndSinglePrecisionRegisters(instr);
|
1152
|
-
} else if ((instr->VLField() == 0x1) &&
|
1153
|
-
(instr->VCField() == 0x0) &&
|
1154
|
-
(instr->VAField() == 0x7) &&
|
1155
|
-
(instr->Bits(19, 16) == 0x1)) {
|
1156
|
-
if (instr->Bits(15, 12) == 0xF)
|
1157
|
-
Format(instr, "vmrs'cond APSR, FPSCR");
|
1158
|
-
else
|
1159
|
-
Unknown(instr); // Not used by V8.
|
1160
|
-
} else {
|
1161
|
-
Unknown(instr); // Not used by V8.
|
1162
|
-
}
|
1163
|
-
}
|
1164
|
-
}
|
1165
|
-
|
1166
|
-
|
1167
|
-
void Decoder::DecodeVMOVBetweenCoreAndSinglePrecisionRegisters(Instr* instr) {
|
1168
|
-
ASSERT((instr->Bit(4) == 1) && (instr->VCField() == 0x0) &&
|
1169
|
-
(instr->VAField() == 0x0));
|
1170
|
-
|
1171
|
-
bool to_arm_register = (instr->VLField() == 0x1);
|
1172
|
-
|
1173
|
-
if (to_arm_register) {
|
1174
|
-
Format(instr, "vmov'cond 'rt, 'Sn");
|
1175
|
-
} else {
|
1176
|
-
Format(instr, "vmov'cond 'Sn, 'rt");
|
1177
|
-
}
|
1178
|
-
}
|
1179
|
-
|
1180
|
-
|
1181
|
-
void Decoder::DecodeVCMP(Instr* instr) {
|
1182
|
-
ASSERT((instr->Bit(4) == 0) && (instr->Opc1Field() == 0x7));
|
1183
|
-
ASSERT(((instr->Opc2Field() == 0x4) || (instr->Opc2Field() == 0x5)) &&
|
1184
|
-
(instr->Opc3Field() & 0x1));
|
1185
|
-
|
1186
|
-
// Comparison.
|
1187
|
-
bool dp_operation = (instr->SzField() == 1);
|
1188
|
-
bool raise_exception_for_qnan = (instr->Bit(7) == 0x1);
|
1189
|
-
|
1190
|
-
if (dp_operation && !raise_exception_for_qnan) {
|
1191
|
-
Format(instr, "vcmp.f64'cond 'Dd, 'Dm");
|
1192
|
-
} else {
|
1193
|
-
Unknown(instr); // Not used by V8.
|
1194
|
-
}
|
1195
|
-
}
|
1196
|
-
|
1197
|
-
|
1198
|
-
void Decoder::DecodeVCVTBetweenDoubleAndSingle(Instr* instr) {
|
1199
|
-
ASSERT((instr->Bit(4) == 0) && (instr->Opc1Field() == 0x7));
|
1200
|
-
ASSERT((instr->Opc2Field() == 0x7) && (instr->Opc3Field() == 0x3));
|
1201
|
-
|
1202
|
-
bool double_to_single = (instr->SzField() == 1);
|
1203
|
-
|
1204
|
-
if (double_to_single) {
|
1205
|
-
Format(instr, "vcvt.f32.f64'cond 'Sd, 'Dm");
|
1206
|
-
} else {
|
1207
|
-
Format(instr, "vcvt.f64.f32'cond 'Dd, 'Sm");
|
1208
|
-
}
|
1209
|
-
}
|
1210
|
-
|
1211
|
-
|
1212
|
-
void Decoder::DecodeVCVTBetweenFloatingPointAndInteger(Instr* instr) {
|
1213
|
-
ASSERT((instr->Bit(4) == 0) && (instr->Opc1Field() == 0x7));
|
1214
|
-
ASSERT(((instr->Opc2Field() == 0x8) && (instr->Opc3Field() & 0x1)) ||
|
1215
|
-
(((instr->Opc2Field() >> 1) == 0x6) && (instr->Opc3Field() & 0x1)));
|
1216
|
-
|
1217
|
-
bool to_integer = (instr->Bit(18) == 1);
|
1218
|
-
bool dp_operation = (instr->SzField() == 1);
|
1219
|
-
if (to_integer) {
|
1220
|
-
bool unsigned_integer = (instr->Bit(16) == 0);
|
1221
|
-
|
1222
|
-
if (dp_operation) {
|
1223
|
-
if (unsigned_integer) {
|
1224
|
-
Format(instr, "vcvt.u32.f64'cond 'Sd, 'Dm");
|
1225
|
-
} else {
|
1226
|
-
Format(instr, "vcvt.s32.f64'cond 'Sd, 'Dm");
|
1227
|
-
}
|
1228
|
-
} else {
|
1229
|
-
if (unsigned_integer) {
|
1230
|
-
Format(instr, "vcvt.u32.f32'cond 'Sd, 'Sm");
|
1231
|
-
} else {
|
1232
|
-
Format(instr, "vcvt.s32.f32'cond 'Sd, 'Sm");
|
1233
|
-
}
|
1234
|
-
}
|
1235
|
-
} else {
|
1236
|
-
bool unsigned_integer = (instr->Bit(7) == 0);
|
1237
|
-
|
1238
|
-
if (dp_operation) {
|
1239
|
-
if (unsigned_integer) {
|
1240
|
-
Format(instr, "vcvt.f64.u32'cond 'Dd, 'Sm");
|
1241
|
-
} else {
|
1242
|
-
Format(instr, "vcvt.f64.s32'cond 'Dd, 'Sm");
|
1243
|
-
}
|
1244
|
-
} else {
|
1245
|
-
if (unsigned_integer) {
|
1246
|
-
Format(instr, "vcvt.f32.u32'cond 'Sd, 'Sm");
|
1247
|
-
} else {
|
1248
|
-
Format(instr, "vcvt.f32.s32'cond 'Sd, 'Sm");
|
1249
|
-
}
|
1250
|
-
}
|
1251
|
-
}
|
1252
|
-
}
|
1253
|
-
|
1254
|
-
|
1255
|
-
// Decode Type 6 coprocessor instructions.
|
1256
|
-
// Dm = vmov(Rt, Rt2)
|
1257
|
-
// <Rt, Rt2> = vmov(Dm)
|
1258
|
-
// Ddst = MEM(Rbase + 4*offset).
|
1259
|
-
// MEM(Rbase + 4*offset) = Dsrc.
|
1260
|
-
void Decoder::DecodeType6CoprocessorIns(Instr* instr) {
|
1261
|
-
ASSERT((instr->TypeField() == 6));
|
1262
|
-
|
1263
|
-
if (instr->CoprocessorField() == 0xA) {
|
1264
|
-
switch (instr->OpcodeField()) {
|
1265
|
-
case 0x8:
|
1266
|
-
if (instr->HasL()) {
|
1267
|
-
Format(instr, "vldr'cond 'Sd, ['rn - 4*'off8]");
|
1268
|
-
} else {
|
1269
|
-
Format(instr, "vstr'cond 'Sd, ['rn - 4*'off8]");
|
1270
|
-
}
|
1271
|
-
break;
|
1272
|
-
case 0xC:
|
1273
|
-
if (instr->HasL()) {
|
1274
|
-
Format(instr, "vldr'cond 'Sd, ['rn + 4*'off8]");
|
1275
|
-
} else {
|
1276
|
-
Format(instr, "vstr'cond 'Sd, ['rn + 4*'off8]");
|
1277
|
-
}
|
1278
|
-
break;
|
1279
|
-
default:
|
1280
|
-
Unknown(instr); // Not used by V8.
|
1281
|
-
break;
|
1282
|
-
}
|
1283
|
-
} else if (instr->CoprocessorField() == 0xB) {
|
1284
|
-
switch (instr->OpcodeField()) {
|
1285
|
-
case 0x2:
|
1286
|
-
// Load and store double to two GP registers
|
1287
|
-
if (instr->Bits(7, 4) != 0x1) {
|
1288
|
-
Unknown(instr); // Not used by V8.
|
1289
|
-
} else if (instr->HasL()) {
|
1290
|
-
Format(instr, "vmov'cond 'rt, 'rn, 'Dm");
|
1291
|
-
} else {
|
1292
|
-
Format(instr, "vmov'cond 'Dm, 'rt, 'rn");
|
1293
|
-
}
|
1294
|
-
break;
|
1295
|
-
case 0x8:
|
1296
|
-
if (instr->HasL()) {
|
1297
|
-
Format(instr, "vldr'cond 'Dd, ['rn - 4*'off8]");
|
1298
|
-
} else {
|
1299
|
-
Format(instr, "vstr'cond 'Dd, ['rn - 4*'off8]");
|
1300
|
-
}
|
1301
|
-
break;
|
1302
|
-
case 0xC:
|
1303
|
-
if (instr->HasL()) {
|
1304
|
-
Format(instr, "vldr'cond 'Dd, ['rn + 4*'off8]");
|
1305
|
-
} else {
|
1306
|
-
Format(instr, "vstr'cond 'Dd, ['rn + 4*'off8]");
|
1307
|
-
}
|
1308
|
-
break;
|
1309
|
-
default:
|
1310
|
-
Unknown(instr); // Not used by V8.
|
1311
|
-
break;
|
1312
|
-
}
|
1313
|
-
} else {
|
1314
|
-
UNIMPLEMENTED(); // Not used by V8.
|
1315
|
-
}
|
1316
|
-
}
|
1317
|
-
|
1318
|
-
|
1319
|
-
// Disassemble the instruction at *instr_ptr into the output buffer.
|
1320
|
-
int Decoder::InstructionDecode(byte* instr_ptr) {
|
1321
|
-
Instr* instr = Instr::At(instr_ptr);
|
1322
|
-
// Print raw instruction bytes.
|
1323
|
-
out_buffer_pos_ += v8i::OS::SNPrintF(out_buffer_ + out_buffer_pos_,
|
1324
|
-
"%08x ",
|
1325
|
-
instr->InstructionBits());
|
1326
|
-
if (instr->ConditionField() == special_condition) {
|
1327
|
-
DecodeUnconditional(instr);
|
1328
|
-
return Instr::kInstrSize;
|
1329
|
-
}
|
1330
|
-
switch (instr->TypeField()) {
|
1331
|
-
case 0:
|
1332
|
-
case 1: {
|
1333
|
-
DecodeType01(instr);
|
1334
|
-
break;
|
1335
|
-
}
|
1336
|
-
case 2: {
|
1337
|
-
DecodeType2(instr);
|
1338
|
-
break;
|
1339
|
-
}
|
1340
|
-
case 3: {
|
1341
|
-
DecodeType3(instr);
|
1342
|
-
break;
|
1343
|
-
}
|
1344
|
-
case 4: {
|
1345
|
-
DecodeType4(instr);
|
1346
|
-
break;
|
1347
|
-
}
|
1348
|
-
case 5: {
|
1349
|
-
DecodeType5(instr);
|
1350
|
-
break;
|
1351
|
-
}
|
1352
|
-
case 6: {
|
1353
|
-
DecodeType6(instr);
|
1354
|
-
break;
|
1355
|
-
}
|
1356
|
-
case 7: {
|
1357
|
-
DecodeType7(instr);
|
1358
|
-
break;
|
1359
|
-
}
|
1360
|
-
default: {
|
1361
|
-
// The type field is 3-bits in the ARM encoding.
|
1362
|
-
UNREACHABLE();
|
1363
|
-
break;
|
1364
|
-
}
|
1365
|
-
}
|
1366
|
-
return Instr::kInstrSize;
|
1367
|
-
}
|
1368
|
-
|
1369
|
-
|
1370
|
-
} } // namespace assembler::arm
|
1371
|
-
|
1372
|
-
|
1373
|
-
|
1374
|
-
//------------------------------------------------------------------------------
|
1375
|
-
|
1376
|
-
namespace disasm {
|
1377
|
-
|
1378
|
-
namespace v8i = v8::internal;
|
1379
|
-
|
1380
|
-
|
1381
|
-
const char* NameConverter::NameOfAddress(byte* addr) const {
|
1382
|
-
static v8::internal::EmbeddedVector<char, 32> tmp_buffer;
|
1383
|
-
v8::internal::OS::SNPrintF(tmp_buffer, "%p", addr);
|
1384
|
-
return tmp_buffer.start();
|
1385
|
-
}
|
1386
|
-
|
1387
|
-
|
1388
|
-
const char* NameConverter::NameOfConstant(byte* addr) const {
|
1389
|
-
return NameOfAddress(addr);
|
1390
|
-
}
|
1391
|
-
|
1392
|
-
|
1393
|
-
const char* NameConverter::NameOfCPURegister(int reg) const {
|
1394
|
-
return assembler::arm::Registers::Name(reg);
|
1395
|
-
}
|
1396
|
-
|
1397
|
-
|
1398
|
-
const char* NameConverter::NameOfByteCPURegister(int reg) const {
|
1399
|
-
UNREACHABLE(); // ARM does not have the concept of a byte register
|
1400
|
-
return "nobytereg";
|
1401
|
-
}
|
1402
|
-
|
1403
|
-
|
1404
|
-
const char* NameConverter::NameOfXMMRegister(int reg) const {
|
1405
|
-
UNREACHABLE(); // ARM does not have any XMM registers
|
1406
|
-
return "noxmmreg";
|
1407
|
-
}
|
1408
|
-
|
1409
|
-
|
1410
|
-
const char* NameConverter::NameInCode(byte* addr) const {
|
1411
|
-
// The default name converter is called for unknown code. So we will not try
|
1412
|
-
// to access any memory.
|
1413
|
-
return "";
|
1414
|
-
}
|
1415
|
-
|
1416
|
-
|
1417
|
-
//------------------------------------------------------------------------------
|
1418
|
-
|
1419
|
-
Disassembler::Disassembler(const NameConverter& converter)
|
1420
|
-
: converter_(converter) {}
|
1421
|
-
|
1422
|
-
|
1423
|
-
Disassembler::~Disassembler() {}
|
1424
|
-
|
1425
|
-
|
1426
|
-
int Disassembler::InstructionDecode(v8::internal::Vector<char> buffer,
|
1427
|
-
byte* instruction) {
|
1428
|
-
assembler::arm::Decoder d(converter_, buffer);
|
1429
|
-
return d.InstructionDecode(instruction);
|
1430
|
-
}
|
1431
|
-
|
1432
|
-
|
1433
|
-
int Disassembler::ConstantPoolSizeAt(byte* instruction) {
|
1434
|
-
int instruction_bits = *(reinterpret_cast<int*>(instruction));
|
1435
|
-
if ((instruction_bits & 0xfff00000) == 0x03000000) {
|
1436
|
-
return instruction_bits & 0x0000ffff;
|
1437
|
-
} else {
|
1438
|
-
return -1;
|
1439
|
-
}
|
1440
|
-
}
|
1441
|
-
|
1442
|
-
|
1443
|
-
void Disassembler::Disassemble(FILE* f, byte* begin, byte* end) {
|
1444
|
-
NameConverter converter;
|
1445
|
-
Disassembler d(converter);
|
1446
|
-
for (byte* pc = begin; pc < end;) {
|
1447
|
-
v8::internal::EmbeddedVector<char, 128> buffer;
|
1448
|
-
buffer[0] = '\0';
|
1449
|
-
byte* prev_pc = pc;
|
1450
|
-
pc += d.InstructionDecode(buffer, pc);
|
1451
|
-
fprintf(f, "%p %08x %s\n",
|
1452
|
-
prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
|
1453
|
-
}
|
1454
|
-
}
|
1455
|
-
|
1456
|
-
|
1457
|
-
} // namespace disasm
|
1458
|
-
|
1459
|
-
#endif // V8_TARGET_ARCH_ARM
|