therubyracer 0.8.1.pre2 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of therubyracer might be problematic. Click here for more details.
- data/Changelog.md +2 -1
- data/README.md +6 -3
- data/ext/v8/upstream/3.1.8/.gitignore +31 -0
- data/ext/v8/upstream/3.1.8/AUTHORS +40 -0
- data/ext/v8/upstream/3.1.8/ChangeLog +2566 -0
- data/ext/v8/upstream/3.1.8/LICENSE +52 -0
- data/ext/v8/upstream/3.1.8/LICENSE.strongtalk +29 -0
- data/ext/v8/upstream/3.1.8/LICENSE.v8 +26 -0
- data/ext/v8/upstream/3.1.8/LICENSE.valgrind +45 -0
- data/ext/v8/upstream/3.1.8/SConstruct +1192 -0
- data/ext/v8/upstream/3.1.8/build/README.txt +25 -0
- data/ext/v8/upstream/3.1.8/build/all.gyp +18 -0
- data/ext/v8/upstream/3.1.8/build/armu.gypi +32 -0
- data/ext/v8/upstream/3.1.8/build/common.gypi +82 -0
- data/ext/v8/upstream/3.1.8/build/gyp_v8 +145 -0
- data/ext/v8/upstream/3.1.8/include/v8-debug.h +384 -0
- data/ext/v8/upstream/3.1.8/include/v8-preparser.h +116 -0
- data/ext/v8/upstream/3.1.8/include/v8-profiler.h +426 -0
- data/ext/v8/upstream/3.1.8/include/v8-testing.h +99 -0
- data/ext/v8/upstream/3.1.8/include/v8.h +3846 -0
- data/ext/v8/upstream/3.1.8/include/v8stdint.h +53 -0
- data/ext/v8/upstream/3.1.8/preparser/preparser-process.cc +206 -0
- data/ext/v8/upstream/3.1.8/src/SConscript +356 -0
- data/ext/v8/upstream/3.1.8/src/accessors.cc +907 -0
- data/ext/v8/upstream/3.1.8/src/accessors.h +121 -0
- data/ext/v8/upstream/3.1.8/src/allocation.cc +204 -0
- data/ext/v8/upstream/3.1.8/src/allocation.h +176 -0
- data/ext/v8/upstream/3.1.8/src/api.cc +5191 -0
- data/ext/v8/upstream/3.1.8/src/api.h +508 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/apinatives.js +0 -0
- data/ext/v8/upstream/3.1.8/src/apiutils.h +80 -0
- data/ext/v8/upstream/3.1.8/src/arguments.h +105 -0
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm-inl.h +352 -0
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm.cc +2756 -0
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm.h +1294 -0
- data/ext/v8/upstream/3.1.8/src/arm/builtins-arm.cc +1628 -0
- data/ext/v8/upstream/3.1.8/src/arm/code-stubs-arm.cc +6783 -0
- data/ext/v8/upstream/3.1.8/src/arm/code-stubs-arm.h +657 -0
- data/ext/v8/upstream/3.1.8/src/arm/codegen-arm-inl.h +48 -0
- data/ext/v8/upstream/3.1.8/src/arm/codegen-arm.cc +7403 -0
- data/ext/v8/upstream/3.1.8/src/arm/codegen-arm.h +595 -0
- data/ext/v8/upstream/3.1.8/src/arm/constants-arm.cc +152 -0
- data/ext/v8/upstream/3.1.8/src/arm/constants-arm.h +769 -0
- data/ext/v8/upstream/3.1.8/src/arm/cpu-arm.cc +147 -0
- data/ext/v8/upstream/3.1.8/src/arm/debug-arm.cc +315 -0
- data/ext/v8/upstream/3.1.8/src/arm/deoptimizer-arm.cc +700 -0
- data/ext/v8/upstream/3.1.8/src/arm/disasm-arm.cc +1439 -0
- data/ext/v8/upstream/3.1.8/src/arm/frames-arm.cc +45 -0
- data/ext/v8/upstream/3.1.8/src/arm/frames-arm.h +168 -0
- data/ext/v8/upstream/3.1.8/src/arm/full-codegen-arm.cc +4230 -0
- data/ext/v8/upstream/3.1.8/src/arm/ic-arm.cc +1799 -0
- data/ext/v8/upstream/3.1.8/src/arm/jump-target-arm.cc +174 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-arm.cc +2041 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-arm.h +2046 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-codegen-arm.cc +3822 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-codegen-arm.h +312 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-gap-resolver-arm.cc +303 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-gap-resolver-arm.h +84 -0
- data/ext/v8/upstream/3.1.8/src/arm/macro-assembler-arm.cc +2701 -0
- data/ext/v8/upstream/3.1.8/src/arm/macro-assembler-arm.h +1015 -0
- data/ext/v8/upstream/3.1.8/src/arm/regexp-macro-assembler-arm.cc +1280 -0
- data/ext/v8/upstream/3.1.8/src/arm/regexp-macro-assembler-arm.h +252 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/register-allocator-arm-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/register-allocator-arm.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/register-allocator-arm.h +0 -0
- data/ext/v8/upstream/3.1.8/src/arm/simulator-arm.cc +3165 -0
- data/ext/v8/upstream/3.1.8/src/arm/simulator-arm.h +402 -0
- data/ext/v8/upstream/3.1.8/src/arm/stub-cache-arm.cc +4077 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/virtual-frame-arm-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/arm/virtual-frame-arm.cc +843 -0
- data/ext/v8/upstream/3.1.8/src/arm/virtual-frame-arm.h +520 -0
- data/ext/v8/upstream/3.1.8/src/array.js +1231 -0
- data/ext/v8/upstream/3.1.8/src/assembler.cc +973 -0
- data/ext/v8/upstream/3.1.8/src/assembler.h +787 -0
- data/ext/v8/upstream/3.1.8/src/ast-inl.h +107 -0
- data/ext/v8/upstream/3.1.8/src/ast.cc +1067 -0
- data/ext/v8/upstream/3.1.8/src/ast.h +2177 -0
- data/ext/v8/upstream/3.1.8/src/atomicops.h +165 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_arm_gcc.h +145 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_gcc.cc +126 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_gcc.h +287 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_macosx.h +301 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_msvc.h +203 -0
- data/ext/v8/upstream/3.1.8/src/bignum-dtoa.cc +655 -0
- data/ext/v8/upstream/3.1.8/src/bignum-dtoa.h +81 -0
- data/ext/v8/upstream/3.1.8/src/bignum.cc +768 -0
- data/ext/v8/upstream/3.1.8/src/bignum.h +140 -0
- data/ext/v8/upstream/3.1.8/src/bootstrapper.cc +1888 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/bootstrapper.h +0 -0
- data/ext/v8/upstream/3.1.8/src/builtins.cc +1586 -0
- data/ext/v8/upstream/3.1.8/src/builtins.h +339 -0
- data/ext/v8/upstream/3.1.8/src/bytecodes-irregexp.h +105 -0
- data/ext/v8/upstream/3.1.8/src/cached-powers.cc +177 -0
- data/ext/v8/upstream/3.1.8/src/cached-powers.h +65 -0
- data/ext/v8/upstream/3.1.8/src/char-predicates-inl.h +94 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/char-predicates.h +0 -0
- data/ext/v8/upstream/3.1.8/src/checks.cc +110 -0
- data/ext/v8/upstream/3.1.8/src/checks.h +292 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/circular-queue-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/circular-queue.cc +122 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/circular-queue.h +0 -0
- data/ext/v8/upstream/3.1.8/src/code-stubs.cc +230 -0
- data/ext/v8/upstream/3.1.8/src/code-stubs.h +950 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/code.h +0 -0
- data/ext/v8/upstream/3.1.8/src/codegen-inl.h +64 -0
- data/ext/v8/upstream/3.1.8/src/codegen.cc +495 -0
- data/ext/v8/upstream/3.1.8/src/codegen.h +245 -0
- data/ext/v8/upstream/3.1.8/src/compilation-cache.cc +654 -0
- data/ext/v8/upstream/3.1.8/src/compilation-cache.h +112 -0
- data/ext/v8/upstream/3.1.8/src/compiler.cc +806 -0
- data/ext/v8/upstream/3.1.8/src/compiler.h +290 -0
- data/ext/v8/upstream/3.1.8/src/contexts.cc +320 -0
- data/ext/v8/upstream/3.1.8/src/contexts.h +376 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/conversions-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/conversions.cc +1069 -0
- data/ext/v8/upstream/3.1.8/src/conversions.h +122 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/counters.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/counters.h +242 -0
- data/ext/v8/upstream/3.1.8/src/cpu-profiler-inl.h +100 -0
- data/ext/v8/upstream/3.1.8/src/cpu-profiler.cc +554 -0
- data/ext/v8/upstream/3.1.8/src/cpu-profiler.h +291 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/cpu.h +0 -0
- data/ext/v8/upstream/3.1.8/src/d8-debug.cc +367 -0
- data/ext/v8/upstream/3.1.8/src/d8-debug.h +157 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/d8-posix.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/d8-readline.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/d8-windows.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/d8.cc +792 -0
- data/ext/v8/upstream/3.1.8/src/d8.gyp +85 -0
- data/ext/v8/upstream/3.1.8/src/d8.h +231 -0
- data/ext/v8/upstream/3.1.8/src/d8.js +2798 -0
- data/ext/v8/upstream/3.1.8/src/data-flow.cc +545 -0
- data/ext/v8/upstream/3.1.8/src/data-flow.h +379 -0
- data/ext/v8/upstream/3.1.8/src/date.js +1103 -0
- data/ext/v8/upstream/3.1.8/src/dateparser-inl.h +125 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/dateparser.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/dateparser.h +263 -0
- data/ext/v8/upstream/3.1.8/src/debug-agent.cc +446 -0
- data/ext/v8/upstream/3.1.8/src/debug-agent.h +131 -0
- data/ext/v8/upstream/3.1.8/src/debug-debugger.js +2569 -0
- data/ext/v8/upstream/3.1.8/src/debug.cc +3085 -0
- data/ext/v8/upstream/3.1.8/src/debug.h +1025 -0
- data/ext/v8/upstream/3.1.8/src/deoptimizer.cc +1185 -0
- data/ext/v8/upstream/3.1.8/src/deoptimizer.h +529 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/disasm.h +0 -0
- data/ext/v8/upstream/3.1.8/src/disassembler.cc +338 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/disassembler.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/diy-fp.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/diy-fp.h +0 -0
- data/ext/v8/upstream/3.1.8/src/double.h +238 -0
- data/ext/v8/upstream/3.1.8/src/dtoa.cc +103 -0
- data/ext/v8/upstream/3.1.8/src/dtoa.h +85 -0
- data/ext/v8/upstream/3.1.8/src/execution.cc +735 -0
- data/ext/v8/upstream/3.1.8/src/execution.h +322 -0
- data/ext/v8/upstream/3.1.8/src/extensions/experimental/experimental.gyp +53 -0
- data/ext/v8/upstream/3.1.8/src/extensions/experimental/i18n-extension.cc +264 -0
- data/ext/v8/upstream/3.1.8/src/extensions/experimental/i18n-extension.h +64 -0
- data/ext/v8/upstream/3.1.8/src/extensions/externalize-string-extension.cc +141 -0
- data/ext/v8/upstream/3.1.8/src/extensions/externalize-string-extension.h +50 -0
- data/ext/v8/upstream/3.1.8/src/extensions/gc-extension.cc +58 -0
- data/ext/v8/upstream/3.1.8/src/extensions/gc-extension.h +49 -0
- data/ext/v8/upstream/3.1.8/src/factory.cc +1087 -0
- data/ext/v8/upstream/3.1.8/src/factory.h +432 -0
- data/ext/v8/upstream/3.1.8/src/fast-dtoa.cc +736 -0
- data/ext/v8/upstream/3.1.8/src/fast-dtoa.h +83 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/fixed-dtoa.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/fixed-dtoa.h +0 -0
- data/ext/v8/upstream/3.1.8/src/flag-definitions.h +552 -0
- data/ext/v8/upstream/3.1.8/src/flags.cc +551 -0
- data/ext/v8/upstream/3.1.8/src/flags.h +79 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/frame-element.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/frame-element.h +277 -0
- data/ext/v8/upstream/3.1.8/src/frames-inl.h +210 -0
- data/ext/v8/upstream/3.1.8/src/frames.cc +1232 -0
- data/ext/v8/upstream/3.1.8/src/frames.h +826 -0
- data/ext/v8/upstream/3.1.8/src/full-codegen.cc +1382 -0
- data/ext/v8/upstream/3.1.8/src/full-codegen.h +751 -0
- data/ext/v8/upstream/3.1.8/src/func-name-inferrer.cc +90 -0
- data/ext/v8/upstream/3.1.8/src/func-name-inferrer.h +111 -0
- data/ext/v8/upstream/3.1.8/src/gdb-jit.cc +1547 -0
- data/ext/v8/upstream/3.1.8/src/gdb-jit.h +138 -0
- data/ext/v8/upstream/3.1.8/src/global-handles.cc +534 -0
- data/ext/v8/upstream/3.1.8/src/global-handles.h +181 -0
- data/ext/v8/upstream/3.1.8/src/globals.h +325 -0
- data/ext/v8/upstream/3.1.8/src/handles-inl.h +80 -0
- data/ext/v8/upstream/3.1.8/src/handles.cc +910 -0
- data/ext/v8/upstream/3.1.8/src/handles.h +424 -0
- data/ext/v8/upstream/3.1.8/src/hashmap.cc +230 -0
- data/ext/v8/upstream/3.1.8/src/hashmap.h +121 -0
- data/ext/v8/upstream/3.1.8/src/heap-inl.h +587 -0
- data/ext/v8/upstream/3.1.8/src/heap-profiler.cc +1128 -0
- data/ext/v8/upstream/3.1.8/src/heap-profiler.h +381 -0
- data/ext/v8/upstream/3.1.8/src/heap.cc +5610 -0
- data/ext/v8/upstream/3.1.8/src/heap.h +2218 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen-instructions.cc +1490 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen-instructions.h +3493 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen.cc +6056 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen.h +1091 -0
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32-inl.h +429 -0
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32.cc +2800 -0
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32.h +1093 -0
- data/ext/v8/upstream/3.1.8/src/ia32/builtins-ia32.cc +1590 -0
- data/ext/v8/upstream/3.1.8/src/ia32/code-stubs-ia32.cc +6624 -0
- data/ext/v8/upstream/3.1.8/src/ia32/code-stubs-ia32.h +536 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/codegen-ia32-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/ia32/codegen-ia32.cc +10354 -0
- data/ext/v8/upstream/3.1.8/src/ia32/codegen-ia32.h +798 -0
- data/ext/v8/upstream/3.1.8/src/ia32/cpu-ia32.cc +87 -0
- data/ext/v8/upstream/3.1.8/src/ia32/debug-ia32.cc +309 -0
- data/ext/v8/upstream/3.1.8/src/ia32/deoptimizer-ia32.cc +664 -0
- data/ext/v8/upstream/3.1.8/src/ia32/disasm-ia32.cc +1597 -0
- data/ext/v8/upstream/3.1.8/src/ia32/frames-ia32.cc +45 -0
- data/ext/v8/upstream/3.1.8/src/ia32/frames-ia32.h +140 -0
- data/ext/v8/upstream/3.1.8/src/ia32/full-codegen-ia32.cc +4278 -0
- data/ext/v8/upstream/3.1.8/src/ia32/ic-ia32.cc +1786 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/jump-target-ia32.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-codegen-ia32.cc +3880 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-codegen-ia32.h +309 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-gap-resolver-ia32.cc +460 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-gap-resolver-ia32.h +110 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-ia32.cc +2095 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-ia32.h +2127 -0
- data/ext/v8/upstream/3.1.8/src/ia32/macro-assembler-ia32.cc +2031 -0
- data/ext/v8/upstream/3.1.8/src/ia32/macro-assembler-ia32.h +798 -0
- data/ext/v8/upstream/3.1.8/src/ia32/regexp-macro-assembler-ia32.cc +1253 -0
- data/ext/v8/upstream/3.1.8/src/ia32/regexp-macro-assembler-ia32.h +215 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/register-allocator-ia32-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/register-allocator-ia32.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/register-allocator-ia32.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/simulator-ia32.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/ia32/simulator-ia32.h +72 -0
- data/ext/v8/upstream/3.1.8/src/ia32/stub-cache-ia32.cc +3732 -0
- data/ext/v8/upstream/3.1.8/src/ia32/virtual-frame-ia32.cc +1360 -0
- data/ext/v8/upstream/3.1.8/src/ia32/virtual-frame-ia32.h +646 -0
- data/ext/v8/upstream/3.1.8/src/ic-inl.h +129 -0
- data/ext/v8/upstream/3.1.8/src/ic.cc +2333 -0
- data/ext/v8/upstream/3.1.8/src/ic.h +639 -0
- data/ext/v8/upstream/3.1.8/src/inspector.cc +63 -0
- data/ext/v8/upstream/3.1.8/src/inspector.h +62 -0
- data/ext/v8/upstream/3.1.8/src/interpreter-irregexp.cc +655 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/interpreter-irregexp.h +0 -0
- data/ext/v8/upstream/3.1.8/src/json.js +342 -0
- data/ext/v8/upstream/3.1.8/src/jsregexp.cc +5340 -0
- data/ext/v8/upstream/3.1.8/src/jsregexp.h +1484 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target-heavy-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-heavy.cc +430 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-heavy.h +244 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target-light-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-light.cc +111 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-light.h +193 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target.h +0 -0
- data/ext/v8/upstream/3.1.8/src/list-inl.h +206 -0
- data/ext/v8/upstream/3.1.8/src/list.h +164 -0
- data/ext/v8/upstream/3.1.8/src/lithium-allocator-inl.h +140 -0
- data/ext/v8/upstream/3.1.8/src/lithium-allocator.cc +2093 -0
- data/ext/v8/upstream/3.1.8/src/lithium-allocator.h +644 -0
- data/ext/v8/upstream/3.1.8/src/lithium.cc +168 -0
- data/ext/v8/upstream/3.1.8/src/lithium.h +592 -0
- data/ext/v8/upstream/3.1.8/src/liveedit-debugger.js +1082 -0
- data/ext/v8/upstream/3.1.8/src/liveedit.cc +1650 -0
- data/ext/v8/upstream/3.1.8/src/liveedit.h +174 -0
- data/ext/v8/upstream/3.1.8/src/liveobjectlist-inl.h +126 -0
- data/ext/v8/upstream/3.1.8/src/liveobjectlist.cc +2527 -0
- data/ext/v8/upstream/3.1.8/src/liveobjectlist.h +322 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/log-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/log-utils.cc +336 -0
- data/ext/v8/upstream/3.1.8/src/log-utils.h +232 -0
- data/ext/v8/upstream/3.1.8/src/log.cc +1608 -0
- data/ext/v8/upstream/3.1.8/src/log.h +379 -0
- data/ext/v8/upstream/3.1.8/src/macro-assembler.h +120 -0
- data/ext/v8/upstream/3.1.8/src/macros.py +178 -0
- data/ext/v8/upstream/3.1.8/src/mark-compact.cc +2957 -0
- data/ext/v8/upstream/3.1.8/src/mark-compact.h +433 -0
- data/ext/v8/upstream/3.1.8/src/math.js +264 -0
- data/ext/v8/upstream/3.1.8/src/memory.h +82 -0
- data/ext/v8/upstream/3.1.8/src/messages.cc +164 -0
- data/ext/v8/upstream/3.1.8/src/messages.h +114 -0
- data/ext/v8/upstream/3.1.8/src/messages.js +1071 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/assembler-mips-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/assembler-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/assembler-mips.h +667 -0
- data/ext/v8/upstream/3.1.8/src/mips/builtins-mips.cc +205 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/codegen-mips-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/codegen-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/codegen-mips.h +431 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/constants-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/constants-mips.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/cpu-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/debug-mips.cc +127 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/disasm-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/fast-codegen-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/frames-mips.cc +96 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/frames-mips.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/full-codegen-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/ic-mips.cc +208 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/jump-target-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/macro-assembler-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/macro-assembler-mips.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/register-allocator-mips-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/register-allocator-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/register-allocator-mips.h +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/simulator-mips.cc +1650 -0
- data/ext/v8/upstream/3.1.8/src/mips/simulator-mips.h +311 -0
- data/ext/v8/upstream/3.1.8/src/mips/stub-cache-mips.cc +418 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/virtual-frame-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/virtual-frame-mips.h +0 -0
- data/ext/v8/upstream/3.1.8/src/mirror-debugger.js +2380 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mksnapshot.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/natives.h +0 -0
- data/ext/v8/upstream/3.1.8/src/objects-debug.cc +722 -0
- data/ext/v8/upstream/3.1.8/src/objects-inl.h +3946 -0
- data/ext/v8/upstream/3.1.8/src/objects-printer.cc +801 -0
- data/ext/v8/upstream/3.1.8/src/objects-visiting.cc +142 -0
- data/ext/v8/upstream/3.1.8/src/objects-visiting.h +401 -0
- data/ext/v8/upstream/3.1.8/src/objects.cc +10044 -0
- data/ext/v8/upstream/3.1.8/src/objects.h +6571 -0
- data/ext/v8/upstream/3.1.8/src/parser.cc +5165 -0
- data/ext/v8/upstream/3.1.8/src/parser.h +802 -0
- data/ext/v8/upstream/3.1.8/src/platform-cygwin.cc +745 -0
- data/ext/v8/upstream/3.1.8/src/platform-freebsd.cc +702 -0
- data/ext/v8/upstream/3.1.8/src/platform-linux.cc +981 -0
- data/ext/v8/upstream/3.1.8/src/platform-macos.cc +732 -0
- data/ext/v8/upstream/3.1.8/src/platform-nullos.cc +498 -0
- data/ext/v8/upstream/3.1.8/src/platform-openbsd.cc +657 -0
- data/ext/v8/upstream/3.1.8/src/platform-posix.cc +399 -0
- data/ext/v8/upstream/3.1.8/src/platform-solaris.cc +714 -0
- data/ext/v8/upstream/3.1.8/src/platform-win32.cc +1974 -0
- data/ext/v8/upstream/3.1.8/src/platform.h +636 -0
- data/ext/v8/upstream/3.1.8/src/preparse-data.cc +183 -0
- data/ext/v8/upstream/3.1.8/src/preparse-data.h +249 -0
- data/ext/v8/upstream/3.1.8/src/preparser-api.cc +213 -0
- data/ext/v8/upstream/3.1.8/src/preparser.cc +1205 -0
- data/ext/v8/upstream/3.1.8/src/preparser.h +278 -0
- data/ext/v8/upstream/3.1.8/src/prettyprinter.cc +1539 -0
- data/ext/v8/upstream/3.1.8/src/prettyprinter.h +223 -0
- data/ext/v8/upstream/3.1.8/src/profile-generator-inl.h +128 -0
- data/ext/v8/upstream/3.1.8/src/profile-generator.cc +2899 -0
- data/ext/v8/upstream/3.1.8/src/profile-generator.h +1151 -0
- data/ext/v8/upstream/3.1.8/src/property.cc +96 -0
- data/ext/v8/upstream/3.1.8/src/property.h +337 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/regexp-macro-assembler-irregexp-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-irregexp.cc +470 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-irregexp.h +142 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-tracer.cc +373 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-tracer.h +104 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler.cc +257 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler.h +231 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/regexp-stack.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/regexp-stack.h +0 -0
- data/ext/v8/upstream/3.1.8/src/regexp.js +483 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/register-allocator-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/register-allocator.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/register-allocator.h +0 -0
- data/ext/v8/upstream/3.1.8/src/rewriter.cc +1023 -0
- data/ext/v8/upstream/3.1.8/src/rewriter.h +59 -0
- data/ext/v8/upstream/3.1.8/src/runtime-profiler.cc +443 -0
- data/ext/v8/upstream/3.1.8/src/runtime-profiler.h +77 -0
- data/ext/v8/upstream/3.1.8/src/runtime.cc +11592 -0
- data/ext/v8/upstream/3.1.8/src/runtime.h +582 -0
- data/ext/v8/upstream/3.1.8/src/runtime.js +643 -0
- data/ext/v8/upstream/3.1.8/src/safepoint-table.cc +253 -0
- data/ext/v8/upstream/3.1.8/src/safepoint-table.h +263 -0
- data/ext/v8/upstream/3.1.8/src/scanner-base.cc +971 -0
- data/ext/v8/upstream/3.1.8/src/scanner-base.h +653 -0
- data/ext/v8/upstream/3.1.8/src/scanner.cc +586 -0
- data/ext/v8/upstream/3.1.8/src/scanner.h +194 -0
- data/ext/v8/upstream/3.1.8/src/scopeinfo.cc +636 -0
- data/ext/v8/upstream/3.1.8/src/scopeinfo.h +238 -0
- data/ext/v8/upstream/3.1.8/src/scopes.cc +1063 -0
- data/ext/v8/upstream/3.1.8/src/scopes.h +494 -0
- data/ext/v8/upstream/3.1.8/src/serialize.cc +1535 -0
- data/ext/v8/upstream/3.1.8/src/serialize.h +584 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/shell.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/simulator.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/smart-pointer.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/snapshot-common.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/snapshot-empty.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/snapshot.h +0 -0
- data/ext/v8/upstream/3.1.8/src/spaces-inl.h +524 -0
- data/ext/v8/upstream/3.1.8/src/spaces.cc +3254 -0
- data/ext/v8/upstream/3.1.8/src/spaces.h +2362 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/splay-tree-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/splay-tree.h +0 -0
- data/ext/v8/upstream/3.1.8/src/string-search.cc +40 -0
- data/ext/v8/upstream/3.1.8/src/string-search.h +567 -0
- data/ext/v8/upstream/3.1.8/src/string-stream.cc +584 -0
- data/ext/v8/upstream/3.1.8/src/string-stream.h +191 -0
- data/ext/v8/upstream/3.1.8/src/string.js +915 -0
- data/ext/v8/upstream/3.1.8/src/strtod.cc +440 -0
- data/ext/v8/upstream/3.1.8/src/strtod.h +40 -0
- data/ext/v8/upstream/3.1.8/src/stub-cache.cc +1878 -0
- data/ext/v8/upstream/3.1.8/src/stub-cache.h +849 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/third_party/valgrind/valgrind.h +0 -0
- data/ext/v8/upstream/3.1.8/src/token.cc +63 -0
- data/ext/v8/upstream/3.1.8/src/token.h +288 -0
- data/ext/v8/upstream/3.1.8/src/top.cc +1152 -0
- data/ext/v8/upstream/3.1.8/src/top.h +608 -0
- data/ext/v8/upstream/3.1.8/src/type-info.cc +406 -0
- data/ext/v8/upstream/3.1.8/src/type-info.h +283 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/unbound-queue-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/unbound-queue.h +0 -0
- data/ext/v8/upstream/3.1.8/src/unicode-inl.h +238 -0
- data/ext/v8/upstream/3.1.8/src/unicode.cc +1624 -0
- data/ext/v8/upstream/3.1.8/src/unicode.h +280 -0
- data/ext/v8/upstream/3.1.8/src/uri.js +402 -0
- data/ext/v8/upstream/3.1.8/src/utils.cc +371 -0
- data/ext/v8/upstream/3.1.8/src/utils.h +793 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/v8-counters.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/v8-counters.h +290 -0
- data/ext/v8/upstream/3.1.8/src/v8.cc +270 -0
- data/ext/v8/upstream/3.1.8/src/v8.h +127 -0
- data/ext/v8/upstream/3.1.8/src/v8checks.h +64 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/v8dll-main.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/v8globals.h +480 -0
- data/ext/v8/upstream/3.1.8/src/v8natives.js +1252 -0
- data/ext/v8/upstream/3.1.8/src/v8preparserdll-main.cc +39 -0
- data/ext/v8/upstream/3.1.8/src/v8threads.cc +440 -0
- data/ext/v8/upstream/3.1.8/src/v8threads.h +157 -0
- data/ext/v8/upstream/3.1.8/src/v8utils.h +354 -0
- data/ext/v8/upstream/3.1.8/src/variables.cc +132 -0
- data/ext/v8/upstream/3.1.8/src/variables.h +212 -0
- data/ext/v8/upstream/3.1.8/src/version.cc +95 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/version.h +0 -0
- data/ext/v8/upstream/3.1.8/src/virtual-frame-heavy-inl.h +190 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-heavy.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-light-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-light.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/virtual-frame.h +59 -0
- data/ext/v8/upstream/3.1.8/src/vm-state-inl.h +134 -0
- data/ext/v8/upstream/3.1.8/src/vm-state.h +68 -0
- data/ext/v8/upstream/3.1.8/src/win32-headers.h +95 -0
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64-inl.h +455 -0
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64.cc +3162 -0
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64.h +1584 -0
- data/ext/v8/upstream/3.1.8/src/x64/builtins-x64.cc +1492 -0
- data/ext/v8/upstream/3.1.8/src/x64/code-stubs-x64.cc +5150 -0
- data/ext/v8/upstream/3.1.8/src/x64/code-stubs-x64.h +519 -0
- data/ext/v8/upstream/3.1.8/src/x64/codegen-x64-inl.h +46 -0
- data/ext/v8/upstream/3.1.8/src/x64/codegen-x64.cc +8835 -0
- data/ext/v8/upstream/3.1.8/src/x64/codegen-x64.h +750 -0
- data/ext/v8/upstream/3.1.8/src/x64/cpu-x64.cc +86 -0
- data/ext/v8/upstream/3.1.8/src/x64/debug-x64.cc +316 -0
- data/ext/v8/upstream/3.1.8/src/x64/deoptimizer-x64.cc +781 -0
- data/ext/v8/upstream/3.1.8/src/x64/disasm-x64.cc +1737 -0
- data/ext/v8/upstream/3.1.8/src/x64/frames-x64.cc +45 -0
- data/ext/v8/upstream/3.1.8/src/x64/frames-x64.h +130 -0
- data/ext/v8/upstream/3.1.8/src/x64/full-codegen-x64.cc +3984 -0
- data/ext/v8/upstream/3.1.8/src/x64/ic-x64.cc +1761 -0
- data/ext/v8/upstream/3.1.8/src/x64/jump-target-x64.cc +437 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-codegen-x64.cc +3639 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-codegen-x64.h +305 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-gap-resolver-x64.cc +320 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-gap-resolver-x64.h +74 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-x64.cc +2044 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-x64.h +2052 -0
- data/ext/v8/upstream/3.1.8/src/x64/macro-assembler-x64.cc +2660 -0
- data/ext/v8/upstream/3.1.8/src/x64/macro-assembler-x64.h +1852 -0
- data/ext/v8/upstream/3.1.8/src/x64/regexp-macro-assembler-x64.cc +1382 -0
- data/ext/v8/upstream/3.1.8/src/x64/regexp-macro-assembler-x64.h +278 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/register-allocator-x64-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/register-allocator-x64.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/register-allocator-x64.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/simulator-x64.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/x64/simulator-x64.h +71 -0
- data/ext/v8/upstream/3.1.8/src/x64/stub-cache-x64.cc +3509 -0
- data/ext/v8/upstream/3.1.8/src/x64/virtual-frame-x64.cc +1292 -0
- data/ext/v8/upstream/3.1.8/src/x64/virtual-frame-x64.h +593 -0
- data/ext/v8/upstream/3.1.8/src/zone-inl.h +83 -0
- data/ext/v8/upstream/3.1.8/src/zone.cc +195 -0
- data/ext/v8/upstream/3.1.8/src/zone.h +233 -0
- data/ext/v8/upstream/3.1.8/tools/codemap.js +265 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/consarray.js +0 -0
- data/ext/v8/upstream/3.1.8/tools/csvparser.js +78 -0
- data/ext/v8/upstream/3.1.8/tools/disasm.py +92 -0
- data/ext/v8/upstream/3.1.8/tools/gc-nvp-trace-processor.py +328 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/generate-ten-powers.scm +0 -0
- data/ext/v8/upstream/3.1.8/tools/grokdump.py +840 -0
- data/ext/v8/upstream/3.1.8/tools/gyp/v8.gyp +869 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/js2c.py +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/jsmin.py +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/linux-tick-processor +0 -0
- data/ext/v8/upstream/3.1.8/tools/ll_prof.py +919 -0
- data/ext/v8/upstream/3.1.8/tools/logreader.js +185 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/mac-nm +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/mac-tick-processor +0 -0
- data/ext/v8/upstream/3.1.8/tools/oom_dump/README +31 -0
- data/ext/v8/upstream/3.1.8/tools/oom_dump/SConstruct +42 -0
- data/ext/v8/upstream/3.1.8/tools/oom_dump/oom_dump.cc +288 -0
- data/ext/v8/upstream/3.1.8/tools/presubmit.py +305 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/process-heap-prof.py +0 -0
- data/ext/v8/upstream/3.1.8/tools/profile.js +751 -0
- data/ext/v8/upstream/3.1.8/tools/profile_view.js +219 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/run-valgrind.py +0 -0
- data/ext/v8/upstream/3.1.8/tools/splaytree.js +316 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/stats-viewer.py +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/tickprocessor-driver.js +0 -0
- data/ext/v8/upstream/3.1.8/tools/tickprocessor.js +863 -0
- data/ext/v8/upstream/3.1.8/tools/utils.py +96 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/README.txt +70 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/arm.vsprops +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/common.vsprops +34 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8_arm.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8js2c.cmd +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/debug.vsprops +17 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/ia32.vsprops +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/js2c.cmd +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/release.vsprops +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8.sln +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_arm.sln +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_arm.vcproj +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base.vcproj +1296 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base_arm.vcproj +1234 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base_x64.vcproj +1296 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_cctest.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_cctest_arm.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_cctest_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_mksnapshot.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_mksnapshot_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_process_sample.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_process_sample_arm.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_process_sample_x64.vcproj +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_shell_sample.vcproj +147 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_shell_sample_arm.vcproj +147 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_shell_sample_x64.vcproj +163 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot_cc.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot_cc_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_x64.sln +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/x64.vsprops +0 -0
- data/ext/v8/upstream/3.1.8/tools/windows-tick-processor.bat +30 -0
- data/ext/v8/upstream/Makefile +2 -1
- data/ext/v8/v8_template.cpp +2 -2
- data/lib/v8/version.rb +1 -1
- data/spec/redjs/jsapi_spec.rb +2 -2
- metadata +552 -490
- data/ext/v8/upstream/2.3.3/.gitignore +0 -26
- data/ext/v8/upstream/2.3.3/AUTHORS +0 -31
- data/ext/v8/upstream/2.3.3/ChangeLog +0 -1916
- data/ext/v8/upstream/2.3.3/LICENSE +0 -55
- data/ext/v8/upstream/2.3.3/SConstruct +0 -1154
- data/ext/v8/upstream/2.3.3/include/v8-debug.h +0 -381
- data/ext/v8/upstream/2.3.3/include/v8-profiler.h +0 -353
- data/ext/v8/upstream/2.3.3/include/v8.h +0 -3616
- data/ext/v8/upstream/2.3.3/src/SConscript +0 -330
- data/ext/v8/upstream/2.3.3/src/accessors.cc +0 -661
- data/ext/v8/upstream/2.3.3/src/accessors.h +0 -114
- data/ext/v8/upstream/2.3.3/src/allocation.cc +0 -198
- data/ext/v8/upstream/2.3.3/src/allocation.h +0 -169
- data/ext/v8/upstream/2.3.3/src/api.cc +0 -4795
- data/ext/v8/upstream/2.3.3/src/api.h +0 -485
- data/ext/v8/upstream/2.3.3/src/apiutils.h +0 -69
- data/ext/v8/upstream/2.3.3/src/arguments.h +0 -96
- data/ext/v8/upstream/2.3.3/src/arm/assembler-arm-inl.h +0 -305
- data/ext/v8/upstream/2.3.3/src/arm/assembler-arm.cc +0 -2580
- data/ext/v8/upstream/2.3.3/src/arm/assembler-arm.h +0 -1275
- data/ext/v8/upstream/2.3.3/src/arm/builtins-arm.cc +0 -1320
- data/ext/v8/upstream/2.3.3/src/arm/codegen-arm-inl.h +0 -48
- data/ext/v8/upstream/2.3.3/src/arm/codegen-arm.cc +0 -11398
- data/ext/v8/upstream/2.3.3/src/arm/codegen-arm.h +0 -1102
- data/ext/v8/upstream/2.3.3/src/arm/constants-arm.cc +0 -154
- data/ext/v8/upstream/2.3.3/src/arm/constants-arm.h +0 -388
- data/ext/v8/upstream/2.3.3/src/arm/cpu-arm.cc +0 -142
- data/ext/v8/upstream/2.3.3/src/arm/debug-arm.cc +0 -309
- data/ext/v8/upstream/2.3.3/src/arm/disasm-arm.cc +0 -1459
- data/ext/v8/upstream/2.3.3/src/arm/fast-codegen-arm.cc +0 -241
- data/ext/v8/upstream/2.3.3/src/arm/frames-arm.cc +0 -123
- data/ext/v8/upstream/2.3.3/src/arm/frames-arm.h +0 -162
- data/ext/v8/upstream/2.3.3/src/arm/full-codegen-arm.cc +0 -3178
- data/ext/v8/upstream/2.3.3/src/arm/ic-arm.cc +0 -2258
- data/ext/v8/upstream/2.3.3/src/arm/jump-target-arm.cc +0 -164
- data/ext/v8/upstream/2.3.3/src/arm/macro-assembler-arm.cc +0 -1892
- data/ext/v8/upstream/2.3.3/src/arm/macro-assembler-arm.h +0 -727
- data/ext/v8/upstream/2.3.3/src/arm/regexp-macro-assembler-arm.cc +0 -1261
- data/ext/v8/upstream/2.3.3/src/arm/regexp-macro-assembler-arm.h +0 -266
- data/ext/v8/upstream/2.3.3/src/arm/simulator-arm.cc +0 -2822
- data/ext/v8/upstream/2.3.3/src/arm/simulator-arm.h +0 -361
- data/ext/v8/upstream/2.3.3/src/arm/stub-cache-arm.cc +0 -2387
- data/ext/v8/upstream/2.3.3/src/arm/virtual-frame-arm.cc +0 -834
- data/ext/v8/upstream/2.3.3/src/arm/virtual-frame-arm.h +0 -519
- data/ext/v8/upstream/2.3.3/src/array.js +0 -1127
- data/ext/v8/upstream/2.3.3/src/assembler.cc +0 -801
- data/ext/v8/upstream/2.3.3/src/assembler.h +0 -573
- data/ext/v8/upstream/2.3.3/src/ast-inl.h +0 -81
- data/ext/v8/upstream/2.3.3/src/ast.cc +0 -1152
- data/ext/v8/upstream/2.3.3/src/ast.h +0 -2106
- data/ext/v8/upstream/2.3.3/src/bootstrapper.cc +0 -1819
- data/ext/v8/upstream/2.3.3/src/builtins.cc +0 -1529
- data/ext/v8/upstream/2.3.3/src/builtins.h +0 -263
- data/ext/v8/upstream/2.3.3/src/bytecodes-irregexp.h +0 -104
- data/ext/v8/upstream/2.3.3/src/cached-powers.h +0 -119
- data/ext/v8/upstream/2.3.3/src/char-predicates-inl.h +0 -86
- data/ext/v8/upstream/2.3.3/src/checks.cc +0 -100
- data/ext/v8/upstream/2.3.3/src/checks.h +0 -310
- data/ext/v8/upstream/2.3.3/src/circular-queue.cc +0 -121
- data/ext/v8/upstream/2.3.3/src/code-stubs.cc +0 -177
- data/ext/v8/upstream/2.3.3/src/code-stubs.h +0 -177
- data/ext/v8/upstream/2.3.3/src/codegen-inl.h +0 -60
- data/ext/v8/upstream/2.3.3/src/codegen.cc +0 -516
- data/ext/v8/upstream/2.3.3/src/codegen.h +0 -897
- data/ext/v8/upstream/2.3.3/src/compilation-cache.cc +0 -562
- data/ext/v8/upstream/2.3.3/src/compilation-cache.h +0 -102
- data/ext/v8/upstream/2.3.3/src/compiler.cc +0 -654
- data/ext/v8/upstream/2.3.3/src/compiler.h +0 -299
- data/ext/v8/upstream/2.3.3/src/contexts.cc +0 -256
- data/ext/v8/upstream/2.3.3/src/contexts.h +0 -342
- data/ext/v8/upstream/2.3.3/src/conversions.cc +0 -1119
- data/ext/v8/upstream/2.3.3/src/conversions.h +0 -123
- data/ext/v8/upstream/2.3.3/src/counters.h +0 -239
- data/ext/v8/upstream/2.3.3/src/cpu-profiler-inl.h +0 -100
- data/ext/v8/upstream/2.3.3/src/cpu-profiler.cc +0 -538
- data/ext/v8/upstream/2.3.3/src/cpu-profiler.h +0 -285
- data/ext/v8/upstream/2.3.3/src/d8-debug.cc +0 -356
- data/ext/v8/upstream/2.3.3/src/d8-debug.h +0 -155
- data/ext/v8/upstream/2.3.3/src/d8.cc +0 -783
- data/ext/v8/upstream/2.3.3/src/d8.h +0 -227
- data/ext/v8/upstream/2.3.3/src/d8.js +0 -1683
- data/ext/v8/upstream/2.3.3/src/data-flow.cc +0 -758
- data/ext/v8/upstream/2.3.3/src/data-flow.h +0 -278
- data/ext/v8/upstream/2.3.3/src/date.js +0 -1059
- data/ext/v8/upstream/2.3.3/src/dateparser-inl.h +0 -123
- data/ext/v8/upstream/2.3.3/src/dateparser.h +0 -244
- data/ext/v8/upstream/2.3.3/src/debug-agent.cc +0 -427
- data/ext/v8/upstream/2.3.3/src/debug-agent.h +0 -129
- data/ext/v8/upstream/2.3.3/src/debug-debugger.js +0 -2227
- data/ext/v8/upstream/2.3.3/src/debug.cc +0 -3005
- data/ext/v8/upstream/2.3.3/src/debug.h +0 -993
- data/ext/v8/upstream/2.3.3/src/disassembler.cc +0 -312
- data/ext/v8/upstream/2.3.3/src/double.h +0 -169
- data/ext/v8/upstream/2.3.3/src/dtoa-config.c +0 -92
- data/ext/v8/upstream/2.3.3/src/dtoa.cc +0 -77
- data/ext/v8/upstream/2.3.3/src/dtoa.h +0 -81
- data/ext/v8/upstream/2.3.3/src/execution.cc +0 -809
- data/ext/v8/upstream/2.3.3/src/execution.h +0 -336
- data/ext/v8/upstream/2.3.3/src/factory.cc +0 -1003
- data/ext/v8/upstream/2.3.3/src/factory.h +0 -410
- data/ext/v8/upstream/2.3.3/src/fast-codegen.cc +0 -746
- data/ext/v8/upstream/2.3.3/src/fast-codegen.h +0 -161
- data/ext/v8/upstream/2.3.3/src/fast-dtoa.cc +0 -505
- data/ext/v8/upstream/2.3.3/src/fast-dtoa.h +0 -58
- data/ext/v8/upstream/2.3.3/src/flag-definitions.h +0 -455
- data/ext/v8/upstream/2.3.3/src/flags.cc +0 -551
- data/ext/v8/upstream/2.3.3/src/flags.h +0 -81
- data/ext/v8/upstream/2.3.3/src/flow-graph.cc +0 -763
- data/ext/v8/upstream/2.3.3/src/flow-graph.h +0 -180
- data/ext/v8/upstream/2.3.3/src/frame-element.h +0 -273
- data/ext/v8/upstream/2.3.3/src/frames-inl.h +0 -217
- data/ext/v8/upstream/2.3.3/src/frames.cc +0 -826
- data/ext/v8/upstream/2.3.3/src/frames.h +0 -682
- data/ext/v8/upstream/2.3.3/src/full-codegen.cc +0 -1443
- data/ext/v8/upstream/2.3.3/src/full-codegen.h +0 -548
- data/ext/v8/upstream/2.3.3/src/func-name-inferrer.cc +0 -76
- data/ext/v8/upstream/2.3.3/src/func-name-inferrer.h +0 -135
- data/ext/v8/upstream/2.3.3/src/global-handles.cc +0 -520
- data/ext/v8/upstream/2.3.3/src/global-handles.h +0 -180
- data/ext/v8/upstream/2.3.3/src/globals.h +0 -669
- data/ext/v8/upstream/2.3.3/src/handles-inl.h +0 -76
- data/ext/v8/upstream/2.3.3/src/handles.cc +0 -825
- data/ext/v8/upstream/2.3.3/src/handles.h +0 -393
- data/ext/v8/upstream/2.3.3/src/hashmap.cc +0 -226
- data/ext/v8/upstream/2.3.3/src/hashmap.h +0 -120
- data/ext/v8/upstream/2.3.3/src/heap-inl.h +0 -493
- data/ext/v8/upstream/2.3.3/src/heap-profiler.cc +0 -779
- data/ext/v8/upstream/2.3.3/src/heap-profiler.h +0 -323
- data/ext/v8/upstream/2.3.3/src/heap.cc +0 -4994
- data/ext/v8/upstream/2.3.3/src/heap.h +0 -1984
- data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32-inl.h +0 -360
- data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32.cc +0 -2600
- data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32.h +0 -969
- data/ext/v8/upstream/2.3.3/src/ia32/builtins-ia32.cc +0 -1261
- data/ext/v8/upstream/2.3.3/src/ia32/codegen-ia32.cc +0 -13968
- data/ext/v8/upstream/2.3.3/src/ia32/codegen-ia32.h +0 -1097
- data/ext/v8/upstream/2.3.3/src/ia32/cpu-ia32.cc +0 -83
- data/ext/v8/upstream/2.3.3/src/ia32/debug-ia32.cc +0 -309
- data/ext/v8/upstream/2.3.3/src/ia32/disasm-ia32.cc +0 -1471
- data/ext/v8/upstream/2.3.3/src/ia32/fast-codegen-ia32.cc +0 -954
- data/ext/v8/upstream/2.3.3/src/ia32/fast-codegen-ia32.h +0 -155
- data/ext/v8/upstream/2.3.3/src/ia32/frames-ia32.cc +0 -115
- data/ext/v8/upstream/2.3.3/src/ia32/frames-ia32.h +0 -135
- data/ext/v8/upstream/2.3.3/src/ia32/full-codegen-ia32.cc +0 -3281
- data/ext/v8/upstream/2.3.3/src/ia32/ic-ia32.cc +0 -1966
- data/ext/v8/upstream/2.3.3/src/ia32/macro-assembler-ia32.cc +0 -1610
- data/ext/v8/upstream/2.3.3/src/ia32/macro-assembler-ia32.h +0 -610
- data/ext/v8/upstream/2.3.3/src/ia32/regexp-macro-assembler-ia32.cc +0 -1247
- data/ext/v8/upstream/2.3.3/src/ia32/regexp-macro-assembler-ia32.h +0 -214
- data/ext/v8/upstream/2.3.3/src/ia32/simulator-ia32.h +0 -62
- data/ext/v8/upstream/2.3.3/src/ia32/stub-cache-ia32.cc +0 -2750
- data/ext/v8/upstream/2.3.3/src/ia32/virtual-frame-ia32.cc +0 -1334
- data/ext/v8/upstream/2.3.3/src/ia32/virtual-frame-ia32.h +0 -627
- data/ext/v8/upstream/2.3.3/src/ic-inl.h +0 -120
- data/ext/v8/upstream/2.3.3/src/ic.cc +0 -1827
- data/ext/v8/upstream/2.3.3/src/ic.h +0 -515
- data/ext/v8/upstream/2.3.3/src/interpreter-irregexp.cc +0 -646
- data/ext/v8/upstream/2.3.3/src/json.js +0 -268
- data/ext/v8/upstream/2.3.3/src/jsregexp.cc +0 -5283
- data/ext/v8/upstream/2.3.3/src/jsregexp.h +0 -1463
- data/ext/v8/upstream/2.3.3/src/jump-target-heavy.cc +0 -429
- data/ext/v8/upstream/2.3.3/src/jump-target-heavy.h +0 -244
- data/ext/v8/upstream/2.3.3/src/jump-target-light.cc +0 -110
- data/ext/v8/upstream/2.3.3/src/jump-target-light.h +0 -192
- data/ext/v8/upstream/2.3.3/src/list-inl.h +0 -166
- data/ext/v8/upstream/2.3.3/src/list.h +0 -159
- data/ext/v8/upstream/2.3.3/src/liveedit-debugger.js +0 -1057
- data/ext/v8/upstream/2.3.3/src/liveedit.cc +0 -1480
- data/ext/v8/upstream/2.3.3/src/liveedit.h +0 -170
- data/ext/v8/upstream/2.3.3/src/log-utils.cc +0 -497
- data/ext/v8/upstream/2.3.3/src/log-utils.h +0 -289
- data/ext/v8/upstream/2.3.3/src/log.cc +0 -1561
- data/ext/v8/upstream/2.3.3/src/log.h +0 -384
- data/ext/v8/upstream/2.3.3/src/macro-assembler.h +0 -86
- data/ext/v8/upstream/2.3.3/src/macros.py +0 -177
- data/ext/v8/upstream/2.3.3/src/mark-compact.cc +0 -2330
- data/ext/v8/upstream/2.3.3/src/mark-compact.h +0 -451
- data/ext/v8/upstream/2.3.3/src/math.js +0 -264
- data/ext/v8/upstream/2.3.3/src/memory.h +0 -74
- data/ext/v8/upstream/2.3.3/src/messages.cc +0 -183
- data/ext/v8/upstream/2.3.3/src/messages.h +0 -113
- data/ext/v8/upstream/2.3.3/src/messages.js +0 -982
- data/ext/v8/upstream/2.3.3/src/mips/assembler-mips.h +0 -668
- data/ext/v8/upstream/2.3.3/src/mips/builtins-mips.cc +0 -205
- data/ext/v8/upstream/2.3.3/src/mips/codegen-mips.h +0 -434
- data/ext/v8/upstream/2.3.3/src/mips/debug-mips.cc +0 -131
- data/ext/v8/upstream/2.3.3/src/mips/frames-mips.cc +0 -102
- data/ext/v8/upstream/2.3.3/src/mips/ic-mips.cc +0 -220
- data/ext/v8/upstream/2.3.3/src/mips/simulator-mips.cc +0 -1651
- data/ext/v8/upstream/2.3.3/src/mips/simulator-mips.h +0 -311
- data/ext/v8/upstream/2.3.3/src/mips/stub-cache-mips.cc +0 -403
- data/ext/v8/upstream/2.3.3/src/mirror-debugger.js +0 -2380
- data/ext/v8/upstream/2.3.3/src/objects-debug.cc +0 -1366
- data/ext/v8/upstream/2.3.3/src/objects-inl.h +0 -3333
- data/ext/v8/upstream/2.3.3/src/objects.cc +0 -8820
- data/ext/v8/upstream/2.3.3/src/objects.h +0 -5373
- data/ext/v8/upstream/2.3.3/src/oprofile-agent.cc +0 -108
- data/ext/v8/upstream/2.3.3/src/oprofile-agent.h +0 -77
- data/ext/v8/upstream/2.3.3/src/parser.cc +0 -5207
- data/ext/v8/upstream/2.3.3/src/parser.h +0 -197
- data/ext/v8/upstream/2.3.3/src/platform-freebsd.cc +0 -667
- data/ext/v8/upstream/2.3.3/src/platform-linux.cc +0 -862
- data/ext/v8/upstream/2.3.3/src/platform-macos.cc +0 -665
- data/ext/v8/upstream/2.3.3/src/platform-nullos.cc +0 -454
- data/ext/v8/upstream/2.3.3/src/platform-openbsd.cc +0 -622
- data/ext/v8/upstream/2.3.3/src/platform-posix.cc +0 -362
- data/ext/v8/upstream/2.3.3/src/platform-solaris.cc +0 -653
- data/ext/v8/upstream/2.3.3/src/platform-win32.cc +0 -1911
- data/ext/v8/upstream/2.3.3/src/platform.h +0 -577
- data/ext/v8/upstream/2.3.3/src/powers-ten.h +0 -2461
- data/ext/v8/upstream/2.3.3/src/prettyprinter.cc +0 -1531
- data/ext/v8/upstream/2.3.3/src/prettyprinter.h +0 -221
- data/ext/v8/upstream/2.3.3/src/profile-generator-inl.h +0 -148
- data/ext/v8/upstream/2.3.3/src/profile-generator.cc +0 -1830
- data/ext/v8/upstream/2.3.3/src/profile-generator.h +0 -853
- data/ext/v8/upstream/2.3.3/src/property.cc +0 -96
- data/ext/v8/upstream/2.3.3/src/property.h +0 -315
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-irregexp.cc +0 -464
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-irregexp.h +0 -141
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-tracer.cc +0 -356
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-tracer.h +0 -103
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler.cc +0 -261
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler.h +0 -228
- data/ext/v8/upstream/2.3.3/src/regexp.js +0 -549
- data/ext/v8/upstream/2.3.3/src/rewriter.cc +0 -1038
- data/ext/v8/upstream/2.3.3/src/rewriter.h +0 -54
- data/ext/v8/upstream/2.3.3/src/runtime.cc +0 -10599
- data/ext/v8/upstream/2.3.3/src/runtime.h +0 -459
- data/ext/v8/upstream/2.3.3/src/runtime.js +0 -629
- data/ext/v8/upstream/2.3.3/src/scanner.cc +0 -1346
- data/ext/v8/upstream/2.3.3/src/scanner.h +0 -503
- data/ext/v8/upstream/2.3.3/src/scopeinfo.cc +0 -637
- data/ext/v8/upstream/2.3.3/src/scopeinfo.h +0 -233
- data/ext/v8/upstream/2.3.3/src/scopes.cc +0 -962
- data/ext/v8/upstream/2.3.3/src/scopes.h +0 -400
- data/ext/v8/upstream/2.3.3/src/serialize.cc +0 -1461
- data/ext/v8/upstream/2.3.3/src/serialize.h +0 -581
- data/ext/v8/upstream/2.3.3/src/spaces-inl.h +0 -483
- data/ext/v8/upstream/2.3.3/src/spaces.cc +0 -2901
- data/ext/v8/upstream/2.3.3/src/spaces.h +0 -2197
- data/ext/v8/upstream/2.3.3/src/string-stream.cc +0 -584
- data/ext/v8/upstream/2.3.3/src/string-stream.h +0 -189
- data/ext/v8/upstream/2.3.3/src/string.js +0 -1006
- data/ext/v8/upstream/2.3.3/src/stub-cache.cc +0 -1379
- data/ext/v8/upstream/2.3.3/src/stub-cache.h +0 -756
- data/ext/v8/upstream/2.3.3/src/third_party/dtoa/COPYING +0 -15
- data/ext/v8/upstream/2.3.3/src/third_party/dtoa/dtoa.c +0 -3334
- data/ext/v8/upstream/2.3.3/src/token.cc +0 -56
- data/ext/v8/upstream/2.3.3/src/token.h +0 -270
- data/ext/v8/upstream/2.3.3/src/top.cc +0 -1067
- data/ext/v8/upstream/2.3.3/src/top.h +0 -463
- data/ext/v8/upstream/2.3.3/src/type-info.cc +0 -53
- data/ext/v8/upstream/2.3.3/src/type-info.h +0 -244
- data/ext/v8/upstream/2.3.3/src/unicode-inl.h +0 -238
- data/ext/v8/upstream/2.3.3/src/unicode.cc +0 -749
- data/ext/v8/upstream/2.3.3/src/unicode.h +0 -279
- data/ext/v8/upstream/2.3.3/src/uri.js +0 -415
- data/ext/v8/upstream/2.3.3/src/utils.cc +0 -285
- data/ext/v8/upstream/2.3.3/src/utils.h +0 -745
- data/ext/v8/upstream/2.3.3/src/v8-counters.h +0 -250
- data/ext/v8/upstream/2.3.3/src/v8.cc +0 -228
- data/ext/v8/upstream/2.3.3/src/v8.h +0 -121
- data/ext/v8/upstream/2.3.3/src/v8natives.js +0 -1188
- data/ext/v8/upstream/2.3.3/src/v8threads.cc +0 -461
- data/ext/v8/upstream/2.3.3/src/v8threads.h +0 -159
- data/ext/v8/upstream/2.3.3/src/variables.cc +0 -119
- data/ext/v8/upstream/2.3.3/src/variables.h +0 -205
- data/ext/v8/upstream/2.3.3/src/version.cc +0 -88
- data/ext/v8/upstream/2.3.3/src/virtual-frame-heavy-inl.h +0 -192
- data/ext/v8/upstream/2.3.3/src/virtual-frame.h +0 -46
- data/ext/v8/upstream/2.3.3/src/vm-state-inl.h +0 -137
- data/ext/v8/upstream/2.3.3/src/vm-state.cc +0 -39
- data/ext/v8/upstream/2.3.3/src/vm-state.h +0 -77
- data/ext/v8/upstream/2.3.3/src/x64/assembler-x64-inl.h +0 -400
- data/ext/v8/upstream/2.3.3/src/x64/assembler-x64.cc +0 -2963
- data/ext/v8/upstream/2.3.3/src/x64/assembler-x64.h +0 -1438
- data/ext/v8/upstream/2.3.3/src/x64/builtins-x64.cc +0 -1296
- data/ext/v8/upstream/2.3.3/src/x64/codegen-x64-inl.h +0 -46
- data/ext/v8/upstream/2.3.3/src/x64/codegen-x64.cc +0 -12491
- data/ext/v8/upstream/2.3.3/src/x64/codegen-x64.h +0 -1090
- data/ext/v8/upstream/2.3.3/src/x64/cpu-x64.cc +0 -83
- data/ext/v8/upstream/2.3.3/src/x64/debug-x64.cc +0 -267
- data/ext/v8/upstream/2.3.3/src/x64/disasm-x64.cc +0 -1696
- data/ext/v8/upstream/2.3.3/src/x64/fast-codegen-x64.cc +0 -250
- data/ext/v8/upstream/2.3.3/src/x64/frames-x64.cc +0 -113
- data/ext/v8/upstream/2.3.3/src/x64/frames-x64.h +0 -125
- data/ext/v8/upstream/2.3.3/src/x64/full-codegen-x64.cc +0 -3270
- data/ext/v8/upstream/2.3.3/src/x64/ic-x64.cc +0 -1907
- data/ext/v8/upstream/2.3.3/src/x64/jump-target-x64.cc +0 -437
- data/ext/v8/upstream/2.3.3/src/x64/macro-assembler-x64.cc +0 -2793
- data/ext/v8/upstream/2.3.3/src/x64/macro-assembler-x64.h +0 -916
- data/ext/v8/upstream/2.3.3/src/x64/regexp-macro-assembler-x64.cc +0 -1374
- data/ext/v8/upstream/2.3.3/src/x64/regexp-macro-assembler-x64.h +0 -277
- data/ext/v8/upstream/2.3.3/src/x64/simulator-x64.h +0 -63
- data/ext/v8/upstream/2.3.3/src/x64/stub-cache-x64.cc +0 -2560
- data/ext/v8/upstream/2.3.3/src/x64/virtual-frame-x64.cc +0 -1264
- data/ext/v8/upstream/2.3.3/src/x64/virtual-frame-x64.h +0 -590
- data/ext/v8/upstream/2.3.3/src/zone-inl.h +0 -82
- data/ext/v8/upstream/2.3.3/src/zone.cc +0 -194
- data/ext/v8/upstream/2.3.3/src/zone.h +0 -221
- data/ext/v8/upstream/2.3.3/tools/codemap.js +0 -270
- data/ext/v8/upstream/2.3.3/tools/csvparser.js +0 -83
- data/ext/v8/upstream/2.3.3/tools/gc-nvp-trace-processor.py +0 -317
- data/ext/v8/upstream/2.3.3/tools/gyp/v8.gyp +0 -749
- data/ext/v8/upstream/2.3.3/tools/linux-tick-processor.py +0 -78
- data/ext/v8/upstream/2.3.3/tools/logreader.js +0 -338
- data/ext/v8/upstream/2.3.3/tools/oprofile/annotate +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/common +0 -19
- data/ext/v8/upstream/2.3.3/tools/oprofile/dump +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/report +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/reset +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/run +0 -14
- data/ext/v8/upstream/2.3.3/tools/oprofile/shutdown +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/start +0 -7
- data/ext/v8/upstream/2.3.3/tools/presubmit.py +0 -299
- data/ext/v8/upstream/2.3.3/tools/profile.js +0 -691
- data/ext/v8/upstream/2.3.3/tools/profile_view.js +0 -224
- data/ext/v8/upstream/2.3.3/tools/splaytree.js +0 -322
- data/ext/v8/upstream/2.3.3/tools/splaytree.py +0 -226
- data/ext/v8/upstream/2.3.3/tools/tickprocessor.js +0 -862
- data/ext/v8/upstream/2.3.3/tools/tickprocessor.py +0 -571
- data/ext/v8/upstream/2.3.3/tools/utils.py +0 -88
- data/ext/v8/upstream/2.3.3/tools/visual_studio/README.txt +0 -71
- data/ext/v8/upstream/2.3.3/tools/visual_studio/common.vsprops +0 -34
- data/ext/v8/upstream/2.3.3/tools/visual_studio/debug.vsprops +0 -17
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base.vcproj +0 -1143
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base_arm.vcproj +0 -1115
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base_x64.vcproj +0 -1096
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample.vcproj +0 -145
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample_arm.vcproj +0 -145
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample_x64.vcproj +0 -161
- data/ext/v8/upstream/2.3.3/tools/windows-tick-processor.bat +0 -29
- data/ext/v8/upstream/2.3.3/tools/windows-tick-processor.py +0 -137
@@ -0,0 +1,1360 @@
|
|
1
|
+
// Copyright 2009 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
|
+
#if defined(V8_TARGET_ARCH_IA32)
|
31
|
+
|
32
|
+
#include "codegen-inl.h"
|
33
|
+
#include "register-allocator-inl.h"
|
34
|
+
#include "scopes.h"
|
35
|
+
#include "virtual-frame-inl.h"
|
36
|
+
#include "stub-cache.h"
|
37
|
+
|
38
|
+
namespace v8 {
|
39
|
+
namespace internal {
|
40
|
+
|
41
|
+
#define __ ACCESS_MASM(masm())
|
42
|
+
|
43
|
+
void VirtualFrame::SyncElementBelowStackPointer(int index) {
|
44
|
+
// Emit code to write elements below the stack pointer to their
|
45
|
+
// (already allocated) stack address.
|
46
|
+
ASSERT(index <= stack_pointer_);
|
47
|
+
FrameElement element = elements_[index];
|
48
|
+
ASSERT(!element.is_synced());
|
49
|
+
switch (element.type()) {
|
50
|
+
case FrameElement::INVALID:
|
51
|
+
break;
|
52
|
+
|
53
|
+
case FrameElement::MEMORY:
|
54
|
+
// This function should not be called with synced elements.
|
55
|
+
// (memory elements are always synced).
|
56
|
+
UNREACHABLE();
|
57
|
+
break;
|
58
|
+
|
59
|
+
case FrameElement::REGISTER:
|
60
|
+
__ mov(Operand(ebp, fp_relative(index)), element.reg());
|
61
|
+
break;
|
62
|
+
|
63
|
+
case FrameElement::CONSTANT:
|
64
|
+
if (cgen()->IsUnsafeSmi(element.handle())) {
|
65
|
+
cgen()->StoreUnsafeSmiToLocal(fp_relative(index), element.handle());
|
66
|
+
} else {
|
67
|
+
__ Set(Operand(ebp, fp_relative(index)),
|
68
|
+
Immediate(element.handle()));
|
69
|
+
}
|
70
|
+
break;
|
71
|
+
|
72
|
+
case FrameElement::COPY: {
|
73
|
+
int backing_index = element.index();
|
74
|
+
FrameElement backing_element = elements_[backing_index];
|
75
|
+
if (backing_element.is_memory()) {
|
76
|
+
Result temp = cgen()->allocator()->Allocate();
|
77
|
+
ASSERT(temp.is_valid());
|
78
|
+
__ mov(temp.reg(), Operand(ebp, fp_relative(backing_index)));
|
79
|
+
__ mov(Operand(ebp, fp_relative(index)), temp.reg());
|
80
|
+
} else {
|
81
|
+
ASSERT(backing_element.is_register());
|
82
|
+
__ mov(Operand(ebp, fp_relative(index)), backing_element.reg());
|
83
|
+
}
|
84
|
+
break;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
elements_[index].set_sync();
|
88
|
+
}
|
89
|
+
|
90
|
+
|
91
|
+
void VirtualFrame::SyncElementByPushing(int index) {
|
92
|
+
// Sync an element of the frame that is just above the stack pointer
|
93
|
+
// by pushing it.
|
94
|
+
ASSERT(index == stack_pointer_ + 1);
|
95
|
+
stack_pointer_++;
|
96
|
+
FrameElement element = elements_[index];
|
97
|
+
|
98
|
+
switch (element.type()) {
|
99
|
+
case FrameElement::INVALID:
|
100
|
+
__ push(Immediate(Smi::FromInt(0)));
|
101
|
+
break;
|
102
|
+
|
103
|
+
case FrameElement::MEMORY:
|
104
|
+
// No memory elements exist above the stack pointer.
|
105
|
+
UNREACHABLE();
|
106
|
+
break;
|
107
|
+
|
108
|
+
case FrameElement::REGISTER:
|
109
|
+
__ push(element.reg());
|
110
|
+
break;
|
111
|
+
|
112
|
+
case FrameElement::CONSTANT:
|
113
|
+
if (cgen()->IsUnsafeSmi(element.handle())) {
|
114
|
+
cgen()->PushUnsafeSmi(element.handle());
|
115
|
+
} else {
|
116
|
+
__ push(Immediate(element.handle()));
|
117
|
+
}
|
118
|
+
break;
|
119
|
+
|
120
|
+
case FrameElement::COPY: {
|
121
|
+
int backing_index = element.index();
|
122
|
+
FrameElement backing = elements_[backing_index];
|
123
|
+
ASSERT(backing.is_memory() || backing.is_register());
|
124
|
+
if (backing.is_memory()) {
|
125
|
+
__ push(Operand(ebp, fp_relative(backing_index)));
|
126
|
+
} else {
|
127
|
+
__ push(backing.reg());
|
128
|
+
}
|
129
|
+
break;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
elements_[index].set_sync();
|
133
|
+
}
|
134
|
+
|
135
|
+
|
136
|
+
// Clear the dirty bits for the range of elements in
|
137
|
+
// [min(stack_pointer_ + 1,begin), end].
|
138
|
+
void VirtualFrame::SyncRange(int begin, int end) {
|
139
|
+
ASSERT(begin >= 0);
|
140
|
+
ASSERT(end < element_count());
|
141
|
+
// Sync elements below the range if they have not been materialized
|
142
|
+
// on the stack.
|
143
|
+
int start = Min(begin, stack_pointer_ + 1);
|
144
|
+
|
145
|
+
// Emit normal push instructions for elements above stack pointer
|
146
|
+
// and use mov instructions if we are below stack pointer.
|
147
|
+
for (int i = start; i <= end; i++) {
|
148
|
+
if (!elements_[i].is_synced()) {
|
149
|
+
if (i <= stack_pointer_) {
|
150
|
+
SyncElementBelowStackPointer(i);
|
151
|
+
} else {
|
152
|
+
SyncElementByPushing(i);
|
153
|
+
}
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|
157
|
+
|
158
|
+
|
159
|
+
void VirtualFrame::MakeMergable() {
|
160
|
+
for (int i = 0; i < element_count(); i++) {
|
161
|
+
FrameElement element = elements_[i];
|
162
|
+
|
163
|
+
// All number type information is reset to unknown for a mergable frame
|
164
|
+
// because of incoming back edges.
|
165
|
+
if (element.is_constant() || element.is_copy()) {
|
166
|
+
if (element.is_synced()) {
|
167
|
+
// Just spill.
|
168
|
+
elements_[i] = FrameElement::MemoryElement(TypeInfo::Unknown());
|
169
|
+
} else {
|
170
|
+
// Allocate to a register.
|
171
|
+
FrameElement backing_element; // Invalid if not a copy.
|
172
|
+
if (element.is_copy()) {
|
173
|
+
backing_element = elements_[element.index()];
|
174
|
+
}
|
175
|
+
Result fresh = cgen()->allocator()->Allocate();
|
176
|
+
ASSERT(fresh.is_valid()); // A register was spilled if all were in use.
|
177
|
+
elements_[i] =
|
178
|
+
FrameElement::RegisterElement(fresh.reg(),
|
179
|
+
FrameElement::NOT_SYNCED,
|
180
|
+
TypeInfo::Unknown());
|
181
|
+
Use(fresh.reg(), i);
|
182
|
+
|
183
|
+
// Emit a move.
|
184
|
+
if (element.is_constant()) {
|
185
|
+
if (cgen()->IsUnsafeSmi(element.handle())) {
|
186
|
+
cgen()->MoveUnsafeSmi(fresh.reg(), element.handle());
|
187
|
+
} else {
|
188
|
+
__ Set(fresh.reg(), Immediate(element.handle()));
|
189
|
+
}
|
190
|
+
} else {
|
191
|
+
ASSERT(element.is_copy());
|
192
|
+
// Copies are only backed by register or memory locations.
|
193
|
+
if (backing_element.is_register()) {
|
194
|
+
// The backing store may have been spilled by allocating,
|
195
|
+
// but that's OK. If it was, the value is right where we
|
196
|
+
// want it.
|
197
|
+
if (!fresh.reg().is(backing_element.reg())) {
|
198
|
+
__ mov(fresh.reg(), backing_element.reg());
|
199
|
+
}
|
200
|
+
} else {
|
201
|
+
ASSERT(backing_element.is_memory());
|
202
|
+
__ mov(fresh.reg(), Operand(ebp, fp_relative(element.index())));
|
203
|
+
}
|
204
|
+
}
|
205
|
+
}
|
206
|
+
// No need to set the copied flag --- there are no copies.
|
207
|
+
} else {
|
208
|
+
// Clear the copy flag of non-constant, non-copy elements.
|
209
|
+
// They cannot be copied because copies are not allowed.
|
210
|
+
// The copy flag is not relied on before the end of this loop,
|
211
|
+
// including when registers are spilled.
|
212
|
+
elements_[i].clear_copied();
|
213
|
+
elements_[i].set_type_info(TypeInfo::Unknown());
|
214
|
+
}
|
215
|
+
}
|
216
|
+
}
|
217
|
+
|
218
|
+
|
219
|
+
void VirtualFrame::MergeTo(VirtualFrame* expected) {
|
220
|
+
Comment cmnt(masm(), "[ Merge frame");
|
221
|
+
// We should always be merging the code generator's current frame to an
|
222
|
+
// expected frame.
|
223
|
+
ASSERT(cgen()->frame() == this);
|
224
|
+
|
225
|
+
// Adjust the stack pointer upward (toward the top of the virtual
|
226
|
+
// frame) if necessary.
|
227
|
+
if (stack_pointer_ < expected->stack_pointer_) {
|
228
|
+
int difference = expected->stack_pointer_ - stack_pointer_;
|
229
|
+
stack_pointer_ = expected->stack_pointer_;
|
230
|
+
__ sub(Operand(esp), Immediate(difference * kPointerSize));
|
231
|
+
}
|
232
|
+
|
233
|
+
MergeMoveRegistersToMemory(expected);
|
234
|
+
MergeMoveRegistersToRegisters(expected);
|
235
|
+
MergeMoveMemoryToRegisters(expected);
|
236
|
+
|
237
|
+
// Adjust the stack pointer downward if necessary.
|
238
|
+
if (stack_pointer_ > expected->stack_pointer_) {
|
239
|
+
int difference = stack_pointer_ - expected->stack_pointer_;
|
240
|
+
stack_pointer_ = expected->stack_pointer_;
|
241
|
+
__ add(Operand(esp), Immediate(difference * kPointerSize));
|
242
|
+
}
|
243
|
+
|
244
|
+
// At this point, the frames should be identical.
|
245
|
+
ASSERT(Equals(expected));
|
246
|
+
}
|
247
|
+
|
248
|
+
|
249
|
+
void VirtualFrame::MergeMoveRegistersToMemory(VirtualFrame* expected) {
|
250
|
+
ASSERT(stack_pointer_ >= expected->stack_pointer_);
|
251
|
+
|
252
|
+
// Move registers, constants, and copies to memory. Perform moves
|
253
|
+
// from the top downward in the frame in order to leave the backing
|
254
|
+
// stores of copies in registers.
|
255
|
+
//
|
256
|
+
// Moving memory-backed copies to memory requires a spare register
|
257
|
+
// for the memory-to-memory moves. Since we are performing a merge,
|
258
|
+
// we use esi (which is already saved in the frame). We keep track
|
259
|
+
// of the index of the frame element esi is caching or kIllegalIndex
|
260
|
+
// if esi has not been disturbed.
|
261
|
+
int esi_caches = kIllegalIndex;
|
262
|
+
for (int i = element_count() - 1; i >= 0; i--) {
|
263
|
+
FrameElement target = expected->elements_[i];
|
264
|
+
if (target.is_register()) continue; // Handle registers later.
|
265
|
+
if (target.is_memory()) {
|
266
|
+
FrameElement source = elements_[i];
|
267
|
+
switch (source.type()) {
|
268
|
+
case FrameElement::INVALID:
|
269
|
+
// Not a legal merge move.
|
270
|
+
UNREACHABLE();
|
271
|
+
break;
|
272
|
+
|
273
|
+
case FrameElement::MEMORY:
|
274
|
+
// Already in place.
|
275
|
+
break;
|
276
|
+
|
277
|
+
case FrameElement::REGISTER:
|
278
|
+
Unuse(source.reg());
|
279
|
+
if (!source.is_synced()) {
|
280
|
+
__ mov(Operand(ebp, fp_relative(i)), source.reg());
|
281
|
+
}
|
282
|
+
break;
|
283
|
+
|
284
|
+
case FrameElement::CONSTANT:
|
285
|
+
if (!source.is_synced()) {
|
286
|
+
if (cgen()->IsUnsafeSmi(source.handle())) {
|
287
|
+
esi_caches = i;
|
288
|
+
cgen()->MoveUnsafeSmi(esi, source.handle());
|
289
|
+
__ mov(Operand(ebp, fp_relative(i)), esi);
|
290
|
+
} else {
|
291
|
+
__ Set(Operand(ebp, fp_relative(i)), Immediate(source.handle()));
|
292
|
+
}
|
293
|
+
}
|
294
|
+
break;
|
295
|
+
|
296
|
+
case FrameElement::COPY:
|
297
|
+
if (!source.is_synced()) {
|
298
|
+
int backing_index = source.index();
|
299
|
+
FrameElement backing_element = elements_[backing_index];
|
300
|
+
if (backing_element.is_memory()) {
|
301
|
+
// If we have to spill a register, we spill esi.
|
302
|
+
if (esi_caches != backing_index) {
|
303
|
+
esi_caches = backing_index;
|
304
|
+
__ mov(esi, Operand(ebp, fp_relative(backing_index)));
|
305
|
+
}
|
306
|
+
__ mov(Operand(ebp, fp_relative(i)), esi);
|
307
|
+
} else {
|
308
|
+
ASSERT(backing_element.is_register());
|
309
|
+
__ mov(Operand(ebp, fp_relative(i)), backing_element.reg());
|
310
|
+
}
|
311
|
+
}
|
312
|
+
break;
|
313
|
+
}
|
314
|
+
}
|
315
|
+
elements_[i] = target;
|
316
|
+
}
|
317
|
+
|
318
|
+
if (esi_caches != kIllegalIndex) {
|
319
|
+
__ mov(esi, Operand(ebp, fp_relative(context_index())));
|
320
|
+
}
|
321
|
+
}
|
322
|
+
|
323
|
+
|
324
|
+
void VirtualFrame::MergeMoveRegistersToRegisters(VirtualFrame* expected) {
|
325
|
+
// We have already done X-to-memory moves.
|
326
|
+
ASSERT(stack_pointer_ >= expected->stack_pointer_);
|
327
|
+
|
328
|
+
for (int i = 0; i < RegisterAllocator::kNumRegisters; i++) {
|
329
|
+
// Move the right value into register i if it is currently in a register.
|
330
|
+
int index = expected->register_location(i);
|
331
|
+
int use_index = register_location(i);
|
332
|
+
// Skip if register i is unused in the target or else if source is
|
333
|
+
// not a register (this is not a register-to-register move).
|
334
|
+
if (index == kIllegalIndex || !elements_[index].is_register()) continue;
|
335
|
+
|
336
|
+
Register target = RegisterAllocator::ToRegister(i);
|
337
|
+
Register source = elements_[index].reg();
|
338
|
+
if (index != use_index) {
|
339
|
+
if (use_index == kIllegalIndex) { // Target is currently unused.
|
340
|
+
// Copy contents of source from source to target.
|
341
|
+
// Set frame element register to target.
|
342
|
+
Use(target, index);
|
343
|
+
Unuse(source);
|
344
|
+
__ mov(target, source);
|
345
|
+
} else {
|
346
|
+
// Exchange contents of registers source and target.
|
347
|
+
// Nothing except the register backing use_index has changed.
|
348
|
+
elements_[use_index].set_reg(source);
|
349
|
+
set_register_location(target, index);
|
350
|
+
set_register_location(source, use_index);
|
351
|
+
__ xchg(source, target);
|
352
|
+
}
|
353
|
+
}
|
354
|
+
|
355
|
+
if (!elements_[index].is_synced() &&
|
356
|
+
expected->elements_[index].is_synced()) {
|
357
|
+
__ mov(Operand(ebp, fp_relative(index)), target);
|
358
|
+
}
|
359
|
+
elements_[index] = expected->elements_[index];
|
360
|
+
}
|
361
|
+
}
|
362
|
+
|
363
|
+
|
364
|
+
void VirtualFrame::MergeMoveMemoryToRegisters(VirtualFrame* expected) {
|
365
|
+
// Move memory, constants, and copies to registers. This is the
|
366
|
+
// final step and since it is not done from the bottom up, but in
|
367
|
+
// register code order, we have special code to ensure that the backing
|
368
|
+
// elements of copies are in their correct locations when we
|
369
|
+
// encounter the copies.
|
370
|
+
for (int i = 0; i < RegisterAllocator::kNumRegisters; i++) {
|
371
|
+
int index = expected->register_location(i);
|
372
|
+
if (index != kIllegalIndex) {
|
373
|
+
FrameElement source = elements_[index];
|
374
|
+
FrameElement target = expected->elements_[index];
|
375
|
+
Register target_reg = RegisterAllocator::ToRegister(i);
|
376
|
+
ASSERT(target.reg().is(target_reg));
|
377
|
+
switch (source.type()) {
|
378
|
+
case FrameElement::INVALID: // Fall through.
|
379
|
+
UNREACHABLE();
|
380
|
+
break;
|
381
|
+
case FrameElement::REGISTER:
|
382
|
+
ASSERT(source.Equals(target));
|
383
|
+
// Go to next iteration. Skips Use(target_reg) and syncing
|
384
|
+
// below. It is safe to skip syncing because a target
|
385
|
+
// register frame element would only be synced if all source
|
386
|
+
// elements were.
|
387
|
+
continue;
|
388
|
+
break;
|
389
|
+
case FrameElement::MEMORY:
|
390
|
+
ASSERT(index <= stack_pointer_);
|
391
|
+
__ mov(target_reg, Operand(ebp, fp_relative(index)));
|
392
|
+
break;
|
393
|
+
|
394
|
+
case FrameElement::CONSTANT:
|
395
|
+
if (cgen()->IsUnsafeSmi(source.handle())) {
|
396
|
+
cgen()->MoveUnsafeSmi(target_reg, source.handle());
|
397
|
+
} else {
|
398
|
+
__ Set(target_reg, Immediate(source.handle()));
|
399
|
+
}
|
400
|
+
break;
|
401
|
+
|
402
|
+
case FrameElement::COPY: {
|
403
|
+
int backing_index = source.index();
|
404
|
+
FrameElement backing = elements_[backing_index];
|
405
|
+
ASSERT(backing.is_memory() || backing.is_register());
|
406
|
+
if (backing.is_memory()) {
|
407
|
+
ASSERT(backing_index <= stack_pointer_);
|
408
|
+
// Code optimization if backing store should also move
|
409
|
+
// to a register: move backing store to its register first.
|
410
|
+
if (expected->elements_[backing_index].is_register()) {
|
411
|
+
FrameElement new_backing = expected->elements_[backing_index];
|
412
|
+
Register new_backing_reg = new_backing.reg();
|
413
|
+
ASSERT(!is_used(new_backing_reg));
|
414
|
+
elements_[backing_index] = new_backing;
|
415
|
+
Use(new_backing_reg, backing_index);
|
416
|
+
__ mov(new_backing_reg,
|
417
|
+
Operand(ebp, fp_relative(backing_index)));
|
418
|
+
__ mov(target_reg, new_backing_reg);
|
419
|
+
} else {
|
420
|
+
__ mov(target_reg, Operand(ebp, fp_relative(backing_index)));
|
421
|
+
}
|
422
|
+
} else {
|
423
|
+
__ mov(target_reg, backing.reg());
|
424
|
+
}
|
425
|
+
}
|
426
|
+
}
|
427
|
+
// Ensure the proper sync state.
|
428
|
+
if (target.is_synced() && !source.is_synced()) {
|
429
|
+
__ mov(Operand(ebp, fp_relative(index)), target_reg);
|
430
|
+
}
|
431
|
+
Use(target_reg, index);
|
432
|
+
elements_[index] = target;
|
433
|
+
}
|
434
|
+
}
|
435
|
+
}
|
436
|
+
|
437
|
+
|
438
|
+
void VirtualFrame::Enter() {
|
439
|
+
// Registers live on entry: esp, ebp, esi, edi.
|
440
|
+
Comment cmnt(masm(), "[ Enter JS frame");
|
441
|
+
|
442
|
+
#ifdef DEBUG
|
443
|
+
if (FLAG_debug_code) {
|
444
|
+
// Verify that edi contains a JS function. The following code
|
445
|
+
// relies on eax being available for use.
|
446
|
+
__ test(edi, Immediate(kSmiTagMask));
|
447
|
+
__ Check(not_zero,
|
448
|
+
"VirtualFrame::Enter - edi is not a function (smi check).");
|
449
|
+
__ CmpObjectType(edi, JS_FUNCTION_TYPE, eax);
|
450
|
+
__ Check(equal,
|
451
|
+
"VirtualFrame::Enter - edi is not a function (map check).");
|
452
|
+
}
|
453
|
+
#endif
|
454
|
+
|
455
|
+
EmitPush(ebp);
|
456
|
+
|
457
|
+
__ mov(ebp, Operand(esp));
|
458
|
+
|
459
|
+
// Store the context in the frame. The context is kept in esi and a
|
460
|
+
// copy is stored in the frame. The external reference to esi
|
461
|
+
// remains.
|
462
|
+
EmitPush(esi);
|
463
|
+
|
464
|
+
// Store the function in the frame. The frame owns the register
|
465
|
+
// reference now (ie, it can keep it in edi or spill it later).
|
466
|
+
Push(edi);
|
467
|
+
SyncElementAt(element_count() - 1);
|
468
|
+
cgen()->allocator()->Unuse(edi);
|
469
|
+
}
|
470
|
+
|
471
|
+
|
472
|
+
void VirtualFrame::Exit() {
|
473
|
+
Comment cmnt(masm(), "[ Exit JS frame");
|
474
|
+
// Record the location of the JS exit code for patching when setting
|
475
|
+
// break point.
|
476
|
+
__ RecordJSReturn();
|
477
|
+
|
478
|
+
// Avoid using the leave instruction here, because it is too
|
479
|
+
// short. We need the return sequence to be a least the size of a
|
480
|
+
// call instruction to support patching the exit code in the
|
481
|
+
// debugger. See VisitReturnStatement for the full return sequence.
|
482
|
+
__ mov(esp, Operand(ebp));
|
483
|
+
stack_pointer_ = frame_pointer();
|
484
|
+
for (int i = element_count() - 1; i > stack_pointer_; i--) {
|
485
|
+
FrameElement last = elements_.RemoveLast();
|
486
|
+
if (last.is_register()) {
|
487
|
+
Unuse(last.reg());
|
488
|
+
}
|
489
|
+
}
|
490
|
+
|
491
|
+
EmitPop(ebp);
|
492
|
+
}
|
493
|
+
|
494
|
+
|
495
|
+
void VirtualFrame::AllocateStackSlots() {
|
496
|
+
int count = local_count();
|
497
|
+
if (count > 0) {
|
498
|
+
Comment cmnt(masm(), "[ Allocate space for locals");
|
499
|
+
// The locals are initialized to a constant (the undefined value), but
|
500
|
+
// we sync them with the actual frame to allocate space for spilling
|
501
|
+
// them later. First sync everything above the stack pointer so we can
|
502
|
+
// use pushes to allocate and initialize the locals.
|
503
|
+
SyncRange(stack_pointer_ + 1, element_count() - 1);
|
504
|
+
Handle<Object> undefined = Factory::undefined_value();
|
505
|
+
FrameElement initial_value =
|
506
|
+
FrameElement::ConstantElement(undefined, FrameElement::SYNCED);
|
507
|
+
if (count == 1) {
|
508
|
+
__ push(Immediate(undefined));
|
509
|
+
} else if (count < kLocalVarBound) {
|
510
|
+
// For less locals the unrolled loop is more compact.
|
511
|
+
Result temp = cgen()->allocator()->Allocate();
|
512
|
+
ASSERT(temp.is_valid());
|
513
|
+
__ Set(temp.reg(), Immediate(undefined));
|
514
|
+
for (int i = 0; i < count; i++) {
|
515
|
+
__ push(temp.reg());
|
516
|
+
}
|
517
|
+
} else {
|
518
|
+
// For more locals a loop in generated code is more compact.
|
519
|
+
Label alloc_locals_loop;
|
520
|
+
Result cnt = cgen()->allocator()->Allocate();
|
521
|
+
Result tmp = cgen()->allocator()->Allocate();
|
522
|
+
ASSERT(cnt.is_valid());
|
523
|
+
ASSERT(tmp.is_valid());
|
524
|
+
__ mov(cnt.reg(), Immediate(count));
|
525
|
+
__ mov(tmp.reg(), Immediate(undefined));
|
526
|
+
__ bind(&alloc_locals_loop);
|
527
|
+
__ push(tmp.reg());
|
528
|
+
__ dec(cnt.reg());
|
529
|
+
__ j(not_zero, &alloc_locals_loop);
|
530
|
+
}
|
531
|
+
for (int i = 0; i < count; i++) {
|
532
|
+
elements_.Add(initial_value);
|
533
|
+
stack_pointer_++;
|
534
|
+
}
|
535
|
+
}
|
536
|
+
}
|
537
|
+
|
538
|
+
|
539
|
+
void VirtualFrame::SaveContextRegister() {
|
540
|
+
ASSERT(elements_[context_index()].is_memory());
|
541
|
+
__ mov(Operand(ebp, fp_relative(context_index())), esi);
|
542
|
+
}
|
543
|
+
|
544
|
+
|
545
|
+
void VirtualFrame::RestoreContextRegister() {
|
546
|
+
ASSERT(elements_[context_index()].is_memory());
|
547
|
+
__ mov(esi, Operand(ebp, fp_relative(context_index())));
|
548
|
+
}
|
549
|
+
|
550
|
+
|
551
|
+
void VirtualFrame::PushReceiverSlotAddress() {
|
552
|
+
Result temp = cgen()->allocator()->Allocate();
|
553
|
+
ASSERT(temp.is_valid());
|
554
|
+
__ lea(temp.reg(), ParameterAt(-1));
|
555
|
+
Push(&temp);
|
556
|
+
}
|
557
|
+
|
558
|
+
|
559
|
+
int VirtualFrame::InvalidateFrameSlotAt(int index) {
|
560
|
+
FrameElement original = elements_[index];
|
561
|
+
|
562
|
+
// Is this element the backing store of any copies?
|
563
|
+
int new_backing_index = kIllegalIndex;
|
564
|
+
if (original.is_copied()) {
|
565
|
+
// Verify it is copied, and find first copy.
|
566
|
+
for (int i = index + 1; i < element_count(); i++) {
|
567
|
+
if (elements_[i].is_copy() && elements_[i].index() == index) {
|
568
|
+
new_backing_index = i;
|
569
|
+
break;
|
570
|
+
}
|
571
|
+
}
|
572
|
+
}
|
573
|
+
|
574
|
+
if (new_backing_index == kIllegalIndex) {
|
575
|
+
// No copies found, return kIllegalIndex.
|
576
|
+
if (original.is_register()) {
|
577
|
+
Unuse(original.reg());
|
578
|
+
}
|
579
|
+
elements_[index] = FrameElement::InvalidElement();
|
580
|
+
return kIllegalIndex;
|
581
|
+
}
|
582
|
+
|
583
|
+
// This is the backing store of copies.
|
584
|
+
Register backing_reg;
|
585
|
+
if (original.is_memory()) {
|
586
|
+
Result fresh = cgen()->allocator()->Allocate();
|
587
|
+
ASSERT(fresh.is_valid());
|
588
|
+
Use(fresh.reg(), new_backing_index);
|
589
|
+
backing_reg = fresh.reg();
|
590
|
+
__ mov(backing_reg, Operand(ebp, fp_relative(index)));
|
591
|
+
} else {
|
592
|
+
// The original was in a register.
|
593
|
+
backing_reg = original.reg();
|
594
|
+
set_register_location(backing_reg, new_backing_index);
|
595
|
+
}
|
596
|
+
// Invalidate the element at index.
|
597
|
+
elements_[index] = FrameElement::InvalidElement();
|
598
|
+
// Set the new backing element.
|
599
|
+
if (elements_[new_backing_index].is_synced()) {
|
600
|
+
elements_[new_backing_index] =
|
601
|
+
FrameElement::RegisterElement(backing_reg,
|
602
|
+
FrameElement::SYNCED,
|
603
|
+
original.type_info());
|
604
|
+
} else {
|
605
|
+
elements_[new_backing_index] =
|
606
|
+
FrameElement::RegisterElement(backing_reg,
|
607
|
+
FrameElement::NOT_SYNCED,
|
608
|
+
original.type_info());
|
609
|
+
}
|
610
|
+
// Update the other copies.
|
611
|
+
for (int i = new_backing_index + 1; i < element_count(); i++) {
|
612
|
+
if (elements_[i].is_copy() && elements_[i].index() == index) {
|
613
|
+
elements_[i].set_index(new_backing_index);
|
614
|
+
elements_[new_backing_index].set_copied();
|
615
|
+
}
|
616
|
+
}
|
617
|
+
return new_backing_index;
|
618
|
+
}
|
619
|
+
|
620
|
+
|
621
|
+
void VirtualFrame::TakeFrameSlotAt(int index) {
|
622
|
+
ASSERT(index >= 0);
|
623
|
+
ASSERT(index <= element_count());
|
624
|
+
FrameElement original = elements_[index];
|
625
|
+
int new_backing_store_index = InvalidateFrameSlotAt(index);
|
626
|
+
if (new_backing_store_index != kIllegalIndex) {
|
627
|
+
elements_.Add(CopyElementAt(new_backing_store_index));
|
628
|
+
return;
|
629
|
+
}
|
630
|
+
|
631
|
+
switch (original.type()) {
|
632
|
+
case FrameElement::MEMORY: {
|
633
|
+
// Emit code to load the original element's data into a register.
|
634
|
+
// Push that register as a FrameElement on top of the frame.
|
635
|
+
Result fresh = cgen()->allocator()->Allocate();
|
636
|
+
ASSERT(fresh.is_valid());
|
637
|
+
FrameElement new_element =
|
638
|
+
FrameElement::RegisterElement(fresh.reg(),
|
639
|
+
FrameElement::NOT_SYNCED,
|
640
|
+
original.type_info());
|
641
|
+
Use(fresh.reg(), element_count());
|
642
|
+
elements_.Add(new_element);
|
643
|
+
__ mov(fresh.reg(), Operand(ebp, fp_relative(index)));
|
644
|
+
break;
|
645
|
+
}
|
646
|
+
case FrameElement::REGISTER:
|
647
|
+
Use(original.reg(), element_count());
|
648
|
+
// Fall through.
|
649
|
+
case FrameElement::CONSTANT:
|
650
|
+
case FrameElement::COPY:
|
651
|
+
original.clear_sync();
|
652
|
+
elements_.Add(original);
|
653
|
+
break;
|
654
|
+
case FrameElement::INVALID:
|
655
|
+
UNREACHABLE();
|
656
|
+
break;
|
657
|
+
}
|
658
|
+
}
|
659
|
+
|
660
|
+
|
661
|
+
void VirtualFrame::StoreToFrameSlotAt(int index) {
|
662
|
+
// Store the value on top of the frame to the virtual frame slot at
|
663
|
+
// a given index. The value on top of the frame is left in place.
|
664
|
+
// This is a duplicating operation, so it can create copies.
|
665
|
+
ASSERT(index >= 0);
|
666
|
+
ASSERT(index < element_count());
|
667
|
+
|
668
|
+
int top_index = element_count() - 1;
|
669
|
+
FrameElement top = elements_[top_index];
|
670
|
+
FrameElement original = elements_[index];
|
671
|
+
if (top.is_copy() && top.index() == index) return;
|
672
|
+
ASSERT(top.is_valid());
|
673
|
+
|
674
|
+
InvalidateFrameSlotAt(index);
|
675
|
+
|
676
|
+
// InvalidateFrameSlotAt can potentially change any frame element, due
|
677
|
+
// to spilling registers to allocate temporaries in order to preserve
|
678
|
+
// the copy-on-write semantics of aliased elements. Reload top from
|
679
|
+
// the frame.
|
680
|
+
top = elements_[top_index];
|
681
|
+
|
682
|
+
if (top.is_copy()) {
|
683
|
+
// There are two cases based on the relative positions of the
|
684
|
+
// stored-to slot and the backing slot of the top element.
|
685
|
+
int backing_index = top.index();
|
686
|
+
ASSERT(backing_index != index);
|
687
|
+
if (backing_index < index) {
|
688
|
+
// 1. The top element is a copy of a slot below the stored-to
|
689
|
+
// slot. The stored-to slot becomes an unsynced copy of that
|
690
|
+
// same backing slot.
|
691
|
+
elements_[index] = CopyElementAt(backing_index);
|
692
|
+
} else {
|
693
|
+
// 2. The top element is a copy of a slot above the stored-to
|
694
|
+
// slot. The stored-to slot becomes the new (unsynced) backing
|
695
|
+
// slot and both the top element and the element at the former
|
696
|
+
// backing slot become copies of it. The sync state of the top
|
697
|
+
// and former backing elements is preserved.
|
698
|
+
FrameElement backing_element = elements_[backing_index];
|
699
|
+
ASSERT(backing_element.is_memory() || backing_element.is_register());
|
700
|
+
if (backing_element.is_memory()) {
|
701
|
+
// Because sets of copies are canonicalized to be backed by
|
702
|
+
// their lowest frame element, and because memory frame
|
703
|
+
// elements are backed by the corresponding stack address, we
|
704
|
+
// have to move the actual value down in the stack.
|
705
|
+
//
|
706
|
+
// TODO(209): considering allocating the stored-to slot to the
|
707
|
+
// temp register. Alternatively, allow copies to appear in
|
708
|
+
// any order in the frame and lazily move the value down to
|
709
|
+
// the slot.
|
710
|
+
Result temp = cgen()->allocator()->Allocate();
|
711
|
+
ASSERT(temp.is_valid());
|
712
|
+
__ mov(temp.reg(), Operand(ebp, fp_relative(backing_index)));
|
713
|
+
__ mov(Operand(ebp, fp_relative(index)), temp.reg());
|
714
|
+
} else {
|
715
|
+
set_register_location(backing_element.reg(), index);
|
716
|
+
if (backing_element.is_synced()) {
|
717
|
+
// If the element is a register, we will not actually move
|
718
|
+
// anything on the stack but only update the virtual frame
|
719
|
+
// element.
|
720
|
+
backing_element.clear_sync();
|
721
|
+
}
|
722
|
+
}
|
723
|
+
elements_[index] = backing_element;
|
724
|
+
|
725
|
+
// The old backing element becomes a copy of the new backing
|
726
|
+
// element.
|
727
|
+
FrameElement new_element = CopyElementAt(index);
|
728
|
+
elements_[backing_index] = new_element;
|
729
|
+
if (backing_element.is_synced()) {
|
730
|
+
elements_[backing_index].set_sync();
|
731
|
+
}
|
732
|
+
|
733
|
+
// All the copies of the old backing element (including the top
|
734
|
+
// element) become copies of the new backing element.
|
735
|
+
for (int i = backing_index + 1; i < element_count(); i++) {
|
736
|
+
if (elements_[i].is_copy() && elements_[i].index() == backing_index) {
|
737
|
+
elements_[i].set_index(index);
|
738
|
+
}
|
739
|
+
}
|
740
|
+
}
|
741
|
+
return;
|
742
|
+
}
|
743
|
+
|
744
|
+
// Move the top element to the stored-to slot and replace it (the
|
745
|
+
// top element) with a copy.
|
746
|
+
elements_[index] = top;
|
747
|
+
if (top.is_memory()) {
|
748
|
+
// TODO(209): consider allocating the stored-to slot to the temp
|
749
|
+
// register. Alternatively, allow copies to appear in any order
|
750
|
+
// in the frame and lazily move the value down to the slot.
|
751
|
+
FrameElement new_top = CopyElementAt(index);
|
752
|
+
new_top.set_sync();
|
753
|
+
elements_[top_index] = new_top;
|
754
|
+
|
755
|
+
// The sync state of the former top element is correct (synced).
|
756
|
+
// Emit code to move the value down in the frame.
|
757
|
+
Result temp = cgen()->allocator()->Allocate();
|
758
|
+
ASSERT(temp.is_valid());
|
759
|
+
__ mov(temp.reg(), Operand(esp, 0));
|
760
|
+
__ mov(Operand(ebp, fp_relative(index)), temp.reg());
|
761
|
+
} else if (top.is_register()) {
|
762
|
+
set_register_location(top.reg(), index);
|
763
|
+
// The stored-to slot has the (unsynced) register reference and
|
764
|
+
// the top element becomes a copy. The sync state of the top is
|
765
|
+
// preserved.
|
766
|
+
FrameElement new_top = CopyElementAt(index);
|
767
|
+
if (top.is_synced()) {
|
768
|
+
new_top.set_sync();
|
769
|
+
elements_[index].clear_sync();
|
770
|
+
}
|
771
|
+
elements_[top_index] = new_top;
|
772
|
+
} else {
|
773
|
+
// The stored-to slot holds the same value as the top but
|
774
|
+
// unsynced. (We do not have copies of constants yet.)
|
775
|
+
ASSERT(top.is_constant());
|
776
|
+
elements_[index].clear_sync();
|
777
|
+
}
|
778
|
+
}
|
779
|
+
|
780
|
+
|
781
|
+
void VirtualFrame::UntaggedPushFrameSlotAt(int index) {
|
782
|
+
ASSERT(index >= 0);
|
783
|
+
ASSERT(index <= element_count());
|
784
|
+
FrameElement original = elements_[index];
|
785
|
+
if (original.is_copy()) {
|
786
|
+
original = elements_[original.index()];
|
787
|
+
index = original.index();
|
788
|
+
}
|
789
|
+
|
790
|
+
switch (original.type()) {
|
791
|
+
case FrameElement::MEMORY:
|
792
|
+
case FrameElement::REGISTER: {
|
793
|
+
Label done;
|
794
|
+
// Emit code to load the original element's data into a register.
|
795
|
+
// Push that register as a FrameElement on top of the frame.
|
796
|
+
Result fresh = cgen()->allocator()->Allocate();
|
797
|
+
ASSERT(fresh.is_valid());
|
798
|
+
Register fresh_reg = fresh.reg();
|
799
|
+
FrameElement new_element =
|
800
|
+
FrameElement::RegisterElement(fresh_reg,
|
801
|
+
FrameElement::NOT_SYNCED,
|
802
|
+
original.type_info());
|
803
|
+
new_element.set_untagged_int32(true);
|
804
|
+
Use(fresh_reg, element_count());
|
805
|
+
fresh.Unuse(); // BreakTarget does not handle a live Result well.
|
806
|
+
elements_.Add(new_element);
|
807
|
+
if (original.is_register()) {
|
808
|
+
__ mov(fresh_reg, original.reg());
|
809
|
+
} else {
|
810
|
+
ASSERT(original.is_memory());
|
811
|
+
__ mov(fresh_reg, Operand(ebp, fp_relative(index)));
|
812
|
+
}
|
813
|
+
// Now convert the value to int32, or bail out.
|
814
|
+
if (original.type_info().IsSmi()) {
|
815
|
+
__ SmiUntag(fresh_reg);
|
816
|
+
// Pushing the element is completely done.
|
817
|
+
} else {
|
818
|
+
__ test(fresh_reg, Immediate(kSmiTagMask));
|
819
|
+
Label not_smi;
|
820
|
+
__ j(not_zero, ¬_smi);
|
821
|
+
__ SmiUntag(fresh_reg);
|
822
|
+
__ jmp(&done);
|
823
|
+
|
824
|
+
__ bind(¬_smi);
|
825
|
+
if (!original.type_info().IsNumber()) {
|
826
|
+
__ cmp(FieldOperand(fresh_reg, HeapObject::kMapOffset),
|
827
|
+
Factory::heap_number_map());
|
828
|
+
cgen()->unsafe_bailout_->Branch(not_equal);
|
829
|
+
}
|
830
|
+
|
831
|
+
if (!CpuFeatures::IsSupported(SSE2)) {
|
832
|
+
UNREACHABLE();
|
833
|
+
} else {
|
834
|
+
CpuFeatures::Scope use_sse2(SSE2);
|
835
|
+
__ movdbl(xmm0, FieldOperand(fresh_reg, HeapNumber::kValueOffset));
|
836
|
+
__ cvttsd2si(fresh_reg, Operand(xmm0));
|
837
|
+
__ cvtsi2sd(xmm1, Operand(fresh_reg));
|
838
|
+
__ ucomisd(xmm0, xmm1);
|
839
|
+
cgen()->unsafe_bailout_->Branch(not_equal);
|
840
|
+
cgen()->unsafe_bailout_->Branch(parity_even); // NaN.
|
841
|
+
// Test for negative zero.
|
842
|
+
__ test(fresh_reg, Operand(fresh_reg));
|
843
|
+
__ j(not_zero, &done);
|
844
|
+
__ movmskpd(fresh_reg, xmm0);
|
845
|
+
__ and_(fresh_reg, 0x1);
|
846
|
+
cgen()->unsafe_bailout_->Branch(not_equal);
|
847
|
+
}
|
848
|
+
__ bind(&done);
|
849
|
+
}
|
850
|
+
break;
|
851
|
+
}
|
852
|
+
case FrameElement::CONSTANT:
|
853
|
+
elements_.Add(CopyElementAt(index));
|
854
|
+
elements_[element_count() - 1].set_untagged_int32(true);
|
855
|
+
break;
|
856
|
+
case FrameElement::COPY:
|
857
|
+
case FrameElement::INVALID:
|
858
|
+
UNREACHABLE();
|
859
|
+
break;
|
860
|
+
}
|
861
|
+
}
|
862
|
+
|
863
|
+
|
864
|
+
void VirtualFrame::PushTryHandler(HandlerType type) {
|
865
|
+
ASSERT(cgen()->HasValidEntryRegisters());
|
866
|
+
// Grow the expression stack by handler size less one (the return
|
867
|
+
// address is already pushed by a call instruction).
|
868
|
+
Adjust(kHandlerSize - 1);
|
869
|
+
__ PushTryHandler(IN_JAVASCRIPT, type);
|
870
|
+
}
|
871
|
+
|
872
|
+
|
873
|
+
Result VirtualFrame::RawCallStub(CodeStub* stub) {
|
874
|
+
ASSERT(cgen()->HasValidEntryRegisters());
|
875
|
+
__ CallStub(stub);
|
876
|
+
Result result = cgen()->allocator()->Allocate(eax);
|
877
|
+
ASSERT(result.is_valid());
|
878
|
+
return result;
|
879
|
+
}
|
880
|
+
|
881
|
+
|
882
|
+
Result VirtualFrame::CallStub(CodeStub* stub, Result* arg) {
|
883
|
+
PrepareForCall(0, 0);
|
884
|
+
arg->ToRegister(eax);
|
885
|
+
arg->Unuse();
|
886
|
+
return RawCallStub(stub);
|
887
|
+
}
|
888
|
+
|
889
|
+
|
890
|
+
Result VirtualFrame::CallStub(CodeStub* stub, Result* arg0, Result* arg1) {
|
891
|
+
PrepareForCall(0, 0);
|
892
|
+
|
893
|
+
if (arg0->is_register() && arg0->reg().is(eax)) {
|
894
|
+
if (arg1->is_register() && arg1->reg().is(edx)) {
|
895
|
+
// Wrong registers.
|
896
|
+
__ xchg(eax, edx);
|
897
|
+
} else {
|
898
|
+
// Register edx is free for arg0, which frees eax for arg1.
|
899
|
+
arg0->ToRegister(edx);
|
900
|
+
arg1->ToRegister(eax);
|
901
|
+
}
|
902
|
+
} else {
|
903
|
+
// Register eax is free for arg1, which guarantees edx is free for
|
904
|
+
// arg0.
|
905
|
+
arg1->ToRegister(eax);
|
906
|
+
arg0->ToRegister(edx);
|
907
|
+
}
|
908
|
+
|
909
|
+
arg0->Unuse();
|
910
|
+
arg1->Unuse();
|
911
|
+
return RawCallStub(stub);
|
912
|
+
}
|
913
|
+
|
914
|
+
|
915
|
+
Result VirtualFrame::CallJSFunction(int arg_count) {
|
916
|
+
Result function = Pop();
|
917
|
+
|
918
|
+
// InvokeFunction requires function in edi. Move it in there.
|
919
|
+
function.ToRegister(edi);
|
920
|
+
function.Unuse();
|
921
|
+
|
922
|
+
// +1 for receiver.
|
923
|
+
PrepareForCall(arg_count + 1, arg_count + 1);
|
924
|
+
ASSERT(cgen()->HasValidEntryRegisters());
|
925
|
+
ParameterCount count(arg_count);
|
926
|
+
__ InvokeFunction(edi, count, CALL_FUNCTION);
|
927
|
+
RestoreContextRegister();
|
928
|
+
Result result = cgen()->allocator()->Allocate(eax);
|
929
|
+
ASSERT(result.is_valid());
|
930
|
+
return result;
|
931
|
+
}
|
932
|
+
|
933
|
+
|
934
|
+
Result VirtualFrame::CallRuntime(Runtime::Function* f, int arg_count) {
|
935
|
+
PrepareForCall(arg_count, arg_count);
|
936
|
+
ASSERT(cgen()->HasValidEntryRegisters());
|
937
|
+
__ CallRuntime(f, arg_count);
|
938
|
+
Result result = cgen()->allocator()->Allocate(eax);
|
939
|
+
ASSERT(result.is_valid());
|
940
|
+
return result;
|
941
|
+
}
|
942
|
+
|
943
|
+
|
944
|
+
Result VirtualFrame::CallRuntime(Runtime::FunctionId id, int arg_count) {
|
945
|
+
PrepareForCall(arg_count, arg_count);
|
946
|
+
ASSERT(cgen()->HasValidEntryRegisters());
|
947
|
+
__ CallRuntime(id, arg_count);
|
948
|
+
Result result = cgen()->allocator()->Allocate(eax);
|
949
|
+
ASSERT(result.is_valid());
|
950
|
+
return result;
|
951
|
+
}
|
952
|
+
|
953
|
+
|
954
|
+
#ifdef ENABLE_DEBUGGER_SUPPORT
|
955
|
+
void VirtualFrame::DebugBreak() {
|
956
|
+
PrepareForCall(0, 0);
|
957
|
+
ASSERT(cgen()->HasValidEntryRegisters());
|
958
|
+
__ DebugBreak();
|
959
|
+
Result result = cgen()->allocator()->Allocate(eax);
|
960
|
+
ASSERT(result.is_valid());
|
961
|
+
}
|
962
|
+
#endif
|
963
|
+
|
964
|
+
|
965
|
+
Result VirtualFrame::InvokeBuiltin(Builtins::JavaScript id,
|
966
|
+
InvokeFlag flag,
|
967
|
+
int arg_count) {
|
968
|
+
PrepareForCall(arg_count, arg_count);
|
969
|
+
ASSERT(cgen()->HasValidEntryRegisters());
|
970
|
+
__ InvokeBuiltin(id, flag);
|
971
|
+
Result result = cgen()->allocator()->Allocate(eax);
|
972
|
+
ASSERT(result.is_valid());
|
973
|
+
return result;
|
974
|
+
}
|
975
|
+
|
976
|
+
|
977
|
+
Result VirtualFrame::RawCallCodeObject(Handle<Code> code,
|
978
|
+
RelocInfo::Mode rmode) {
|
979
|
+
ASSERT(cgen()->HasValidEntryRegisters());
|
980
|
+
__ call(code, rmode);
|
981
|
+
Result result = cgen()->allocator()->Allocate(eax);
|
982
|
+
ASSERT(result.is_valid());
|
983
|
+
return result;
|
984
|
+
}
|
985
|
+
|
986
|
+
|
987
|
+
// This function assumes that the only results that could be in a_reg or b_reg
|
988
|
+
// are a and b. Other results can be live, but must not be in a_reg or b_reg.
|
989
|
+
void VirtualFrame::MoveResultsToRegisters(Result* a,
|
990
|
+
Result* b,
|
991
|
+
Register a_reg,
|
992
|
+
Register b_reg) {
|
993
|
+
if (a->is_register() && a->reg().is(a_reg)) {
|
994
|
+
b->ToRegister(b_reg);
|
995
|
+
} else if (!cgen()->allocator()->is_used(a_reg)) {
|
996
|
+
a->ToRegister(a_reg);
|
997
|
+
b->ToRegister(b_reg);
|
998
|
+
} else if (cgen()->allocator()->is_used(b_reg)) {
|
999
|
+
// a must be in b_reg, b in a_reg.
|
1000
|
+
__ xchg(a_reg, b_reg);
|
1001
|
+
// Results a and b will be invalidated, so it is ok if they are switched.
|
1002
|
+
} else {
|
1003
|
+
b->ToRegister(b_reg);
|
1004
|
+
a->ToRegister(a_reg);
|
1005
|
+
}
|
1006
|
+
a->Unuse();
|
1007
|
+
b->Unuse();
|
1008
|
+
}
|
1009
|
+
|
1010
|
+
|
1011
|
+
Result VirtualFrame::CallLoadIC(RelocInfo::Mode mode) {
|
1012
|
+
// Name and receiver are on the top of the frame. The IC expects
|
1013
|
+
// name in ecx and receiver in eax.
|
1014
|
+
Result name = Pop();
|
1015
|
+
Result receiver = Pop();
|
1016
|
+
PrepareForCall(0, 0); // No stack arguments.
|
1017
|
+
MoveResultsToRegisters(&name, &receiver, ecx, eax);
|
1018
|
+
|
1019
|
+
Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize));
|
1020
|
+
return RawCallCodeObject(ic, mode);
|
1021
|
+
}
|
1022
|
+
|
1023
|
+
|
1024
|
+
Result VirtualFrame::CallKeyedLoadIC(RelocInfo::Mode mode) {
|
1025
|
+
// Key and receiver are on top of the frame. Put them in eax and edx.
|
1026
|
+
Result key = Pop();
|
1027
|
+
Result receiver = Pop();
|
1028
|
+
PrepareForCall(0, 0);
|
1029
|
+
MoveResultsToRegisters(&key, &receiver, eax, edx);
|
1030
|
+
|
1031
|
+
Handle<Code> ic(Builtins::builtin(Builtins::KeyedLoadIC_Initialize));
|
1032
|
+
return RawCallCodeObject(ic, mode);
|
1033
|
+
}
|
1034
|
+
|
1035
|
+
|
1036
|
+
Result VirtualFrame::CallStoreIC(Handle<String> name,
|
1037
|
+
bool is_contextual,
|
1038
|
+
StrictModeFlag strict_mode) {
|
1039
|
+
// Value and (if not contextual) receiver are on top of the frame.
|
1040
|
+
// The IC expects name in ecx, value in eax, and receiver in edx.
|
1041
|
+
Handle<Code> ic(Builtins::builtin(
|
1042
|
+
(strict_mode == kStrictMode) ? Builtins::StoreIC_Initialize_Strict
|
1043
|
+
: Builtins::StoreIC_Initialize));
|
1044
|
+
|
1045
|
+
Result value = Pop();
|
1046
|
+
RelocInfo::Mode mode;
|
1047
|
+
if (is_contextual) {
|
1048
|
+
PrepareForCall(0, 0);
|
1049
|
+
value.ToRegister(eax);
|
1050
|
+
__ mov(edx, Operand(esi, Context::SlotOffset(Context::GLOBAL_INDEX)));
|
1051
|
+
value.Unuse();
|
1052
|
+
mode = RelocInfo::CODE_TARGET_CONTEXT;
|
1053
|
+
} else {
|
1054
|
+
Result receiver = Pop();
|
1055
|
+
PrepareForCall(0, 0);
|
1056
|
+
MoveResultsToRegisters(&value, &receiver, eax, edx);
|
1057
|
+
mode = RelocInfo::CODE_TARGET;
|
1058
|
+
}
|
1059
|
+
__ mov(ecx, name);
|
1060
|
+
return RawCallCodeObject(ic, mode);
|
1061
|
+
}
|
1062
|
+
|
1063
|
+
|
1064
|
+
Result VirtualFrame::CallKeyedStoreIC(StrictModeFlag strict_mode) {
|
1065
|
+
// Value, key, and receiver are on the top of the frame. The IC
|
1066
|
+
// expects value in eax, key in ecx, and receiver in edx.
|
1067
|
+
Result value = Pop();
|
1068
|
+
Result key = Pop();
|
1069
|
+
Result receiver = Pop();
|
1070
|
+
PrepareForCall(0, 0);
|
1071
|
+
if (!cgen()->allocator()->is_used(eax) ||
|
1072
|
+
(value.is_register() && value.reg().is(eax))) {
|
1073
|
+
if (!cgen()->allocator()->is_used(eax)) {
|
1074
|
+
value.ToRegister(eax);
|
1075
|
+
}
|
1076
|
+
MoveResultsToRegisters(&key, &receiver, ecx, edx);
|
1077
|
+
value.Unuse();
|
1078
|
+
} else if (!cgen()->allocator()->is_used(ecx) ||
|
1079
|
+
(key.is_register() && key.reg().is(ecx))) {
|
1080
|
+
if (!cgen()->allocator()->is_used(ecx)) {
|
1081
|
+
key.ToRegister(ecx);
|
1082
|
+
}
|
1083
|
+
MoveResultsToRegisters(&value, &receiver, eax, edx);
|
1084
|
+
key.Unuse();
|
1085
|
+
} else if (!cgen()->allocator()->is_used(edx) ||
|
1086
|
+
(receiver.is_register() && receiver.reg().is(edx))) {
|
1087
|
+
if (!cgen()->allocator()->is_used(edx)) {
|
1088
|
+
receiver.ToRegister(edx);
|
1089
|
+
}
|
1090
|
+
MoveResultsToRegisters(&key, &value, ecx, eax);
|
1091
|
+
receiver.Unuse();
|
1092
|
+
} else {
|
1093
|
+
// All three registers are used, and no value is in the correct place.
|
1094
|
+
// We have one of the two circular permutations of eax, ecx, edx.
|
1095
|
+
ASSERT(value.is_register());
|
1096
|
+
if (value.reg().is(ecx)) {
|
1097
|
+
__ xchg(eax, edx);
|
1098
|
+
__ xchg(eax, ecx);
|
1099
|
+
} else {
|
1100
|
+
__ xchg(eax, ecx);
|
1101
|
+
__ xchg(eax, edx);
|
1102
|
+
}
|
1103
|
+
value.Unuse();
|
1104
|
+
key.Unuse();
|
1105
|
+
receiver.Unuse();
|
1106
|
+
}
|
1107
|
+
|
1108
|
+
Handle<Code> ic(Builtins::builtin(
|
1109
|
+
(strict_mode == kStrictMode) ? Builtins::KeyedStoreIC_Initialize_Strict
|
1110
|
+
: Builtins::KeyedStoreIC_Initialize));
|
1111
|
+
return RawCallCodeObject(ic, RelocInfo::CODE_TARGET);
|
1112
|
+
}
|
1113
|
+
|
1114
|
+
|
1115
|
+
Result VirtualFrame::CallCallIC(RelocInfo::Mode mode,
|
1116
|
+
int arg_count,
|
1117
|
+
int loop_nesting) {
|
1118
|
+
// Function name, arguments, and receiver are on top of the frame.
|
1119
|
+
// The IC expects the name in ecx and the rest on the stack and
|
1120
|
+
// drops them all.
|
1121
|
+
InLoopFlag in_loop = loop_nesting > 0 ? IN_LOOP : NOT_IN_LOOP;
|
1122
|
+
Handle<Code> ic = StubCache::ComputeCallInitialize(arg_count, in_loop);
|
1123
|
+
// Spill args, receiver, and function. The call will drop args and
|
1124
|
+
// receiver.
|
1125
|
+
Result name = Pop();
|
1126
|
+
PrepareForCall(arg_count + 1, arg_count + 1); // Arguments + receiver.
|
1127
|
+
name.ToRegister(ecx);
|
1128
|
+
name.Unuse();
|
1129
|
+
return RawCallCodeObject(ic, mode);
|
1130
|
+
}
|
1131
|
+
|
1132
|
+
|
1133
|
+
Result VirtualFrame::CallKeyedCallIC(RelocInfo::Mode mode,
|
1134
|
+
int arg_count,
|
1135
|
+
int loop_nesting) {
|
1136
|
+
// Function name, arguments, and receiver are on top of the frame.
|
1137
|
+
// The IC expects the name in ecx and the rest on the stack and
|
1138
|
+
// drops them all.
|
1139
|
+
InLoopFlag in_loop = loop_nesting > 0 ? IN_LOOP : NOT_IN_LOOP;
|
1140
|
+
Handle<Code> ic = StubCache::ComputeKeyedCallInitialize(arg_count, in_loop);
|
1141
|
+
// Spill args, receiver, and function. The call will drop args and
|
1142
|
+
// receiver.
|
1143
|
+
Result name = Pop();
|
1144
|
+
PrepareForCall(arg_count + 1, arg_count + 1); // Arguments + receiver.
|
1145
|
+
name.ToRegister(ecx);
|
1146
|
+
name.Unuse();
|
1147
|
+
return RawCallCodeObject(ic, mode);
|
1148
|
+
}
|
1149
|
+
|
1150
|
+
|
1151
|
+
Result VirtualFrame::CallConstructor(int arg_count) {
|
1152
|
+
// Arguments, receiver, and function are on top of the frame. The
|
1153
|
+
// IC expects arg count in eax, function in edi, and the arguments
|
1154
|
+
// and receiver on the stack.
|
1155
|
+
Handle<Code> ic(Builtins::builtin(Builtins::JSConstructCall));
|
1156
|
+
// Duplicate the function before preparing the frame.
|
1157
|
+
PushElementAt(arg_count);
|
1158
|
+
Result function = Pop();
|
1159
|
+
PrepareForCall(arg_count + 1, arg_count + 1); // Spill function and args.
|
1160
|
+
function.ToRegister(edi);
|
1161
|
+
|
1162
|
+
// Constructors are called with the number of arguments in register
|
1163
|
+
// eax for now. Another option would be to have separate construct
|
1164
|
+
// call trampolines per different arguments counts encountered.
|
1165
|
+
Result num_args = cgen()->allocator()->Allocate(eax);
|
1166
|
+
ASSERT(num_args.is_valid());
|
1167
|
+
__ Set(num_args.reg(), Immediate(arg_count));
|
1168
|
+
|
1169
|
+
function.Unuse();
|
1170
|
+
num_args.Unuse();
|
1171
|
+
return RawCallCodeObject(ic, RelocInfo::CONSTRUCT_CALL);
|
1172
|
+
}
|
1173
|
+
|
1174
|
+
|
1175
|
+
void VirtualFrame::Drop(int count) {
|
1176
|
+
ASSERT(count >= 0);
|
1177
|
+
ASSERT(height() >= count);
|
1178
|
+
int num_virtual_elements = (element_count() - 1) - stack_pointer_;
|
1179
|
+
|
1180
|
+
// Emit code to lower the stack pointer if necessary.
|
1181
|
+
if (num_virtual_elements < count) {
|
1182
|
+
int num_dropped = count - num_virtual_elements;
|
1183
|
+
stack_pointer_ -= num_dropped;
|
1184
|
+
__ add(Operand(esp), Immediate(num_dropped * kPointerSize));
|
1185
|
+
}
|
1186
|
+
|
1187
|
+
// Discard elements from the virtual frame and free any registers.
|
1188
|
+
for (int i = 0; i < count; i++) {
|
1189
|
+
FrameElement dropped = elements_.RemoveLast();
|
1190
|
+
if (dropped.is_register()) {
|
1191
|
+
Unuse(dropped.reg());
|
1192
|
+
}
|
1193
|
+
}
|
1194
|
+
}
|
1195
|
+
|
1196
|
+
|
1197
|
+
Result VirtualFrame::Pop() {
|
1198
|
+
FrameElement element = elements_.RemoveLast();
|
1199
|
+
int index = element_count();
|
1200
|
+
ASSERT(element.is_valid());
|
1201
|
+
ASSERT(element.is_untagged_int32() == cgen()->in_safe_int32_mode());
|
1202
|
+
|
1203
|
+
// Get number type information of the result.
|
1204
|
+
TypeInfo info;
|
1205
|
+
if (!element.is_copy()) {
|
1206
|
+
info = element.type_info();
|
1207
|
+
} else {
|
1208
|
+
info = elements_[element.index()].type_info();
|
1209
|
+
}
|
1210
|
+
|
1211
|
+
bool pop_needed = (stack_pointer_ == index);
|
1212
|
+
if (pop_needed) {
|
1213
|
+
stack_pointer_--;
|
1214
|
+
if (element.is_memory()) {
|
1215
|
+
Result temp = cgen()->allocator()->Allocate();
|
1216
|
+
ASSERT(temp.is_valid());
|
1217
|
+
__ pop(temp.reg());
|
1218
|
+
temp.set_type_info(info);
|
1219
|
+
temp.set_untagged_int32(element.is_untagged_int32());
|
1220
|
+
return temp;
|
1221
|
+
}
|
1222
|
+
|
1223
|
+
__ add(Operand(esp), Immediate(kPointerSize));
|
1224
|
+
}
|
1225
|
+
ASSERT(!element.is_memory());
|
1226
|
+
|
1227
|
+
// The top element is a register, constant, or a copy. Unuse
|
1228
|
+
// registers and follow copies to their backing store.
|
1229
|
+
if (element.is_register()) {
|
1230
|
+
Unuse(element.reg());
|
1231
|
+
} else if (element.is_copy()) {
|
1232
|
+
ASSERT(!element.is_untagged_int32());
|
1233
|
+
ASSERT(element.index() < index);
|
1234
|
+
index = element.index();
|
1235
|
+
element = elements_[index];
|
1236
|
+
}
|
1237
|
+
ASSERT(!element.is_copy());
|
1238
|
+
|
1239
|
+
// The element is memory, a register, or a constant.
|
1240
|
+
if (element.is_memory()) {
|
1241
|
+
// Memory elements could only be the backing store of a copy.
|
1242
|
+
// Allocate the original to a register.
|
1243
|
+
ASSERT(index <= stack_pointer_);
|
1244
|
+
ASSERT(!element.is_untagged_int32());
|
1245
|
+
Result temp = cgen()->allocator()->Allocate();
|
1246
|
+
ASSERT(temp.is_valid());
|
1247
|
+
Use(temp.reg(), index);
|
1248
|
+
FrameElement new_element =
|
1249
|
+
FrameElement::RegisterElement(temp.reg(),
|
1250
|
+
FrameElement::SYNCED,
|
1251
|
+
element.type_info());
|
1252
|
+
// Preserve the copy flag on the element.
|
1253
|
+
if (element.is_copied()) new_element.set_copied();
|
1254
|
+
elements_[index] = new_element;
|
1255
|
+
__ mov(temp.reg(), Operand(ebp, fp_relative(index)));
|
1256
|
+
return Result(temp.reg(), info);
|
1257
|
+
} else if (element.is_register()) {
|
1258
|
+
Result return_value(element.reg(), info);
|
1259
|
+
return_value.set_untagged_int32(element.is_untagged_int32());
|
1260
|
+
return return_value;
|
1261
|
+
} else {
|
1262
|
+
ASSERT(element.is_constant());
|
1263
|
+
Result return_value(element.handle());
|
1264
|
+
return_value.set_untagged_int32(element.is_untagged_int32());
|
1265
|
+
return return_value;
|
1266
|
+
}
|
1267
|
+
}
|
1268
|
+
|
1269
|
+
|
1270
|
+
void VirtualFrame::EmitPop(Register reg) {
|
1271
|
+
ASSERT(stack_pointer_ == element_count() - 1);
|
1272
|
+
stack_pointer_--;
|
1273
|
+
elements_.RemoveLast();
|
1274
|
+
__ pop(reg);
|
1275
|
+
}
|
1276
|
+
|
1277
|
+
|
1278
|
+
void VirtualFrame::EmitPop(Operand operand) {
|
1279
|
+
ASSERT(stack_pointer_ == element_count() - 1);
|
1280
|
+
stack_pointer_--;
|
1281
|
+
elements_.RemoveLast();
|
1282
|
+
__ pop(operand);
|
1283
|
+
}
|
1284
|
+
|
1285
|
+
|
1286
|
+
void VirtualFrame::EmitPush(Register reg, TypeInfo info) {
|
1287
|
+
ASSERT(stack_pointer_ == element_count() - 1);
|
1288
|
+
elements_.Add(FrameElement::MemoryElement(info));
|
1289
|
+
stack_pointer_++;
|
1290
|
+
__ push(reg);
|
1291
|
+
}
|
1292
|
+
|
1293
|
+
|
1294
|
+
void VirtualFrame::EmitPush(Operand operand, TypeInfo info) {
|
1295
|
+
ASSERT(stack_pointer_ == element_count() - 1);
|
1296
|
+
elements_.Add(FrameElement::MemoryElement(info));
|
1297
|
+
stack_pointer_++;
|
1298
|
+
__ push(operand);
|
1299
|
+
}
|
1300
|
+
|
1301
|
+
|
1302
|
+
void VirtualFrame::EmitPush(Immediate immediate, TypeInfo info) {
|
1303
|
+
ASSERT(stack_pointer_ == element_count() - 1);
|
1304
|
+
elements_.Add(FrameElement::MemoryElement(info));
|
1305
|
+
stack_pointer_++;
|
1306
|
+
__ push(immediate);
|
1307
|
+
}
|
1308
|
+
|
1309
|
+
|
1310
|
+
void VirtualFrame::PushUntaggedElement(Handle<Object> value) {
|
1311
|
+
ASSERT(!ConstantPoolOverflowed());
|
1312
|
+
elements_.Add(FrameElement::ConstantElement(value, FrameElement::NOT_SYNCED));
|
1313
|
+
elements_[element_count() - 1].set_untagged_int32(true);
|
1314
|
+
}
|
1315
|
+
|
1316
|
+
|
1317
|
+
void VirtualFrame::Push(Expression* expr) {
|
1318
|
+
ASSERT(expr->IsTrivial());
|
1319
|
+
|
1320
|
+
Literal* lit = expr->AsLiteral();
|
1321
|
+
if (lit != NULL) {
|
1322
|
+
Push(lit->handle());
|
1323
|
+
return;
|
1324
|
+
}
|
1325
|
+
|
1326
|
+
VariableProxy* proxy = expr->AsVariableProxy();
|
1327
|
+
if (proxy != NULL) {
|
1328
|
+
Slot* slot = proxy->var()->AsSlot();
|
1329
|
+
if (slot->type() == Slot::LOCAL) {
|
1330
|
+
PushLocalAt(slot->index());
|
1331
|
+
return;
|
1332
|
+
}
|
1333
|
+
if (slot->type() == Slot::PARAMETER) {
|
1334
|
+
PushParameterAt(slot->index());
|
1335
|
+
return;
|
1336
|
+
}
|
1337
|
+
}
|
1338
|
+
UNREACHABLE();
|
1339
|
+
}
|
1340
|
+
|
1341
|
+
|
1342
|
+
void VirtualFrame::Push(Handle<Object> value) {
|
1343
|
+
if (ConstantPoolOverflowed()) {
|
1344
|
+
Result temp = cgen()->allocator()->Allocate();
|
1345
|
+
ASSERT(temp.is_valid());
|
1346
|
+
__ Set(temp.reg(), Immediate(value));
|
1347
|
+
Push(&temp);
|
1348
|
+
} else {
|
1349
|
+
FrameElement element =
|
1350
|
+
FrameElement::ConstantElement(value, FrameElement::NOT_SYNCED);
|
1351
|
+
elements_.Add(element);
|
1352
|
+
}
|
1353
|
+
}
|
1354
|
+
|
1355
|
+
|
1356
|
+
#undef __
|
1357
|
+
|
1358
|
+
} } // namespace v8::internal
|
1359
|
+
|
1360
|
+
#endif // V8_TARGET_ARCH_IA32
|