therubyracer 0.8.1.pre2 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of therubyracer might be problematic. Click here for more details.
- data/Changelog.md +2 -1
- data/README.md +6 -3
- data/ext/v8/upstream/3.1.8/.gitignore +31 -0
- data/ext/v8/upstream/3.1.8/AUTHORS +40 -0
- data/ext/v8/upstream/3.1.8/ChangeLog +2566 -0
- data/ext/v8/upstream/3.1.8/LICENSE +52 -0
- data/ext/v8/upstream/3.1.8/LICENSE.strongtalk +29 -0
- data/ext/v8/upstream/3.1.8/LICENSE.v8 +26 -0
- data/ext/v8/upstream/3.1.8/LICENSE.valgrind +45 -0
- data/ext/v8/upstream/3.1.8/SConstruct +1192 -0
- data/ext/v8/upstream/3.1.8/build/README.txt +25 -0
- data/ext/v8/upstream/3.1.8/build/all.gyp +18 -0
- data/ext/v8/upstream/3.1.8/build/armu.gypi +32 -0
- data/ext/v8/upstream/3.1.8/build/common.gypi +82 -0
- data/ext/v8/upstream/3.1.8/build/gyp_v8 +145 -0
- data/ext/v8/upstream/3.1.8/include/v8-debug.h +384 -0
- data/ext/v8/upstream/3.1.8/include/v8-preparser.h +116 -0
- data/ext/v8/upstream/3.1.8/include/v8-profiler.h +426 -0
- data/ext/v8/upstream/3.1.8/include/v8-testing.h +99 -0
- data/ext/v8/upstream/3.1.8/include/v8.h +3846 -0
- data/ext/v8/upstream/3.1.8/include/v8stdint.h +53 -0
- data/ext/v8/upstream/3.1.8/preparser/preparser-process.cc +206 -0
- data/ext/v8/upstream/3.1.8/src/SConscript +356 -0
- data/ext/v8/upstream/3.1.8/src/accessors.cc +907 -0
- data/ext/v8/upstream/3.1.8/src/accessors.h +121 -0
- data/ext/v8/upstream/3.1.8/src/allocation.cc +204 -0
- data/ext/v8/upstream/3.1.8/src/allocation.h +176 -0
- data/ext/v8/upstream/3.1.8/src/api.cc +5191 -0
- data/ext/v8/upstream/3.1.8/src/api.h +508 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/apinatives.js +0 -0
- data/ext/v8/upstream/3.1.8/src/apiutils.h +80 -0
- data/ext/v8/upstream/3.1.8/src/arguments.h +105 -0
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm-inl.h +352 -0
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm.cc +2756 -0
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm.h +1294 -0
- data/ext/v8/upstream/3.1.8/src/arm/builtins-arm.cc +1628 -0
- data/ext/v8/upstream/3.1.8/src/arm/code-stubs-arm.cc +6783 -0
- data/ext/v8/upstream/3.1.8/src/arm/code-stubs-arm.h +657 -0
- data/ext/v8/upstream/3.1.8/src/arm/codegen-arm-inl.h +48 -0
- data/ext/v8/upstream/3.1.8/src/arm/codegen-arm.cc +7403 -0
- data/ext/v8/upstream/3.1.8/src/arm/codegen-arm.h +595 -0
- data/ext/v8/upstream/3.1.8/src/arm/constants-arm.cc +152 -0
- data/ext/v8/upstream/3.1.8/src/arm/constants-arm.h +769 -0
- data/ext/v8/upstream/3.1.8/src/arm/cpu-arm.cc +147 -0
- data/ext/v8/upstream/3.1.8/src/arm/debug-arm.cc +315 -0
- data/ext/v8/upstream/3.1.8/src/arm/deoptimizer-arm.cc +700 -0
- data/ext/v8/upstream/3.1.8/src/arm/disasm-arm.cc +1439 -0
- data/ext/v8/upstream/3.1.8/src/arm/frames-arm.cc +45 -0
- data/ext/v8/upstream/3.1.8/src/arm/frames-arm.h +168 -0
- data/ext/v8/upstream/3.1.8/src/arm/full-codegen-arm.cc +4230 -0
- data/ext/v8/upstream/3.1.8/src/arm/ic-arm.cc +1799 -0
- data/ext/v8/upstream/3.1.8/src/arm/jump-target-arm.cc +174 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-arm.cc +2041 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-arm.h +2046 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-codegen-arm.cc +3822 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-codegen-arm.h +312 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-gap-resolver-arm.cc +303 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-gap-resolver-arm.h +84 -0
- data/ext/v8/upstream/3.1.8/src/arm/macro-assembler-arm.cc +2701 -0
- data/ext/v8/upstream/3.1.8/src/arm/macro-assembler-arm.h +1015 -0
- data/ext/v8/upstream/3.1.8/src/arm/regexp-macro-assembler-arm.cc +1280 -0
- data/ext/v8/upstream/3.1.8/src/arm/regexp-macro-assembler-arm.h +252 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/register-allocator-arm-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/register-allocator-arm.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/register-allocator-arm.h +0 -0
- data/ext/v8/upstream/3.1.8/src/arm/simulator-arm.cc +3165 -0
- data/ext/v8/upstream/3.1.8/src/arm/simulator-arm.h +402 -0
- data/ext/v8/upstream/3.1.8/src/arm/stub-cache-arm.cc +4077 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/virtual-frame-arm-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/arm/virtual-frame-arm.cc +843 -0
- data/ext/v8/upstream/3.1.8/src/arm/virtual-frame-arm.h +520 -0
- data/ext/v8/upstream/3.1.8/src/array.js +1231 -0
- data/ext/v8/upstream/3.1.8/src/assembler.cc +973 -0
- data/ext/v8/upstream/3.1.8/src/assembler.h +787 -0
- data/ext/v8/upstream/3.1.8/src/ast-inl.h +107 -0
- data/ext/v8/upstream/3.1.8/src/ast.cc +1067 -0
- data/ext/v8/upstream/3.1.8/src/ast.h +2177 -0
- data/ext/v8/upstream/3.1.8/src/atomicops.h +165 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_arm_gcc.h +145 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_gcc.cc +126 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_gcc.h +287 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_macosx.h +301 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_msvc.h +203 -0
- data/ext/v8/upstream/3.1.8/src/bignum-dtoa.cc +655 -0
- data/ext/v8/upstream/3.1.8/src/bignum-dtoa.h +81 -0
- data/ext/v8/upstream/3.1.8/src/bignum.cc +768 -0
- data/ext/v8/upstream/3.1.8/src/bignum.h +140 -0
- data/ext/v8/upstream/3.1.8/src/bootstrapper.cc +1888 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/bootstrapper.h +0 -0
- data/ext/v8/upstream/3.1.8/src/builtins.cc +1586 -0
- data/ext/v8/upstream/3.1.8/src/builtins.h +339 -0
- data/ext/v8/upstream/3.1.8/src/bytecodes-irregexp.h +105 -0
- data/ext/v8/upstream/3.1.8/src/cached-powers.cc +177 -0
- data/ext/v8/upstream/3.1.8/src/cached-powers.h +65 -0
- data/ext/v8/upstream/3.1.8/src/char-predicates-inl.h +94 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/char-predicates.h +0 -0
- data/ext/v8/upstream/3.1.8/src/checks.cc +110 -0
- data/ext/v8/upstream/3.1.8/src/checks.h +292 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/circular-queue-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/circular-queue.cc +122 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/circular-queue.h +0 -0
- data/ext/v8/upstream/3.1.8/src/code-stubs.cc +230 -0
- data/ext/v8/upstream/3.1.8/src/code-stubs.h +950 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/code.h +0 -0
- data/ext/v8/upstream/3.1.8/src/codegen-inl.h +64 -0
- data/ext/v8/upstream/3.1.8/src/codegen.cc +495 -0
- data/ext/v8/upstream/3.1.8/src/codegen.h +245 -0
- data/ext/v8/upstream/3.1.8/src/compilation-cache.cc +654 -0
- data/ext/v8/upstream/3.1.8/src/compilation-cache.h +112 -0
- data/ext/v8/upstream/3.1.8/src/compiler.cc +806 -0
- data/ext/v8/upstream/3.1.8/src/compiler.h +290 -0
- data/ext/v8/upstream/3.1.8/src/contexts.cc +320 -0
- data/ext/v8/upstream/3.1.8/src/contexts.h +376 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/conversions-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/conversions.cc +1069 -0
- data/ext/v8/upstream/3.1.8/src/conversions.h +122 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/counters.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/counters.h +242 -0
- data/ext/v8/upstream/3.1.8/src/cpu-profiler-inl.h +100 -0
- data/ext/v8/upstream/3.1.8/src/cpu-profiler.cc +554 -0
- data/ext/v8/upstream/3.1.8/src/cpu-profiler.h +291 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/cpu.h +0 -0
- data/ext/v8/upstream/3.1.8/src/d8-debug.cc +367 -0
- data/ext/v8/upstream/3.1.8/src/d8-debug.h +157 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/d8-posix.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/d8-readline.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/d8-windows.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/d8.cc +792 -0
- data/ext/v8/upstream/3.1.8/src/d8.gyp +85 -0
- data/ext/v8/upstream/3.1.8/src/d8.h +231 -0
- data/ext/v8/upstream/3.1.8/src/d8.js +2798 -0
- data/ext/v8/upstream/3.1.8/src/data-flow.cc +545 -0
- data/ext/v8/upstream/3.1.8/src/data-flow.h +379 -0
- data/ext/v8/upstream/3.1.8/src/date.js +1103 -0
- data/ext/v8/upstream/3.1.8/src/dateparser-inl.h +125 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/dateparser.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/dateparser.h +263 -0
- data/ext/v8/upstream/3.1.8/src/debug-agent.cc +446 -0
- data/ext/v8/upstream/3.1.8/src/debug-agent.h +131 -0
- data/ext/v8/upstream/3.1.8/src/debug-debugger.js +2569 -0
- data/ext/v8/upstream/3.1.8/src/debug.cc +3085 -0
- data/ext/v8/upstream/3.1.8/src/debug.h +1025 -0
- data/ext/v8/upstream/3.1.8/src/deoptimizer.cc +1185 -0
- data/ext/v8/upstream/3.1.8/src/deoptimizer.h +529 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/disasm.h +0 -0
- data/ext/v8/upstream/3.1.8/src/disassembler.cc +338 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/disassembler.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/diy-fp.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/diy-fp.h +0 -0
- data/ext/v8/upstream/3.1.8/src/double.h +238 -0
- data/ext/v8/upstream/3.1.8/src/dtoa.cc +103 -0
- data/ext/v8/upstream/3.1.8/src/dtoa.h +85 -0
- data/ext/v8/upstream/3.1.8/src/execution.cc +735 -0
- data/ext/v8/upstream/3.1.8/src/execution.h +322 -0
- data/ext/v8/upstream/3.1.8/src/extensions/experimental/experimental.gyp +53 -0
- data/ext/v8/upstream/3.1.8/src/extensions/experimental/i18n-extension.cc +264 -0
- data/ext/v8/upstream/3.1.8/src/extensions/experimental/i18n-extension.h +64 -0
- data/ext/v8/upstream/3.1.8/src/extensions/externalize-string-extension.cc +141 -0
- data/ext/v8/upstream/3.1.8/src/extensions/externalize-string-extension.h +50 -0
- data/ext/v8/upstream/3.1.8/src/extensions/gc-extension.cc +58 -0
- data/ext/v8/upstream/3.1.8/src/extensions/gc-extension.h +49 -0
- data/ext/v8/upstream/3.1.8/src/factory.cc +1087 -0
- data/ext/v8/upstream/3.1.8/src/factory.h +432 -0
- data/ext/v8/upstream/3.1.8/src/fast-dtoa.cc +736 -0
- data/ext/v8/upstream/3.1.8/src/fast-dtoa.h +83 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/fixed-dtoa.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/fixed-dtoa.h +0 -0
- data/ext/v8/upstream/3.1.8/src/flag-definitions.h +552 -0
- data/ext/v8/upstream/3.1.8/src/flags.cc +551 -0
- data/ext/v8/upstream/3.1.8/src/flags.h +79 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/frame-element.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/frame-element.h +277 -0
- data/ext/v8/upstream/3.1.8/src/frames-inl.h +210 -0
- data/ext/v8/upstream/3.1.8/src/frames.cc +1232 -0
- data/ext/v8/upstream/3.1.8/src/frames.h +826 -0
- data/ext/v8/upstream/3.1.8/src/full-codegen.cc +1382 -0
- data/ext/v8/upstream/3.1.8/src/full-codegen.h +751 -0
- data/ext/v8/upstream/3.1.8/src/func-name-inferrer.cc +90 -0
- data/ext/v8/upstream/3.1.8/src/func-name-inferrer.h +111 -0
- data/ext/v8/upstream/3.1.8/src/gdb-jit.cc +1547 -0
- data/ext/v8/upstream/3.1.8/src/gdb-jit.h +138 -0
- data/ext/v8/upstream/3.1.8/src/global-handles.cc +534 -0
- data/ext/v8/upstream/3.1.8/src/global-handles.h +181 -0
- data/ext/v8/upstream/3.1.8/src/globals.h +325 -0
- data/ext/v8/upstream/3.1.8/src/handles-inl.h +80 -0
- data/ext/v8/upstream/3.1.8/src/handles.cc +910 -0
- data/ext/v8/upstream/3.1.8/src/handles.h +424 -0
- data/ext/v8/upstream/3.1.8/src/hashmap.cc +230 -0
- data/ext/v8/upstream/3.1.8/src/hashmap.h +121 -0
- data/ext/v8/upstream/3.1.8/src/heap-inl.h +587 -0
- data/ext/v8/upstream/3.1.8/src/heap-profiler.cc +1128 -0
- data/ext/v8/upstream/3.1.8/src/heap-profiler.h +381 -0
- data/ext/v8/upstream/3.1.8/src/heap.cc +5610 -0
- data/ext/v8/upstream/3.1.8/src/heap.h +2218 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen-instructions.cc +1490 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen-instructions.h +3493 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen.cc +6056 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen.h +1091 -0
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32-inl.h +429 -0
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32.cc +2800 -0
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32.h +1093 -0
- data/ext/v8/upstream/3.1.8/src/ia32/builtins-ia32.cc +1590 -0
- data/ext/v8/upstream/3.1.8/src/ia32/code-stubs-ia32.cc +6624 -0
- data/ext/v8/upstream/3.1.8/src/ia32/code-stubs-ia32.h +536 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/codegen-ia32-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/ia32/codegen-ia32.cc +10354 -0
- data/ext/v8/upstream/3.1.8/src/ia32/codegen-ia32.h +798 -0
- data/ext/v8/upstream/3.1.8/src/ia32/cpu-ia32.cc +87 -0
- data/ext/v8/upstream/3.1.8/src/ia32/debug-ia32.cc +309 -0
- data/ext/v8/upstream/3.1.8/src/ia32/deoptimizer-ia32.cc +664 -0
- data/ext/v8/upstream/3.1.8/src/ia32/disasm-ia32.cc +1597 -0
- data/ext/v8/upstream/3.1.8/src/ia32/frames-ia32.cc +45 -0
- data/ext/v8/upstream/3.1.8/src/ia32/frames-ia32.h +140 -0
- data/ext/v8/upstream/3.1.8/src/ia32/full-codegen-ia32.cc +4278 -0
- data/ext/v8/upstream/3.1.8/src/ia32/ic-ia32.cc +1786 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/jump-target-ia32.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-codegen-ia32.cc +3880 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-codegen-ia32.h +309 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-gap-resolver-ia32.cc +460 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-gap-resolver-ia32.h +110 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-ia32.cc +2095 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-ia32.h +2127 -0
- data/ext/v8/upstream/3.1.8/src/ia32/macro-assembler-ia32.cc +2031 -0
- data/ext/v8/upstream/3.1.8/src/ia32/macro-assembler-ia32.h +798 -0
- data/ext/v8/upstream/3.1.8/src/ia32/regexp-macro-assembler-ia32.cc +1253 -0
- data/ext/v8/upstream/3.1.8/src/ia32/regexp-macro-assembler-ia32.h +215 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/register-allocator-ia32-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/register-allocator-ia32.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/register-allocator-ia32.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/simulator-ia32.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/ia32/simulator-ia32.h +72 -0
- data/ext/v8/upstream/3.1.8/src/ia32/stub-cache-ia32.cc +3732 -0
- data/ext/v8/upstream/3.1.8/src/ia32/virtual-frame-ia32.cc +1360 -0
- data/ext/v8/upstream/3.1.8/src/ia32/virtual-frame-ia32.h +646 -0
- data/ext/v8/upstream/3.1.8/src/ic-inl.h +129 -0
- data/ext/v8/upstream/3.1.8/src/ic.cc +2333 -0
- data/ext/v8/upstream/3.1.8/src/ic.h +639 -0
- data/ext/v8/upstream/3.1.8/src/inspector.cc +63 -0
- data/ext/v8/upstream/3.1.8/src/inspector.h +62 -0
- data/ext/v8/upstream/3.1.8/src/interpreter-irregexp.cc +655 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/interpreter-irregexp.h +0 -0
- data/ext/v8/upstream/3.1.8/src/json.js +342 -0
- data/ext/v8/upstream/3.1.8/src/jsregexp.cc +5340 -0
- data/ext/v8/upstream/3.1.8/src/jsregexp.h +1484 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target-heavy-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-heavy.cc +430 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-heavy.h +244 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target-light-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-light.cc +111 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-light.h +193 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target.h +0 -0
- data/ext/v8/upstream/3.1.8/src/list-inl.h +206 -0
- data/ext/v8/upstream/3.1.8/src/list.h +164 -0
- data/ext/v8/upstream/3.1.8/src/lithium-allocator-inl.h +140 -0
- data/ext/v8/upstream/3.1.8/src/lithium-allocator.cc +2093 -0
- data/ext/v8/upstream/3.1.8/src/lithium-allocator.h +644 -0
- data/ext/v8/upstream/3.1.8/src/lithium.cc +168 -0
- data/ext/v8/upstream/3.1.8/src/lithium.h +592 -0
- data/ext/v8/upstream/3.1.8/src/liveedit-debugger.js +1082 -0
- data/ext/v8/upstream/3.1.8/src/liveedit.cc +1650 -0
- data/ext/v8/upstream/3.1.8/src/liveedit.h +174 -0
- data/ext/v8/upstream/3.1.8/src/liveobjectlist-inl.h +126 -0
- data/ext/v8/upstream/3.1.8/src/liveobjectlist.cc +2527 -0
- data/ext/v8/upstream/3.1.8/src/liveobjectlist.h +322 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/log-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/log-utils.cc +336 -0
- data/ext/v8/upstream/3.1.8/src/log-utils.h +232 -0
- data/ext/v8/upstream/3.1.8/src/log.cc +1608 -0
- data/ext/v8/upstream/3.1.8/src/log.h +379 -0
- data/ext/v8/upstream/3.1.8/src/macro-assembler.h +120 -0
- data/ext/v8/upstream/3.1.8/src/macros.py +178 -0
- data/ext/v8/upstream/3.1.8/src/mark-compact.cc +2957 -0
- data/ext/v8/upstream/3.1.8/src/mark-compact.h +433 -0
- data/ext/v8/upstream/3.1.8/src/math.js +264 -0
- data/ext/v8/upstream/3.1.8/src/memory.h +82 -0
- data/ext/v8/upstream/3.1.8/src/messages.cc +164 -0
- data/ext/v8/upstream/3.1.8/src/messages.h +114 -0
- data/ext/v8/upstream/3.1.8/src/messages.js +1071 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/assembler-mips-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/assembler-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/assembler-mips.h +667 -0
- data/ext/v8/upstream/3.1.8/src/mips/builtins-mips.cc +205 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/codegen-mips-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/codegen-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/codegen-mips.h +431 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/constants-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/constants-mips.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/cpu-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/debug-mips.cc +127 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/disasm-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/fast-codegen-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/frames-mips.cc +96 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/frames-mips.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/full-codegen-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/ic-mips.cc +208 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/jump-target-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/macro-assembler-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/macro-assembler-mips.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/register-allocator-mips-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/register-allocator-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/register-allocator-mips.h +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/simulator-mips.cc +1650 -0
- data/ext/v8/upstream/3.1.8/src/mips/simulator-mips.h +311 -0
- data/ext/v8/upstream/3.1.8/src/mips/stub-cache-mips.cc +418 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/virtual-frame-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/virtual-frame-mips.h +0 -0
- data/ext/v8/upstream/3.1.8/src/mirror-debugger.js +2380 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mksnapshot.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/natives.h +0 -0
- data/ext/v8/upstream/3.1.8/src/objects-debug.cc +722 -0
- data/ext/v8/upstream/3.1.8/src/objects-inl.h +3946 -0
- data/ext/v8/upstream/3.1.8/src/objects-printer.cc +801 -0
- data/ext/v8/upstream/3.1.8/src/objects-visiting.cc +142 -0
- data/ext/v8/upstream/3.1.8/src/objects-visiting.h +401 -0
- data/ext/v8/upstream/3.1.8/src/objects.cc +10044 -0
- data/ext/v8/upstream/3.1.8/src/objects.h +6571 -0
- data/ext/v8/upstream/3.1.8/src/parser.cc +5165 -0
- data/ext/v8/upstream/3.1.8/src/parser.h +802 -0
- data/ext/v8/upstream/3.1.8/src/platform-cygwin.cc +745 -0
- data/ext/v8/upstream/3.1.8/src/platform-freebsd.cc +702 -0
- data/ext/v8/upstream/3.1.8/src/platform-linux.cc +981 -0
- data/ext/v8/upstream/3.1.8/src/platform-macos.cc +732 -0
- data/ext/v8/upstream/3.1.8/src/platform-nullos.cc +498 -0
- data/ext/v8/upstream/3.1.8/src/platform-openbsd.cc +657 -0
- data/ext/v8/upstream/3.1.8/src/platform-posix.cc +399 -0
- data/ext/v8/upstream/3.1.8/src/platform-solaris.cc +714 -0
- data/ext/v8/upstream/3.1.8/src/platform-win32.cc +1974 -0
- data/ext/v8/upstream/3.1.8/src/platform.h +636 -0
- data/ext/v8/upstream/3.1.8/src/preparse-data.cc +183 -0
- data/ext/v8/upstream/3.1.8/src/preparse-data.h +249 -0
- data/ext/v8/upstream/3.1.8/src/preparser-api.cc +213 -0
- data/ext/v8/upstream/3.1.8/src/preparser.cc +1205 -0
- data/ext/v8/upstream/3.1.8/src/preparser.h +278 -0
- data/ext/v8/upstream/3.1.8/src/prettyprinter.cc +1539 -0
- data/ext/v8/upstream/3.1.8/src/prettyprinter.h +223 -0
- data/ext/v8/upstream/3.1.8/src/profile-generator-inl.h +128 -0
- data/ext/v8/upstream/3.1.8/src/profile-generator.cc +2899 -0
- data/ext/v8/upstream/3.1.8/src/profile-generator.h +1151 -0
- data/ext/v8/upstream/3.1.8/src/property.cc +96 -0
- data/ext/v8/upstream/3.1.8/src/property.h +337 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/regexp-macro-assembler-irregexp-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-irregexp.cc +470 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-irregexp.h +142 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-tracer.cc +373 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-tracer.h +104 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler.cc +257 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler.h +231 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/regexp-stack.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/regexp-stack.h +0 -0
- data/ext/v8/upstream/3.1.8/src/regexp.js +483 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/register-allocator-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/register-allocator.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/register-allocator.h +0 -0
- data/ext/v8/upstream/3.1.8/src/rewriter.cc +1023 -0
- data/ext/v8/upstream/3.1.8/src/rewriter.h +59 -0
- data/ext/v8/upstream/3.1.8/src/runtime-profiler.cc +443 -0
- data/ext/v8/upstream/3.1.8/src/runtime-profiler.h +77 -0
- data/ext/v8/upstream/3.1.8/src/runtime.cc +11592 -0
- data/ext/v8/upstream/3.1.8/src/runtime.h +582 -0
- data/ext/v8/upstream/3.1.8/src/runtime.js +643 -0
- data/ext/v8/upstream/3.1.8/src/safepoint-table.cc +253 -0
- data/ext/v8/upstream/3.1.8/src/safepoint-table.h +263 -0
- data/ext/v8/upstream/3.1.8/src/scanner-base.cc +971 -0
- data/ext/v8/upstream/3.1.8/src/scanner-base.h +653 -0
- data/ext/v8/upstream/3.1.8/src/scanner.cc +586 -0
- data/ext/v8/upstream/3.1.8/src/scanner.h +194 -0
- data/ext/v8/upstream/3.1.8/src/scopeinfo.cc +636 -0
- data/ext/v8/upstream/3.1.8/src/scopeinfo.h +238 -0
- data/ext/v8/upstream/3.1.8/src/scopes.cc +1063 -0
- data/ext/v8/upstream/3.1.8/src/scopes.h +494 -0
- data/ext/v8/upstream/3.1.8/src/serialize.cc +1535 -0
- data/ext/v8/upstream/3.1.8/src/serialize.h +584 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/shell.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/simulator.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/smart-pointer.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/snapshot-common.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/snapshot-empty.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/snapshot.h +0 -0
- data/ext/v8/upstream/3.1.8/src/spaces-inl.h +524 -0
- data/ext/v8/upstream/3.1.8/src/spaces.cc +3254 -0
- data/ext/v8/upstream/3.1.8/src/spaces.h +2362 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/splay-tree-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/splay-tree.h +0 -0
- data/ext/v8/upstream/3.1.8/src/string-search.cc +40 -0
- data/ext/v8/upstream/3.1.8/src/string-search.h +567 -0
- data/ext/v8/upstream/3.1.8/src/string-stream.cc +584 -0
- data/ext/v8/upstream/3.1.8/src/string-stream.h +191 -0
- data/ext/v8/upstream/3.1.8/src/string.js +915 -0
- data/ext/v8/upstream/3.1.8/src/strtod.cc +440 -0
- data/ext/v8/upstream/3.1.8/src/strtod.h +40 -0
- data/ext/v8/upstream/3.1.8/src/stub-cache.cc +1878 -0
- data/ext/v8/upstream/3.1.8/src/stub-cache.h +849 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/third_party/valgrind/valgrind.h +0 -0
- data/ext/v8/upstream/3.1.8/src/token.cc +63 -0
- data/ext/v8/upstream/3.1.8/src/token.h +288 -0
- data/ext/v8/upstream/3.1.8/src/top.cc +1152 -0
- data/ext/v8/upstream/3.1.8/src/top.h +608 -0
- data/ext/v8/upstream/3.1.8/src/type-info.cc +406 -0
- data/ext/v8/upstream/3.1.8/src/type-info.h +283 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/unbound-queue-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/unbound-queue.h +0 -0
- data/ext/v8/upstream/3.1.8/src/unicode-inl.h +238 -0
- data/ext/v8/upstream/3.1.8/src/unicode.cc +1624 -0
- data/ext/v8/upstream/3.1.8/src/unicode.h +280 -0
- data/ext/v8/upstream/3.1.8/src/uri.js +402 -0
- data/ext/v8/upstream/3.1.8/src/utils.cc +371 -0
- data/ext/v8/upstream/3.1.8/src/utils.h +793 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/v8-counters.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/v8-counters.h +290 -0
- data/ext/v8/upstream/3.1.8/src/v8.cc +270 -0
- data/ext/v8/upstream/3.1.8/src/v8.h +127 -0
- data/ext/v8/upstream/3.1.8/src/v8checks.h +64 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/v8dll-main.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/v8globals.h +480 -0
- data/ext/v8/upstream/3.1.8/src/v8natives.js +1252 -0
- data/ext/v8/upstream/3.1.8/src/v8preparserdll-main.cc +39 -0
- data/ext/v8/upstream/3.1.8/src/v8threads.cc +440 -0
- data/ext/v8/upstream/3.1.8/src/v8threads.h +157 -0
- data/ext/v8/upstream/3.1.8/src/v8utils.h +354 -0
- data/ext/v8/upstream/3.1.8/src/variables.cc +132 -0
- data/ext/v8/upstream/3.1.8/src/variables.h +212 -0
- data/ext/v8/upstream/3.1.8/src/version.cc +95 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/version.h +0 -0
- data/ext/v8/upstream/3.1.8/src/virtual-frame-heavy-inl.h +190 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-heavy.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-light-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-light.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/virtual-frame.h +59 -0
- data/ext/v8/upstream/3.1.8/src/vm-state-inl.h +134 -0
- data/ext/v8/upstream/3.1.8/src/vm-state.h +68 -0
- data/ext/v8/upstream/3.1.8/src/win32-headers.h +95 -0
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64-inl.h +455 -0
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64.cc +3162 -0
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64.h +1584 -0
- data/ext/v8/upstream/3.1.8/src/x64/builtins-x64.cc +1492 -0
- data/ext/v8/upstream/3.1.8/src/x64/code-stubs-x64.cc +5150 -0
- data/ext/v8/upstream/3.1.8/src/x64/code-stubs-x64.h +519 -0
- data/ext/v8/upstream/3.1.8/src/x64/codegen-x64-inl.h +46 -0
- data/ext/v8/upstream/3.1.8/src/x64/codegen-x64.cc +8835 -0
- data/ext/v8/upstream/3.1.8/src/x64/codegen-x64.h +750 -0
- data/ext/v8/upstream/3.1.8/src/x64/cpu-x64.cc +86 -0
- data/ext/v8/upstream/3.1.8/src/x64/debug-x64.cc +316 -0
- data/ext/v8/upstream/3.1.8/src/x64/deoptimizer-x64.cc +781 -0
- data/ext/v8/upstream/3.1.8/src/x64/disasm-x64.cc +1737 -0
- data/ext/v8/upstream/3.1.8/src/x64/frames-x64.cc +45 -0
- data/ext/v8/upstream/3.1.8/src/x64/frames-x64.h +130 -0
- data/ext/v8/upstream/3.1.8/src/x64/full-codegen-x64.cc +3984 -0
- data/ext/v8/upstream/3.1.8/src/x64/ic-x64.cc +1761 -0
- data/ext/v8/upstream/3.1.8/src/x64/jump-target-x64.cc +437 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-codegen-x64.cc +3639 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-codegen-x64.h +305 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-gap-resolver-x64.cc +320 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-gap-resolver-x64.h +74 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-x64.cc +2044 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-x64.h +2052 -0
- data/ext/v8/upstream/3.1.8/src/x64/macro-assembler-x64.cc +2660 -0
- data/ext/v8/upstream/3.1.8/src/x64/macro-assembler-x64.h +1852 -0
- data/ext/v8/upstream/3.1.8/src/x64/regexp-macro-assembler-x64.cc +1382 -0
- data/ext/v8/upstream/3.1.8/src/x64/regexp-macro-assembler-x64.h +278 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/register-allocator-x64-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/register-allocator-x64.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/register-allocator-x64.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/simulator-x64.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/x64/simulator-x64.h +71 -0
- data/ext/v8/upstream/3.1.8/src/x64/stub-cache-x64.cc +3509 -0
- data/ext/v8/upstream/3.1.8/src/x64/virtual-frame-x64.cc +1292 -0
- data/ext/v8/upstream/3.1.8/src/x64/virtual-frame-x64.h +593 -0
- data/ext/v8/upstream/3.1.8/src/zone-inl.h +83 -0
- data/ext/v8/upstream/3.1.8/src/zone.cc +195 -0
- data/ext/v8/upstream/3.1.8/src/zone.h +233 -0
- data/ext/v8/upstream/3.1.8/tools/codemap.js +265 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/consarray.js +0 -0
- data/ext/v8/upstream/3.1.8/tools/csvparser.js +78 -0
- data/ext/v8/upstream/3.1.8/tools/disasm.py +92 -0
- data/ext/v8/upstream/3.1.8/tools/gc-nvp-trace-processor.py +328 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/generate-ten-powers.scm +0 -0
- data/ext/v8/upstream/3.1.8/tools/grokdump.py +840 -0
- data/ext/v8/upstream/3.1.8/tools/gyp/v8.gyp +869 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/js2c.py +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/jsmin.py +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/linux-tick-processor +0 -0
- data/ext/v8/upstream/3.1.8/tools/ll_prof.py +919 -0
- data/ext/v8/upstream/3.1.8/tools/logreader.js +185 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/mac-nm +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/mac-tick-processor +0 -0
- data/ext/v8/upstream/3.1.8/tools/oom_dump/README +31 -0
- data/ext/v8/upstream/3.1.8/tools/oom_dump/SConstruct +42 -0
- data/ext/v8/upstream/3.1.8/tools/oom_dump/oom_dump.cc +288 -0
- data/ext/v8/upstream/3.1.8/tools/presubmit.py +305 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/process-heap-prof.py +0 -0
- data/ext/v8/upstream/3.1.8/tools/profile.js +751 -0
- data/ext/v8/upstream/3.1.8/tools/profile_view.js +219 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/run-valgrind.py +0 -0
- data/ext/v8/upstream/3.1.8/tools/splaytree.js +316 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/stats-viewer.py +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/tickprocessor-driver.js +0 -0
- data/ext/v8/upstream/3.1.8/tools/tickprocessor.js +863 -0
- data/ext/v8/upstream/3.1.8/tools/utils.py +96 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/README.txt +70 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/arm.vsprops +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/common.vsprops +34 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8_arm.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8js2c.cmd +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/debug.vsprops +17 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/ia32.vsprops +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/js2c.cmd +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/release.vsprops +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8.sln +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_arm.sln +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_arm.vcproj +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base.vcproj +1296 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base_arm.vcproj +1234 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base_x64.vcproj +1296 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_cctest.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_cctest_arm.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_cctest_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_mksnapshot.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_mksnapshot_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_process_sample.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_process_sample_arm.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_process_sample_x64.vcproj +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_shell_sample.vcproj +147 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_shell_sample_arm.vcproj +147 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_shell_sample_x64.vcproj +163 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot_cc.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot_cc_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_x64.sln +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/x64.vsprops +0 -0
- data/ext/v8/upstream/3.1.8/tools/windows-tick-processor.bat +30 -0
- data/ext/v8/upstream/Makefile +2 -1
- data/ext/v8/v8_template.cpp +2 -2
- data/lib/v8/version.rb +1 -1
- data/spec/redjs/jsapi_spec.rb +2 -2
- metadata +552 -490
- data/ext/v8/upstream/2.3.3/.gitignore +0 -26
- data/ext/v8/upstream/2.3.3/AUTHORS +0 -31
- data/ext/v8/upstream/2.3.3/ChangeLog +0 -1916
- data/ext/v8/upstream/2.3.3/LICENSE +0 -55
- data/ext/v8/upstream/2.3.3/SConstruct +0 -1154
- data/ext/v8/upstream/2.3.3/include/v8-debug.h +0 -381
- data/ext/v8/upstream/2.3.3/include/v8-profiler.h +0 -353
- data/ext/v8/upstream/2.3.3/include/v8.h +0 -3616
- data/ext/v8/upstream/2.3.3/src/SConscript +0 -330
- data/ext/v8/upstream/2.3.3/src/accessors.cc +0 -661
- data/ext/v8/upstream/2.3.3/src/accessors.h +0 -114
- data/ext/v8/upstream/2.3.3/src/allocation.cc +0 -198
- data/ext/v8/upstream/2.3.3/src/allocation.h +0 -169
- data/ext/v8/upstream/2.3.3/src/api.cc +0 -4795
- data/ext/v8/upstream/2.3.3/src/api.h +0 -485
- data/ext/v8/upstream/2.3.3/src/apiutils.h +0 -69
- data/ext/v8/upstream/2.3.3/src/arguments.h +0 -96
- data/ext/v8/upstream/2.3.3/src/arm/assembler-arm-inl.h +0 -305
- data/ext/v8/upstream/2.3.3/src/arm/assembler-arm.cc +0 -2580
- data/ext/v8/upstream/2.3.3/src/arm/assembler-arm.h +0 -1275
- data/ext/v8/upstream/2.3.3/src/arm/builtins-arm.cc +0 -1320
- data/ext/v8/upstream/2.3.3/src/arm/codegen-arm-inl.h +0 -48
- data/ext/v8/upstream/2.3.3/src/arm/codegen-arm.cc +0 -11398
- data/ext/v8/upstream/2.3.3/src/arm/codegen-arm.h +0 -1102
- data/ext/v8/upstream/2.3.3/src/arm/constants-arm.cc +0 -154
- data/ext/v8/upstream/2.3.3/src/arm/constants-arm.h +0 -388
- data/ext/v8/upstream/2.3.3/src/arm/cpu-arm.cc +0 -142
- data/ext/v8/upstream/2.3.3/src/arm/debug-arm.cc +0 -309
- data/ext/v8/upstream/2.3.3/src/arm/disasm-arm.cc +0 -1459
- data/ext/v8/upstream/2.3.3/src/arm/fast-codegen-arm.cc +0 -241
- data/ext/v8/upstream/2.3.3/src/arm/frames-arm.cc +0 -123
- data/ext/v8/upstream/2.3.3/src/arm/frames-arm.h +0 -162
- data/ext/v8/upstream/2.3.3/src/arm/full-codegen-arm.cc +0 -3178
- data/ext/v8/upstream/2.3.3/src/arm/ic-arm.cc +0 -2258
- data/ext/v8/upstream/2.3.3/src/arm/jump-target-arm.cc +0 -164
- data/ext/v8/upstream/2.3.3/src/arm/macro-assembler-arm.cc +0 -1892
- data/ext/v8/upstream/2.3.3/src/arm/macro-assembler-arm.h +0 -727
- data/ext/v8/upstream/2.3.3/src/arm/regexp-macro-assembler-arm.cc +0 -1261
- data/ext/v8/upstream/2.3.3/src/arm/regexp-macro-assembler-arm.h +0 -266
- data/ext/v8/upstream/2.3.3/src/arm/simulator-arm.cc +0 -2822
- data/ext/v8/upstream/2.3.3/src/arm/simulator-arm.h +0 -361
- data/ext/v8/upstream/2.3.3/src/arm/stub-cache-arm.cc +0 -2387
- data/ext/v8/upstream/2.3.3/src/arm/virtual-frame-arm.cc +0 -834
- data/ext/v8/upstream/2.3.3/src/arm/virtual-frame-arm.h +0 -519
- data/ext/v8/upstream/2.3.3/src/array.js +0 -1127
- data/ext/v8/upstream/2.3.3/src/assembler.cc +0 -801
- data/ext/v8/upstream/2.3.3/src/assembler.h +0 -573
- data/ext/v8/upstream/2.3.3/src/ast-inl.h +0 -81
- data/ext/v8/upstream/2.3.3/src/ast.cc +0 -1152
- data/ext/v8/upstream/2.3.3/src/ast.h +0 -2106
- data/ext/v8/upstream/2.3.3/src/bootstrapper.cc +0 -1819
- data/ext/v8/upstream/2.3.3/src/builtins.cc +0 -1529
- data/ext/v8/upstream/2.3.3/src/builtins.h +0 -263
- data/ext/v8/upstream/2.3.3/src/bytecodes-irregexp.h +0 -104
- data/ext/v8/upstream/2.3.3/src/cached-powers.h +0 -119
- data/ext/v8/upstream/2.3.3/src/char-predicates-inl.h +0 -86
- data/ext/v8/upstream/2.3.3/src/checks.cc +0 -100
- data/ext/v8/upstream/2.3.3/src/checks.h +0 -310
- data/ext/v8/upstream/2.3.3/src/circular-queue.cc +0 -121
- data/ext/v8/upstream/2.3.3/src/code-stubs.cc +0 -177
- data/ext/v8/upstream/2.3.3/src/code-stubs.h +0 -177
- data/ext/v8/upstream/2.3.3/src/codegen-inl.h +0 -60
- data/ext/v8/upstream/2.3.3/src/codegen.cc +0 -516
- data/ext/v8/upstream/2.3.3/src/codegen.h +0 -897
- data/ext/v8/upstream/2.3.3/src/compilation-cache.cc +0 -562
- data/ext/v8/upstream/2.3.3/src/compilation-cache.h +0 -102
- data/ext/v8/upstream/2.3.3/src/compiler.cc +0 -654
- data/ext/v8/upstream/2.3.3/src/compiler.h +0 -299
- data/ext/v8/upstream/2.3.3/src/contexts.cc +0 -256
- data/ext/v8/upstream/2.3.3/src/contexts.h +0 -342
- data/ext/v8/upstream/2.3.3/src/conversions.cc +0 -1119
- data/ext/v8/upstream/2.3.3/src/conversions.h +0 -123
- data/ext/v8/upstream/2.3.3/src/counters.h +0 -239
- data/ext/v8/upstream/2.3.3/src/cpu-profiler-inl.h +0 -100
- data/ext/v8/upstream/2.3.3/src/cpu-profiler.cc +0 -538
- data/ext/v8/upstream/2.3.3/src/cpu-profiler.h +0 -285
- data/ext/v8/upstream/2.3.3/src/d8-debug.cc +0 -356
- data/ext/v8/upstream/2.3.3/src/d8-debug.h +0 -155
- data/ext/v8/upstream/2.3.3/src/d8.cc +0 -783
- data/ext/v8/upstream/2.3.3/src/d8.h +0 -227
- data/ext/v8/upstream/2.3.3/src/d8.js +0 -1683
- data/ext/v8/upstream/2.3.3/src/data-flow.cc +0 -758
- data/ext/v8/upstream/2.3.3/src/data-flow.h +0 -278
- data/ext/v8/upstream/2.3.3/src/date.js +0 -1059
- data/ext/v8/upstream/2.3.3/src/dateparser-inl.h +0 -123
- data/ext/v8/upstream/2.3.3/src/dateparser.h +0 -244
- data/ext/v8/upstream/2.3.3/src/debug-agent.cc +0 -427
- data/ext/v8/upstream/2.3.3/src/debug-agent.h +0 -129
- data/ext/v8/upstream/2.3.3/src/debug-debugger.js +0 -2227
- data/ext/v8/upstream/2.3.3/src/debug.cc +0 -3005
- data/ext/v8/upstream/2.3.3/src/debug.h +0 -993
- data/ext/v8/upstream/2.3.3/src/disassembler.cc +0 -312
- data/ext/v8/upstream/2.3.3/src/double.h +0 -169
- data/ext/v8/upstream/2.3.3/src/dtoa-config.c +0 -92
- data/ext/v8/upstream/2.3.3/src/dtoa.cc +0 -77
- data/ext/v8/upstream/2.3.3/src/dtoa.h +0 -81
- data/ext/v8/upstream/2.3.3/src/execution.cc +0 -809
- data/ext/v8/upstream/2.3.3/src/execution.h +0 -336
- data/ext/v8/upstream/2.3.3/src/factory.cc +0 -1003
- data/ext/v8/upstream/2.3.3/src/factory.h +0 -410
- data/ext/v8/upstream/2.3.3/src/fast-codegen.cc +0 -746
- data/ext/v8/upstream/2.3.3/src/fast-codegen.h +0 -161
- data/ext/v8/upstream/2.3.3/src/fast-dtoa.cc +0 -505
- data/ext/v8/upstream/2.3.3/src/fast-dtoa.h +0 -58
- data/ext/v8/upstream/2.3.3/src/flag-definitions.h +0 -455
- data/ext/v8/upstream/2.3.3/src/flags.cc +0 -551
- data/ext/v8/upstream/2.3.3/src/flags.h +0 -81
- data/ext/v8/upstream/2.3.3/src/flow-graph.cc +0 -763
- data/ext/v8/upstream/2.3.3/src/flow-graph.h +0 -180
- data/ext/v8/upstream/2.3.3/src/frame-element.h +0 -273
- data/ext/v8/upstream/2.3.3/src/frames-inl.h +0 -217
- data/ext/v8/upstream/2.3.3/src/frames.cc +0 -826
- data/ext/v8/upstream/2.3.3/src/frames.h +0 -682
- data/ext/v8/upstream/2.3.3/src/full-codegen.cc +0 -1443
- data/ext/v8/upstream/2.3.3/src/full-codegen.h +0 -548
- data/ext/v8/upstream/2.3.3/src/func-name-inferrer.cc +0 -76
- data/ext/v8/upstream/2.3.3/src/func-name-inferrer.h +0 -135
- data/ext/v8/upstream/2.3.3/src/global-handles.cc +0 -520
- data/ext/v8/upstream/2.3.3/src/global-handles.h +0 -180
- data/ext/v8/upstream/2.3.3/src/globals.h +0 -669
- data/ext/v8/upstream/2.3.3/src/handles-inl.h +0 -76
- data/ext/v8/upstream/2.3.3/src/handles.cc +0 -825
- data/ext/v8/upstream/2.3.3/src/handles.h +0 -393
- data/ext/v8/upstream/2.3.3/src/hashmap.cc +0 -226
- data/ext/v8/upstream/2.3.3/src/hashmap.h +0 -120
- data/ext/v8/upstream/2.3.3/src/heap-inl.h +0 -493
- data/ext/v8/upstream/2.3.3/src/heap-profiler.cc +0 -779
- data/ext/v8/upstream/2.3.3/src/heap-profiler.h +0 -323
- data/ext/v8/upstream/2.3.3/src/heap.cc +0 -4994
- data/ext/v8/upstream/2.3.3/src/heap.h +0 -1984
- data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32-inl.h +0 -360
- data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32.cc +0 -2600
- data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32.h +0 -969
- data/ext/v8/upstream/2.3.3/src/ia32/builtins-ia32.cc +0 -1261
- data/ext/v8/upstream/2.3.3/src/ia32/codegen-ia32.cc +0 -13968
- data/ext/v8/upstream/2.3.3/src/ia32/codegen-ia32.h +0 -1097
- data/ext/v8/upstream/2.3.3/src/ia32/cpu-ia32.cc +0 -83
- data/ext/v8/upstream/2.3.3/src/ia32/debug-ia32.cc +0 -309
- data/ext/v8/upstream/2.3.3/src/ia32/disasm-ia32.cc +0 -1471
- data/ext/v8/upstream/2.3.3/src/ia32/fast-codegen-ia32.cc +0 -954
- data/ext/v8/upstream/2.3.3/src/ia32/fast-codegen-ia32.h +0 -155
- data/ext/v8/upstream/2.3.3/src/ia32/frames-ia32.cc +0 -115
- data/ext/v8/upstream/2.3.3/src/ia32/frames-ia32.h +0 -135
- data/ext/v8/upstream/2.3.3/src/ia32/full-codegen-ia32.cc +0 -3281
- data/ext/v8/upstream/2.3.3/src/ia32/ic-ia32.cc +0 -1966
- data/ext/v8/upstream/2.3.3/src/ia32/macro-assembler-ia32.cc +0 -1610
- data/ext/v8/upstream/2.3.3/src/ia32/macro-assembler-ia32.h +0 -610
- data/ext/v8/upstream/2.3.3/src/ia32/regexp-macro-assembler-ia32.cc +0 -1247
- data/ext/v8/upstream/2.3.3/src/ia32/regexp-macro-assembler-ia32.h +0 -214
- data/ext/v8/upstream/2.3.3/src/ia32/simulator-ia32.h +0 -62
- data/ext/v8/upstream/2.3.3/src/ia32/stub-cache-ia32.cc +0 -2750
- data/ext/v8/upstream/2.3.3/src/ia32/virtual-frame-ia32.cc +0 -1334
- data/ext/v8/upstream/2.3.3/src/ia32/virtual-frame-ia32.h +0 -627
- data/ext/v8/upstream/2.3.3/src/ic-inl.h +0 -120
- data/ext/v8/upstream/2.3.3/src/ic.cc +0 -1827
- data/ext/v8/upstream/2.3.3/src/ic.h +0 -515
- data/ext/v8/upstream/2.3.3/src/interpreter-irregexp.cc +0 -646
- data/ext/v8/upstream/2.3.3/src/json.js +0 -268
- data/ext/v8/upstream/2.3.3/src/jsregexp.cc +0 -5283
- data/ext/v8/upstream/2.3.3/src/jsregexp.h +0 -1463
- data/ext/v8/upstream/2.3.3/src/jump-target-heavy.cc +0 -429
- data/ext/v8/upstream/2.3.3/src/jump-target-heavy.h +0 -244
- data/ext/v8/upstream/2.3.3/src/jump-target-light.cc +0 -110
- data/ext/v8/upstream/2.3.3/src/jump-target-light.h +0 -192
- data/ext/v8/upstream/2.3.3/src/list-inl.h +0 -166
- data/ext/v8/upstream/2.3.3/src/list.h +0 -159
- data/ext/v8/upstream/2.3.3/src/liveedit-debugger.js +0 -1057
- data/ext/v8/upstream/2.3.3/src/liveedit.cc +0 -1480
- data/ext/v8/upstream/2.3.3/src/liveedit.h +0 -170
- data/ext/v8/upstream/2.3.3/src/log-utils.cc +0 -497
- data/ext/v8/upstream/2.3.3/src/log-utils.h +0 -289
- data/ext/v8/upstream/2.3.3/src/log.cc +0 -1561
- data/ext/v8/upstream/2.3.3/src/log.h +0 -384
- data/ext/v8/upstream/2.3.3/src/macro-assembler.h +0 -86
- data/ext/v8/upstream/2.3.3/src/macros.py +0 -177
- data/ext/v8/upstream/2.3.3/src/mark-compact.cc +0 -2330
- data/ext/v8/upstream/2.3.3/src/mark-compact.h +0 -451
- data/ext/v8/upstream/2.3.3/src/math.js +0 -264
- data/ext/v8/upstream/2.3.3/src/memory.h +0 -74
- data/ext/v8/upstream/2.3.3/src/messages.cc +0 -183
- data/ext/v8/upstream/2.3.3/src/messages.h +0 -113
- data/ext/v8/upstream/2.3.3/src/messages.js +0 -982
- data/ext/v8/upstream/2.3.3/src/mips/assembler-mips.h +0 -668
- data/ext/v8/upstream/2.3.3/src/mips/builtins-mips.cc +0 -205
- data/ext/v8/upstream/2.3.3/src/mips/codegen-mips.h +0 -434
- data/ext/v8/upstream/2.3.3/src/mips/debug-mips.cc +0 -131
- data/ext/v8/upstream/2.3.3/src/mips/frames-mips.cc +0 -102
- data/ext/v8/upstream/2.3.3/src/mips/ic-mips.cc +0 -220
- data/ext/v8/upstream/2.3.3/src/mips/simulator-mips.cc +0 -1651
- data/ext/v8/upstream/2.3.3/src/mips/simulator-mips.h +0 -311
- data/ext/v8/upstream/2.3.3/src/mips/stub-cache-mips.cc +0 -403
- data/ext/v8/upstream/2.3.3/src/mirror-debugger.js +0 -2380
- data/ext/v8/upstream/2.3.3/src/objects-debug.cc +0 -1366
- data/ext/v8/upstream/2.3.3/src/objects-inl.h +0 -3333
- data/ext/v8/upstream/2.3.3/src/objects.cc +0 -8820
- data/ext/v8/upstream/2.3.3/src/objects.h +0 -5373
- data/ext/v8/upstream/2.3.3/src/oprofile-agent.cc +0 -108
- data/ext/v8/upstream/2.3.3/src/oprofile-agent.h +0 -77
- data/ext/v8/upstream/2.3.3/src/parser.cc +0 -5207
- data/ext/v8/upstream/2.3.3/src/parser.h +0 -197
- data/ext/v8/upstream/2.3.3/src/platform-freebsd.cc +0 -667
- data/ext/v8/upstream/2.3.3/src/platform-linux.cc +0 -862
- data/ext/v8/upstream/2.3.3/src/platform-macos.cc +0 -665
- data/ext/v8/upstream/2.3.3/src/platform-nullos.cc +0 -454
- data/ext/v8/upstream/2.3.3/src/platform-openbsd.cc +0 -622
- data/ext/v8/upstream/2.3.3/src/platform-posix.cc +0 -362
- data/ext/v8/upstream/2.3.3/src/platform-solaris.cc +0 -653
- data/ext/v8/upstream/2.3.3/src/platform-win32.cc +0 -1911
- data/ext/v8/upstream/2.3.3/src/platform.h +0 -577
- data/ext/v8/upstream/2.3.3/src/powers-ten.h +0 -2461
- data/ext/v8/upstream/2.3.3/src/prettyprinter.cc +0 -1531
- data/ext/v8/upstream/2.3.3/src/prettyprinter.h +0 -221
- data/ext/v8/upstream/2.3.3/src/profile-generator-inl.h +0 -148
- data/ext/v8/upstream/2.3.3/src/profile-generator.cc +0 -1830
- data/ext/v8/upstream/2.3.3/src/profile-generator.h +0 -853
- data/ext/v8/upstream/2.3.3/src/property.cc +0 -96
- data/ext/v8/upstream/2.3.3/src/property.h +0 -315
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-irregexp.cc +0 -464
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-irregexp.h +0 -141
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-tracer.cc +0 -356
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-tracer.h +0 -103
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler.cc +0 -261
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler.h +0 -228
- data/ext/v8/upstream/2.3.3/src/regexp.js +0 -549
- data/ext/v8/upstream/2.3.3/src/rewriter.cc +0 -1038
- data/ext/v8/upstream/2.3.3/src/rewriter.h +0 -54
- data/ext/v8/upstream/2.3.3/src/runtime.cc +0 -10599
- data/ext/v8/upstream/2.3.3/src/runtime.h +0 -459
- data/ext/v8/upstream/2.3.3/src/runtime.js +0 -629
- data/ext/v8/upstream/2.3.3/src/scanner.cc +0 -1346
- data/ext/v8/upstream/2.3.3/src/scanner.h +0 -503
- data/ext/v8/upstream/2.3.3/src/scopeinfo.cc +0 -637
- data/ext/v8/upstream/2.3.3/src/scopeinfo.h +0 -233
- data/ext/v8/upstream/2.3.3/src/scopes.cc +0 -962
- data/ext/v8/upstream/2.3.3/src/scopes.h +0 -400
- data/ext/v8/upstream/2.3.3/src/serialize.cc +0 -1461
- data/ext/v8/upstream/2.3.3/src/serialize.h +0 -581
- data/ext/v8/upstream/2.3.3/src/spaces-inl.h +0 -483
- data/ext/v8/upstream/2.3.3/src/spaces.cc +0 -2901
- data/ext/v8/upstream/2.3.3/src/spaces.h +0 -2197
- data/ext/v8/upstream/2.3.3/src/string-stream.cc +0 -584
- data/ext/v8/upstream/2.3.3/src/string-stream.h +0 -189
- data/ext/v8/upstream/2.3.3/src/string.js +0 -1006
- data/ext/v8/upstream/2.3.3/src/stub-cache.cc +0 -1379
- data/ext/v8/upstream/2.3.3/src/stub-cache.h +0 -756
- data/ext/v8/upstream/2.3.3/src/third_party/dtoa/COPYING +0 -15
- data/ext/v8/upstream/2.3.3/src/third_party/dtoa/dtoa.c +0 -3334
- data/ext/v8/upstream/2.3.3/src/token.cc +0 -56
- data/ext/v8/upstream/2.3.3/src/token.h +0 -270
- data/ext/v8/upstream/2.3.3/src/top.cc +0 -1067
- data/ext/v8/upstream/2.3.3/src/top.h +0 -463
- data/ext/v8/upstream/2.3.3/src/type-info.cc +0 -53
- data/ext/v8/upstream/2.3.3/src/type-info.h +0 -244
- data/ext/v8/upstream/2.3.3/src/unicode-inl.h +0 -238
- data/ext/v8/upstream/2.3.3/src/unicode.cc +0 -749
- data/ext/v8/upstream/2.3.3/src/unicode.h +0 -279
- data/ext/v8/upstream/2.3.3/src/uri.js +0 -415
- data/ext/v8/upstream/2.3.3/src/utils.cc +0 -285
- data/ext/v8/upstream/2.3.3/src/utils.h +0 -745
- data/ext/v8/upstream/2.3.3/src/v8-counters.h +0 -250
- data/ext/v8/upstream/2.3.3/src/v8.cc +0 -228
- data/ext/v8/upstream/2.3.3/src/v8.h +0 -121
- data/ext/v8/upstream/2.3.3/src/v8natives.js +0 -1188
- data/ext/v8/upstream/2.3.3/src/v8threads.cc +0 -461
- data/ext/v8/upstream/2.3.3/src/v8threads.h +0 -159
- data/ext/v8/upstream/2.3.3/src/variables.cc +0 -119
- data/ext/v8/upstream/2.3.3/src/variables.h +0 -205
- data/ext/v8/upstream/2.3.3/src/version.cc +0 -88
- data/ext/v8/upstream/2.3.3/src/virtual-frame-heavy-inl.h +0 -192
- data/ext/v8/upstream/2.3.3/src/virtual-frame.h +0 -46
- data/ext/v8/upstream/2.3.3/src/vm-state-inl.h +0 -137
- data/ext/v8/upstream/2.3.3/src/vm-state.cc +0 -39
- data/ext/v8/upstream/2.3.3/src/vm-state.h +0 -77
- data/ext/v8/upstream/2.3.3/src/x64/assembler-x64-inl.h +0 -400
- data/ext/v8/upstream/2.3.3/src/x64/assembler-x64.cc +0 -2963
- data/ext/v8/upstream/2.3.3/src/x64/assembler-x64.h +0 -1438
- data/ext/v8/upstream/2.3.3/src/x64/builtins-x64.cc +0 -1296
- data/ext/v8/upstream/2.3.3/src/x64/codegen-x64-inl.h +0 -46
- data/ext/v8/upstream/2.3.3/src/x64/codegen-x64.cc +0 -12491
- data/ext/v8/upstream/2.3.3/src/x64/codegen-x64.h +0 -1090
- data/ext/v8/upstream/2.3.3/src/x64/cpu-x64.cc +0 -83
- data/ext/v8/upstream/2.3.3/src/x64/debug-x64.cc +0 -267
- data/ext/v8/upstream/2.3.3/src/x64/disasm-x64.cc +0 -1696
- data/ext/v8/upstream/2.3.3/src/x64/fast-codegen-x64.cc +0 -250
- data/ext/v8/upstream/2.3.3/src/x64/frames-x64.cc +0 -113
- data/ext/v8/upstream/2.3.3/src/x64/frames-x64.h +0 -125
- data/ext/v8/upstream/2.3.3/src/x64/full-codegen-x64.cc +0 -3270
- data/ext/v8/upstream/2.3.3/src/x64/ic-x64.cc +0 -1907
- data/ext/v8/upstream/2.3.3/src/x64/jump-target-x64.cc +0 -437
- data/ext/v8/upstream/2.3.3/src/x64/macro-assembler-x64.cc +0 -2793
- data/ext/v8/upstream/2.3.3/src/x64/macro-assembler-x64.h +0 -916
- data/ext/v8/upstream/2.3.3/src/x64/regexp-macro-assembler-x64.cc +0 -1374
- data/ext/v8/upstream/2.3.3/src/x64/regexp-macro-assembler-x64.h +0 -277
- data/ext/v8/upstream/2.3.3/src/x64/simulator-x64.h +0 -63
- data/ext/v8/upstream/2.3.3/src/x64/stub-cache-x64.cc +0 -2560
- data/ext/v8/upstream/2.3.3/src/x64/virtual-frame-x64.cc +0 -1264
- data/ext/v8/upstream/2.3.3/src/x64/virtual-frame-x64.h +0 -590
- data/ext/v8/upstream/2.3.3/src/zone-inl.h +0 -82
- data/ext/v8/upstream/2.3.3/src/zone.cc +0 -194
- data/ext/v8/upstream/2.3.3/src/zone.h +0 -221
- data/ext/v8/upstream/2.3.3/tools/codemap.js +0 -270
- data/ext/v8/upstream/2.3.3/tools/csvparser.js +0 -83
- data/ext/v8/upstream/2.3.3/tools/gc-nvp-trace-processor.py +0 -317
- data/ext/v8/upstream/2.3.3/tools/gyp/v8.gyp +0 -749
- data/ext/v8/upstream/2.3.3/tools/linux-tick-processor.py +0 -78
- data/ext/v8/upstream/2.3.3/tools/logreader.js +0 -338
- data/ext/v8/upstream/2.3.3/tools/oprofile/annotate +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/common +0 -19
- data/ext/v8/upstream/2.3.3/tools/oprofile/dump +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/report +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/reset +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/run +0 -14
- data/ext/v8/upstream/2.3.3/tools/oprofile/shutdown +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/start +0 -7
- data/ext/v8/upstream/2.3.3/tools/presubmit.py +0 -299
- data/ext/v8/upstream/2.3.3/tools/profile.js +0 -691
- data/ext/v8/upstream/2.3.3/tools/profile_view.js +0 -224
- data/ext/v8/upstream/2.3.3/tools/splaytree.js +0 -322
- data/ext/v8/upstream/2.3.3/tools/splaytree.py +0 -226
- data/ext/v8/upstream/2.3.3/tools/tickprocessor.js +0 -862
- data/ext/v8/upstream/2.3.3/tools/tickprocessor.py +0 -571
- data/ext/v8/upstream/2.3.3/tools/utils.py +0 -88
- data/ext/v8/upstream/2.3.3/tools/visual_studio/README.txt +0 -71
- data/ext/v8/upstream/2.3.3/tools/visual_studio/common.vsprops +0 -34
- data/ext/v8/upstream/2.3.3/tools/visual_studio/debug.vsprops +0 -17
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base.vcproj +0 -1143
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base_arm.vcproj +0 -1115
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base_x64.vcproj +0 -1096
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample.vcproj +0 -145
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample_arm.vcproj +0 -145
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample_x64.vcproj +0 -161
- data/ext/v8/upstream/2.3.3/tools/windows-tick-processor.bat +0 -29
- data/ext/v8/upstream/2.3.3/tools/windows-tick-processor.py +0 -137
@@ -0,0 +1,1015 @@
|
|
1
|
+
// Copyright 2010 the V8 project authors. All rights reserved.
|
2
|
+
// Redistribution and use in source and binary forms, with or without
|
3
|
+
// modification, are permitted provided that the following conditions are
|
4
|
+
// met:
|
5
|
+
//
|
6
|
+
// * Redistributions of source code must retain the above copyright
|
7
|
+
// notice, this list of conditions and the following disclaimer.
|
8
|
+
// * Redistributions in binary form must reproduce the above
|
9
|
+
// copyright notice, this list of conditions and the following
|
10
|
+
// disclaimer in the documentation and/or other materials provided
|
11
|
+
// with the distribution.
|
12
|
+
// * Neither the name of Google Inc. nor the names of its
|
13
|
+
// contributors may be used to endorse or promote products derived
|
14
|
+
// from this software without specific prior written permission.
|
15
|
+
//
|
16
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
|
28
|
+
#ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_
|
29
|
+
#define V8_ARM_MACRO_ASSEMBLER_ARM_H_
|
30
|
+
|
31
|
+
#include "assembler.h"
|
32
|
+
|
33
|
+
namespace v8 {
|
34
|
+
namespace internal {
|
35
|
+
|
36
|
+
// Forward declaration.
|
37
|
+
class PostCallGenerator;
|
38
|
+
|
39
|
+
// ----------------------------------------------------------------------------
|
40
|
+
// Static helper functions
|
41
|
+
|
42
|
+
// Generate a MemOperand for loading a field from an object.
|
43
|
+
static inline MemOperand FieldMemOperand(Register object, int offset) {
|
44
|
+
return MemOperand(object, offset - kHeapObjectTag);
|
45
|
+
}
|
46
|
+
|
47
|
+
|
48
|
+
static inline Operand SmiUntagOperand(Register object) {
|
49
|
+
return Operand(object, ASR, kSmiTagSize);
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
// Give alias names to registers
|
55
|
+
const Register cp = { 8 }; // JavaScript context pointer
|
56
|
+
const Register roots = { 10 }; // Roots array pointer.
|
57
|
+
|
58
|
+
enum InvokeJSFlags {
|
59
|
+
CALL_JS,
|
60
|
+
JUMP_JS
|
61
|
+
};
|
62
|
+
|
63
|
+
|
64
|
+
// Flags used for the AllocateInNewSpace functions.
|
65
|
+
enum AllocationFlags {
|
66
|
+
// No special flags.
|
67
|
+
NO_ALLOCATION_FLAGS = 0,
|
68
|
+
// Return the pointer to the allocated already tagged as a heap object.
|
69
|
+
TAG_OBJECT = 1 << 0,
|
70
|
+
// The content of the result register already contains the allocation top in
|
71
|
+
// new space.
|
72
|
+
RESULT_CONTAINS_TOP = 1 << 1,
|
73
|
+
// Specify that the requested size of the space to allocate is specified in
|
74
|
+
// words instead of bytes.
|
75
|
+
SIZE_IN_WORDS = 1 << 2
|
76
|
+
};
|
77
|
+
|
78
|
+
|
79
|
+
// Flags used for the ObjectToDoubleVFPRegister function.
|
80
|
+
enum ObjectToDoubleFlags {
|
81
|
+
// No special flags.
|
82
|
+
NO_OBJECT_TO_DOUBLE_FLAGS = 0,
|
83
|
+
// Object is known to be a non smi.
|
84
|
+
OBJECT_NOT_SMI = 1 << 0,
|
85
|
+
// Don't load NaNs or infinities, branch to the non number case instead.
|
86
|
+
AVOID_NANS_AND_INFINITIES = 1 << 1
|
87
|
+
};
|
88
|
+
|
89
|
+
|
90
|
+
// MacroAssembler implements a collection of frequently used macros.
|
91
|
+
class MacroAssembler: public Assembler {
|
92
|
+
public:
|
93
|
+
MacroAssembler(void* buffer, int size);
|
94
|
+
|
95
|
+
// Jump, Call, and Ret pseudo instructions implementing inter-working.
|
96
|
+
void Jump(Register target, Condition cond = al);
|
97
|
+
void Jump(byte* target, RelocInfo::Mode rmode, Condition cond = al);
|
98
|
+
void Jump(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al);
|
99
|
+
void Call(Register target, Condition cond = al);
|
100
|
+
void Call(byte* target, RelocInfo::Mode rmode, Condition cond = al);
|
101
|
+
void Call(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al);
|
102
|
+
void Ret(Condition cond = al);
|
103
|
+
|
104
|
+
// Emit code to discard a non-negative number of pointer-sized elements
|
105
|
+
// from the stack, clobbering only the sp register.
|
106
|
+
void Drop(int count, Condition cond = al);
|
107
|
+
|
108
|
+
void Ret(int drop, Condition cond = al);
|
109
|
+
|
110
|
+
// Swap two registers. If the scratch register is omitted then a slightly
|
111
|
+
// less efficient form using xor instead of mov is emitted.
|
112
|
+
void Swap(Register reg1,
|
113
|
+
Register reg2,
|
114
|
+
Register scratch = no_reg,
|
115
|
+
Condition cond = al);
|
116
|
+
|
117
|
+
|
118
|
+
void And(Register dst, Register src1, const Operand& src2,
|
119
|
+
Condition cond = al);
|
120
|
+
void Ubfx(Register dst, Register src, int lsb, int width,
|
121
|
+
Condition cond = al);
|
122
|
+
void Sbfx(Register dst, Register src, int lsb, int width,
|
123
|
+
Condition cond = al);
|
124
|
+
// The scratch register is not used for ARMv7.
|
125
|
+
// scratch can be the same register as src (in which case it is trashed), but
|
126
|
+
// not the same as dst.
|
127
|
+
void Bfi(Register dst,
|
128
|
+
Register src,
|
129
|
+
Register scratch,
|
130
|
+
int lsb,
|
131
|
+
int width,
|
132
|
+
Condition cond = al);
|
133
|
+
void Bfc(Register dst, int lsb, int width, Condition cond = al);
|
134
|
+
void Usat(Register dst, int satpos, const Operand& src,
|
135
|
+
Condition cond = al);
|
136
|
+
|
137
|
+
void Call(Label* target);
|
138
|
+
void Move(Register dst, Handle<Object> value);
|
139
|
+
// May do nothing if the registers are identical.
|
140
|
+
void Move(Register dst, Register src);
|
141
|
+
// Jumps to the label at the index given by the Smi in "index".
|
142
|
+
void SmiJumpTable(Register index, Vector<Label*> targets);
|
143
|
+
// Load an object from the root table.
|
144
|
+
void LoadRoot(Register destination,
|
145
|
+
Heap::RootListIndex index,
|
146
|
+
Condition cond = al);
|
147
|
+
// Store an object to the root table.
|
148
|
+
void StoreRoot(Register source,
|
149
|
+
Heap::RootListIndex index,
|
150
|
+
Condition cond = al);
|
151
|
+
|
152
|
+
|
153
|
+
// Check if object is in new space.
|
154
|
+
// scratch can be object itself, but it will be clobbered.
|
155
|
+
void InNewSpace(Register object,
|
156
|
+
Register scratch,
|
157
|
+
Condition cond, // eq for new space, ne otherwise
|
158
|
+
Label* branch);
|
159
|
+
|
160
|
+
|
161
|
+
// For the page containing |object| mark the region covering [address]
|
162
|
+
// dirty. The object address must be in the first 8K of an allocated page.
|
163
|
+
void RecordWriteHelper(Register object,
|
164
|
+
Register address,
|
165
|
+
Register scratch);
|
166
|
+
|
167
|
+
// For the page containing |object| mark the region covering
|
168
|
+
// [object+offset] dirty. The object address must be in the first 8K
|
169
|
+
// of an allocated page. The 'scratch' registers are used in the
|
170
|
+
// implementation and all 3 registers are clobbered by the
|
171
|
+
// operation, as well as the ip register. RecordWrite updates the
|
172
|
+
// write barrier even when storing smis.
|
173
|
+
void RecordWrite(Register object,
|
174
|
+
Operand offset,
|
175
|
+
Register scratch0,
|
176
|
+
Register scratch1);
|
177
|
+
|
178
|
+
// For the page containing |object| mark the region covering
|
179
|
+
// [address] dirty. The object address must be in the first 8K of an
|
180
|
+
// allocated page. All 3 registers are clobbered by the operation,
|
181
|
+
// as well as the ip register. RecordWrite updates the write barrier
|
182
|
+
// even when storing smis.
|
183
|
+
void RecordWrite(Register object,
|
184
|
+
Register address,
|
185
|
+
Register scratch);
|
186
|
+
|
187
|
+
// Push two registers. Pushes leftmost register first (to highest address).
|
188
|
+
void Push(Register src1, Register src2, Condition cond = al) {
|
189
|
+
ASSERT(!src1.is(src2));
|
190
|
+
if (src1.code() > src2.code()) {
|
191
|
+
stm(db_w, sp, src1.bit() | src2.bit(), cond);
|
192
|
+
} else {
|
193
|
+
str(src1, MemOperand(sp, 4, NegPreIndex), cond);
|
194
|
+
str(src2, MemOperand(sp, 4, NegPreIndex), cond);
|
195
|
+
}
|
196
|
+
}
|
197
|
+
|
198
|
+
// Push three registers. Pushes leftmost register first (to highest address).
|
199
|
+
void Push(Register src1, Register src2, Register src3, Condition cond = al) {
|
200
|
+
ASSERT(!src1.is(src2));
|
201
|
+
ASSERT(!src2.is(src3));
|
202
|
+
ASSERT(!src1.is(src3));
|
203
|
+
if (src1.code() > src2.code()) {
|
204
|
+
if (src2.code() > src3.code()) {
|
205
|
+
stm(db_w, sp, src1.bit() | src2.bit() | src3.bit(), cond);
|
206
|
+
} else {
|
207
|
+
stm(db_w, sp, src1.bit() | src2.bit(), cond);
|
208
|
+
str(src3, MemOperand(sp, 4, NegPreIndex), cond);
|
209
|
+
}
|
210
|
+
} else {
|
211
|
+
str(src1, MemOperand(sp, 4, NegPreIndex), cond);
|
212
|
+
Push(src2, src3, cond);
|
213
|
+
}
|
214
|
+
}
|
215
|
+
|
216
|
+
// Push four registers. Pushes leftmost register first (to highest address).
|
217
|
+
void Push(Register src1, Register src2,
|
218
|
+
Register src3, Register src4, Condition cond = al) {
|
219
|
+
ASSERT(!src1.is(src2));
|
220
|
+
ASSERT(!src2.is(src3));
|
221
|
+
ASSERT(!src1.is(src3));
|
222
|
+
ASSERT(!src1.is(src4));
|
223
|
+
ASSERT(!src2.is(src4));
|
224
|
+
ASSERT(!src3.is(src4));
|
225
|
+
if (src1.code() > src2.code()) {
|
226
|
+
if (src2.code() > src3.code()) {
|
227
|
+
if (src3.code() > src4.code()) {
|
228
|
+
stm(db_w,
|
229
|
+
sp,
|
230
|
+
src1.bit() | src2.bit() | src3.bit() | src4.bit(),
|
231
|
+
cond);
|
232
|
+
} else {
|
233
|
+
stm(db_w, sp, src1.bit() | src2.bit() | src3.bit(), cond);
|
234
|
+
str(src4, MemOperand(sp, 4, NegPreIndex), cond);
|
235
|
+
}
|
236
|
+
} else {
|
237
|
+
stm(db_w, sp, src1.bit() | src2.bit(), cond);
|
238
|
+
Push(src3, src4, cond);
|
239
|
+
}
|
240
|
+
} else {
|
241
|
+
str(src1, MemOperand(sp, 4, NegPreIndex), cond);
|
242
|
+
Push(src2, src3, src4, cond);
|
243
|
+
}
|
244
|
+
}
|
245
|
+
|
246
|
+
// Pop two registers. Pops rightmost register first (from lower address).
|
247
|
+
void Pop(Register src1, Register src2, Condition cond = al) {
|
248
|
+
ASSERT(!src1.is(src2));
|
249
|
+
if (src1.code() > src2.code()) {
|
250
|
+
ldm(ia_w, sp, src1.bit() | src2.bit(), cond);
|
251
|
+
} else {
|
252
|
+
ldr(src2, MemOperand(sp, 4, PostIndex), cond);
|
253
|
+
ldr(src1, MemOperand(sp, 4, PostIndex), cond);
|
254
|
+
}
|
255
|
+
}
|
256
|
+
|
257
|
+
// Push and pop the registers that can hold pointers, as defined by the
|
258
|
+
// RegList constant kSafepointSavedRegisters.
|
259
|
+
void PushSafepointRegisters();
|
260
|
+
void PopSafepointRegisters();
|
261
|
+
void PushSafepointRegistersAndDoubles();
|
262
|
+
void PopSafepointRegistersAndDoubles();
|
263
|
+
// Store value in register src in the safepoint stack slot for
|
264
|
+
// register dst.
|
265
|
+
void StoreToSafepointRegisterSlot(Register src, Register dst);
|
266
|
+
void StoreToSafepointRegistersAndDoublesSlot(Register src, Register dst);
|
267
|
+
// Load the value of the src register from its safepoint stack slot
|
268
|
+
// into register dst.
|
269
|
+
void LoadFromSafepointRegisterSlot(Register dst, Register src);
|
270
|
+
|
271
|
+
// Load two consecutive registers with two consecutive memory locations.
|
272
|
+
void Ldrd(Register dst1,
|
273
|
+
Register dst2,
|
274
|
+
const MemOperand& src,
|
275
|
+
Condition cond = al);
|
276
|
+
|
277
|
+
// Store two consecutive registers to two consecutive memory locations.
|
278
|
+
void Strd(Register src1,
|
279
|
+
Register src2,
|
280
|
+
const MemOperand& dst,
|
281
|
+
Condition cond = al);
|
282
|
+
|
283
|
+
// Clear specified FPSCR bits.
|
284
|
+
void ClearFPSCRBits(const uint32_t bits_to_clear,
|
285
|
+
const Register scratch,
|
286
|
+
const Condition cond = al);
|
287
|
+
|
288
|
+
// Compare double values and move the result to the normal condition flags.
|
289
|
+
void VFPCompareAndSetFlags(const DwVfpRegister src1,
|
290
|
+
const DwVfpRegister src2,
|
291
|
+
const Condition cond = al);
|
292
|
+
void VFPCompareAndSetFlags(const DwVfpRegister src1,
|
293
|
+
const double src2,
|
294
|
+
const Condition cond = al);
|
295
|
+
|
296
|
+
// Compare double values and then load the fpscr flags to a register.
|
297
|
+
void VFPCompareAndLoadFlags(const DwVfpRegister src1,
|
298
|
+
const DwVfpRegister src2,
|
299
|
+
const Register fpscr_flags,
|
300
|
+
const Condition cond = al);
|
301
|
+
void VFPCompareAndLoadFlags(const DwVfpRegister src1,
|
302
|
+
const double src2,
|
303
|
+
const Register fpscr_flags,
|
304
|
+
const Condition cond = al);
|
305
|
+
|
306
|
+
|
307
|
+
// ---------------------------------------------------------------------------
|
308
|
+
// Activation frames
|
309
|
+
|
310
|
+
void EnterInternalFrame() { EnterFrame(StackFrame::INTERNAL); }
|
311
|
+
void LeaveInternalFrame() { LeaveFrame(StackFrame::INTERNAL); }
|
312
|
+
|
313
|
+
void EnterConstructFrame() { EnterFrame(StackFrame::CONSTRUCT); }
|
314
|
+
void LeaveConstructFrame() { LeaveFrame(StackFrame::CONSTRUCT); }
|
315
|
+
|
316
|
+
// Enter exit frame.
|
317
|
+
// stack_space - extra stack space, used for alignment before call to C.
|
318
|
+
void EnterExitFrame(bool save_doubles, int stack_space = 0);
|
319
|
+
|
320
|
+
// Leave the current exit frame. Expects the return value in r0.
|
321
|
+
// Expect the number of values, pushed prior to the exit frame, to
|
322
|
+
// remove in a register (or no_reg, if there is nothing to remove).
|
323
|
+
void LeaveExitFrame(bool save_doubles, Register argument_count);
|
324
|
+
|
325
|
+
// Get the actual activation frame alignment for target environment.
|
326
|
+
static int ActivationFrameAlignment();
|
327
|
+
|
328
|
+
void LoadContext(Register dst, int context_chain_length);
|
329
|
+
|
330
|
+
void LoadGlobalFunction(int index, Register function);
|
331
|
+
|
332
|
+
// Load the initial map from the global function. The registers
|
333
|
+
// function and map can be the same, function is then overwritten.
|
334
|
+
void LoadGlobalFunctionInitialMap(Register function,
|
335
|
+
Register map,
|
336
|
+
Register scratch);
|
337
|
+
|
338
|
+
// ---------------------------------------------------------------------------
|
339
|
+
// JavaScript invokes
|
340
|
+
|
341
|
+
// Invoke the JavaScript function code by either calling or jumping.
|
342
|
+
void InvokeCode(Register code,
|
343
|
+
const ParameterCount& expected,
|
344
|
+
const ParameterCount& actual,
|
345
|
+
InvokeFlag flag,
|
346
|
+
PostCallGenerator* post_call_generator = NULL);
|
347
|
+
|
348
|
+
void InvokeCode(Handle<Code> code,
|
349
|
+
const ParameterCount& expected,
|
350
|
+
const ParameterCount& actual,
|
351
|
+
RelocInfo::Mode rmode,
|
352
|
+
InvokeFlag flag);
|
353
|
+
|
354
|
+
// Invoke the JavaScript function in the given register. Changes the
|
355
|
+
// current context to the context in the function before invoking.
|
356
|
+
void InvokeFunction(Register function,
|
357
|
+
const ParameterCount& actual,
|
358
|
+
InvokeFlag flag,
|
359
|
+
PostCallGenerator* post_call_generator = NULL);
|
360
|
+
|
361
|
+
void InvokeFunction(JSFunction* function,
|
362
|
+
const ParameterCount& actual,
|
363
|
+
InvokeFlag flag);
|
364
|
+
|
365
|
+
void IsObjectJSObjectType(Register heap_object,
|
366
|
+
Register map,
|
367
|
+
Register scratch,
|
368
|
+
Label* fail);
|
369
|
+
|
370
|
+
void IsInstanceJSObjectType(Register map,
|
371
|
+
Register scratch,
|
372
|
+
Label* fail);
|
373
|
+
|
374
|
+
void IsObjectJSStringType(Register object,
|
375
|
+
Register scratch,
|
376
|
+
Label* fail);
|
377
|
+
|
378
|
+
#ifdef ENABLE_DEBUGGER_SUPPORT
|
379
|
+
// ---------------------------------------------------------------------------
|
380
|
+
// Debugger Support
|
381
|
+
|
382
|
+
void DebugBreak();
|
383
|
+
#endif
|
384
|
+
|
385
|
+
// ---------------------------------------------------------------------------
|
386
|
+
// Exception handling
|
387
|
+
|
388
|
+
// Push a new try handler and link into try handler chain.
|
389
|
+
// The return address must be passed in register lr.
|
390
|
+
// On exit, r0 contains TOS (code slot).
|
391
|
+
void PushTryHandler(CodeLocation try_location, HandlerType type);
|
392
|
+
|
393
|
+
// Unlink the stack handler on top of the stack from the try handler chain.
|
394
|
+
// Must preserve the result register.
|
395
|
+
void PopTryHandler();
|
396
|
+
|
397
|
+
// Passes thrown value (in r0) to the handler of top of the try handler chain.
|
398
|
+
void Throw(Register value);
|
399
|
+
|
400
|
+
// Propagates an uncatchable exception to the top of the current JS stack's
|
401
|
+
// handler chain.
|
402
|
+
void ThrowUncatchable(UncatchableExceptionType type, Register value);
|
403
|
+
|
404
|
+
// ---------------------------------------------------------------------------
|
405
|
+
// Inline caching support
|
406
|
+
|
407
|
+
// Generate code for checking access rights - used for security checks
|
408
|
+
// on access to global objects across environments. The holder register
|
409
|
+
// is left untouched, whereas both scratch registers are clobbered.
|
410
|
+
void CheckAccessGlobalProxy(Register holder_reg,
|
411
|
+
Register scratch,
|
412
|
+
Label* miss);
|
413
|
+
|
414
|
+
inline void MarkCode(NopMarkerTypes type) {
|
415
|
+
nop(type);
|
416
|
+
}
|
417
|
+
|
418
|
+
// Check if the given instruction is a 'type' marker.
|
419
|
+
// ie. check if is is a mov r<type>, r<type> (referenced as nop(type))
|
420
|
+
// These instructions are generated to mark special location in the code,
|
421
|
+
// like some special IC code.
|
422
|
+
static inline bool IsMarkedCode(Instr instr, int type) {
|
423
|
+
ASSERT((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER));
|
424
|
+
return IsNop(instr, type);
|
425
|
+
}
|
426
|
+
|
427
|
+
|
428
|
+
static inline int GetCodeMarker(Instr instr) {
|
429
|
+
int dst_reg_offset = 12;
|
430
|
+
int dst_mask = 0xf << dst_reg_offset;
|
431
|
+
int src_mask = 0xf;
|
432
|
+
int dst_reg = (instr & dst_mask) >> dst_reg_offset;
|
433
|
+
int src_reg = instr & src_mask;
|
434
|
+
uint32_t non_register_mask = ~(dst_mask | src_mask);
|
435
|
+
uint32_t mov_mask = al | 13 << 21;
|
436
|
+
|
437
|
+
// Return <n> if we have a mov rn rn, else return -1.
|
438
|
+
int type = ((instr & non_register_mask) == mov_mask) &&
|
439
|
+
(dst_reg == src_reg) &&
|
440
|
+
(FIRST_IC_MARKER <= dst_reg) && (dst_reg < LAST_CODE_MARKER)
|
441
|
+
? src_reg
|
442
|
+
: -1;
|
443
|
+
ASSERT((type == -1) ||
|
444
|
+
((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER)));
|
445
|
+
return type;
|
446
|
+
}
|
447
|
+
|
448
|
+
|
449
|
+
// ---------------------------------------------------------------------------
|
450
|
+
// Allocation support
|
451
|
+
|
452
|
+
// Allocate an object in new space. The object_size is specified
|
453
|
+
// either in bytes or in words if the allocation flag SIZE_IN_WORDS
|
454
|
+
// is passed. If the new space is exhausted control continues at the
|
455
|
+
// gc_required label. The allocated object is returned in result. If
|
456
|
+
// the flag tag_allocated_object is true the result is tagged as as
|
457
|
+
// a heap object. All registers are clobbered also when control
|
458
|
+
// continues at the gc_required label.
|
459
|
+
void AllocateInNewSpace(int object_size,
|
460
|
+
Register result,
|
461
|
+
Register scratch1,
|
462
|
+
Register scratch2,
|
463
|
+
Label* gc_required,
|
464
|
+
AllocationFlags flags);
|
465
|
+
void AllocateInNewSpace(Register object_size,
|
466
|
+
Register result,
|
467
|
+
Register scratch1,
|
468
|
+
Register scratch2,
|
469
|
+
Label* gc_required,
|
470
|
+
AllocationFlags flags);
|
471
|
+
|
472
|
+
// Undo allocation in new space. The object passed and objects allocated after
|
473
|
+
// it will no longer be allocated. The caller must make sure that no pointers
|
474
|
+
// are left to the object(s) no longer allocated as they would be invalid when
|
475
|
+
// allocation is undone.
|
476
|
+
void UndoAllocationInNewSpace(Register object, Register scratch);
|
477
|
+
|
478
|
+
|
479
|
+
void AllocateTwoByteString(Register result,
|
480
|
+
Register length,
|
481
|
+
Register scratch1,
|
482
|
+
Register scratch2,
|
483
|
+
Register scratch3,
|
484
|
+
Label* gc_required);
|
485
|
+
void AllocateAsciiString(Register result,
|
486
|
+
Register length,
|
487
|
+
Register scratch1,
|
488
|
+
Register scratch2,
|
489
|
+
Register scratch3,
|
490
|
+
Label* gc_required);
|
491
|
+
void AllocateTwoByteConsString(Register result,
|
492
|
+
Register length,
|
493
|
+
Register scratch1,
|
494
|
+
Register scratch2,
|
495
|
+
Label* gc_required);
|
496
|
+
void AllocateAsciiConsString(Register result,
|
497
|
+
Register length,
|
498
|
+
Register scratch1,
|
499
|
+
Register scratch2,
|
500
|
+
Label* gc_required);
|
501
|
+
|
502
|
+
// Allocates a heap number or jumps to the gc_required label if the young
|
503
|
+
// space is full and a scavenge is needed. All registers are clobbered also
|
504
|
+
// when control continues at the gc_required label.
|
505
|
+
void AllocateHeapNumber(Register result,
|
506
|
+
Register scratch1,
|
507
|
+
Register scratch2,
|
508
|
+
Register heap_number_map,
|
509
|
+
Label* gc_required);
|
510
|
+
void AllocateHeapNumberWithValue(Register result,
|
511
|
+
DwVfpRegister value,
|
512
|
+
Register scratch1,
|
513
|
+
Register scratch2,
|
514
|
+
Register heap_number_map,
|
515
|
+
Label* gc_required);
|
516
|
+
|
517
|
+
// Copies a fixed number of fields of heap objects from src to dst.
|
518
|
+
void CopyFields(Register dst, Register src, RegList temps, int field_count);
|
519
|
+
|
520
|
+
// Copies a number of bytes from src to dst. All registers are clobbered. On
|
521
|
+
// exit src and dst will point to the place just after where the last byte was
|
522
|
+
// read or written and length will be zero.
|
523
|
+
void CopyBytes(Register src,
|
524
|
+
Register dst,
|
525
|
+
Register length,
|
526
|
+
Register scratch);
|
527
|
+
|
528
|
+
// ---------------------------------------------------------------------------
|
529
|
+
// Support functions.
|
530
|
+
|
531
|
+
// Try to get function prototype of a function and puts the value in
|
532
|
+
// the result register. Checks that the function really is a
|
533
|
+
// function and jumps to the miss label if the fast checks fail. The
|
534
|
+
// function register will be untouched; the other registers may be
|
535
|
+
// clobbered.
|
536
|
+
void TryGetFunctionPrototype(Register function,
|
537
|
+
Register result,
|
538
|
+
Register scratch,
|
539
|
+
Label* miss);
|
540
|
+
|
541
|
+
// Compare object type for heap object. heap_object contains a non-Smi
|
542
|
+
// whose object type should be compared with the given type. This both
|
543
|
+
// sets the flags and leaves the object type in the type_reg register.
|
544
|
+
// It leaves the map in the map register (unless the type_reg and map register
|
545
|
+
// are the same register). It leaves the heap object in the heap_object
|
546
|
+
// register unless the heap_object register is the same register as one of the
|
547
|
+
// other registers.
|
548
|
+
void CompareObjectType(Register heap_object,
|
549
|
+
Register map,
|
550
|
+
Register type_reg,
|
551
|
+
InstanceType type);
|
552
|
+
|
553
|
+
// Compare instance type in a map. map contains a valid map object whose
|
554
|
+
// object type should be compared with the given type. This both
|
555
|
+
// sets the flags and leaves the object type in the type_reg register. It
|
556
|
+
// leaves the heap object in the heap_object register unless the heap_object
|
557
|
+
// register is the same register as type_reg.
|
558
|
+
void CompareInstanceType(Register map,
|
559
|
+
Register type_reg,
|
560
|
+
InstanceType type);
|
561
|
+
|
562
|
+
|
563
|
+
// Check if the map of an object is equal to a specified map (either
|
564
|
+
// given directly or as an index into the root list) and branch to
|
565
|
+
// label if not. Skip the smi check if not required (object is known
|
566
|
+
// to be a heap object)
|
567
|
+
void CheckMap(Register obj,
|
568
|
+
Register scratch,
|
569
|
+
Handle<Map> map,
|
570
|
+
Label* fail,
|
571
|
+
bool is_heap_object);
|
572
|
+
|
573
|
+
void CheckMap(Register obj,
|
574
|
+
Register scratch,
|
575
|
+
Heap::RootListIndex index,
|
576
|
+
Label* fail,
|
577
|
+
bool is_heap_object);
|
578
|
+
|
579
|
+
|
580
|
+
// Load and check the instance type of an object for being a string.
|
581
|
+
// Loads the type into the second argument register.
|
582
|
+
// Returns a condition that will be enabled if the object was a string.
|
583
|
+
Condition IsObjectStringType(Register obj,
|
584
|
+
Register type) {
|
585
|
+
ldr(type, FieldMemOperand(obj, HeapObject::kMapOffset));
|
586
|
+
ldrb(type, FieldMemOperand(type, Map::kInstanceTypeOffset));
|
587
|
+
tst(type, Operand(kIsNotStringMask));
|
588
|
+
ASSERT_EQ(0, kStringTag);
|
589
|
+
return eq;
|
590
|
+
}
|
591
|
+
|
592
|
+
|
593
|
+
// Generates code for reporting that an illegal operation has
|
594
|
+
// occurred.
|
595
|
+
void IllegalOperation(int num_arguments);
|
596
|
+
|
597
|
+
// Picks out an array index from the hash field.
|
598
|
+
// Register use:
|
599
|
+
// hash - holds the index's hash. Clobbered.
|
600
|
+
// index - holds the overwritten index on exit.
|
601
|
+
void IndexFromHash(Register hash, Register index);
|
602
|
+
|
603
|
+
// Get the number of least significant bits from a register
|
604
|
+
void GetLeastBitsFromSmi(Register dst, Register src, int num_least_bits);
|
605
|
+
void GetLeastBitsFromInt32(Register dst, Register src, int mun_least_bits);
|
606
|
+
|
607
|
+
// Uses VFP instructions to Convert a Smi to a double.
|
608
|
+
void IntegerToDoubleConversionWithVFP3(Register inReg,
|
609
|
+
Register outHighReg,
|
610
|
+
Register outLowReg);
|
611
|
+
|
612
|
+
// Load the value of a number object into a VFP double register. If the object
|
613
|
+
// is not a number a jump to the label not_number is performed and the VFP
|
614
|
+
// double register is unchanged.
|
615
|
+
void ObjectToDoubleVFPRegister(
|
616
|
+
Register object,
|
617
|
+
DwVfpRegister value,
|
618
|
+
Register scratch1,
|
619
|
+
Register scratch2,
|
620
|
+
Register heap_number_map,
|
621
|
+
SwVfpRegister scratch3,
|
622
|
+
Label* not_number,
|
623
|
+
ObjectToDoubleFlags flags = NO_OBJECT_TO_DOUBLE_FLAGS);
|
624
|
+
|
625
|
+
// Load the value of a smi object into a VFP double register. The register
|
626
|
+
// scratch1 can be the same register as smi in which case smi will hold the
|
627
|
+
// untagged value afterwards.
|
628
|
+
void SmiToDoubleVFPRegister(Register smi,
|
629
|
+
DwVfpRegister value,
|
630
|
+
Register scratch1,
|
631
|
+
SwVfpRegister scratch2);
|
632
|
+
|
633
|
+
// Convert the HeapNumber pointed to by source to a 32bits signed integer
|
634
|
+
// dest. If the HeapNumber does not fit into a 32bits signed integer branch
|
635
|
+
// to not_int32 label. If VFP3 is available double_scratch is used but not
|
636
|
+
// scratch2.
|
637
|
+
void ConvertToInt32(Register source,
|
638
|
+
Register dest,
|
639
|
+
Register scratch,
|
640
|
+
Register scratch2,
|
641
|
+
DwVfpRegister double_scratch,
|
642
|
+
Label *not_int32);
|
643
|
+
|
644
|
+
// Truncates a double using a specific rounding mode.
|
645
|
+
// Clears the z flag (ne condition) if an overflow occurs.
|
646
|
+
// If exact_conversion is true, the z flag is also cleared if the conversion
|
647
|
+
// was inexact, ie. if the double value could not be converted exactly
|
648
|
+
// to a 32bit integer.
|
649
|
+
void EmitVFPTruncate(VFPRoundingMode rounding_mode,
|
650
|
+
SwVfpRegister result,
|
651
|
+
DwVfpRegister double_input,
|
652
|
+
Register scratch1,
|
653
|
+
Register scratch2,
|
654
|
+
CheckForInexactConversion check
|
655
|
+
= kDontCheckForInexactConversion);
|
656
|
+
|
657
|
+
// Count leading zeros in a 32 bit word. On ARM5 and later it uses the clz
|
658
|
+
// instruction. On pre-ARM5 hardware this routine gives the wrong answer
|
659
|
+
// for 0 (31 instead of 32). Source and scratch can be the same in which case
|
660
|
+
// the source is clobbered. Source and zeros can also be the same in which
|
661
|
+
// case scratch should be a different register.
|
662
|
+
void CountLeadingZeros(Register zeros,
|
663
|
+
Register source,
|
664
|
+
Register scratch);
|
665
|
+
|
666
|
+
// ---------------------------------------------------------------------------
|
667
|
+
// Runtime calls
|
668
|
+
|
669
|
+
// Call a code stub.
|
670
|
+
void CallStub(CodeStub* stub, Condition cond = al);
|
671
|
+
|
672
|
+
// Call a code stub.
|
673
|
+
void TailCallStub(CodeStub* stub, Condition cond = al);
|
674
|
+
|
675
|
+
// Tail call a code stub (jump) and return the code object called. Try to
|
676
|
+
// generate the code if necessary. Do not perform a GC but instead return
|
677
|
+
// a retry after GC failure.
|
678
|
+
MUST_USE_RESULT MaybeObject* TryTailCallStub(CodeStub* stub,
|
679
|
+
Condition cond = al);
|
680
|
+
|
681
|
+
// Call a runtime routine.
|
682
|
+
void CallRuntime(Runtime::Function* f, int num_arguments);
|
683
|
+
void CallRuntimeSaveDoubles(Runtime::FunctionId id);
|
684
|
+
|
685
|
+
// Convenience function: Same as above, but takes the fid instead.
|
686
|
+
void CallRuntime(Runtime::FunctionId fid, int num_arguments);
|
687
|
+
|
688
|
+
// Convenience function: call an external reference.
|
689
|
+
void CallExternalReference(const ExternalReference& ext,
|
690
|
+
int num_arguments);
|
691
|
+
|
692
|
+
// Tail call of a runtime routine (jump).
|
693
|
+
// Like JumpToExternalReference, but also takes care of passing the number
|
694
|
+
// of parameters.
|
695
|
+
void TailCallExternalReference(const ExternalReference& ext,
|
696
|
+
int num_arguments,
|
697
|
+
int result_size);
|
698
|
+
|
699
|
+
// Tail call of a runtime routine (jump). Try to generate the code if
|
700
|
+
// necessary. Do not perform a GC but instead return a retry after GC
|
701
|
+
// failure.
|
702
|
+
MUST_USE_RESULT MaybeObject* TryTailCallExternalReference(
|
703
|
+
const ExternalReference& ext, int num_arguments, int result_size);
|
704
|
+
|
705
|
+
// Convenience function: tail call a runtime routine (jump).
|
706
|
+
void TailCallRuntime(Runtime::FunctionId fid,
|
707
|
+
int num_arguments,
|
708
|
+
int result_size);
|
709
|
+
|
710
|
+
// Before calling a C-function from generated code, align arguments on stack.
|
711
|
+
// After aligning the frame, non-register arguments must be stored in
|
712
|
+
// sp[0], sp[4], etc., not pushed. The argument count assumes all arguments
|
713
|
+
// are word sized.
|
714
|
+
// Some compilers/platforms require the stack to be aligned when calling
|
715
|
+
// C++ code.
|
716
|
+
// Needs a scratch register to do some arithmetic. This register will be
|
717
|
+
// trashed.
|
718
|
+
void PrepareCallCFunction(int num_arguments, Register scratch);
|
719
|
+
|
720
|
+
// Calls a C function and cleans up the space for arguments allocated
|
721
|
+
// by PrepareCallCFunction. The called function is not allowed to trigger a
|
722
|
+
// garbage collection, since that might move the code and invalidate the
|
723
|
+
// return address (unless this is somehow accounted for by the called
|
724
|
+
// function).
|
725
|
+
void CallCFunction(ExternalReference function, int num_arguments);
|
726
|
+
void CallCFunction(Register function, int num_arguments);
|
727
|
+
|
728
|
+
void GetCFunctionDoubleResult(const DoubleRegister dst);
|
729
|
+
|
730
|
+
// Calls an API function. Allocates HandleScope, extracts returned value
|
731
|
+
// from handle and propagates exceptions. Restores context.
|
732
|
+
// stack_space - space to be unwound on exit (includes the call js
|
733
|
+
// arguments space and the additional space allocated for the fast call).
|
734
|
+
MaybeObject* TryCallApiFunctionAndReturn(ExternalReference function,
|
735
|
+
int stack_space);
|
736
|
+
|
737
|
+
// Jump to a runtime routine.
|
738
|
+
void JumpToExternalReference(const ExternalReference& builtin);
|
739
|
+
|
740
|
+
MaybeObject* TryJumpToExternalReference(const ExternalReference& ext);
|
741
|
+
|
742
|
+
// Invoke specified builtin JavaScript function. Adds an entry to
|
743
|
+
// the unresolved list if the name does not resolve.
|
744
|
+
void InvokeBuiltin(Builtins::JavaScript id,
|
745
|
+
InvokeJSFlags flags,
|
746
|
+
PostCallGenerator* post_call_generator = NULL);
|
747
|
+
|
748
|
+
// Store the code object for the given builtin in the target register and
|
749
|
+
// setup the function in r1.
|
750
|
+
void GetBuiltinEntry(Register target, Builtins::JavaScript id);
|
751
|
+
|
752
|
+
// Store the function for the given builtin in the target register.
|
753
|
+
void GetBuiltinFunction(Register target, Builtins::JavaScript id);
|
754
|
+
|
755
|
+
Handle<Object> CodeObject() { return code_object_; }
|
756
|
+
|
757
|
+
|
758
|
+
// ---------------------------------------------------------------------------
|
759
|
+
// StatsCounter support
|
760
|
+
|
761
|
+
void SetCounter(StatsCounter* counter, int value,
|
762
|
+
Register scratch1, Register scratch2);
|
763
|
+
void IncrementCounter(StatsCounter* counter, int value,
|
764
|
+
Register scratch1, Register scratch2);
|
765
|
+
void DecrementCounter(StatsCounter* counter, int value,
|
766
|
+
Register scratch1, Register scratch2);
|
767
|
+
|
768
|
+
|
769
|
+
// ---------------------------------------------------------------------------
|
770
|
+
// Debugging
|
771
|
+
|
772
|
+
// Calls Abort(msg) if the condition cond is not satisfied.
|
773
|
+
// Use --debug_code to enable.
|
774
|
+
void Assert(Condition cond, const char* msg);
|
775
|
+
void AssertRegisterIsRoot(Register reg, Heap::RootListIndex index);
|
776
|
+
void AssertFastElements(Register elements);
|
777
|
+
|
778
|
+
// Like Assert(), but always enabled.
|
779
|
+
void Check(Condition cond, const char* msg);
|
780
|
+
|
781
|
+
// Print a message to stdout and abort execution.
|
782
|
+
void Abort(const char* msg);
|
783
|
+
|
784
|
+
// Verify restrictions about code generated in stubs.
|
785
|
+
void set_generating_stub(bool value) { generating_stub_ = value; }
|
786
|
+
bool generating_stub() { return generating_stub_; }
|
787
|
+
void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; }
|
788
|
+
bool allow_stub_calls() { return allow_stub_calls_; }
|
789
|
+
|
790
|
+
// ---------------------------------------------------------------------------
|
791
|
+
// Number utilities
|
792
|
+
|
793
|
+
// Check whether the value of reg is a power of two and not zero. If not
|
794
|
+
// control continues at the label not_power_of_two. If reg is a power of two
|
795
|
+
// the register scratch contains the value of (reg - 1) when control falls
|
796
|
+
// through.
|
797
|
+
void JumpIfNotPowerOfTwoOrZero(Register reg,
|
798
|
+
Register scratch,
|
799
|
+
Label* not_power_of_two_or_zero);
|
800
|
+
|
801
|
+
// ---------------------------------------------------------------------------
|
802
|
+
// Smi utilities
|
803
|
+
|
804
|
+
void SmiTag(Register reg, SBit s = LeaveCC) {
|
805
|
+
add(reg, reg, Operand(reg), s);
|
806
|
+
}
|
807
|
+
void SmiTag(Register dst, Register src, SBit s = LeaveCC) {
|
808
|
+
add(dst, src, Operand(src), s);
|
809
|
+
}
|
810
|
+
|
811
|
+
// Try to convert int32 to smi. If the value is to large, preserve
|
812
|
+
// the original value and jump to not_a_smi. Destroys scratch and
|
813
|
+
// sets flags.
|
814
|
+
void TrySmiTag(Register reg, Label* not_a_smi, Register scratch) {
|
815
|
+
mov(scratch, reg);
|
816
|
+
SmiTag(scratch, SetCC);
|
817
|
+
b(vs, not_a_smi);
|
818
|
+
mov(reg, scratch);
|
819
|
+
}
|
820
|
+
|
821
|
+
void SmiUntag(Register reg, SBit s = LeaveCC) {
|
822
|
+
mov(reg, Operand(reg, ASR, kSmiTagSize), s);
|
823
|
+
}
|
824
|
+
void SmiUntag(Register dst, Register src, SBit s = LeaveCC) {
|
825
|
+
mov(dst, Operand(src, ASR, kSmiTagSize), s);
|
826
|
+
}
|
827
|
+
|
828
|
+
// Jump the register contains a smi.
|
829
|
+
inline void JumpIfSmi(Register value, Label* smi_label) {
|
830
|
+
tst(value, Operand(kSmiTagMask));
|
831
|
+
b(eq, smi_label);
|
832
|
+
}
|
833
|
+
// Jump if either of the registers contain a non-smi.
|
834
|
+
inline void JumpIfNotSmi(Register value, Label* not_smi_label) {
|
835
|
+
tst(value, Operand(kSmiTagMask));
|
836
|
+
b(ne, not_smi_label);
|
837
|
+
}
|
838
|
+
// Jump if either of the registers contain a non-smi.
|
839
|
+
void JumpIfNotBothSmi(Register reg1, Register reg2, Label* on_not_both_smi);
|
840
|
+
// Jump if either of the registers contain a smi.
|
841
|
+
void JumpIfEitherSmi(Register reg1, Register reg2, Label* on_either_smi);
|
842
|
+
|
843
|
+
// Abort execution if argument is a smi. Used in debug code.
|
844
|
+
void AbortIfSmi(Register object);
|
845
|
+
void AbortIfNotSmi(Register object);
|
846
|
+
|
847
|
+
// Abort execution if argument is a string. Used in debug code.
|
848
|
+
void AbortIfNotString(Register object);
|
849
|
+
|
850
|
+
// Abort execution if argument is not the root value with the given index.
|
851
|
+
void AbortIfNotRootValue(Register src,
|
852
|
+
Heap::RootListIndex root_value_index,
|
853
|
+
const char* message);
|
854
|
+
|
855
|
+
// ---------------------------------------------------------------------------
|
856
|
+
// HeapNumber utilities
|
857
|
+
|
858
|
+
void JumpIfNotHeapNumber(Register object,
|
859
|
+
Register heap_number_map,
|
860
|
+
Register scratch,
|
861
|
+
Label* on_not_heap_number);
|
862
|
+
|
863
|
+
// ---------------------------------------------------------------------------
|
864
|
+
// String utilities
|
865
|
+
|
866
|
+
// Checks if both objects are sequential ASCII strings and jumps to label
|
867
|
+
// if either is not. Assumes that neither object is a smi.
|
868
|
+
void JumpIfNonSmisNotBothSequentialAsciiStrings(Register object1,
|
869
|
+
Register object2,
|
870
|
+
Register scratch1,
|
871
|
+
Register scratch2,
|
872
|
+
Label* failure);
|
873
|
+
|
874
|
+
// Checks if both objects are sequential ASCII strings and jumps to label
|
875
|
+
// if either is not.
|
876
|
+
void JumpIfNotBothSequentialAsciiStrings(Register first,
|
877
|
+
Register second,
|
878
|
+
Register scratch1,
|
879
|
+
Register scratch2,
|
880
|
+
Label* not_flat_ascii_strings);
|
881
|
+
|
882
|
+
// Checks if both instance types are sequential ASCII strings and jumps to
|
883
|
+
// label if either is not.
|
884
|
+
void JumpIfBothInstanceTypesAreNotSequentialAscii(
|
885
|
+
Register first_object_instance_type,
|
886
|
+
Register second_object_instance_type,
|
887
|
+
Register scratch1,
|
888
|
+
Register scratch2,
|
889
|
+
Label* failure);
|
890
|
+
|
891
|
+
// Check if instance type is sequential ASCII string and jump to label if
|
892
|
+
// it is not.
|
893
|
+
void JumpIfInstanceTypeIsNotSequentialAscii(Register type,
|
894
|
+
Register scratch,
|
895
|
+
Label* failure);
|
896
|
+
|
897
|
+
|
898
|
+
// ---------------------------------------------------------------------------
|
899
|
+
// Patching helpers.
|
900
|
+
|
901
|
+
// Get the location of a relocated constant (its address in the constant pool)
|
902
|
+
// from its load site.
|
903
|
+
void GetRelocatedValueLocation(Register ldr_location,
|
904
|
+
Register result);
|
905
|
+
|
906
|
+
|
907
|
+
private:
|
908
|
+
void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al);
|
909
|
+
void Call(intptr_t target, RelocInfo::Mode rmode, Condition cond = al);
|
910
|
+
|
911
|
+
// Helper functions for generating invokes.
|
912
|
+
void InvokePrologue(const ParameterCount& expected,
|
913
|
+
const ParameterCount& actual,
|
914
|
+
Handle<Code> code_constant,
|
915
|
+
Register code_reg,
|
916
|
+
Label* done,
|
917
|
+
InvokeFlag flag,
|
918
|
+
PostCallGenerator* post_call_generator = NULL);
|
919
|
+
|
920
|
+
// Activation support.
|
921
|
+
void EnterFrame(StackFrame::Type type);
|
922
|
+
void LeaveFrame(StackFrame::Type type);
|
923
|
+
|
924
|
+
void InitializeNewString(Register string,
|
925
|
+
Register length,
|
926
|
+
Heap::RootListIndex map_index,
|
927
|
+
Register scratch1,
|
928
|
+
Register scratch2);
|
929
|
+
|
930
|
+
// Compute memory operands for safepoint stack slots.
|
931
|
+
static int SafepointRegisterStackIndex(int reg_code);
|
932
|
+
MemOperand SafepointRegisterSlot(Register reg);
|
933
|
+
MemOperand SafepointRegistersAndDoublesSlot(Register reg);
|
934
|
+
|
935
|
+
bool generating_stub_;
|
936
|
+
bool allow_stub_calls_;
|
937
|
+
// This handle will be patched with the code object on installation.
|
938
|
+
Handle<Object> code_object_;
|
939
|
+
|
940
|
+
// Needs access to SafepointRegisterStackIndex for optimized frame
|
941
|
+
// traversal.
|
942
|
+
friend class OptimizedFrame;
|
943
|
+
};
|
944
|
+
|
945
|
+
|
946
|
+
#ifdef ENABLE_DEBUGGER_SUPPORT
|
947
|
+
// The code patcher is used to patch (typically) small parts of code e.g. for
|
948
|
+
// debugging and other types of instrumentation. When using the code patcher
|
949
|
+
// the exact number of bytes specified must be emitted. It is not legal to emit
|
950
|
+
// relocation information. If any of these constraints are violated it causes
|
951
|
+
// an assertion to fail.
|
952
|
+
class CodePatcher {
|
953
|
+
public:
|
954
|
+
CodePatcher(byte* address, int instructions);
|
955
|
+
virtual ~CodePatcher();
|
956
|
+
|
957
|
+
// Macro assembler to emit code.
|
958
|
+
MacroAssembler* masm() { return &masm_; }
|
959
|
+
|
960
|
+
// Emit an instruction directly.
|
961
|
+
void Emit(Instr instr);
|
962
|
+
|
963
|
+
// Emit an address directly.
|
964
|
+
void Emit(Address addr);
|
965
|
+
|
966
|
+
// Emit the condition part of an instruction leaving the rest of the current
|
967
|
+
// instruction unchanged.
|
968
|
+
void EmitCondition(Condition cond);
|
969
|
+
|
970
|
+
private:
|
971
|
+
byte* address_; // The address of the code being patched.
|
972
|
+
int instructions_; // Number of instructions of the expected patch size.
|
973
|
+
int size_; // Number of bytes of the expected patch size.
|
974
|
+
MacroAssembler masm_; // Macro assembler used to generate the code.
|
975
|
+
};
|
976
|
+
#endif // ENABLE_DEBUGGER_SUPPORT
|
977
|
+
|
978
|
+
|
979
|
+
// Helper class for generating code or data associated with the code
|
980
|
+
// right after a call instruction. As an example this can be used to
|
981
|
+
// generate safepoint data after calls for crankshaft.
|
982
|
+
class PostCallGenerator {
|
983
|
+
public:
|
984
|
+
PostCallGenerator() { }
|
985
|
+
virtual ~PostCallGenerator() { }
|
986
|
+
virtual void Generate() = 0;
|
987
|
+
};
|
988
|
+
|
989
|
+
|
990
|
+
// -----------------------------------------------------------------------------
|
991
|
+
// Static helper functions.
|
992
|
+
|
993
|
+
static MemOperand ContextOperand(Register context, int index) {
|
994
|
+
return MemOperand(context, Context::SlotOffset(index));
|
995
|
+
}
|
996
|
+
|
997
|
+
|
998
|
+
static inline MemOperand GlobalObjectOperand() {
|
999
|
+
return ContextOperand(cp, Context::GLOBAL_INDEX);
|
1000
|
+
}
|
1001
|
+
|
1002
|
+
|
1003
|
+
#ifdef GENERATED_CODE_COVERAGE
|
1004
|
+
#define CODE_COVERAGE_STRINGIFY(x) #x
|
1005
|
+
#define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
|
1006
|
+
#define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
|
1007
|
+
#define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
|
1008
|
+
#else
|
1009
|
+
#define ACCESS_MASM(masm) masm->
|
1010
|
+
#endif
|
1011
|
+
|
1012
|
+
|
1013
|
+
} } // namespace v8::internal
|
1014
|
+
|
1015
|
+
#endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
|