therubyracer 0.8.1.pre2 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of therubyracer might be problematic. Click here for more details.
- data/Changelog.md +2 -1
- data/README.md +6 -3
- data/ext/v8/upstream/3.1.8/.gitignore +31 -0
- data/ext/v8/upstream/3.1.8/AUTHORS +40 -0
- data/ext/v8/upstream/3.1.8/ChangeLog +2566 -0
- data/ext/v8/upstream/3.1.8/LICENSE +52 -0
- data/ext/v8/upstream/3.1.8/LICENSE.strongtalk +29 -0
- data/ext/v8/upstream/3.1.8/LICENSE.v8 +26 -0
- data/ext/v8/upstream/3.1.8/LICENSE.valgrind +45 -0
- data/ext/v8/upstream/3.1.8/SConstruct +1192 -0
- data/ext/v8/upstream/3.1.8/build/README.txt +25 -0
- data/ext/v8/upstream/3.1.8/build/all.gyp +18 -0
- data/ext/v8/upstream/3.1.8/build/armu.gypi +32 -0
- data/ext/v8/upstream/3.1.8/build/common.gypi +82 -0
- data/ext/v8/upstream/3.1.8/build/gyp_v8 +145 -0
- data/ext/v8/upstream/3.1.8/include/v8-debug.h +384 -0
- data/ext/v8/upstream/3.1.8/include/v8-preparser.h +116 -0
- data/ext/v8/upstream/3.1.8/include/v8-profiler.h +426 -0
- data/ext/v8/upstream/3.1.8/include/v8-testing.h +99 -0
- data/ext/v8/upstream/3.1.8/include/v8.h +3846 -0
- data/ext/v8/upstream/3.1.8/include/v8stdint.h +53 -0
- data/ext/v8/upstream/3.1.8/preparser/preparser-process.cc +206 -0
- data/ext/v8/upstream/3.1.8/src/SConscript +356 -0
- data/ext/v8/upstream/3.1.8/src/accessors.cc +907 -0
- data/ext/v8/upstream/3.1.8/src/accessors.h +121 -0
- data/ext/v8/upstream/3.1.8/src/allocation.cc +204 -0
- data/ext/v8/upstream/3.1.8/src/allocation.h +176 -0
- data/ext/v8/upstream/3.1.8/src/api.cc +5191 -0
- data/ext/v8/upstream/3.1.8/src/api.h +508 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/apinatives.js +0 -0
- data/ext/v8/upstream/3.1.8/src/apiutils.h +80 -0
- data/ext/v8/upstream/3.1.8/src/arguments.h +105 -0
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm-inl.h +352 -0
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm.cc +2756 -0
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm.h +1294 -0
- data/ext/v8/upstream/3.1.8/src/arm/builtins-arm.cc +1628 -0
- data/ext/v8/upstream/3.1.8/src/arm/code-stubs-arm.cc +6783 -0
- data/ext/v8/upstream/3.1.8/src/arm/code-stubs-arm.h +657 -0
- data/ext/v8/upstream/3.1.8/src/arm/codegen-arm-inl.h +48 -0
- data/ext/v8/upstream/3.1.8/src/arm/codegen-arm.cc +7403 -0
- data/ext/v8/upstream/3.1.8/src/arm/codegen-arm.h +595 -0
- data/ext/v8/upstream/3.1.8/src/arm/constants-arm.cc +152 -0
- data/ext/v8/upstream/3.1.8/src/arm/constants-arm.h +769 -0
- data/ext/v8/upstream/3.1.8/src/arm/cpu-arm.cc +147 -0
- data/ext/v8/upstream/3.1.8/src/arm/debug-arm.cc +315 -0
- data/ext/v8/upstream/3.1.8/src/arm/deoptimizer-arm.cc +700 -0
- data/ext/v8/upstream/3.1.8/src/arm/disasm-arm.cc +1439 -0
- data/ext/v8/upstream/3.1.8/src/arm/frames-arm.cc +45 -0
- data/ext/v8/upstream/3.1.8/src/arm/frames-arm.h +168 -0
- data/ext/v8/upstream/3.1.8/src/arm/full-codegen-arm.cc +4230 -0
- data/ext/v8/upstream/3.1.8/src/arm/ic-arm.cc +1799 -0
- data/ext/v8/upstream/3.1.8/src/arm/jump-target-arm.cc +174 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-arm.cc +2041 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-arm.h +2046 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-codegen-arm.cc +3822 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-codegen-arm.h +312 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-gap-resolver-arm.cc +303 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-gap-resolver-arm.h +84 -0
- data/ext/v8/upstream/3.1.8/src/arm/macro-assembler-arm.cc +2701 -0
- data/ext/v8/upstream/3.1.8/src/arm/macro-assembler-arm.h +1015 -0
- data/ext/v8/upstream/3.1.8/src/arm/regexp-macro-assembler-arm.cc +1280 -0
- data/ext/v8/upstream/3.1.8/src/arm/regexp-macro-assembler-arm.h +252 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/register-allocator-arm-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/register-allocator-arm.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/register-allocator-arm.h +0 -0
- data/ext/v8/upstream/3.1.8/src/arm/simulator-arm.cc +3165 -0
- data/ext/v8/upstream/3.1.8/src/arm/simulator-arm.h +402 -0
- data/ext/v8/upstream/3.1.8/src/arm/stub-cache-arm.cc +4077 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/virtual-frame-arm-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/arm/virtual-frame-arm.cc +843 -0
- data/ext/v8/upstream/3.1.8/src/arm/virtual-frame-arm.h +520 -0
- data/ext/v8/upstream/3.1.8/src/array.js +1231 -0
- data/ext/v8/upstream/3.1.8/src/assembler.cc +973 -0
- data/ext/v8/upstream/3.1.8/src/assembler.h +787 -0
- data/ext/v8/upstream/3.1.8/src/ast-inl.h +107 -0
- data/ext/v8/upstream/3.1.8/src/ast.cc +1067 -0
- data/ext/v8/upstream/3.1.8/src/ast.h +2177 -0
- data/ext/v8/upstream/3.1.8/src/atomicops.h +165 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_arm_gcc.h +145 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_gcc.cc +126 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_gcc.h +287 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_macosx.h +301 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_msvc.h +203 -0
- data/ext/v8/upstream/3.1.8/src/bignum-dtoa.cc +655 -0
- data/ext/v8/upstream/3.1.8/src/bignum-dtoa.h +81 -0
- data/ext/v8/upstream/3.1.8/src/bignum.cc +768 -0
- data/ext/v8/upstream/3.1.8/src/bignum.h +140 -0
- data/ext/v8/upstream/3.1.8/src/bootstrapper.cc +1888 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/bootstrapper.h +0 -0
- data/ext/v8/upstream/3.1.8/src/builtins.cc +1586 -0
- data/ext/v8/upstream/3.1.8/src/builtins.h +339 -0
- data/ext/v8/upstream/3.1.8/src/bytecodes-irregexp.h +105 -0
- data/ext/v8/upstream/3.1.8/src/cached-powers.cc +177 -0
- data/ext/v8/upstream/3.1.8/src/cached-powers.h +65 -0
- data/ext/v8/upstream/3.1.8/src/char-predicates-inl.h +94 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/char-predicates.h +0 -0
- data/ext/v8/upstream/3.1.8/src/checks.cc +110 -0
- data/ext/v8/upstream/3.1.8/src/checks.h +292 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/circular-queue-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/circular-queue.cc +122 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/circular-queue.h +0 -0
- data/ext/v8/upstream/3.1.8/src/code-stubs.cc +230 -0
- data/ext/v8/upstream/3.1.8/src/code-stubs.h +950 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/code.h +0 -0
- data/ext/v8/upstream/3.1.8/src/codegen-inl.h +64 -0
- data/ext/v8/upstream/3.1.8/src/codegen.cc +495 -0
- data/ext/v8/upstream/3.1.8/src/codegen.h +245 -0
- data/ext/v8/upstream/3.1.8/src/compilation-cache.cc +654 -0
- data/ext/v8/upstream/3.1.8/src/compilation-cache.h +112 -0
- data/ext/v8/upstream/3.1.8/src/compiler.cc +806 -0
- data/ext/v8/upstream/3.1.8/src/compiler.h +290 -0
- data/ext/v8/upstream/3.1.8/src/contexts.cc +320 -0
- data/ext/v8/upstream/3.1.8/src/contexts.h +376 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/conversions-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/conversions.cc +1069 -0
- data/ext/v8/upstream/3.1.8/src/conversions.h +122 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/counters.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/counters.h +242 -0
- data/ext/v8/upstream/3.1.8/src/cpu-profiler-inl.h +100 -0
- data/ext/v8/upstream/3.1.8/src/cpu-profiler.cc +554 -0
- data/ext/v8/upstream/3.1.8/src/cpu-profiler.h +291 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/cpu.h +0 -0
- data/ext/v8/upstream/3.1.8/src/d8-debug.cc +367 -0
- data/ext/v8/upstream/3.1.8/src/d8-debug.h +157 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/d8-posix.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/d8-readline.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/d8-windows.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/d8.cc +792 -0
- data/ext/v8/upstream/3.1.8/src/d8.gyp +85 -0
- data/ext/v8/upstream/3.1.8/src/d8.h +231 -0
- data/ext/v8/upstream/3.1.8/src/d8.js +2798 -0
- data/ext/v8/upstream/3.1.8/src/data-flow.cc +545 -0
- data/ext/v8/upstream/3.1.8/src/data-flow.h +379 -0
- data/ext/v8/upstream/3.1.8/src/date.js +1103 -0
- data/ext/v8/upstream/3.1.8/src/dateparser-inl.h +125 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/dateparser.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/dateparser.h +263 -0
- data/ext/v8/upstream/3.1.8/src/debug-agent.cc +446 -0
- data/ext/v8/upstream/3.1.8/src/debug-agent.h +131 -0
- data/ext/v8/upstream/3.1.8/src/debug-debugger.js +2569 -0
- data/ext/v8/upstream/3.1.8/src/debug.cc +3085 -0
- data/ext/v8/upstream/3.1.8/src/debug.h +1025 -0
- data/ext/v8/upstream/3.1.8/src/deoptimizer.cc +1185 -0
- data/ext/v8/upstream/3.1.8/src/deoptimizer.h +529 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/disasm.h +0 -0
- data/ext/v8/upstream/3.1.8/src/disassembler.cc +338 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/disassembler.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/diy-fp.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/diy-fp.h +0 -0
- data/ext/v8/upstream/3.1.8/src/double.h +238 -0
- data/ext/v8/upstream/3.1.8/src/dtoa.cc +103 -0
- data/ext/v8/upstream/3.1.8/src/dtoa.h +85 -0
- data/ext/v8/upstream/3.1.8/src/execution.cc +735 -0
- data/ext/v8/upstream/3.1.8/src/execution.h +322 -0
- data/ext/v8/upstream/3.1.8/src/extensions/experimental/experimental.gyp +53 -0
- data/ext/v8/upstream/3.1.8/src/extensions/experimental/i18n-extension.cc +264 -0
- data/ext/v8/upstream/3.1.8/src/extensions/experimental/i18n-extension.h +64 -0
- data/ext/v8/upstream/3.1.8/src/extensions/externalize-string-extension.cc +141 -0
- data/ext/v8/upstream/3.1.8/src/extensions/externalize-string-extension.h +50 -0
- data/ext/v8/upstream/3.1.8/src/extensions/gc-extension.cc +58 -0
- data/ext/v8/upstream/3.1.8/src/extensions/gc-extension.h +49 -0
- data/ext/v8/upstream/3.1.8/src/factory.cc +1087 -0
- data/ext/v8/upstream/3.1.8/src/factory.h +432 -0
- data/ext/v8/upstream/3.1.8/src/fast-dtoa.cc +736 -0
- data/ext/v8/upstream/3.1.8/src/fast-dtoa.h +83 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/fixed-dtoa.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/fixed-dtoa.h +0 -0
- data/ext/v8/upstream/3.1.8/src/flag-definitions.h +552 -0
- data/ext/v8/upstream/3.1.8/src/flags.cc +551 -0
- data/ext/v8/upstream/3.1.8/src/flags.h +79 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/frame-element.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/frame-element.h +277 -0
- data/ext/v8/upstream/3.1.8/src/frames-inl.h +210 -0
- data/ext/v8/upstream/3.1.8/src/frames.cc +1232 -0
- data/ext/v8/upstream/3.1.8/src/frames.h +826 -0
- data/ext/v8/upstream/3.1.8/src/full-codegen.cc +1382 -0
- data/ext/v8/upstream/3.1.8/src/full-codegen.h +751 -0
- data/ext/v8/upstream/3.1.8/src/func-name-inferrer.cc +90 -0
- data/ext/v8/upstream/3.1.8/src/func-name-inferrer.h +111 -0
- data/ext/v8/upstream/3.1.8/src/gdb-jit.cc +1547 -0
- data/ext/v8/upstream/3.1.8/src/gdb-jit.h +138 -0
- data/ext/v8/upstream/3.1.8/src/global-handles.cc +534 -0
- data/ext/v8/upstream/3.1.8/src/global-handles.h +181 -0
- data/ext/v8/upstream/3.1.8/src/globals.h +325 -0
- data/ext/v8/upstream/3.1.8/src/handles-inl.h +80 -0
- data/ext/v8/upstream/3.1.8/src/handles.cc +910 -0
- data/ext/v8/upstream/3.1.8/src/handles.h +424 -0
- data/ext/v8/upstream/3.1.8/src/hashmap.cc +230 -0
- data/ext/v8/upstream/3.1.8/src/hashmap.h +121 -0
- data/ext/v8/upstream/3.1.8/src/heap-inl.h +587 -0
- data/ext/v8/upstream/3.1.8/src/heap-profiler.cc +1128 -0
- data/ext/v8/upstream/3.1.8/src/heap-profiler.h +381 -0
- data/ext/v8/upstream/3.1.8/src/heap.cc +5610 -0
- data/ext/v8/upstream/3.1.8/src/heap.h +2218 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen-instructions.cc +1490 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen-instructions.h +3493 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen.cc +6056 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen.h +1091 -0
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32-inl.h +429 -0
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32.cc +2800 -0
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32.h +1093 -0
- data/ext/v8/upstream/3.1.8/src/ia32/builtins-ia32.cc +1590 -0
- data/ext/v8/upstream/3.1.8/src/ia32/code-stubs-ia32.cc +6624 -0
- data/ext/v8/upstream/3.1.8/src/ia32/code-stubs-ia32.h +536 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/codegen-ia32-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/ia32/codegen-ia32.cc +10354 -0
- data/ext/v8/upstream/3.1.8/src/ia32/codegen-ia32.h +798 -0
- data/ext/v8/upstream/3.1.8/src/ia32/cpu-ia32.cc +87 -0
- data/ext/v8/upstream/3.1.8/src/ia32/debug-ia32.cc +309 -0
- data/ext/v8/upstream/3.1.8/src/ia32/deoptimizer-ia32.cc +664 -0
- data/ext/v8/upstream/3.1.8/src/ia32/disasm-ia32.cc +1597 -0
- data/ext/v8/upstream/3.1.8/src/ia32/frames-ia32.cc +45 -0
- data/ext/v8/upstream/3.1.8/src/ia32/frames-ia32.h +140 -0
- data/ext/v8/upstream/3.1.8/src/ia32/full-codegen-ia32.cc +4278 -0
- data/ext/v8/upstream/3.1.8/src/ia32/ic-ia32.cc +1786 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/jump-target-ia32.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-codegen-ia32.cc +3880 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-codegen-ia32.h +309 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-gap-resolver-ia32.cc +460 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-gap-resolver-ia32.h +110 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-ia32.cc +2095 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-ia32.h +2127 -0
- data/ext/v8/upstream/3.1.8/src/ia32/macro-assembler-ia32.cc +2031 -0
- data/ext/v8/upstream/3.1.8/src/ia32/macro-assembler-ia32.h +798 -0
- data/ext/v8/upstream/3.1.8/src/ia32/regexp-macro-assembler-ia32.cc +1253 -0
- data/ext/v8/upstream/3.1.8/src/ia32/regexp-macro-assembler-ia32.h +215 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/register-allocator-ia32-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/register-allocator-ia32.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/register-allocator-ia32.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/simulator-ia32.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/ia32/simulator-ia32.h +72 -0
- data/ext/v8/upstream/3.1.8/src/ia32/stub-cache-ia32.cc +3732 -0
- data/ext/v8/upstream/3.1.8/src/ia32/virtual-frame-ia32.cc +1360 -0
- data/ext/v8/upstream/3.1.8/src/ia32/virtual-frame-ia32.h +646 -0
- data/ext/v8/upstream/3.1.8/src/ic-inl.h +129 -0
- data/ext/v8/upstream/3.1.8/src/ic.cc +2333 -0
- data/ext/v8/upstream/3.1.8/src/ic.h +639 -0
- data/ext/v8/upstream/3.1.8/src/inspector.cc +63 -0
- data/ext/v8/upstream/3.1.8/src/inspector.h +62 -0
- data/ext/v8/upstream/3.1.8/src/interpreter-irregexp.cc +655 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/interpreter-irregexp.h +0 -0
- data/ext/v8/upstream/3.1.8/src/json.js +342 -0
- data/ext/v8/upstream/3.1.8/src/jsregexp.cc +5340 -0
- data/ext/v8/upstream/3.1.8/src/jsregexp.h +1484 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target-heavy-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-heavy.cc +430 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-heavy.h +244 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target-light-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-light.cc +111 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-light.h +193 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target.h +0 -0
- data/ext/v8/upstream/3.1.8/src/list-inl.h +206 -0
- data/ext/v8/upstream/3.1.8/src/list.h +164 -0
- data/ext/v8/upstream/3.1.8/src/lithium-allocator-inl.h +140 -0
- data/ext/v8/upstream/3.1.8/src/lithium-allocator.cc +2093 -0
- data/ext/v8/upstream/3.1.8/src/lithium-allocator.h +644 -0
- data/ext/v8/upstream/3.1.8/src/lithium.cc +168 -0
- data/ext/v8/upstream/3.1.8/src/lithium.h +592 -0
- data/ext/v8/upstream/3.1.8/src/liveedit-debugger.js +1082 -0
- data/ext/v8/upstream/3.1.8/src/liveedit.cc +1650 -0
- data/ext/v8/upstream/3.1.8/src/liveedit.h +174 -0
- data/ext/v8/upstream/3.1.8/src/liveobjectlist-inl.h +126 -0
- data/ext/v8/upstream/3.1.8/src/liveobjectlist.cc +2527 -0
- data/ext/v8/upstream/3.1.8/src/liveobjectlist.h +322 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/log-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/log-utils.cc +336 -0
- data/ext/v8/upstream/3.1.8/src/log-utils.h +232 -0
- data/ext/v8/upstream/3.1.8/src/log.cc +1608 -0
- data/ext/v8/upstream/3.1.8/src/log.h +379 -0
- data/ext/v8/upstream/3.1.8/src/macro-assembler.h +120 -0
- data/ext/v8/upstream/3.1.8/src/macros.py +178 -0
- data/ext/v8/upstream/3.1.8/src/mark-compact.cc +2957 -0
- data/ext/v8/upstream/3.1.8/src/mark-compact.h +433 -0
- data/ext/v8/upstream/3.1.8/src/math.js +264 -0
- data/ext/v8/upstream/3.1.8/src/memory.h +82 -0
- data/ext/v8/upstream/3.1.8/src/messages.cc +164 -0
- data/ext/v8/upstream/3.1.8/src/messages.h +114 -0
- data/ext/v8/upstream/3.1.8/src/messages.js +1071 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/assembler-mips-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/assembler-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/assembler-mips.h +667 -0
- data/ext/v8/upstream/3.1.8/src/mips/builtins-mips.cc +205 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/codegen-mips-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/codegen-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/codegen-mips.h +431 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/constants-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/constants-mips.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/cpu-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/debug-mips.cc +127 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/disasm-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/fast-codegen-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/frames-mips.cc +96 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/frames-mips.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/full-codegen-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/ic-mips.cc +208 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/jump-target-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/macro-assembler-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/macro-assembler-mips.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/register-allocator-mips-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/register-allocator-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/register-allocator-mips.h +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/simulator-mips.cc +1650 -0
- data/ext/v8/upstream/3.1.8/src/mips/simulator-mips.h +311 -0
- data/ext/v8/upstream/3.1.8/src/mips/stub-cache-mips.cc +418 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/virtual-frame-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/virtual-frame-mips.h +0 -0
- data/ext/v8/upstream/3.1.8/src/mirror-debugger.js +2380 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mksnapshot.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/natives.h +0 -0
- data/ext/v8/upstream/3.1.8/src/objects-debug.cc +722 -0
- data/ext/v8/upstream/3.1.8/src/objects-inl.h +3946 -0
- data/ext/v8/upstream/3.1.8/src/objects-printer.cc +801 -0
- data/ext/v8/upstream/3.1.8/src/objects-visiting.cc +142 -0
- data/ext/v8/upstream/3.1.8/src/objects-visiting.h +401 -0
- data/ext/v8/upstream/3.1.8/src/objects.cc +10044 -0
- data/ext/v8/upstream/3.1.8/src/objects.h +6571 -0
- data/ext/v8/upstream/3.1.8/src/parser.cc +5165 -0
- data/ext/v8/upstream/3.1.8/src/parser.h +802 -0
- data/ext/v8/upstream/3.1.8/src/platform-cygwin.cc +745 -0
- data/ext/v8/upstream/3.1.8/src/platform-freebsd.cc +702 -0
- data/ext/v8/upstream/3.1.8/src/platform-linux.cc +981 -0
- data/ext/v8/upstream/3.1.8/src/platform-macos.cc +732 -0
- data/ext/v8/upstream/3.1.8/src/platform-nullos.cc +498 -0
- data/ext/v8/upstream/3.1.8/src/platform-openbsd.cc +657 -0
- data/ext/v8/upstream/3.1.8/src/platform-posix.cc +399 -0
- data/ext/v8/upstream/3.1.8/src/platform-solaris.cc +714 -0
- data/ext/v8/upstream/3.1.8/src/platform-win32.cc +1974 -0
- data/ext/v8/upstream/3.1.8/src/platform.h +636 -0
- data/ext/v8/upstream/3.1.8/src/preparse-data.cc +183 -0
- data/ext/v8/upstream/3.1.8/src/preparse-data.h +249 -0
- data/ext/v8/upstream/3.1.8/src/preparser-api.cc +213 -0
- data/ext/v8/upstream/3.1.8/src/preparser.cc +1205 -0
- data/ext/v8/upstream/3.1.8/src/preparser.h +278 -0
- data/ext/v8/upstream/3.1.8/src/prettyprinter.cc +1539 -0
- data/ext/v8/upstream/3.1.8/src/prettyprinter.h +223 -0
- data/ext/v8/upstream/3.1.8/src/profile-generator-inl.h +128 -0
- data/ext/v8/upstream/3.1.8/src/profile-generator.cc +2899 -0
- data/ext/v8/upstream/3.1.8/src/profile-generator.h +1151 -0
- data/ext/v8/upstream/3.1.8/src/property.cc +96 -0
- data/ext/v8/upstream/3.1.8/src/property.h +337 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/regexp-macro-assembler-irregexp-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-irregexp.cc +470 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-irregexp.h +142 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-tracer.cc +373 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-tracer.h +104 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler.cc +257 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler.h +231 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/regexp-stack.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/regexp-stack.h +0 -0
- data/ext/v8/upstream/3.1.8/src/regexp.js +483 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/register-allocator-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/register-allocator.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/register-allocator.h +0 -0
- data/ext/v8/upstream/3.1.8/src/rewriter.cc +1023 -0
- data/ext/v8/upstream/3.1.8/src/rewriter.h +59 -0
- data/ext/v8/upstream/3.1.8/src/runtime-profiler.cc +443 -0
- data/ext/v8/upstream/3.1.8/src/runtime-profiler.h +77 -0
- data/ext/v8/upstream/3.1.8/src/runtime.cc +11592 -0
- data/ext/v8/upstream/3.1.8/src/runtime.h +582 -0
- data/ext/v8/upstream/3.1.8/src/runtime.js +643 -0
- data/ext/v8/upstream/3.1.8/src/safepoint-table.cc +253 -0
- data/ext/v8/upstream/3.1.8/src/safepoint-table.h +263 -0
- data/ext/v8/upstream/3.1.8/src/scanner-base.cc +971 -0
- data/ext/v8/upstream/3.1.8/src/scanner-base.h +653 -0
- data/ext/v8/upstream/3.1.8/src/scanner.cc +586 -0
- data/ext/v8/upstream/3.1.8/src/scanner.h +194 -0
- data/ext/v8/upstream/3.1.8/src/scopeinfo.cc +636 -0
- data/ext/v8/upstream/3.1.8/src/scopeinfo.h +238 -0
- data/ext/v8/upstream/3.1.8/src/scopes.cc +1063 -0
- data/ext/v8/upstream/3.1.8/src/scopes.h +494 -0
- data/ext/v8/upstream/3.1.8/src/serialize.cc +1535 -0
- data/ext/v8/upstream/3.1.8/src/serialize.h +584 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/shell.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/simulator.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/smart-pointer.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/snapshot-common.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/snapshot-empty.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/snapshot.h +0 -0
- data/ext/v8/upstream/3.1.8/src/spaces-inl.h +524 -0
- data/ext/v8/upstream/3.1.8/src/spaces.cc +3254 -0
- data/ext/v8/upstream/3.1.8/src/spaces.h +2362 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/splay-tree-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/splay-tree.h +0 -0
- data/ext/v8/upstream/3.1.8/src/string-search.cc +40 -0
- data/ext/v8/upstream/3.1.8/src/string-search.h +567 -0
- data/ext/v8/upstream/3.1.8/src/string-stream.cc +584 -0
- data/ext/v8/upstream/3.1.8/src/string-stream.h +191 -0
- data/ext/v8/upstream/3.1.8/src/string.js +915 -0
- data/ext/v8/upstream/3.1.8/src/strtod.cc +440 -0
- data/ext/v8/upstream/3.1.8/src/strtod.h +40 -0
- data/ext/v8/upstream/3.1.8/src/stub-cache.cc +1878 -0
- data/ext/v8/upstream/3.1.8/src/stub-cache.h +849 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/third_party/valgrind/valgrind.h +0 -0
- data/ext/v8/upstream/3.1.8/src/token.cc +63 -0
- data/ext/v8/upstream/3.1.8/src/token.h +288 -0
- data/ext/v8/upstream/3.1.8/src/top.cc +1152 -0
- data/ext/v8/upstream/3.1.8/src/top.h +608 -0
- data/ext/v8/upstream/3.1.8/src/type-info.cc +406 -0
- data/ext/v8/upstream/3.1.8/src/type-info.h +283 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/unbound-queue-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/unbound-queue.h +0 -0
- data/ext/v8/upstream/3.1.8/src/unicode-inl.h +238 -0
- data/ext/v8/upstream/3.1.8/src/unicode.cc +1624 -0
- data/ext/v8/upstream/3.1.8/src/unicode.h +280 -0
- data/ext/v8/upstream/3.1.8/src/uri.js +402 -0
- data/ext/v8/upstream/3.1.8/src/utils.cc +371 -0
- data/ext/v8/upstream/3.1.8/src/utils.h +793 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/v8-counters.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/v8-counters.h +290 -0
- data/ext/v8/upstream/3.1.8/src/v8.cc +270 -0
- data/ext/v8/upstream/3.1.8/src/v8.h +127 -0
- data/ext/v8/upstream/3.1.8/src/v8checks.h +64 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/v8dll-main.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/v8globals.h +480 -0
- data/ext/v8/upstream/3.1.8/src/v8natives.js +1252 -0
- data/ext/v8/upstream/3.1.8/src/v8preparserdll-main.cc +39 -0
- data/ext/v8/upstream/3.1.8/src/v8threads.cc +440 -0
- data/ext/v8/upstream/3.1.8/src/v8threads.h +157 -0
- data/ext/v8/upstream/3.1.8/src/v8utils.h +354 -0
- data/ext/v8/upstream/3.1.8/src/variables.cc +132 -0
- data/ext/v8/upstream/3.1.8/src/variables.h +212 -0
- data/ext/v8/upstream/3.1.8/src/version.cc +95 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/version.h +0 -0
- data/ext/v8/upstream/3.1.8/src/virtual-frame-heavy-inl.h +190 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-heavy.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-light-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-light.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/virtual-frame.h +59 -0
- data/ext/v8/upstream/3.1.8/src/vm-state-inl.h +134 -0
- data/ext/v8/upstream/3.1.8/src/vm-state.h +68 -0
- data/ext/v8/upstream/3.1.8/src/win32-headers.h +95 -0
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64-inl.h +455 -0
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64.cc +3162 -0
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64.h +1584 -0
- data/ext/v8/upstream/3.1.8/src/x64/builtins-x64.cc +1492 -0
- data/ext/v8/upstream/3.1.8/src/x64/code-stubs-x64.cc +5150 -0
- data/ext/v8/upstream/3.1.8/src/x64/code-stubs-x64.h +519 -0
- data/ext/v8/upstream/3.1.8/src/x64/codegen-x64-inl.h +46 -0
- data/ext/v8/upstream/3.1.8/src/x64/codegen-x64.cc +8835 -0
- data/ext/v8/upstream/3.1.8/src/x64/codegen-x64.h +750 -0
- data/ext/v8/upstream/3.1.8/src/x64/cpu-x64.cc +86 -0
- data/ext/v8/upstream/3.1.8/src/x64/debug-x64.cc +316 -0
- data/ext/v8/upstream/3.1.8/src/x64/deoptimizer-x64.cc +781 -0
- data/ext/v8/upstream/3.1.8/src/x64/disasm-x64.cc +1737 -0
- data/ext/v8/upstream/3.1.8/src/x64/frames-x64.cc +45 -0
- data/ext/v8/upstream/3.1.8/src/x64/frames-x64.h +130 -0
- data/ext/v8/upstream/3.1.8/src/x64/full-codegen-x64.cc +3984 -0
- data/ext/v8/upstream/3.1.8/src/x64/ic-x64.cc +1761 -0
- data/ext/v8/upstream/3.1.8/src/x64/jump-target-x64.cc +437 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-codegen-x64.cc +3639 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-codegen-x64.h +305 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-gap-resolver-x64.cc +320 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-gap-resolver-x64.h +74 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-x64.cc +2044 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-x64.h +2052 -0
- data/ext/v8/upstream/3.1.8/src/x64/macro-assembler-x64.cc +2660 -0
- data/ext/v8/upstream/3.1.8/src/x64/macro-assembler-x64.h +1852 -0
- data/ext/v8/upstream/3.1.8/src/x64/regexp-macro-assembler-x64.cc +1382 -0
- data/ext/v8/upstream/3.1.8/src/x64/regexp-macro-assembler-x64.h +278 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/register-allocator-x64-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/register-allocator-x64.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/register-allocator-x64.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/simulator-x64.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/x64/simulator-x64.h +71 -0
- data/ext/v8/upstream/3.1.8/src/x64/stub-cache-x64.cc +3509 -0
- data/ext/v8/upstream/3.1.8/src/x64/virtual-frame-x64.cc +1292 -0
- data/ext/v8/upstream/3.1.8/src/x64/virtual-frame-x64.h +593 -0
- data/ext/v8/upstream/3.1.8/src/zone-inl.h +83 -0
- data/ext/v8/upstream/3.1.8/src/zone.cc +195 -0
- data/ext/v8/upstream/3.1.8/src/zone.h +233 -0
- data/ext/v8/upstream/3.1.8/tools/codemap.js +265 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/consarray.js +0 -0
- data/ext/v8/upstream/3.1.8/tools/csvparser.js +78 -0
- data/ext/v8/upstream/3.1.8/tools/disasm.py +92 -0
- data/ext/v8/upstream/3.1.8/tools/gc-nvp-trace-processor.py +328 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/generate-ten-powers.scm +0 -0
- data/ext/v8/upstream/3.1.8/tools/grokdump.py +840 -0
- data/ext/v8/upstream/3.1.8/tools/gyp/v8.gyp +869 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/js2c.py +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/jsmin.py +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/linux-tick-processor +0 -0
- data/ext/v8/upstream/3.1.8/tools/ll_prof.py +919 -0
- data/ext/v8/upstream/3.1.8/tools/logreader.js +185 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/mac-nm +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/mac-tick-processor +0 -0
- data/ext/v8/upstream/3.1.8/tools/oom_dump/README +31 -0
- data/ext/v8/upstream/3.1.8/tools/oom_dump/SConstruct +42 -0
- data/ext/v8/upstream/3.1.8/tools/oom_dump/oom_dump.cc +288 -0
- data/ext/v8/upstream/3.1.8/tools/presubmit.py +305 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/process-heap-prof.py +0 -0
- data/ext/v8/upstream/3.1.8/tools/profile.js +751 -0
- data/ext/v8/upstream/3.1.8/tools/profile_view.js +219 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/run-valgrind.py +0 -0
- data/ext/v8/upstream/3.1.8/tools/splaytree.js +316 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/stats-viewer.py +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/tickprocessor-driver.js +0 -0
- data/ext/v8/upstream/3.1.8/tools/tickprocessor.js +863 -0
- data/ext/v8/upstream/3.1.8/tools/utils.py +96 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/README.txt +70 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/arm.vsprops +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/common.vsprops +34 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8_arm.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8js2c.cmd +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/debug.vsprops +17 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/ia32.vsprops +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/js2c.cmd +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/release.vsprops +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8.sln +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_arm.sln +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_arm.vcproj +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base.vcproj +1296 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base_arm.vcproj +1234 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base_x64.vcproj +1296 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_cctest.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_cctest_arm.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_cctest_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_mksnapshot.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_mksnapshot_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_process_sample.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_process_sample_arm.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_process_sample_x64.vcproj +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_shell_sample.vcproj +147 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_shell_sample_arm.vcproj +147 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_shell_sample_x64.vcproj +163 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot_cc.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot_cc_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_x64.sln +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/x64.vsprops +0 -0
- data/ext/v8/upstream/3.1.8/tools/windows-tick-processor.bat +30 -0
- data/ext/v8/upstream/Makefile +2 -1
- data/ext/v8/v8_template.cpp +2 -2
- data/lib/v8/version.rb +1 -1
- data/spec/redjs/jsapi_spec.rb +2 -2
- metadata +552 -490
- data/ext/v8/upstream/2.3.3/.gitignore +0 -26
- data/ext/v8/upstream/2.3.3/AUTHORS +0 -31
- data/ext/v8/upstream/2.3.3/ChangeLog +0 -1916
- data/ext/v8/upstream/2.3.3/LICENSE +0 -55
- data/ext/v8/upstream/2.3.3/SConstruct +0 -1154
- data/ext/v8/upstream/2.3.3/include/v8-debug.h +0 -381
- data/ext/v8/upstream/2.3.3/include/v8-profiler.h +0 -353
- data/ext/v8/upstream/2.3.3/include/v8.h +0 -3616
- data/ext/v8/upstream/2.3.3/src/SConscript +0 -330
- data/ext/v8/upstream/2.3.3/src/accessors.cc +0 -661
- data/ext/v8/upstream/2.3.3/src/accessors.h +0 -114
- data/ext/v8/upstream/2.3.3/src/allocation.cc +0 -198
- data/ext/v8/upstream/2.3.3/src/allocation.h +0 -169
- data/ext/v8/upstream/2.3.3/src/api.cc +0 -4795
- data/ext/v8/upstream/2.3.3/src/api.h +0 -485
- data/ext/v8/upstream/2.3.3/src/apiutils.h +0 -69
- data/ext/v8/upstream/2.3.3/src/arguments.h +0 -96
- data/ext/v8/upstream/2.3.3/src/arm/assembler-arm-inl.h +0 -305
- data/ext/v8/upstream/2.3.3/src/arm/assembler-arm.cc +0 -2580
- data/ext/v8/upstream/2.3.3/src/arm/assembler-arm.h +0 -1275
- data/ext/v8/upstream/2.3.3/src/arm/builtins-arm.cc +0 -1320
- data/ext/v8/upstream/2.3.3/src/arm/codegen-arm-inl.h +0 -48
- data/ext/v8/upstream/2.3.3/src/arm/codegen-arm.cc +0 -11398
- data/ext/v8/upstream/2.3.3/src/arm/codegen-arm.h +0 -1102
- data/ext/v8/upstream/2.3.3/src/arm/constants-arm.cc +0 -154
- data/ext/v8/upstream/2.3.3/src/arm/constants-arm.h +0 -388
- data/ext/v8/upstream/2.3.3/src/arm/cpu-arm.cc +0 -142
- data/ext/v8/upstream/2.3.3/src/arm/debug-arm.cc +0 -309
- data/ext/v8/upstream/2.3.3/src/arm/disasm-arm.cc +0 -1459
- data/ext/v8/upstream/2.3.3/src/arm/fast-codegen-arm.cc +0 -241
- data/ext/v8/upstream/2.3.3/src/arm/frames-arm.cc +0 -123
- data/ext/v8/upstream/2.3.3/src/arm/frames-arm.h +0 -162
- data/ext/v8/upstream/2.3.3/src/arm/full-codegen-arm.cc +0 -3178
- data/ext/v8/upstream/2.3.3/src/arm/ic-arm.cc +0 -2258
- data/ext/v8/upstream/2.3.3/src/arm/jump-target-arm.cc +0 -164
- data/ext/v8/upstream/2.3.3/src/arm/macro-assembler-arm.cc +0 -1892
- data/ext/v8/upstream/2.3.3/src/arm/macro-assembler-arm.h +0 -727
- data/ext/v8/upstream/2.3.3/src/arm/regexp-macro-assembler-arm.cc +0 -1261
- data/ext/v8/upstream/2.3.3/src/arm/regexp-macro-assembler-arm.h +0 -266
- data/ext/v8/upstream/2.3.3/src/arm/simulator-arm.cc +0 -2822
- data/ext/v8/upstream/2.3.3/src/arm/simulator-arm.h +0 -361
- data/ext/v8/upstream/2.3.3/src/arm/stub-cache-arm.cc +0 -2387
- data/ext/v8/upstream/2.3.3/src/arm/virtual-frame-arm.cc +0 -834
- data/ext/v8/upstream/2.3.3/src/arm/virtual-frame-arm.h +0 -519
- data/ext/v8/upstream/2.3.3/src/array.js +0 -1127
- data/ext/v8/upstream/2.3.3/src/assembler.cc +0 -801
- data/ext/v8/upstream/2.3.3/src/assembler.h +0 -573
- data/ext/v8/upstream/2.3.3/src/ast-inl.h +0 -81
- data/ext/v8/upstream/2.3.3/src/ast.cc +0 -1152
- data/ext/v8/upstream/2.3.3/src/ast.h +0 -2106
- data/ext/v8/upstream/2.3.3/src/bootstrapper.cc +0 -1819
- data/ext/v8/upstream/2.3.3/src/builtins.cc +0 -1529
- data/ext/v8/upstream/2.3.3/src/builtins.h +0 -263
- data/ext/v8/upstream/2.3.3/src/bytecodes-irregexp.h +0 -104
- data/ext/v8/upstream/2.3.3/src/cached-powers.h +0 -119
- data/ext/v8/upstream/2.3.3/src/char-predicates-inl.h +0 -86
- data/ext/v8/upstream/2.3.3/src/checks.cc +0 -100
- data/ext/v8/upstream/2.3.3/src/checks.h +0 -310
- data/ext/v8/upstream/2.3.3/src/circular-queue.cc +0 -121
- data/ext/v8/upstream/2.3.3/src/code-stubs.cc +0 -177
- data/ext/v8/upstream/2.3.3/src/code-stubs.h +0 -177
- data/ext/v8/upstream/2.3.3/src/codegen-inl.h +0 -60
- data/ext/v8/upstream/2.3.3/src/codegen.cc +0 -516
- data/ext/v8/upstream/2.3.3/src/codegen.h +0 -897
- data/ext/v8/upstream/2.3.3/src/compilation-cache.cc +0 -562
- data/ext/v8/upstream/2.3.3/src/compilation-cache.h +0 -102
- data/ext/v8/upstream/2.3.3/src/compiler.cc +0 -654
- data/ext/v8/upstream/2.3.3/src/compiler.h +0 -299
- data/ext/v8/upstream/2.3.3/src/contexts.cc +0 -256
- data/ext/v8/upstream/2.3.3/src/contexts.h +0 -342
- data/ext/v8/upstream/2.3.3/src/conversions.cc +0 -1119
- data/ext/v8/upstream/2.3.3/src/conversions.h +0 -123
- data/ext/v8/upstream/2.3.3/src/counters.h +0 -239
- data/ext/v8/upstream/2.3.3/src/cpu-profiler-inl.h +0 -100
- data/ext/v8/upstream/2.3.3/src/cpu-profiler.cc +0 -538
- data/ext/v8/upstream/2.3.3/src/cpu-profiler.h +0 -285
- data/ext/v8/upstream/2.3.3/src/d8-debug.cc +0 -356
- data/ext/v8/upstream/2.3.3/src/d8-debug.h +0 -155
- data/ext/v8/upstream/2.3.3/src/d8.cc +0 -783
- data/ext/v8/upstream/2.3.3/src/d8.h +0 -227
- data/ext/v8/upstream/2.3.3/src/d8.js +0 -1683
- data/ext/v8/upstream/2.3.3/src/data-flow.cc +0 -758
- data/ext/v8/upstream/2.3.3/src/data-flow.h +0 -278
- data/ext/v8/upstream/2.3.3/src/date.js +0 -1059
- data/ext/v8/upstream/2.3.3/src/dateparser-inl.h +0 -123
- data/ext/v8/upstream/2.3.3/src/dateparser.h +0 -244
- data/ext/v8/upstream/2.3.3/src/debug-agent.cc +0 -427
- data/ext/v8/upstream/2.3.3/src/debug-agent.h +0 -129
- data/ext/v8/upstream/2.3.3/src/debug-debugger.js +0 -2227
- data/ext/v8/upstream/2.3.3/src/debug.cc +0 -3005
- data/ext/v8/upstream/2.3.3/src/debug.h +0 -993
- data/ext/v8/upstream/2.3.3/src/disassembler.cc +0 -312
- data/ext/v8/upstream/2.3.3/src/double.h +0 -169
- data/ext/v8/upstream/2.3.3/src/dtoa-config.c +0 -92
- data/ext/v8/upstream/2.3.3/src/dtoa.cc +0 -77
- data/ext/v8/upstream/2.3.3/src/dtoa.h +0 -81
- data/ext/v8/upstream/2.3.3/src/execution.cc +0 -809
- data/ext/v8/upstream/2.3.3/src/execution.h +0 -336
- data/ext/v8/upstream/2.3.3/src/factory.cc +0 -1003
- data/ext/v8/upstream/2.3.3/src/factory.h +0 -410
- data/ext/v8/upstream/2.3.3/src/fast-codegen.cc +0 -746
- data/ext/v8/upstream/2.3.3/src/fast-codegen.h +0 -161
- data/ext/v8/upstream/2.3.3/src/fast-dtoa.cc +0 -505
- data/ext/v8/upstream/2.3.3/src/fast-dtoa.h +0 -58
- data/ext/v8/upstream/2.3.3/src/flag-definitions.h +0 -455
- data/ext/v8/upstream/2.3.3/src/flags.cc +0 -551
- data/ext/v8/upstream/2.3.3/src/flags.h +0 -81
- data/ext/v8/upstream/2.3.3/src/flow-graph.cc +0 -763
- data/ext/v8/upstream/2.3.3/src/flow-graph.h +0 -180
- data/ext/v8/upstream/2.3.3/src/frame-element.h +0 -273
- data/ext/v8/upstream/2.3.3/src/frames-inl.h +0 -217
- data/ext/v8/upstream/2.3.3/src/frames.cc +0 -826
- data/ext/v8/upstream/2.3.3/src/frames.h +0 -682
- data/ext/v8/upstream/2.3.3/src/full-codegen.cc +0 -1443
- data/ext/v8/upstream/2.3.3/src/full-codegen.h +0 -548
- data/ext/v8/upstream/2.3.3/src/func-name-inferrer.cc +0 -76
- data/ext/v8/upstream/2.3.3/src/func-name-inferrer.h +0 -135
- data/ext/v8/upstream/2.3.3/src/global-handles.cc +0 -520
- data/ext/v8/upstream/2.3.3/src/global-handles.h +0 -180
- data/ext/v8/upstream/2.3.3/src/globals.h +0 -669
- data/ext/v8/upstream/2.3.3/src/handles-inl.h +0 -76
- data/ext/v8/upstream/2.3.3/src/handles.cc +0 -825
- data/ext/v8/upstream/2.3.3/src/handles.h +0 -393
- data/ext/v8/upstream/2.3.3/src/hashmap.cc +0 -226
- data/ext/v8/upstream/2.3.3/src/hashmap.h +0 -120
- data/ext/v8/upstream/2.3.3/src/heap-inl.h +0 -493
- data/ext/v8/upstream/2.3.3/src/heap-profiler.cc +0 -779
- data/ext/v8/upstream/2.3.3/src/heap-profiler.h +0 -323
- data/ext/v8/upstream/2.3.3/src/heap.cc +0 -4994
- data/ext/v8/upstream/2.3.3/src/heap.h +0 -1984
- data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32-inl.h +0 -360
- data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32.cc +0 -2600
- data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32.h +0 -969
- data/ext/v8/upstream/2.3.3/src/ia32/builtins-ia32.cc +0 -1261
- data/ext/v8/upstream/2.3.3/src/ia32/codegen-ia32.cc +0 -13968
- data/ext/v8/upstream/2.3.3/src/ia32/codegen-ia32.h +0 -1097
- data/ext/v8/upstream/2.3.3/src/ia32/cpu-ia32.cc +0 -83
- data/ext/v8/upstream/2.3.3/src/ia32/debug-ia32.cc +0 -309
- data/ext/v8/upstream/2.3.3/src/ia32/disasm-ia32.cc +0 -1471
- data/ext/v8/upstream/2.3.3/src/ia32/fast-codegen-ia32.cc +0 -954
- data/ext/v8/upstream/2.3.3/src/ia32/fast-codegen-ia32.h +0 -155
- data/ext/v8/upstream/2.3.3/src/ia32/frames-ia32.cc +0 -115
- data/ext/v8/upstream/2.3.3/src/ia32/frames-ia32.h +0 -135
- data/ext/v8/upstream/2.3.3/src/ia32/full-codegen-ia32.cc +0 -3281
- data/ext/v8/upstream/2.3.3/src/ia32/ic-ia32.cc +0 -1966
- data/ext/v8/upstream/2.3.3/src/ia32/macro-assembler-ia32.cc +0 -1610
- data/ext/v8/upstream/2.3.3/src/ia32/macro-assembler-ia32.h +0 -610
- data/ext/v8/upstream/2.3.3/src/ia32/regexp-macro-assembler-ia32.cc +0 -1247
- data/ext/v8/upstream/2.3.3/src/ia32/regexp-macro-assembler-ia32.h +0 -214
- data/ext/v8/upstream/2.3.3/src/ia32/simulator-ia32.h +0 -62
- data/ext/v8/upstream/2.3.3/src/ia32/stub-cache-ia32.cc +0 -2750
- data/ext/v8/upstream/2.3.3/src/ia32/virtual-frame-ia32.cc +0 -1334
- data/ext/v8/upstream/2.3.3/src/ia32/virtual-frame-ia32.h +0 -627
- data/ext/v8/upstream/2.3.3/src/ic-inl.h +0 -120
- data/ext/v8/upstream/2.3.3/src/ic.cc +0 -1827
- data/ext/v8/upstream/2.3.3/src/ic.h +0 -515
- data/ext/v8/upstream/2.3.3/src/interpreter-irregexp.cc +0 -646
- data/ext/v8/upstream/2.3.3/src/json.js +0 -268
- data/ext/v8/upstream/2.3.3/src/jsregexp.cc +0 -5283
- data/ext/v8/upstream/2.3.3/src/jsregexp.h +0 -1463
- data/ext/v8/upstream/2.3.3/src/jump-target-heavy.cc +0 -429
- data/ext/v8/upstream/2.3.3/src/jump-target-heavy.h +0 -244
- data/ext/v8/upstream/2.3.3/src/jump-target-light.cc +0 -110
- data/ext/v8/upstream/2.3.3/src/jump-target-light.h +0 -192
- data/ext/v8/upstream/2.3.3/src/list-inl.h +0 -166
- data/ext/v8/upstream/2.3.3/src/list.h +0 -159
- data/ext/v8/upstream/2.3.3/src/liveedit-debugger.js +0 -1057
- data/ext/v8/upstream/2.3.3/src/liveedit.cc +0 -1480
- data/ext/v8/upstream/2.3.3/src/liveedit.h +0 -170
- data/ext/v8/upstream/2.3.3/src/log-utils.cc +0 -497
- data/ext/v8/upstream/2.3.3/src/log-utils.h +0 -289
- data/ext/v8/upstream/2.3.3/src/log.cc +0 -1561
- data/ext/v8/upstream/2.3.3/src/log.h +0 -384
- data/ext/v8/upstream/2.3.3/src/macro-assembler.h +0 -86
- data/ext/v8/upstream/2.3.3/src/macros.py +0 -177
- data/ext/v8/upstream/2.3.3/src/mark-compact.cc +0 -2330
- data/ext/v8/upstream/2.3.3/src/mark-compact.h +0 -451
- data/ext/v8/upstream/2.3.3/src/math.js +0 -264
- data/ext/v8/upstream/2.3.3/src/memory.h +0 -74
- data/ext/v8/upstream/2.3.3/src/messages.cc +0 -183
- data/ext/v8/upstream/2.3.3/src/messages.h +0 -113
- data/ext/v8/upstream/2.3.3/src/messages.js +0 -982
- data/ext/v8/upstream/2.3.3/src/mips/assembler-mips.h +0 -668
- data/ext/v8/upstream/2.3.3/src/mips/builtins-mips.cc +0 -205
- data/ext/v8/upstream/2.3.3/src/mips/codegen-mips.h +0 -434
- data/ext/v8/upstream/2.3.3/src/mips/debug-mips.cc +0 -131
- data/ext/v8/upstream/2.3.3/src/mips/frames-mips.cc +0 -102
- data/ext/v8/upstream/2.3.3/src/mips/ic-mips.cc +0 -220
- data/ext/v8/upstream/2.3.3/src/mips/simulator-mips.cc +0 -1651
- data/ext/v8/upstream/2.3.3/src/mips/simulator-mips.h +0 -311
- data/ext/v8/upstream/2.3.3/src/mips/stub-cache-mips.cc +0 -403
- data/ext/v8/upstream/2.3.3/src/mirror-debugger.js +0 -2380
- data/ext/v8/upstream/2.3.3/src/objects-debug.cc +0 -1366
- data/ext/v8/upstream/2.3.3/src/objects-inl.h +0 -3333
- data/ext/v8/upstream/2.3.3/src/objects.cc +0 -8820
- data/ext/v8/upstream/2.3.3/src/objects.h +0 -5373
- data/ext/v8/upstream/2.3.3/src/oprofile-agent.cc +0 -108
- data/ext/v8/upstream/2.3.3/src/oprofile-agent.h +0 -77
- data/ext/v8/upstream/2.3.3/src/parser.cc +0 -5207
- data/ext/v8/upstream/2.3.3/src/parser.h +0 -197
- data/ext/v8/upstream/2.3.3/src/platform-freebsd.cc +0 -667
- data/ext/v8/upstream/2.3.3/src/platform-linux.cc +0 -862
- data/ext/v8/upstream/2.3.3/src/platform-macos.cc +0 -665
- data/ext/v8/upstream/2.3.3/src/platform-nullos.cc +0 -454
- data/ext/v8/upstream/2.3.3/src/platform-openbsd.cc +0 -622
- data/ext/v8/upstream/2.3.3/src/platform-posix.cc +0 -362
- data/ext/v8/upstream/2.3.3/src/platform-solaris.cc +0 -653
- data/ext/v8/upstream/2.3.3/src/platform-win32.cc +0 -1911
- data/ext/v8/upstream/2.3.3/src/platform.h +0 -577
- data/ext/v8/upstream/2.3.3/src/powers-ten.h +0 -2461
- data/ext/v8/upstream/2.3.3/src/prettyprinter.cc +0 -1531
- data/ext/v8/upstream/2.3.3/src/prettyprinter.h +0 -221
- data/ext/v8/upstream/2.3.3/src/profile-generator-inl.h +0 -148
- data/ext/v8/upstream/2.3.3/src/profile-generator.cc +0 -1830
- data/ext/v8/upstream/2.3.3/src/profile-generator.h +0 -853
- data/ext/v8/upstream/2.3.3/src/property.cc +0 -96
- data/ext/v8/upstream/2.3.3/src/property.h +0 -315
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-irregexp.cc +0 -464
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-irregexp.h +0 -141
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-tracer.cc +0 -356
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-tracer.h +0 -103
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler.cc +0 -261
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler.h +0 -228
- data/ext/v8/upstream/2.3.3/src/regexp.js +0 -549
- data/ext/v8/upstream/2.3.3/src/rewriter.cc +0 -1038
- data/ext/v8/upstream/2.3.3/src/rewriter.h +0 -54
- data/ext/v8/upstream/2.3.3/src/runtime.cc +0 -10599
- data/ext/v8/upstream/2.3.3/src/runtime.h +0 -459
- data/ext/v8/upstream/2.3.3/src/runtime.js +0 -629
- data/ext/v8/upstream/2.3.3/src/scanner.cc +0 -1346
- data/ext/v8/upstream/2.3.3/src/scanner.h +0 -503
- data/ext/v8/upstream/2.3.3/src/scopeinfo.cc +0 -637
- data/ext/v8/upstream/2.3.3/src/scopeinfo.h +0 -233
- data/ext/v8/upstream/2.3.3/src/scopes.cc +0 -962
- data/ext/v8/upstream/2.3.3/src/scopes.h +0 -400
- data/ext/v8/upstream/2.3.3/src/serialize.cc +0 -1461
- data/ext/v8/upstream/2.3.3/src/serialize.h +0 -581
- data/ext/v8/upstream/2.3.3/src/spaces-inl.h +0 -483
- data/ext/v8/upstream/2.3.3/src/spaces.cc +0 -2901
- data/ext/v8/upstream/2.3.3/src/spaces.h +0 -2197
- data/ext/v8/upstream/2.3.3/src/string-stream.cc +0 -584
- data/ext/v8/upstream/2.3.3/src/string-stream.h +0 -189
- data/ext/v8/upstream/2.3.3/src/string.js +0 -1006
- data/ext/v8/upstream/2.3.3/src/stub-cache.cc +0 -1379
- data/ext/v8/upstream/2.3.3/src/stub-cache.h +0 -756
- data/ext/v8/upstream/2.3.3/src/third_party/dtoa/COPYING +0 -15
- data/ext/v8/upstream/2.3.3/src/third_party/dtoa/dtoa.c +0 -3334
- data/ext/v8/upstream/2.3.3/src/token.cc +0 -56
- data/ext/v8/upstream/2.3.3/src/token.h +0 -270
- data/ext/v8/upstream/2.3.3/src/top.cc +0 -1067
- data/ext/v8/upstream/2.3.3/src/top.h +0 -463
- data/ext/v8/upstream/2.3.3/src/type-info.cc +0 -53
- data/ext/v8/upstream/2.3.3/src/type-info.h +0 -244
- data/ext/v8/upstream/2.3.3/src/unicode-inl.h +0 -238
- data/ext/v8/upstream/2.3.3/src/unicode.cc +0 -749
- data/ext/v8/upstream/2.3.3/src/unicode.h +0 -279
- data/ext/v8/upstream/2.3.3/src/uri.js +0 -415
- data/ext/v8/upstream/2.3.3/src/utils.cc +0 -285
- data/ext/v8/upstream/2.3.3/src/utils.h +0 -745
- data/ext/v8/upstream/2.3.3/src/v8-counters.h +0 -250
- data/ext/v8/upstream/2.3.3/src/v8.cc +0 -228
- data/ext/v8/upstream/2.3.3/src/v8.h +0 -121
- data/ext/v8/upstream/2.3.3/src/v8natives.js +0 -1188
- data/ext/v8/upstream/2.3.3/src/v8threads.cc +0 -461
- data/ext/v8/upstream/2.3.3/src/v8threads.h +0 -159
- data/ext/v8/upstream/2.3.3/src/variables.cc +0 -119
- data/ext/v8/upstream/2.3.3/src/variables.h +0 -205
- data/ext/v8/upstream/2.3.3/src/version.cc +0 -88
- data/ext/v8/upstream/2.3.3/src/virtual-frame-heavy-inl.h +0 -192
- data/ext/v8/upstream/2.3.3/src/virtual-frame.h +0 -46
- data/ext/v8/upstream/2.3.3/src/vm-state-inl.h +0 -137
- data/ext/v8/upstream/2.3.3/src/vm-state.cc +0 -39
- data/ext/v8/upstream/2.3.3/src/vm-state.h +0 -77
- data/ext/v8/upstream/2.3.3/src/x64/assembler-x64-inl.h +0 -400
- data/ext/v8/upstream/2.3.3/src/x64/assembler-x64.cc +0 -2963
- data/ext/v8/upstream/2.3.3/src/x64/assembler-x64.h +0 -1438
- data/ext/v8/upstream/2.3.3/src/x64/builtins-x64.cc +0 -1296
- data/ext/v8/upstream/2.3.3/src/x64/codegen-x64-inl.h +0 -46
- data/ext/v8/upstream/2.3.3/src/x64/codegen-x64.cc +0 -12491
- data/ext/v8/upstream/2.3.3/src/x64/codegen-x64.h +0 -1090
- data/ext/v8/upstream/2.3.3/src/x64/cpu-x64.cc +0 -83
- data/ext/v8/upstream/2.3.3/src/x64/debug-x64.cc +0 -267
- data/ext/v8/upstream/2.3.3/src/x64/disasm-x64.cc +0 -1696
- data/ext/v8/upstream/2.3.3/src/x64/fast-codegen-x64.cc +0 -250
- data/ext/v8/upstream/2.3.3/src/x64/frames-x64.cc +0 -113
- data/ext/v8/upstream/2.3.3/src/x64/frames-x64.h +0 -125
- data/ext/v8/upstream/2.3.3/src/x64/full-codegen-x64.cc +0 -3270
- data/ext/v8/upstream/2.3.3/src/x64/ic-x64.cc +0 -1907
- data/ext/v8/upstream/2.3.3/src/x64/jump-target-x64.cc +0 -437
- data/ext/v8/upstream/2.3.3/src/x64/macro-assembler-x64.cc +0 -2793
- data/ext/v8/upstream/2.3.3/src/x64/macro-assembler-x64.h +0 -916
- data/ext/v8/upstream/2.3.3/src/x64/regexp-macro-assembler-x64.cc +0 -1374
- data/ext/v8/upstream/2.3.3/src/x64/regexp-macro-assembler-x64.h +0 -277
- data/ext/v8/upstream/2.3.3/src/x64/simulator-x64.h +0 -63
- data/ext/v8/upstream/2.3.3/src/x64/stub-cache-x64.cc +0 -2560
- data/ext/v8/upstream/2.3.3/src/x64/virtual-frame-x64.cc +0 -1264
- data/ext/v8/upstream/2.3.3/src/x64/virtual-frame-x64.h +0 -590
- data/ext/v8/upstream/2.3.3/src/zone-inl.h +0 -82
- data/ext/v8/upstream/2.3.3/src/zone.cc +0 -194
- data/ext/v8/upstream/2.3.3/src/zone.h +0 -221
- data/ext/v8/upstream/2.3.3/tools/codemap.js +0 -270
- data/ext/v8/upstream/2.3.3/tools/csvparser.js +0 -83
- data/ext/v8/upstream/2.3.3/tools/gc-nvp-trace-processor.py +0 -317
- data/ext/v8/upstream/2.3.3/tools/gyp/v8.gyp +0 -749
- data/ext/v8/upstream/2.3.3/tools/linux-tick-processor.py +0 -78
- data/ext/v8/upstream/2.3.3/tools/logreader.js +0 -338
- data/ext/v8/upstream/2.3.3/tools/oprofile/annotate +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/common +0 -19
- data/ext/v8/upstream/2.3.3/tools/oprofile/dump +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/report +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/reset +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/run +0 -14
- data/ext/v8/upstream/2.3.3/tools/oprofile/shutdown +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/start +0 -7
- data/ext/v8/upstream/2.3.3/tools/presubmit.py +0 -299
- data/ext/v8/upstream/2.3.3/tools/profile.js +0 -691
- data/ext/v8/upstream/2.3.3/tools/profile_view.js +0 -224
- data/ext/v8/upstream/2.3.3/tools/splaytree.js +0 -322
- data/ext/v8/upstream/2.3.3/tools/splaytree.py +0 -226
- data/ext/v8/upstream/2.3.3/tools/tickprocessor.js +0 -862
- data/ext/v8/upstream/2.3.3/tools/tickprocessor.py +0 -571
- data/ext/v8/upstream/2.3.3/tools/utils.py +0 -88
- data/ext/v8/upstream/2.3.3/tools/visual_studio/README.txt +0 -71
- data/ext/v8/upstream/2.3.3/tools/visual_studio/common.vsprops +0 -34
- data/ext/v8/upstream/2.3.3/tools/visual_studio/debug.vsprops +0 -17
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base.vcproj +0 -1143
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base_arm.vcproj +0 -1115
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base_x64.vcproj +0 -1096
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample.vcproj +0 -145
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample_arm.vcproj +0 -145
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample_x64.vcproj +0 -161
- data/ext/v8/upstream/2.3.3/tools/windows-tick-processor.bat +0 -29
- data/ext/v8/upstream/2.3.3/tools/windows-tick-processor.py +0 -137
@@ -1,1366 +0,0 @@
|
|
1
|
-
// Copyright 2006-2008 the V8 project authors. All rights reserved.
|
2
|
-
// Redistribution and use in source and binary forms, with or without
|
3
|
-
// modification, are permitted provided that the following conditions are
|
4
|
-
// met:
|
5
|
-
//
|
6
|
-
// * Redistributions of source code must retain the above copyright
|
7
|
-
// notice, this list of conditions and the following disclaimer.
|
8
|
-
// * Redistributions in binary form must reproduce the above
|
9
|
-
// copyright notice, this list of conditions and the following
|
10
|
-
// disclaimer in the documentation and/or other materials provided
|
11
|
-
// with the distribution.
|
12
|
-
// * Neither the name of Google Inc. nor the names of its
|
13
|
-
// contributors may be used to endorse or promote products derived
|
14
|
-
// from this software without specific prior written permission.
|
15
|
-
//
|
16
|
-
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
-
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
-
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
-
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
-
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
-
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
-
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
-
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
-
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
-
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
-
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
-
|
28
|
-
#include "v8.h"
|
29
|
-
|
30
|
-
#include "disassembler.h"
|
31
|
-
#include "disasm.h"
|
32
|
-
#include "jsregexp.h"
|
33
|
-
|
34
|
-
namespace v8 {
|
35
|
-
namespace internal {
|
36
|
-
|
37
|
-
#ifdef DEBUG
|
38
|
-
|
39
|
-
static const char* TypeToString(InstanceType type);
|
40
|
-
|
41
|
-
|
42
|
-
void Object::Print() {
|
43
|
-
if (IsSmi()) {
|
44
|
-
Smi::cast(this)->SmiPrint();
|
45
|
-
} else if (IsFailure()) {
|
46
|
-
Failure::cast(this)->FailurePrint();
|
47
|
-
} else {
|
48
|
-
HeapObject::cast(this)->HeapObjectPrint();
|
49
|
-
}
|
50
|
-
Flush();
|
51
|
-
}
|
52
|
-
|
53
|
-
|
54
|
-
void Object::PrintLn() {
|
55
|
-
Print();
|
56
|
-
PrintF("\n");
|
57
|
-
}
|
58
|
-
|
59
|
-
|
60
|
-
void Object::Verify() {
|
61
|
-
if (IsSmi()) {
|
62
|
-
Smi::cast(this)->SmiVerify();
|
63
|
-
} else if (IsFailure()) {
|
64
|
-
Failure::cast(this)->FailureVerify();
|
65
|
-
} else {
|
66
|
-
HeapObject::cast(this)->HeapObjectVerify();
|
67
|
-
}
|
68
|
-
}
|
69
|
-
|
70
|
-
|
71
|
-
void Object::VerifyPointer(Object* p) {
|
72
|
-
if (p->IsHeapObject()) {
|
73
|
-
HeapObject::VerifyHeapPointer(p);
|
74
|
-
} else {
|
75
|
-
ASSERT(p->IsSmi());
|
76
|
-
}
|
77
|
-
}
|
78
|
-
|
79
|
-
|
80
|
-
void Smi::SmiVerify() {
|
81
|
-
ASSERT(IsSmi());
|
82
|
-
}
|
83
|
-
|
84
|
-
|
85
|
-
void Failure::FailureVerify() {
|
86
|
-
ASSERT(IsFailure());
|
87
|
-
}
|
88
|
-
|
89
|
-
|
90
|
-
void HeapObject::PrintHeader(const char* id) {
|
91
|
-
PrintF("%p: [%s]\n", this, id);
|
92
|
-
}
|
93
|
-
|
94
|
-
|
95
|
-
void HeapObject::HeapObjectPrint() {
|
96
|
-
InstanceType instance_type = map()->instance_type();
|
97
|
-
|
98
|
-
HandleScope scope;
|
99
|
-
if (instance_type < FIRST_NONSTRING_TYPE) {
|
100
|
-
String::cast(this)->StringPrint();
|
101
|
-
return;
|
102
|
-
}
|
103
|
-
|
104
|
-
switch (instance_type) {
|
105
|
-
case MAP_TYPE:
|
106
|
-
Map::cast(this)->MapPrint();
|
107
|
-
break;
|
108
|
-
case HEAP_NUMBER_TYPE:
|
109
|
-
HeapNumber::cast(this)->HeapNumberPrint();
|
110
|
-
break;
|
111
|
-
case FIXED_ARRAY_TYPE:
|
112
|
-
FixedArray::cast(this)->FixedArrayPrint();
|
113
|
-
break;
|
114
|
-
case BYTE_ARRAY_TYPE:
|
115
|
-
ByteArray::cast(this)->ByteArrayPrint();
|
116
|
-
break;
|
117
|
-
case PIXEL_ARRAY_TYPE:
|
118
|
-
PixelArray::cast(this)->PixelArrayPrint();
|
119
|
-
break;
|
120
|
-
case EXTERNAL_BYTE_ARRAY_TYPE:
|
121
|
-
ExternalByteArray::cast(this)->ExternalByteArrayPrint();
|
122
|
-
break;
|
123
|
-
case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE:
|
124
|
-
ExternalUnsignedByteArray::cast(this)->ExternalUnsignedByteArrayPrint();
|
125
|
-
break;
|
126
|
-
case EXTERNAL_SHORT_ARRAY_TYPE:
|
127
|
-
ExternalShortArray::cast(this)->ExternalShortArrayPrint();
|
128
|
-
break;
|
129
|
-
case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE:
|
130
|
-
ExternalUnsignedShortArray::cast(this)->ExternalUnsignedShortArrayPrint();
|
131
|
-
break;
|
132
|
-
case EXTERNAL_INT_ARRAY_TYPE:
|
133
|
-
ExternalIntArray::cast(this)->ExternalIntArrayPrint();
|
134
|
-
break;
|
135
|
-
case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE:
|
136
|
-
ExternalUnsignedIntArray::cast(this)->ExternalUnsignedIntArrayPrint();
|
137
|
-
break;
|
138
|
-
case EXTERNAL_FLOAT_ARRAY_TYPE:
|
139
|
-
ExternalFloatArray::cast(this)->ExternalFloatArrayPrint();
|
140
|
-
break;
|
141
|
-
case FILLER_TYPE:
|
142
|
-
PrintF("filler");
|
143
|
-
break;
|
144
|
-
case JS_OBJECT_TYPE: // fall through
|
145
|
-
case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
|
146
|
-
case JS_ARRAY_TYPE:
|
147
|
-
case JS_REGEXP_TYPE:
|
148
|
-
JSObject::cast(this)->JSObjectPrint();
|
149
|
-
break;
|
150
|
-
case ODDBALL_TYPE:
|
151
|
-
Oddball::cast(this)->to_string()->Print();
|
152
|
-
break;
|
153
|
-
case JS_FUNCTION_TYPE:
|
154
|
-
JSFunction::cast(this)->JSFunctionPrint();
|
155
|
-
break;
|
156
|
-
case JS_GLOBAL_PROXY_TYPE:
|
157
|
-
JSGlobalProxy::cast(this)->JSGlobalProxyPrint();
|
158
|
-
break;
|
159
|
-
case JS_GLOBAL_OBJECT_TYPE:
|
160
|
-
JSGlobalObject::cast(this)->JSGlobalObjectPrint();
|
161
|
-
break;
|
162
|
-
case JS_BUILTINS_OBJECT_TYPE:
|
163
|
-
JSBuiltinsObject::cast(this)->JSBuiltinsObjectPrint();
|
164
|
-
break;
|
165
|
-
case JS_VALUE_TYPE:
|
166
|
-
PrintF("Value wrapper around:");
|
167
|
-
JSValue::cast(this)->value()->Print();
|
168
|
-
break;
|
169
|
-
case CODE_TYPE:
|
170
|
-
Code::cast(this)->CodePrint();
|
171
|
-
break;
|
172
|
-
case PROXY_TYPE:
|
173
|
-
Proxy::cast(this)->ProxyPrint();
|
174
|
-
break;
|
175
|
-
case SHARED_FUNCTION_INFO_TYPE:
|
176
|
-
SharedFunctionInfo::cast(this)->SharedFunctionInfoPrint();
|
177
|
-
break;
|
178
|
-
case JS_GLOBAL_PROPERTY_CELL_TYPE:
|
179
|
-
JSGlobalPropertyCell::cast(this)->JSGlobalPropertyCellPrint();
|
180
|
-
break;
|
181
|
-
#define MAKE_STRUCT_CASE(NAME, Name, name) \
|
182
|
-
case NAME##_TYPE: \
|
183
|
-
Name::cast(this)->Name##Print(); \
|
184
|
-
break;
|
185
|
-
STRUCT_LIST(MAKE_STRUCT_CASE)
|
186
|
-
#undef MAKE_STRUCT_CASE
|
187
|
-
|
188
|
-
default:
|
189
|
-
PrintF("UNKNOWN TYPE %d", map()->instance_type());
|
190
|
-
UNREACHABLE();
|
191
|
-
break;
|
192
|
-
}
|
193
|
-
}
|
194
|
-
|
195
|
-
|
196
|
-
void HeapObject::HeapObjectVerify() {
|
197
|
-
InstanceType instance_type = map()->instance_type();
|
198
|
-
|
199
|
-
if (instance_type < FIRST_NONSTRING_TYPE) {
|
200
|
-
String::cast(this)->StringVerify();
|
201
|
-
return;
|
202
|
-
}
|
203
|
-
|
204
|
-
switch (instance_type) {
|
205
|
-
case MAP_TYPE:
|
206
|
-
Map::cast(this)->MapVerify();
|
207
|
-
break;
|
208
|
-
case HEAP_NUMBER_TYPE:
|
209
|
-
HeapNumber::cast(this)->HeapNumberVerify();
|
210
|
-
break;
|
211
|
-
case FIXED_ARRAY_TYPE:
|
212
|
-
FixedArray::cast(this)->FixedArrayVerify();
|
213
|
-
break;
|
214
|
-
case BYTE_ARRAY_TYPE:
|
215
|
-
ByteArray::cast(this)->ByteArrayVerify();
|
216
|
-
break;
|
217
|
-
case PIXEL_ARRAY_TYPE:
|
218
|
-
PixelArray::cast(this)->PixelArrayVerify();
|
219
|
-
break;
|
220
|
-
case EXTERNAL_BYTE_ARRAY_TYPE:
|
221
|
-
ExternalByteArray::cast(this)->ExternalByteArrayVerify();
|
222
|
-
break;
|
223
|
-
case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE:
|
224
|
-
ExternalUnsignedByteArray::cast(this)->ExternalUnsignedByteArrayVerify();
|
225
|
-
break;
|
226
|
-
case EXTERNAL_SHORT_ARRAY_TYPE:
|
227
|
-
ExternalShortArray::cast(this)->ExternalShortArrayVerify();
|
228
|
-
break;
|
229
|
-
case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE:
|
230
|
-
ExternalUnsignedShortArray::cast(this)->
|
231
|
-
ExternalUnsignedShortArrayVerify();
|
232
|
-
break;
|
233
|
-
case EXTERNAL_INT_ARRAY_TYPE:
|
234
|
-
ExternalIntArray::cast(this)->ExternalIntArrayVerify();
|
235
|
-
break;
|
236
|
-
case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE:
|
237
|
-
ExternalUnsignedIntArray::cast(this)->ExternalUnsignedIntArrayVerify();
|
238
|
-
break;
|
239
|
-
case EXTERNAL_FLOAT_ARRAY_TYPE:
|
240
|
-
ExternalFloatArray::cast(this)->ExternalFloatArrayVerify();
|
241
|
-
break;
|
242
|
-
case CODE_TYPE:
|
243
|
-
Code::cast(this)->CodeVerify();
|
244
|
-
break;
|
245
|
-
case ODDBALL_TYPE:
|
246
|
-
Oddball::cast(this)->OddballVerify();
|
247
|
-
break;
|
248
|
-
case JS_OBJECT_TYPE:
|
249
|
-
case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
|
250
|
-
JSObject::cast(this)->JSObjectVerify();
|
251
|
-
break;
|
252
|
-
case JS_VALUE_TYPE:
|
253
|
-
JSValue::cast(this)->JSValueVerify();
|
254
|
-
break;
|
255
|
-
case JS_FUNCTION_TYPE:
|
256
|
-
JSFunction::cast(this)->JSFunctionVerify();
|
257
|
-
break;
|
258
|
-
case JS_GLOBAL_PROXY_TYPE:
|
259
|
-
JSGlobalProxy::cast(this)->JSGlobalProxyVerify();
|
260
|
-
break;
|
261
|
-
case JS_GLOBAL_OBJECT_TYPE:
|
262
|
-
JSGlobalObject::cast(this)->JSGlobalObjectVerify();
|
263
|
-
break;
|
264
|
-
case JS_BUILTINS_OBJECT_TYPE:
|
265
|
-
JSBuiltinsObject::cast(this)->JSBuiltinsObjectVerify();
|
266
|
-
break;
|
267
|
-
case JS_GLOBAL_PROPERTY_CELL_TYPE:
|
268
|
-
JSGlobalPropertyCell::cast(this)->JSGlobalPropertyCellVerify();
|
269
|
-
break;
|
270
|
-
case JS_ARRAY_TYPE:
|
271
|
-
JSArray::cast(this)->JSArrayVerify();
|
272
|
-
break;
|
273
|
-
case JS_REGEXP_TYPE:
|
274
|
-
JSRegExp::cast(this)->JSRegExpVerify();
|
275
|
-
break;
|
276
|
-
case FILLER_TYPE:
|
277
|
-
break;
|
278
|
-
case PROXY_TYPE:
|
279
|
-
Proxy::cast(this)->ProxyVerify();
|
280
|
-
break;
|
281
|
-
case SHARED_FUNCTION_INFO_TYPE:
|
282
|
-
SharedFunctionInfo::cast(this)->SharedFunctionInfoVerify();
|
283
|
-
break;
|
284
|
-
|
285
|
-
#define MAKE_STRUCT_CASE(NAME, Name, name) \
|
286
|
-
case NAME##_TYPE: \
|
287
|
-
Name::cast(this)->Name##Verify(); \
|
288
|
-
break;
|
289
|
-
STRUCT_LIST(MAKE_STRUCT_CASE)
|
290
|
-
#undef MAKE_STRUCT_CASE
|
291
|
-
|
292
|
-
default:
|
293
|
-
UNREACHABLE();
|
294
|
-
break;
|
295
|
-
}
|
296
|
-
}
|
297
|
-
|
298
|
-
|
299
|
-
void HeapObject::VerifyHeapPointer(Object* p) {
|
300
|
-
ASSERT(p->IsHeapObject());
|
301
|
-
ASSERT(Heap::Contains(HeapObject::cast(p)));
|
302
|
-
}
|
303
|
-
|
304
|
-
|
305
|
-
void HeapNumber::HeapNumberVerify() {
|
306
|
-
ASSERT(IsHeapNumber());
|
307
|
-
}
|
308
|
-
|
309
|
-
|
310
|
-
void ByteArray::ByteArrayPrint() {
|
311
|
-
PrintF("byte array, data starts at %p", GetDataStartAddress());
|
312
|
-
}
|
313
|
-
|
314
|
-
|
315
|
-
void PixelArray::PixelArrayPrint() {
|
316
|
-
PrintF("pixel array");
|
317
|
-
}
|
318
|
-
|
319
|
-
|
320
|
-
void ExternalByteArray::ExternalByteArrayPrint() {
|
321
|
-
PrintF("external byte array");
|
322
|
-
}
|
323
|
-
|
324
|
-
|
325
|
-
void ExternalUnsignedByteArray::ExternalUnsignedByteArrayPrint() {
|
326
|
-
PrintF("external unsigned byte array");
|
327
|
-
}
|
328
|
-
|
329
|
-
|
330
|
-
void ExternalShortArray::ExternalShortArrayPrint() {
|
331
|
-
PrintF("external short array");
|
332
|
-
}
|
333
|
-
|
334
|
-
|
335
|
-
void ExternalUnsignedShortArray::ExternalUnsignedShortArrayPrint() {
|
336
|
-
PrintF("external unsigned short array");
|
337
|
-
}
|
338
|
-
|
339
|
-
|
340
|
-
void ExternalIntArray::ExternalIntArrayPrint() {
|
341
|
-
PrintF("external int array");
|
342
|
-
}
|
343
|
-
|
344
|
-
|
345
|
-
void ExternalUnsignedIntArray::ExternalUnsignedIntArrayPrint() {
|
346
|
-
PrintF("external unsigned int array");
|
347
|
-
}
|
348
|
-
|
349
|
-
|
350
|
-
void ExternalFloatArray::ExternalFloatArrayPrint() {
|
351
|
-
PrintF("external float array");
|
352
|
-
}
|
353
|
-
|
354
|
-
|
355
|
-
void ByteArray::ByteArrayVerify() {
|
356
|
-
ASSERT(IsByteArray());
|
357
|
-
}
|
358
|
-
|
359
|
-
|
360
|
-
void PixelArray::PixelArrayVerify() {
|
361
|
-
ASSERT(IsPixelArray());
|
362
|
-
}
|
363
|
-
|
364
|
-
|
365
|
-
void ExternalByteArray::ExternalByteArrayVerify() {
|
366
|
-
ASSERT(IsExternalByteArray());
|
367
|
-
}
|
368
|
-
|
369
|
-
|
370
|
-
void ExternalUnsignedByteArray::ExternalUnsignedByteArrayVerify() {
|
371
|
-
ASSERT(IsExternalUnsignedByteArray());
|
372
|
-
}
|
373
|
-
|
374
|
-
|
375
|
-
void ExternalShortArray::ExternalShortArrayVerify() {
|
376
|
-
ASSERT(IsExternalShortArray());
|
377
|
-
}
|
378
|
-
|
379
|
-
|
380
|
-
void ExternalUnsignedShortArray::ExternalUnsignedShortArrayVerify() {
|
381
|
-
ASSERT(IsExternalUnsignedShortArray());
|
382
|
-
}
|
383
|
-
|
384
|
-
|
385
|
-
void ExternalIntArray::ExternalIntArrayVerify() {
|
386
|
-
ASSERT(IsExternalIntArray());
|
387
|
-
}
|
388
|
-
|
389
|
-
|
390
|
-
void ExternalUnsignedIntArray::ExternalUnsignedIntArrayVerify() {
|
391
|
-
ASSERT(IsExternalUnsignedIntArray());
|
392
|
-
}
|
393
|
-
|
394
|
-
|
395
|
-
void ExternalFloatArray::ExternalFloatArrayVerify() {
|
396
|
-
ASSERT(IsExternalFloatArray());
|
397
|
-
}
|
398
|
-
|
399
|
-
|
400
|
-
void JSObject::PrintProperties() {
|
401
|
-
if (HasFastProperties()) {
|
402
|
-
DescriptorArray* descs = map()->instance_descriptors();
|
403
|
-
for (int i = 0; i < descs->number_of_descriptors(); i++) {
|
404
|
-
PrintF(" ");
|
405
|
-
descs->GetKey(i)->StringPrint();
|
406
|
-
PrintF(": ");
|
407
|
-
switch (descs->GetType(i)) {
|
408
|
-
case FIELD: {
|
409
|
-
int index = descs->GetFieldIndex(i);
|
410
|
-
FastPropertyAt(index)->ShortPrint();
|
411
|
-
PrintF(" (field at offset %d)\n", index);
|
412
|
-
break;
|
413
|
-
}
|
414
|
-
case CONSTANT_FUNCTION:
|
415
|
-
descs->GetConstantFunction(i)->ShortPrint();
|
416
|
-
PrintF(" (constant function)\n");
|
417
|
-
break;
|
418
|
-
case CALLBACKS:
|
419
|
-
descs->GetCallbacksObject(i)->ShortPrint();
|
420
|
-
PrintF(" (callback)\n");
|
421
|
-
break;
|
422
|
-
case MAP_TRANSITION:
|
423
|
-
PrintF(" (map transition)\n");
|
424
|
-
break;
|
425
|
-
case CONSTANT_TRANSITION:
|
426
|
-
PrintF(" (constant transition)\n");
|
427
|
-
break;
|
428
|
-
case NULL_DESCRIPTOR:
|
429
|
-
PrintF(" (null descriptor)\n");
|
430
|
-
break;
|
431
|
-
default:
|
432
|
-
UNREACHABLE();
|
433
|
-
break;
|
434
|
-
}
|
435
|
-
}
|
436
|
-
} else {
|
437
|
-
property_dictionary()->Print();
|
438
|
-
}
|
439
|
-
}
|
440
|
-
|
441
|
-
|
442
|
-
void JSObject::PrintElements() {
|
443
|
-
switch (GetElementsKind()) {
|
444
|
-
case FAST_ELEMENTS: {
|
445
|
-
// Print in array notation for non-sparse arrays.
|
446
|
-
FixedArray* p = FixedArray::cast(elements());
|
447
|
-
for (int i = 0; i < p->length(); i++) {
|
448
|
-
PrintF(" %d: ", i);
|
449
|
-
p->get(i)->ShortPrint();
|
450
|
-
PrintF("\n");
|
451
|
-
}
|
452
|
-
break;
|
453
|
-
}
|
454
|
-
case PIXEL_ELEMENTS: {
|
455
|
-
PixelArray* p = PixelArray::cast(elements());
|
456
|
-
for (int i = 0; i < p->length(); i++) {
|
457
|
-
PrintF(" %d: %d\n", i, p->get(i));
|
458
|
-
}
|
459
|
-
break;
|
460
|
-
}
|
461
|
-
case EXTERNAL_BYTE_ELEMENTS: {
|
462
|
-
ExternalByteArray* p = ExternalByteArray::cast(elements());
|
463
|
-
for (int i = 0; i < p->length(); i++) {
|
464
|
-
PrintF(" %d: %d\n", i, static_cast<int>(p->get(i)));
|
465
|
-
}
|
466
|
-
break;
|
467
|
-
}
|
468
|
-
case EXTERNAL_UNSIGNED_BYTE_ELEMENTS: {
|
469
|
-
ExternalUnsignedByteArray* p =
|
470
|
-
ExternalUnsignedByteArray::cast(elements());
|
471
|
-
for (int i = 0; i < p->length(); i++) {
|
472
|
-
PrintF(" %d: %d\n", i, static_cast<int>(p->get(i)));
|
473
|
-
}
|
474
|
-
break;
|
475
|
-
}
|
476
|
-
case EXTERNAL_SHORT_ELEMENTS: {
|
477
|
-
ExternalShortArray* p = ExternalShortArray::cast(elements());
|
478
|
-
for (int i = 0; i < p->length(); i++) {
|
479
|
-
PrintF(" %d: %d\n", i, static_cast<int>(p->get(i)));
|
480
|
-
}
|
481
|
-
break;
|
482
|
-
}
|
483
|
-
case EXTERNAL_UNSIGNED_SHORT_ELEMENTS: {
|
484
|
-
ExternalUnsignedShortArray* p =
|
485
|
-
ExternalUnsignedShortArray::cast(elements());
|
486
|
-
for (int i = 0; i < p->length(); i++) {
|
487
|
-
PrintF(" %d: %d\n", i, static_cast<int>(p->get(i)));
|
488
|
-
}
|
489
|
-
break;
|
490
|
-
}
|
491
|
-
case EXTERNAL_INT_ELEMENTS: {
|
492
|
-
ExternalIntArray* p = ExternalIntArray::cast(elements());
|
493
|
-
for (int i = 0; i < p->length(); i++) {
|
494
|
-
PrintF(" %d: %d\n", i, static_cast<int>(p->get(i)));
|
495
|
-
}
|
496
|
-
break;
|
497
|
-
}
|
498
|
-
case EXTERNAL_UNSIGNED_INT_ELEMENTS: {
|
499
|
-
ExternalUnsignedIntArray* p =
|
500
|
-
ExternalUnsignedIntArray::cast(elements());
|
501
|
-
for (int i = 0; i < p->length(); i++) {
|
502
|
-
PrintF(" %d: %d\n", i, static_cast<int>(p->get(i)));
|
503
|
-
}
|
504
|
-
break;
|
505
|
-
}
|
506
|
-
case EXTERNAL_FLOAT_ELEMENTS: {
|
507
|
-
ExternalFloatArray* p = ExternalFloatArray::cast(elements());
|
508
|
-
for (int i = 0; i < p->length(); i++) {
|
509
|
-
PrintF(" %d: %f\n", i, p->get(i));
|
510
|
-
}
|
511
|
-
break;
|
512
|
-
}
|
513
|
-
case DICTIONARY_ELEMENTS:
|
514
|
-
elements()->Print();
|
515
|
-
break;
|
516
|
-
default:
|
517
|
-
UNREACHABLE();
|
518
|
-
break;
|
519
|
-
}
|
520
|
-
}
|
521
|
-
|
522
|
-
|
523
|
-
void JSObject::JSObjectPrint() {
|
524
|
-
PrintF("%p: [JSObject]\n", this);
|
525
|
-
PrintF(" - map = %p\n", map());
|
526
|
-
PrintF(" - prototype = %p\n", GetPrototype());
|
527
|
-
PrintF(" {\n");
|
528
|
-
PrintProperties();
|
529
|
-
PrintElements();
|
530
|
-
PrintF(" }\n");
|
531
|
-
}
|
532
|
-
|
533
|
-
|
534
|
-
void JSObject::JSObjectVerify() {
|
535
|
-
VerifyHeapPointer(properties());
|
536
|
-
VerifyHeapPointer(elements());
|
537
|
-
if (HasFastProperties()) {
|
538
|
-
CHECK_EQ(map()->unused_property_fields(),
|
539
|
-
(map()->inobject_properties() + properties()->length() -
|
540
|
-
map()->NextFreePropertyIndex()));
|
541
|
-
}
|
542
|
-
ASSERT(map()->has_fast_elements() ==
|
543
|
-
(elements()->map() == Heap::fixed_array_map()));
|
544
|
-
ASSERT(map()->has_fast_elements() == HasFastElements());
|
545
|
-
}
|
546
|
-
|
547
|
-
|
548
|
-
static const char* TypeToString(InstanceType type) {
|
549
|
-
switch (type) {
|
550
|
-
case INVALID_TYPE: return "INVALID";
|
551
|
-
case MAP_TYPE: return "MAP";
|
552
|
-
case HEAP_NUMBER_TYPE: return "HEAP_NUMBER";
|
553
|
-
case SYMBOL_TYPE: return "SYMBOL";
|
554
|
-
case ASCII_SYMBOL_TYPE: return "ASCII_SYMBOL";
|
555
|
-
case CONS_SYMBOL_TYPE: return "CONS_SYMBOL";
|
556
|
-
case CONS_ASCII_SYMBOL_TYPE: return "CONS_ASCII_SYMBOL";
|
557
|
-
case EXTERNAL_ASCII_SYMBOL_TYPE:
|
558
|
-
case EXTERNAL_SYMBOL_WITH_ASCII_DATA_TYPE:
|
559
|
-
case EXTERNAL_SYMBOL_TYPE: return "EXTERNAL_SYMBOL";
|
560
|
-
case ASCII_STRING_TYPE: return "ASCII_STRING";
|
561
|
-
case STRING_TYPE: return "TWO_BYTE_STRING";
|
562
|
-
case CONS_STRING_TYPE:
|
563
|
-
case CONS_ASCII_STRING_TYPE: return "CONS_STRING";
|
564
|
-
case EXTERNAL_ASCII_STRING_TYPE:
|
565
|
-
case EXTERNAL_STRING_WITH_ASCII_DATA_TYPE:
|
566
|
-
case EXTERNAL_STRING_TYPE: return "EXTERNAL_STRING";
|
567
|
-
case FIXED_ARRAY_TYPE: return "FIXED_ARRAY";
|
568
|
-
case BYTE_ARRAY_TYPE: return "BYTE_ARRAY";
|
569
|
-
case PIXEL_ARRAY_TYPE: return "PIXEL_ARRAY";
|
570
|
-
case EXTERNAL_BYTE_ARRAY_TYPE: return "EXTERNAL_BYTE_ARRAY";
|
571
|
-
case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE:
|
572
|
-
return "EXTERNAL_UNSIGNED_BYTE_ARRAY";
|
573
|
-
case EXTERNAL_SHORT_ARRAY_TYPE: return "EXTERNAL_SHORT_ARRAY";
|
574
|
-
case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE:
|
575
|
-
return "EXTERNAL_UNSIGNED_SHORT_ARRAY";
|
576
|
-
case EXTERNAL_INT_ARRAY_TYPE: return "EXTERNAL_INT_ARRAY";
|
577
|
-
case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE:
|
578
|
-
return "EXTERNAL_UNSIGNED_INT_ARRAY";
|
579
|
-
case EXTERNAL_FLOAT_ARRAY_TYPE: return "EXTERNAL_FLOAT_ARRAY";
|
580
|
-
case FILLER_TYPE: return "FILLER";
|
581
|
-
case JS_OBJECT_TYPE: return "JS_OBJECT";
|
582
|
-
case JS_CONTEXT_EXTENSION_OBJECT_TYPE: return "JS_CONTEXT_EXTENSION_OBJECT";
|
583
|
-
case ODDBALL_TYPE: return "ODDBALL";
|
584
|
-
case JS_GLOBAL_PROPERTY_CELL_TYPE: return "JS_GLOBAL_PROPERTY_CELL";
|
585
|
-
case SHARED_FUNCTION_INFO_TYPE: return "SHARED_FUNCTION_INFO";
|
586
|
-
case JS_FUNCTION_TYPE: return "JS_FUNCTION";
|
587
|
-
case CODE_TYPE: return "CODE";
|
588
|
-
case JS_ARRAY_TYPE: return "JS_ARRAY";
|
589
|
-
case JS_REGEXP_TYPE: return "JS_REGEXP";
|
590
|
-
case JS_VALUE_TYPE: return "JS_VALUE";
|
591
|
-
case JS_GLOBAL_OBJECT_TYPE: return "JS_GLOBAL_OBJECT";
|
592
|
-
case JS_BUILTINS_OBJECT_TYPE: return "JS_BUILTINS_OBJECT";
|
593
|
-
case JS_GLOBAL_PROXY_TYPE: return "JS_GLOBAL_PROXY";
|
594
|
-
case PROXY_TYPE: return "PROXY";
|
595
|
-
#define MAKE_STRUCT_CASE(NAME, Name, name) case NAME##_TYPE: return #NAME;
|
596
|
-
STRUCT_LIST(MAKE_STRUCT_CASE)
|
597
|
-
#undef MAKE_STRUCT_CASE
|
598
|
-
}
|
599
|
-
return "UNKNOWN";
|
600
|
-
}
|
601
|
-
|
602
|
-
|
603
|
-
void Map::MapPrint() {
|
604
|
-
HeapObject::PrintHeader("Map");
|
605
|
-
PrintF(" - type: %s\n", TypeToString(instance_type()));
|
606
|
-
PrintF(" - instance size: %d\n", instance_size());
|
607
|
-
PrintF(" - inobject properties: %d\n", inobject_properties());
|
608
|
-
PrintF(" - pre-allocated property fields: %d\n",
|
609
|
-
pre_allocated_property_fields());
|
610
|
-
PrintF(" - unused property fields: %d\n", unused_property_fields());
|
611
|
-
if (is_hidden_prototype()) {
|
612
|
-
PrintF(" - hidden_prototype\n");
|
613
|
-
}
|
614
|
-
if (has_named_interceptor()) {
|
615
|
-
PrintF(" - named_interceptor\n");
|
616
|
-
}
|
617
|
-
if (has_indexed_interceptor()) {
|
618
|
-
PrintF(" - indexed_interceptor\n");
|
619
|
-
}
|
620
|
-
if (is_undetectable()) {
|
621
|
-
PrintF(" - undetectable\n");
|
622
|
-
}
|
623
|
-
if (has_instance_call_handler()) {
|
624
|
-
PrintF(" - instance_call_handler\n");
|
625
|
-
}
|
626
|
-
if (is_access_check_needed()) {
|
627
|
-
PrintF(" - access_check_needed\n");
|
628
|
-
}
|
629
|
-
PrintF(" - instance descriptors: ");
|
630
|
-
instance_descriptors()->ShortPrint();
|
631
|
-
PrintF("\n - prototype: ");
|
632
|
-
prototype()->ShortPrint();
|
633
|
-
PrintF("\n - constructor: ");
|
634
|
-
constructor()->ShortPrint();
|
635
|
-
PrintF("\n");
|
636
|
-
}
|
637
|
-
|
638
|
-
|
639
|
-
void Map::MapVerify() {
|
640
|
-
ASSERT(!Heap::InNewSpace(this));
|
641
|
-
ASSERT(FIRST_TYPE <= instance_type() && instance_type() <= LAST_TYPE);
|
642
|
-
ASSERT(kPointerSize <= instance_size()
|
643
|
-
&& instance_size() < Heap::Capacity());
|
644
|
-
VerifyHeapPointer(prototype());
|
645
|
-
VerifyHeapPointer(instance_descriptors());
|
646
|
-
}
|
647
|
-
|
648
|
-
|
649
|
-
void CodeCache::CodeCachePrint() {
|
650
|
-
HeapObject::PrintHeader("CodeCache");
|
651
|
-
PrintF("\n - default_cache: ");
|
652
|
-
default_cache()->ShortPrint();
|
653
|
-
PrintF("\n - normal_type_cache: ");
|
654
|
-
normal_type_cache()->ShortPrint();
|
655
|
-
}
|
656
|
-
|
657
|
-
|
658
|
-
void CodeCache::CodeCacheVerify() {
|
659
|
-
VerifyHeapPointer(default_cache());
|
660
|
-
VerifyHeapPointer(normal_type_cache());
|
661
|
-
ASSERT(default_cache()->IsFixedArray());
|
662
|
-
ASSERT(normal_type_cache()->IsUndefined()
|
663
|
-
|| normal_type_cache()->IsCodeCacheHashTable());
|
664
|
-
}
|
665
|
-
|
666
|
-
|
667
|
-
void FixedArray::FixedArrayPrint() {
|
668
|
-
HeapObject::PrintHeader("FixedArray");
|
669
|
-
PrintF(" - length: %d", length());
|
670
|
-
for (int i = 0; i < length(); i++) {
|
671
|
-
PrintF("\n [%d]: ", i);
|
672
|
-
get(i)->ShortPrint();
|
673
|
-
}
|
674
|
-
PrintF("\n");
|
675
|
-
}
|
676
|
-
|
677
|
-
|
678
|
-
void FixedArray::FixedArrayVerify() {
|
679
|
-
for (int i = 0; i < length(); i++) {
|
680
|
-
Object* e = get(i);
|
681
|
-
if (e->IsHeapObject()) {
|
682
|
-
VerifyHeapPointer(e);
|
683
|
-
} else {
|
684
|
-
e->Verify();
|
685
|
-
}
|
686
|
-
}
|
687
|
-
}
|
688
|
-
|
689
|
-
|
690
|
-
void JSValue::JSValuePrint() {
|
691
|
-
HeapObject::PrintHeader("ValueObject");
|
692
|
-
value()->Print();
|
693
|
-
}
|
694
|
-
|
695
|
-
|
696
|
-
void JSValue::JSValueVerify() {
|
697
|
-
Object* v = value();
|
698
|
-
if (v->IsHeapObject()) {
|
699
|
-
VerifyHeapPointer(v);
|
700
|
-
}
|
701
|
-
}
|
702
|
-
|
703
|
-
|
704
|
-
void String::StringPrint() {
|
705
|
-
if (StringShape(this).IsSymbol()) {
|
706
|
-
PrintF("#");
|
707
|
-
} else if (StringShape(this).IsCons()) {
|
708
|
-
PrintF("c\"");
|
709
|
-
} else {
|
710
|
-
PrintF("\"");
|
711
|
-
}
|
712
|
-
|
713
|
-
for (int i = 0; i < length(); i++) {
|
714
|
-
PrintF("%c", Get(i));
|
715
|
-
}
|
716
|
-
|
717
|
-
if (!StringShape(this).IsSymbol()) PrintF("\"");
|
718
|
-
}
|
719
|
-
|
720
|
-
|
721
|
-
void String::StringVerify() {
|
722
|
-
CHECK(IsString());
|
723
|
-
CHECK(length() >= 0 && length() <= Smi::kMaxValue);
|
724
|
-
if (IsSymbol()) {
|
725
|
-
CHECK(!Heap::InNewSpace(this));
|
726
|
-
}
|
727
|
-
}
|
728
|
-
|
729
|
-
|
730
|
-
void JSFunction::JSFunctionPrint() {
|
731
|
-
HeapObject::PrintHeader("Function");
|
732
|
-
PrintF(" - map = 0x%p\n", map());
|
733
|
-
PrintF(" - initial_map = ");
|
734
|
-
if (has_initial_map()) {
|
735
|
-
initial_map()->ShortPrint();
|
736
|
-
}
|
737
|
-
PrintF("\n - shared_info = ");
|
738
|
-
shared()->ShortPrint();
|
739
|
-
PrintF("\n - name = ");
|
740
|
-
shared()->name()->Print();
|
741
|
-
PrintF("\n - context = ");
|
742
|
-
unchecked_context()->ShortPrint();
|
743
|
-
PrintF("\n - code = ");
|
744
|
-
code()->ShortPrint();
|
745
|
-
PrintF("\n");
|
746
|
-
|
747
|
-
PrintProperties();
|
748
|
-
PrintElements();
|
749
|
-
|
750
|
-
PrintF("\n");
|
751
|
-
}
|
752
|
-
|
753
|
-
|
754
|
-
void JSFunction::JSFunctionVerify() {
|
755
|
-
CHECK(IsJSFunction());
|
756
|
-
VerifyObjectField(kPrototypeOrInitialMapOffset);
|
757
|
-
}
|
758
|
-
|
759
|
-
|
760
|
-
void SharedFunctionInfo::SharedFunctionInfoPrint() {
|
761
|
-
HeapObject::PrintHeader("SharedFunctionInfo");
|
762
|
-
PrintF(" - name: ");
|
763
|
-
name()->ShortPrint();
|
764
|
-
PrintF("\n - expected_nof_properties: %d", expected_nof_properties());
|
765
|
-
PrintF("\n - instance class name = ");
|
766
|
-
instance_class_name()->Print();
|
767
|
-
PrintF("\n - code = ");
|
768
|
-
code()->ShortPrint();
|
769
|
-
PrintF("\n - source code = ");
|
770
|
-
GetSourceCode()->ShortPrint();
|
771
|
-
// Script files are often large, hard to read.
|
772
|
-
// PrintF("\n - script =");
|
773
|
-
// script()->Print();
|
774
|
-
PrintF("\n - function token position = %d", function_token_position());
|
775
|
-
PrintF("\n - start position = %d", start_position());
|
776
|
-
PrintF("\n - end position = %d", end_position());
|
777
|
-
PrintF("\n - is expression = %d", is_expression());
|
778
|
-
PrintF("\n - debug info = ");
|
779
|
-
debug_info()->ShortPrint();
|
780
|
-
PrintF("\n - length = %d", length());
|
781
|
-
PrintF("\n - has_only_simple_this_property_assignments = %d",
|
782
|
-
has_only_simple_this_property_assignments());
|
783
|
-
PrintF("\n - this_property_assignments = ");
|
784
|
-
this_property_assignments()->ShortPrint();
|
785
|
-
PrintF("\n");
|
786
|
-
}
|
787
|
-
|
788
|
-
void SharedFunctionInfo::SharedFunctionInfoVerify() {
|
789
|
-
CHECK(IsSharedFunctionInfo());
|
790
|
-
VerifyObjectField(kNameOffset);
|
791
|
-
VerifyObjectField(kCodeOffset);
|
792
|
-
VerifyObjectField(kScopeInfoOffset);
|
793
|
-
VerifyObjectField(kInstanceClassNameOffset);
|
794
|
-
VerifyObjectField(kFunctionDataOffset);
|
795
|
-
VerifyObjectField(kScriptOffset);
|
796
|
-
VerifyObjectField(kDebugInfoOffset);
|
797
|
-
}
|
798
|
-
|
799
|
-
|
800
|
-
void JSGlobalProxy::JSGlobalProxyPrint() {
|
801
|
-
PrintF("global_proxy");
|
802
|
-
JSObjectPrint();
|
803
|
-
PrintF("context : ");
|
804
|
-
context()->ShortPrint();
|
805
|
-
PrintF("\n");
|
806
|
-
}
|
807
|
-
|
808
|
-
|
809
|
-
void JSGlobalProxy::JSGlobalProxyVerify() {
|
810
|
-
CHECK(IsJSGlobalProxy());
|
811
|
-
JSObjectVerify();
|
812
|
-
VerifyObjectField(JSGlobalProxy::kContextOffset);
|
813
|
-
// Make sure that this object has no properties, elements.
|
814
|
-
CHECK_EQ(0, properties()->length());
|
815
|
-
CHECK(HasFastElements());
|
816
|
-
CHECK_EQ(0, FixedArray::cast(elements())->length());
|
817
|
-
}
|
818
|
-
|
819
|
-
|
820
|
-
void JSGlobalObject::JSGlobalObjectPrint() {
|
821
|
-
PrintF("global ");
|
822
|
-
JSObjectPrint();
|
823
|
-
PrintF("global context : ");
|
824
|
-
global_context()->ShortPrint();
|
825
|
-
PrintF("\n");
|
826
|
-
}
|
827
|
-
|
828
|
-
|
829
|
-
void JSGlobalObject::JSGlobalObjectVerify() {
|
830
|
-
CHECK(IsJSGlobalObject());
|
831
|
-
JSObjectVerify();
|
832
|
-
for (int i = GlobalObject::kBuiltinsOffset;
|
833
|
-
i < JSGlobalObject::kSize;
|
834
|
-
i += kPointerSize) {
|
835
|
-
VerifyObjectField(i);
|
836
|
-
}
|
837
|
-
}
|
838
|
-
|
839
|
-
|
840
|
-
void JSBuiltinsObject::JSBuiltinsObjectPrint() {
|
841
|
-
PrintF("builtins ");
|
842
|
-
JSObjectPrint();
|
843
|
-
}
|
844
|
-
|
845
|
-
|
846
|
-
void JSBuiltinsObject::JSBuiltinsObjectVerify() {
|
847
|
-
CHECK(IsJSBuiltinsObject());
|
848
|
-
JSObjectVerify();
|
849
|
-
for (int i = GlobalObject::kBuiltinsOffset;
|
850
|
-
i < JSBuiltinsObject::kSize;
|
851
|
-
i += kPointerSize) {
|
852
|
-
VerifyObjectField(i);
|
853
|
-
}
|
854
|
-
}
|
855
|
-
|
856
|
-
|
857
|
-
void Oddball::OddballVerify() {
|
858
|
-
CHECK(IsOddball());
|
859
|
-
VerifyHeapPointer(to_string());
|
860
|
-
Object* number = to_number();
|
861
|
-
if (number->IsHeapObject()) {
|
862
|
-
ASSERT(number == Heap::nan_value());
|
863
|
-
} else {
|
864
|
-
ASSERT(number->IsSmi());
|
865
|
-
int value = Smi::cast(number)->value();
|
866
|
-
ASSERT(value == 0 || value == 1 || value == -1 ||
|
867
|
-
value == -2 || value == -3);
|
868
|
-
}
|
869
|
-
}
|
870
|
-
|
871
|
-
|
872
|
-
void JSGlobalPropertyCell::JSGlobalPropertyCellVerify() {
|
873
|
-
CHECK(IsJSGlobalPropertyCell());
|
874
|
-
VerifyObjectField(kValueOffset);
|
875
|
-
}
|
876
|
-
|
877
|
-
|
878
|
-
void JSGlobalPropertyCell::JSGlobalPropertyCellPrint() {
|
879
|
-
HeapObject::PrintHeader("JSGlobalPropertyCell");
|
880
|
-
}
|
881
|
-
|
882
|
-
|
883
|
-
void Code::CodePrint() {
|
884
|
-
HeapObject::PrintHeader("Code");
|
885
|
-
#ifdef ENABLE_DISASSEMBLER
|
886
|
-
Disassemble(NULL);
|
887
|
-
#endif
|
888
|
-
}
|
889
|
-
|
890
|
-
|
891
|
-
void Code::CodeVerify() {
|
892
|
-
CHECK(IsAligned(reinterpret_cast<intptr_t>(instruction_start()),
|
893
|
-
static_cast<intptr_t>(kCodeAlignment)));
|
894
|
-
Address last_gc_pc = NULL;
|
895
|
-
for (RelocIterator it(this); !it.done(); it.next()) {
|
896
|
-
it.rinfo()->Verify();
|
897
|
-
// Ensure that GC will not iterate twice over the same pointer.
|
898
|
-
if (RelocInfo::IsGCRelocMode(it.rinfo()->rmode())) {
|
899
|
-
CHECK(it.rinfo()->pc() != last_gc_pc);
|
900
|
-
last_gc_pc = it.rinfo()->pc();
|
901
|
-
}
|
902
|
-
}
|
903
|
-
}
|
904
|
-
|
905
|
-
|
906
|
-
void JSArray::JSArrayVerify() {
|
907
|
-
JSObjectVerify();
|
908
|
-
ASSERT(length()->IsNumber() || length()->IsUndefined());
|
909
|
-
ASSERT(elements()->IsUndefined() || elements()->IsFixedArray());
|
910
|
-
}
|
911
|
-
|
912
|
-
|
913
|
-
void JSRegExp::JSRegExpVerify() {
|
914
|
-
JSObjectVerify();
|
915
|
-
ASSERT(data()->IsUndefined() || data()->IsFixedArray());
|
916
|
-
switch (TypeTag()) {
|
917
|
-
case JSRegExp::ATOM: {
|
918
|
-
FixedArray* arr = FixedArray::cast(data());
|
919
|
-
ASSERT(arr->get(JSRegExp::kAtomPatternIndex)->IsString());
|
920
|
-
break;
|
921
|
-
}
|
922
|
-
case JSRegExp::IRREGEXP: {
|
923
|
-
bool is_native = RegExpImpl::UsesNativeRegExp();
|
924
|
-
|
925
|
-
FixedArray* arr = FixedArray::cast(data());
|
926
|
-
Object* ascii_data = arr->get(JSRegExp::kIrregexpASCIICodeIndex);
|
927
|
-
// TheHole : Not compiled yet.
|
928
|
-
// JSObject: Compilation error.
|
929
|
-
// Code/ByteArray: Compiled code.
|
930
|
-
ASSERT(ascii_data->IsTheHole() || ascii_data->IsJSObject() ||
|
931
|
-
(is_native ? ascii_data->IsCode() : ascii_data->IsByteArray()));
|
932
|
-
Object* uc16_data = arr->get(JSRegExp::kIrregexpUC16CodeIndex);
|
933
|
-
ASSERT(uc16_data->IsTheHole() || ascii_data->IsJSObject() ||
|
934
|
-
(is_native ? uc16_data->IsCode() : uc16_data->IsByteArray()));
|
935
|
-
ASSERT(arr->get(JSRegExp::kIrregexpCaptureCountIndex)->IsSmi());
|
936
|
-
ASSERT(arr->get(JSRegExp::kIrregexpMaxRegisterCountIndex)->IsSmi());
|
937
|
-
break;
|
938
|
-
}
|
939
|
-
default:
|
940
|
-
ASSERT_EQ(JSRegExp::NOT_COMPILED, TypeTag());
|
941
|
-
ASSERT(data()->IsUndefined());
|
942
|
-
break;
|
943
|
-
}
|
944
|
-
}
|
945
|
-
|
946
|
-
|
947
|
-
void Proxy::ProxyPrint() {
|
948
|
-
PrintF("proxy to %p", proxy());
|
949
|
-
}
|
950
|
-
|
951
|
-
|
952
|
-
void Proxy::ProxyVerify() {
|
953
|
-
ASSERT(IsProxy());
|
954
|
-
}
|
955
|
-
|
956
|
-
|
957
|
-
void AccessorInfo::AccessorInfoVerify() {
|
958
|
-
CHECK(IsAccessorInfo());
|
959
|
-
VerifyPointer(getter());
|
960
|
-
VerifyPointer(setter());
|
961
|
-
VerifyPointer(name());
|
962
|
-
VerifyPointer(data());
|
963
|
-
VerifyPointer(flag());
|
964
|
-
VerifyPointer(load_stub_cache());
|
965
|
-
}
|
966
|
-
|
967
|
-
void AccessorInfo::AccessorInfoPrint() {
|
968
|
-
HeapObject::PrintHeader("AccessorInfo");
|
969
|
-
PrintF("\n - getter: ");
|
970
|
-
getter()->ShortPrint();
|
971
|
-
PrintF("\n - setter: ");
|
972
|
-
setter()->ShortPrint();
|
973
|
-
PrintF("\n - name: ");
|
974
|
-
name()->ShortPrint();
|
975
|
-
PrintF("\n - data: ");
|
976
|
-
data()->ShortPrint();
|
977
|
-
PrintF("\n - flag: ");
|
978
|
-
flag()->ShortPrint();
|
979
|
-
}
|
980
|
-
|
981
|
-
void AccessCheckInfo::AccessCheckInfoVerify() {
|
982
|
-
CHECK(IsAccessCheckInfo());
|
983
|
-
VerifyPointer(named_callback());
|
984
|
-
VerifyPointer(indexed_callback());
|
985
|
-
VerifyPointer(data());
|
986
|
-
}
|
987
|
-
|
988
|
-
void AccessCheckInfo::AccessCheckInfoPrint() {
|
989
|
-
HeapObject::PrintHeader("AccessCheckInfo");
|
990
|
-
PrintF("\n - named_callback: ");
|
991
|
-
named_callback()->ShortPrint();
|
992
|
-
PrintF("\n - indexed_callback: ");
|
993
|
-
indexed_callback()->ShortPrint();
|
994
|
-
PrintF("\n - data: ");
|
995
|
-
data()->ShortPrint();
|
996
|
-
}
|
997
|
-
|
998
|
-
void InterceptorInfo::InterceptorInfoVerify() {
|
999
|
-
CHECK(IsInterceptorInfo());
|
1000
|
-
VerifyPointer(getter());
|
1001
|
-
VerifyPointer(setter());
|
1002
|
-
VerifyPointer(query());
|
1003
|
-
VerifyPointer(deleter());
|
1004
|
-
VerifyPointer(enumerator());
|
1005
|
-
VerifyPointer(data());
|
1006
|
-
}
|
1007
|
-
|
1008
|
-
void InterceptorInfo::InterceptorInfoPrint() {
|
1009
|
-
HeapObject::PrintHeader("InterceptorInfo");
|
1010
|
-
PrintF("\n - getter: ");
|
1011
|
-
getter()->ShortPrint();
|
1012
|
-
PrintF("\n - setter: ");
|
1013
|
-
setter()->ShortPrint();
|
1014
|
-
PrintF("\n - query: ");
|
1015
|
-
query()->ShortPrint();
|
1016
|
-
PrintF("\n - deleter: ");
|
1017
|
-
deleter()->ShortPrint();
|
1018
|
-
PrintF("\n - enumerator: ");
|
1019
|
-
enumerator()->ShortPrint();
|
1020
|
-
PrintF("\n - data: ");
|
1021
|
-
data()->ShortPrint();
|
1022
|
-
}
|
1023
|
-
|
1024
|
-
void CallHandlerInfo::CallHandlerInfoVerify() {
|
1025
|
-
CHECK(IsCallHandlerInfo());
|
1026
|
-
VerifyPointer(callback());
|
1027
|
-
VerifyPointer(data());
|
1028
|
-
}
|
1029
|
-
|
1030
|
-
void CallHandlerInfo::CallHandlerInfoPrint() {
|
1031
|
-
HeapObject::PrintHeader("CallHandlerInfo");
|
1032
|
-
PrintF("\n - callback: ");
|
1033
|
-
callback()->ShortPrint();
|
1034
|
-
PrintF("\n - data: ");
|
1035
|
-
data()->ShortPrint();
|
1036
|
-
}
|
1037
|
-
|
1038
|
-
void TemplateInfo::TemplateInfoVerify() {
|
1039
|
-
VerifyPointer(tag());
|
1040
|
-
VerifyPointer(property_list());
|
1041
|
-
}
|
1042
|
-
|
1043
|
-
void FunctionTemplateInfo::FunctionTemplateInfoVerify() {
|
1044
|
-
CHECK(IsFunctionTemplateInfo());
|
1045
|
-
TemplateInfoVerify();
|
1046
|
-
VerifyPointer(serial_number());
|
1047
|
-
VerifyPointer(call_code());
|
1048
|
-
VerifyPointer(property_accessors());
|
1049
|
-
VerifyPointer(prototype_template());
|
1050
|
-
VerifyPointer(parent_template());
|
1051
|
-
VerifyPointer(named_property_handler());
|
1052
|
-
VerifyPointer(indexed_property_handler());
|
1053
|
-
VerifyPointer(instance_template());
|
1054
|
-
VerifyPointer(signature());
|
1055
|
-
VerifyPointer(access_check_info());
|
1056
|
-
}
|
1057
|
-
|
1058
|
-
void FunctionTemplateInfo::FunctionTemplateInfoPrint() {
|
1059
|
-
HeapObject::PrintHeader("FunctionTemplateInfo");
|
1060
|
-
PrintF("\n - class name: ");
|
1061
|
-
class_name()->ShortPrint();
|
1062
|
-
PrintF("\n - tag: ");
|
1063
|
-
tag()->ShortPrint();
|
1064
|
-
PrintF("\n - property_list: ");
|
1065
|
-
property_list()->ShortPrint();
|
1066
|
-
PrintF("\n - serial_number: ");
|
1067
|
-
serial_number()->ShortPrint();
|
1068
|
-
PrintF("\n - call_code: ");
|
1069
|
-
call_code()->ShortPrint();
|
1070
|
-
PrintF("\n - property_accessors: ");
|
1071
|
-
property_accessors()->ShortPrint();
|
1072
|
-
PrintF("\n - prototype_template: ");
|
1073
|
-
prototype_template()->ShortPrint();
|
1074
|
-
PrintF("\n - parent_template: ");
|
1075
|
-
parent_template()->ShortPrint();
|
1076
|
-
PrintF("\n - named_property_handler: ");
|
1077
|
-
named_property_handler()->ShortPrint();
|
1078
|
-
PrintF("\n - indexed_property_handler: ");
|
1079
|
-
indexed_property_handler()->ShortPrint();
|
1080
|
-
PrintF("\n - instance_template: ");
|
1081
|
-
instance_template()->ShortPrint();
|
1082
|
-
PrintF("\n - signature: ");
|
1083
|
-
signature()->ShortPrint();
|
1084
|
-
PrintF("\n - access_check_info: ");
|
1085
|
-
access_check_info()->ShortPrint();
|
1086
|
-
PrintF("\n - hidden_prototype: %s", hidden_prototype() ? "true" : "false");
|
1087
|
-
PrintF("\n - undetectable: %s", undetectable() ? "true" : "false");
|
1088
|
-
PrintF("\n - need_access_check: %s", needs_access_check() ? "true" : "false");
|
1089
|
-
}
|
1090
|
-
|
1091
|
-
void ObjectTemplateInfo::ObjectTemplateInfoVerify() {
|
1092
|
-
CHECK(IsObjectTemplateInfo());
|
1093
|
-
TemplateInfoVerify();
|
1094
|
-
VerifyPointer(constructor());
|
1095
|
-
VerifyPointer(internal_field_count());
|
1096
|
-
}
|
1097
|
-
|
1098
|
-
void ObjectTemplateInfo::ObjectTemplateInfoPrint() {
|
1099
|
-
HeapObject::PrintHeader("ObjectTemplateInfo");
|
1100
|
-
PrintF("\n - constructor: ");
|
1101
|
-
constructor()->ShortPrint();
|
1102
|
-
PrintF("\n - internal_field_count: ");
|
1103
|
-
internal_field_count()->ShortPrint();
|
1104
|
-
}
|
1105
|
-
|
1106
|
-
void SignatureInfo::SignatureInfoVerify() {
|
1107
|
-
CHECK(IsSignatureInfo());
|
1108
|
-
VerifyPointer(receiver());
|
1109
|
-
VerifyPointer(args());
|
1110
|
-
}
|
1111
|
-
|
1112
|
-
void SignatureInfo::SignatureInfoPrint() {
|
1113
|
-
HeapObject::PrintHeader("SignatureInfo");
|
1114
|
-
PrintF("\n - receiver: ");
|
1115
|
-
receiver()->ShortPrint();
|
1116
|
-
PrintF("\n - args: ");
|
1117
|
-
args()->ShortPrint();
|
1118
|
-
}
|
1119
|
-
|
1120
|
-
void TypeSwitchInfo::TypeSwitchInfoVerify() {
|
1121
|
-
CHECK(IsTypeSwitchInfo());
|
1122
|
-
VerifyPointer(types());
|
1123
|
-
}
|
1124
|
-
|
1125
|
-
void TypeSwitchInfo::TypeSwitchInfoPrint() {
|
1126
|
-
HeapObject::PrintHeader("TypeSwitchInfo");
|
1127
|
-
PrintF("\n - types: ");
|
1128
|
-
types()->ShortPrint();
|
1129
|
-
}
|
1130
|
-
|
1131
|
-
|
1132
|
-
void Script::ScriptVerify() {
|
1133
|
-
CHECK(IsScript());
|
1134
|
-
VerifyPointer(source());
|
1135
|
-
VerifyPointer(name());
|
1136
|
-
line_offset()->SmiVerify();
|
1137
|
-
column_offset()->SmiVerify();
|
1138
|
-
VerifyPointer(data());
|
1139
|
-
VerifyPointer(wrapper());
|
1140
|
-
type()->SmiVerify();
|
1141
|
-
VerifyPointer(line_ends());
|
1142
|
-
VerifyPointer(id());
|
1143
|
-
}
|
1144
|
-
|
1145
|
-
|
1146
|
-
void Script::ScriptPrint() {
|
1147
|
-
HeapObject::PrintHeader("Script");
|
1148
|
-
PrintF("\n - source: ");
|
1149
|
-
source()->ShortPrint();
|
1150
|
-
PrintF("\n - name: ");
|
1151
|
-
name()->ShortPrint();
|
1152
|
-
PrintF("\n - line_offset: ");
|
1153
|
-
line_offset()->ShortPrint();
|
1154
|
-
PrintF("\n - column_offset: ");
|
1155
|
-
column_offset()->ShortPrint();
|
1156
|
-
PrintF("\n - type: ");
|
1157
|
-
type()->ShortPrint();
|
1158
|
-
PrintF("\n - id: ");
|
1159
|
-
id()->ShortPrint();
|
1160
|
-
PrintF("\n - data: ");
|
1161
|
-
data()->ShortPrint();
|
1162
|
-
PrintF("\n - context data: ");
|
1163
|
-
context_data()->ShortPrint();
|
1164
|
-
PrintF("\n - wrapper: ");
|
1165
|
-
wrapper()->ShortPrint();
|
1166
|
-
PrintF("\n - compilation type: ");
|
1167
|
-
compilation_type()->ShortPrint();
|
1168
|
-
PrintF("\n - line ends: ");
|
1169
|
-
line_ends()->ShortPrint();
|
1170
|
-
PrintF("\n - eval from shared: ");
|
1171
|
-
eval_from_shared()->ShortPrint();
|
1172
|
-
PrintF("\n - eval from instructions offset: ");
|
1173
|
-
eval_from_instructions_offset()->ShortPrint();
|
1174
|
-
PrintF("\n");
|
1175
|
-
}
|
1176
|
-
|
1177
|
-
|
1178
|
-
#ifdef ENABLE_DEBUGGER_SUPPORT
|
1179
|
-
void DebugInfo::DebugInfoVerify() {
|
1180
|
-
CHECK(IsDebugInfo());
|
1181
|
-
VerifyPointer(shared());
|
1182
|
-
VerifyPointer(original_code());
|
1183
|
-
VerifyPointer(code());
|
1184
|
-
VerifyPointer(break_points());
|
1185
|
-
}
|
1186
|
-
|
1187
|
-
|
1188
|
-
void DebugInfo::DebugInfoPrint() {
|
1189
|
-
HeapObject::PrintHeader("DebugInfo");
|
1190
|
-
PrintF("\n - shared: ");
|
1191
|
-
shared()->ShortPrint();
|
1192
|
-
PrintF("\n - original_code: ");
|
1193
|
-
original_code()->ShortPrint();
|
1194
|
-
PrintF("\n - code: ");
|
1195
|
-
code()->ShortPrint();
|
1196
|
-
PrintF("\n - break_points: ");
|
1197
|
-
break_points()->Print();
|
1198
|
-
}
|
1199
|
-
|
1200
|
-
|
1201
|
-
void BreakPointInfo::BreakPointInfoVerify() {
|
1202
|
-
CHECK(IsBreakPointInfo());
|
1203
|
-
code_position()->SmiVerify();
|
1204
|
-
source_position()->SmiVerify();
|
1205
|
-
statement_position()->SmiVerify();
|
1206
|
-
VerifyPointer(break_point_objects());
|
1207
|
-
}
|
1208
|
-
|
1209
|
-
|
1210
|
-
void BreakPointInfo::BreakPointInfoPrint() {
|
1211
|
-
HeapObject::PrintHeader("BreakPointInfo");
|
1212
|
-
PrintF("\n - code_position: %d", code_position());
|
1213
|
-
PrintF("\n - source_position: %d", source_position());
|
1214
|
-
PrintF("\n - statement_position: %d", statement_position());
|
1215
|
-
PrintF("\n - break_point_objects: ");
|
1216
|
-
break_point_objects()->ShortPrint();
|
1217
|
-
}
|
1218
|
-
#endif
|
1219
|
-
|
1220
|
-
|
1221
|
-
void JSObject::IncrementSpillStatistics(SpillInformation* info) {
|
1222
|
-
info->number_of_objects_++;
|
1223
|
-
// Named properties
|
1224
|
-
if (HasFastProperties()) {
|
1225
|
-
info->number_of_objects_with_fast_properties_++;
|
1226
|
-
info->number_of_fast_used_fields_ += map()->NextFreePropertyIndex();
|
1227
|
-
info->number_of_fast_unused_fields_ += map()->unused_property_fields();
|
1228
|
-
} else {
|
1229
|
-
StringDictionary* dict = property_dictionary();
|
1230
|
-
info->number_of_slow_used_properties_ += dict->NumberOfElements();
|
1231
|
-
info->number_of_slow_unused_properties_ +=
|
1232
|
-
dict->Capacity() - dict->NumberOfElements();
|
1233
|
-
}
|
1234
|
-
// Indexed properties
|
1235
|
-
switch (GetElementsKind()) {
|
1236
|
-
case FAST_ELEMENTS: {
|
1237
|
-
info->number_of_objects_with_fast_elements_++;
|
1238
|
-
int holes = 0;
|
1239
|
-
FixedArray* e = FixedArray::cast(elements());
|
1240
|
-
int len = e->length();
|
1241
|
-
for (int i = 0; i < len; i++) {
|
1242
|
-
if (e->get(i) == Heap::the_hole_value()) holes++;
|
1243
|
-
}
|
1244
|
-
info->number_of_fast_used_elements_ += len - holes;
|
1245
|
-
info->number_of_fast_unused_elements_ += holes;
|
1246
|
-
break;
|
1247
|
-
}
|
1248
|
-
case PIXEL_ELEMENTS: {
|
1249
|
-
info->number_of_objects_with_fast_elements_++;
|
1250
|
-
PixelArray* e = PixelArray::cast(elements());
|
1251
|
-
info->number_of_fast_used_elements_ += e->length();
|
1252
|
-
break;
|
1253
|
-
}
|
1254
|
-
case DICTIONARY_ELEMENTS: {
|
1255
|
-
NumberDictionary* dict = element_dictionary();
|
1256
|
-
info->number_of_slow_used_elements_ += dict->NumberOfElements();
|
1257
|
-
info->number_of_slow_unused_elements_ +=
|
1258
|
-
dict->Capacity() - dict->NumberOfElements();
|
1259
|
-
break;
|
1260
|
-
}
|
1261
|
-
default:
|
1262
|
-
UNREACHABLE();
|
1263
|
-
break;
|
1264
|
-
}
|
1265
|
-
}
|
1266
|
-
|
1267
|
-
|
1268
|
-
void JSObject::SpillInformation::Clear() {
|
1269
|
-
number_of_objects_ = 0;
|
1270
|
-
number_of_objects_with_fast_properties_ = 0;
|
1271
|
-
number_of_objects_with_fast_elements_ = 0;
|
1272
|
-
number_of_fast_used_fields_ = 0;
|
1273
|
-
number_of_fast_unused_fields_ = 0;
|
1274
|
-
number_of_slow_used_properties_ = 0;
|
1275
|
-
number_of_slow_unused_properties_ = 0;
|
1276
|
-
number_of_fast_used_elements_ = 0;
|
1277
|
-
number_of_fast_unused_elements_ = 0;
|
1278
|
-
number_of_slow_used_elements_ = 0;
|
1279
|
-
number_of_slow_unused_elements_ = 0;
|
1280
|
-
}
|
1281
|
-
|
1282
|
-
void JSObject::SpillInformation::Print() {
|
1283
|
-
PrintF("\n JSObject Spill Statistics (#%d):\n", number_of_objects_);
|
1284
|
-
|
1285
|
-
PrintF(" - fast properties (#%d): %d (used) %d (unused)\n",
|
1286
|
-
number_of_objects_with_fast_properties_,
|
1287
|
-
number_of_fast_used_fields_, number_of_fast_unused_fields_);
|
1288
|
-
|
1289
|
-
PrintF(" - slow properties (#%d): %d (used) %d (unused)\n",
|
1290
|
-
number_of_objects_ - number_of_objects_with_fast_properties_,
|
1291
|
-
number_of_slow_used_properties_, number_of_slow_unused_properties_);
|
1292
|
-
|
1293
|
-
PrintF(" - fast elements (#%d): %d (used) %d (unused)\n",
|
1294
|
-
number_of_objects_with_fast_elements_,
|
1295
|
-
number_of_fast_used_elements_, number_of_fast_unused_elements_);
|
1296
|
-
|
1297
|
-
PrintF(" - slow elements (#%d): %d (used) %d (unused)\n",
|
1298
|
-
number_of_objects_ - number_of_objects_with_fast_elements_,
|
1299
|
-
number_of_slow_used_elements_, number_of_slow_unused_elements_);
|
1300
|
-
|
1301
|
-
PrintF("\n");
|
1302
|
-
}
|
1303
|
-
|
1304
|
-
|
1305
|
-
void DescriptorArray::PrintDescriptors() {
|
1306
|
-
PrintF("Descriptor array %d\n", number_of_descriptors());
|
1307
|
-
for (int i = 0; i < number_of_descriptors(); i++) {
|
1308
|
-
PrintF(" %d: ", i);
|
1309
|
-
Descriptor desc;
|
1310
|
-
Get(i, &desc);
|
1311
|
-
desc.Print();
|
1312
|
-
}
|
1313
|
-
PrintF("\n");
|
1314
|
-
}
|
1315
|
-
|
1316
|
-
|
1317
|
-
bool DescriptorArray::IsSortedNoDuplicates() {
|
1318
|
-
String* current_key = NULL;
|
1319
|
-
uint32_t current = 0;
|
1320
|
-
for (int i = 0; i < number_of_descriptors(); i++) {
|
1321
|
-
String* key = GetKey(i);
|
1322
|
-
if (key == current_key) {
|
1323
|
-
PrintDescriptors();
|
1324
|
-
return false;
|
1325
|
-
}
|
1326
|
-
current_key = key;
|
1327
|
-
uint32_t hash = GetKey(i)->Hash();
|
1328
|
-
if (hash < current) {
|
1329
|
-
PrintDescriptors();
|
1330
|
-
return false;
|
1331
|
-
}
|
1332
|
-
current = hash;
|
1333
|
-
}
|
1334
|
-
return true;
|
1335
|
-
}
|
1336
|
-
|
1337
|
-
|
1338
|
-
void JSFunctionResultCache::JSFunctionResultCacheVerify() {
|
1339
|
-
JSFunction::cast(get(kFactoryIndex))->Verify();
|
1340
|
-
|
1341
|
-
int size = Smi::cast(get(kCacheSizeIndex))->value();
|
1342
|
-
ASSERT(kEntriesIndex <= size);
|
1343
|
-
ASSERT(size <= length());
|
1344
|
-
ASSERT_EQ(0, size % kEntrySize);
|
1345
|
-
|
1346
|
-
int finger = Smi::cast(get(kFingerIndex))->value();
|
1347
|
-
ASSERT(kEntriesIndex <= finger);
|
1348
|
-
ASSERT(finger < size || finger == kEntriesIndex);
|
1349
|
-
ASSERT_EQ(0, finger % kEntrySize);
|
1350
|
-
|
1351
|
-
if (FLAG_enable_slow_asserts) {
|
1352
|
-
for (int i = kEntriesIndex; i < size; i++) {
|
1353
|
-
ASSERT(!get(i)->IsTheHole());
|
1354
|
-
get(i)->Verify();
|
1355
|
-
}
|
1356
|
-
for (int i = size; i < length(); i++) {
|
1357
|
-
ASSERT(get(i)->IsTheHole());
|
1358
|
-
get(i)->Verify();
|
1359
|
-
}
|
1360
|
-
}
|
1361
|
-
}
|
1362
|
-
|
1363
|
-
|
1364
|
-
#endif // DEBUG
|
1365
|
-
|
1366
|
-
} } // namespace v8::internal
|