therubyracer 0.9.0beta2 → 0.9.0beta3
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/.gitmodules +3 -0
- data/ext/v8/upstream/Makefile +1 -2
- data/ext/v8/upstream/v8/.gitignore +33 -0
- data/ext/v8/upstream/v8/AUTHORS +42 -0
- data/ext/v8/upstream/v8/ChangeLog +2663 -0
- data/ext/v8/upstream/{3.1.8 → v8}/LICENSE +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/LICENSE.strongtalk +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/LICENSE.v8 +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/LICENSE.valgrind +0 -0
- data/ext/v8/upstream/v8/SConstruct +1473 -0
- data/ext/v8/upstream/{3.1.8 → v8}/build/README.txt +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/build/all.gyp +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/build/armu.gypi +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/build/common.gypi +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/build/gyp_v8 +0 -0
- data/ext/v8/upstream/v8/include/v8-debug.h +394 -0
- data/ext/v8/upstream/v8/include/v8-preparser.h +116 -0
- data/ext/v8/upstream/v8/include/v8-profiler.h +505 -0
- data/ext/v8/upstream/v8/include/v8-testing.h +104 -0
- data/ext/v8/upstream/v8/include/v8.h +4000 -0
- data/ext/v8/upstream/{3.1.8 → v8}/include/v8stdint.h +0 -0
- data/ext/v8/upstream/v8/preparser/SConscript +38 -0
- data/ext/v8/upstream/v8/preparser/preparser-process.cc +169 -0
- data/ext/v8/upstream/v8/src/SConscript +380 -0
- data/ext/v8/upstream/v8/src/accessors.cc +766 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/accessors.h +0 -0
- data/ext/v8/upstream/v8/src/allocation-inl.h +49 -0
- data/ext/v8/upstream/v8/src/allocation.cc +122 -0
- data/ext/v8/upstream/v8/src/allocation.h +143 -0
- data/ext/v8/upstream/v8/src/api.cc +5678 -0
- data/ext/v8/upstream/v8/src/api.h +572 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/apinatives.js +0 -0
- data/ext/v8/upstream/v8/src/apiutils.h +73 -0
- data/ext/v8/upstream/v8/src/arguments.h +116 -0
- data/ext/v8/upstream/v8/src/arm/assembler-arm-inl.h +353 -0
- data/ext/v8/upstream/v8/src/arm/assembler-arm.cc +2877 -0
- data/ext/v8/upstream/v8/src/arm/assembler-arm.h +1382 -0
- data/ext/v8/upstream/v8/src/arm/builtins-arm.cc +1634 -0
- data/ext/v8/upstream/v8/src/arm/code-stubs-arm.cc +6917 -0
- data/ext/v8/upstream/v8/src/arm/code-stubs-arm.h +623 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/arm/codegen-arm-inl.h +0 -0
- data/ext/v8/upstream/v8/src/arm/codegen-arm.cc +7437 -0
- data/ext/v8/upstream/v8/src/arm/codegen-arm.h +595 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/arm/constants-arm.cc +0 -0
- data/ext/v8/upstream/v8/src/arm/constants-arm.h +778 -0
- data/ext/v8/upstream/v8/src/arm/cpu-arm.cc +149 -0
- data/ext/v8/upstream/v8/src/arm/debug-arm.cc +317 -0
- data/ext/v8/upstream/v8/src/arm/deoptimizer-arm.cc +737 -0
- data/ext/v8/upstream/v8/src/arm/disasm-arm.cc +1503 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/arm/frames-arm.cc +0 -0
- data/ext/v8/upstream/v8/src/arm/frames-arm.h +168 -0
- data/ext/v8/upstream/v8/src/arm/full-codegen-arm.cc +4374 -0
- data/ext/v8/upstream/v8/src/arm/ic-arm.cc +1793 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/arm/jump-target-arm.cc +0 -0
- data/ext/v8/upstream/v8/src/arm/lithium-arm.cc +2120 -0
- data/ext/v8/upstream/v8/src/arm/lithium-arm.h +2179 -0
- data/ext/v8/upstream/v8/src/arm/lithium-codegen-arm.cc +4132 -0
- data/ext/v8/upstream/v8/src/arm/lithium-codegen-arm.h +329 -0
- data/ext/v8/upstream/v8/src/arm/lithium-gap-resolver-arm.cc +305 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/arm/lithium-gap-resolver-arm.h +0 -0
- data/ext/v8/upstream/v8/src/arm/macro-assembler-arm.cc +2939 -0
- data/ext/v8/upstream/v8/src/arm/macro-assembler-arm.h +1071 -0
- data/ext/v8/upstream/v8/src/arm/regexp-macro-assembler-arm.cc +1287 -0
- data/ext/v8/upstream/v8/src/arm/regexp-macro-assembler-arm.h +253 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/arm/register-allocator-arm-inl.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/arm/register-allocator-arm.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/arm/register-allocator-arm.h +0 -0
- data/ext/v8/upstream/v8/src/arm/simulator-arm.cc +3288 -0
- data/ext/v8/upstream/v8/src/arm/simulator-arm.h +413 -0
- data/ext/v8/upstream/v8/src/arm/stub-cache-arm.cc +4034 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/arm/virtual-frame-arm-inl.h +0 -0
- data/ext/v8/upstream/v8/src/arm/virtual-frame-arm.cc +843 -0
- data/ext/v8/upstream/v8/src/arm/virtual-frame-arm.h +523 -0
- data/ext/v8/upstream/v8/src/array.js +1249 -0
- data/ext/v8/upstream/v8/src/assembler.cc +1067 -0
- data/ext/v8/upstream/v8/src/assembler.h +823 -0
- data/ext/v8/upstream/v8/src/ast-inl.h +112 -0
- data/ext/v8/upstream/v8/src/ast.cc +1078 -0
- data/ext/v8/upstream/v8/src/ast.h +2234 -0
- data/ext/v8/upstream/v8/src/atomicops.h +167 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/atomicops_internals_arm_gcc.h +0 -0
- data/ext/v8/upstream/v8/src/atomicops_internals_mips_gcc.h +169 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/atomicops_internals_x86_gcc.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/atomicops_internals_x86_gcc.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/atomicops_internals_x86_macosx.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/atomicops_internals_x86_msvc.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/bignum-dtoa.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/bignum-dtoa.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/bignum.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/bignum.h +0 -0
- data/ext/v8/upstream/v8/src/bootstrapper.cc +2138 -0
- data/ext/v8/upstream/v8/src/bootstrapper.h +185 -0
- data/ext/v8/upstream/v8/src/builtins.cc +1708 -0
- data/ext/v8/upstream/v8/src/builtins.h +368 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/bytecodes-irregexp.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/cached-powers.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/cached-powers.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/char-predicates-inl.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/char-predicates.h +0 -0
- data/ext/v8/upstream/v8/src/checks.cc +110 -0
- data/ext/v8/upstream/v8/src/checks.h +296 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/circular-queue-inl.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/circular-queue.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/circular-queue.h +0 -0
- data/ext/v8/upstream/v8/src/code-stubs.cc +240 -0
- data/ext/v8/upstream/v8/src/code-stubs.h +971 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/code.h +0 -0
- data/ext/v8/upstream/v8/src/codegen-inl.h +68 -0
- data/ext/v8/upstream/v8/src/codegen.cc +505 -0
- data/ext/v8/upstream/v8/src/codegen.h +245 -0
- data/ext/v8/upstream/v8/src/compilation-cache.cc +540 -0
- data/ext/v8/upstream/v8/src/compilation-cache.h +287 -0
- data/ext/v8/upstream/v8/src/compiler.cc +792 -0
- data/ext/v8/upstream/v8/src/compiler.h +307 -0
- data/ext/v8/upstream/v8/src/contexts.cc +327 -0
- data/ext/v8/upstream/v8/src/contexts.h +382 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/conversions-inl.h +0 -0
- data/ext/v8/upstream/v8/src/conversions.cc +1125 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/conversions.h +0 -0
- data/ext/v8/upstream/v8/src/counters.cc +93 -0
- data/ext/v8/upstream/v8/src/counters.h +254 -0
- data/ext/v8/upstream/v8/src/cpu-profiler-inl.h +101 -0
- data/ext/v8/upstream/v8/src/cpu-profiler.cc +606 -0
- data/ext/v8/upstream/v8/src/cpu-profiler.h +305 -0
- data/ext/v8/upstream/v8/src/cpu.h +67 -0
- data/ext/v8/upstream/v8/src/d8-debug.cc +367 -0
- data/ext/v8/upstream/v8/src/d8-debug.h +158 -0
- data/ext/v8/upstream/v8/src/d8-posix.cc +695 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/d8-readline.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/d8-windows.cc +0 -0
- data/ext/v8/upstream/v8/src/d8.cc +796 -0
- data/ext/v8/upstream/v8/src/d8.gyp +88 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/d8.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/d8.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/data-flow.cc +0 -0
- data/ext/v8/upstream/v8/src/data-flow.h +379 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/date.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/dateparser-inl.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/dateparser.cc +0 -0
- data/ext/v8/upstream/v8/src/dateparser.h +265 -0
- data/ext/v8/upstream/v8/src/debug-agent.cc +447 -0
- data/ext/v8/upstream/v8/src/debug-agent.h +129 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/debug-debugger.js +0 -0
- data/ext/v8/upstream/v8/src/debug.cc +3188 -0
- data/ext/v8/upstream/v8/src/debug.h +1055 -0
- data/ext/v8/upstream/v8/src/deoptimizer.cc +1296 -0
- data/ext/v8/upstream/v8/src/deoptimizer.h +629 -0
- data/ext/v8/upstream/v8/src/disasm.h +80 -0
- data/ext/v8/upstream/v8/src/disassembler.cc +339 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/disassembler.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/diy-fp.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/diy-fp.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/double.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/dtoa.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/dtoa.h +0 -0
- data/ext/v8/upstream/v8/src/execution.cc +791 -0
- data/ext/v8/upstream/v8/src/execution.h +291 -0
- data/ext/v8/upstream/v8/src/extensions/experimental/break-iterator.cc +250 -0
- data/ext/v8/upstream/v8/src/extensions/experimental/break-iterator.h +89 -0
- data/ext/v8/upstream/v8/src/extensions/experimental/experimental.gyp +55 -0
- data/ext/v8/upstream/v8/src/extensions/experimental/i18n-extension.cc +284 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/extensions/experimental/i18n-extension.h +0 -0
- data/ext/v8/upstream/v8/src/extensions/externalize-string-extension.cc +141 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/extensions/externalize-string-extension.h +0 -0
- data/ext/v8/upstream/v8/src/extensions/gc-extension.cc +58 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/extensions/gc-extension.h +0 -0
- data/ext/v8/upstream/v8/src/factory.cc +1194 -0
- data/ext/v8/upstream/v8/src/factory.h +436 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/fast-dtoa.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/fast-dtoa.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/fixed-dtoa.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/fixed-dtoa.h +0 -0
- data/ext/v8/upstream/v8/src/flag-definitions.h +556 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/flags.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/flags.h +0 -0
- data/ext/v8/upstream/v8/src/frame-element.cc +37 -0
- data/ext/v8/upstream/v8/src/frame-element.h +269 -0
- data/ext/v8/upstream/v8/src/frames-inl.h +236 -0
- data/ext/v8/upstream/v8/src/frames.cc +1273 -0
- data/ext/v8/upstream/v8/src/frames.h +854 -0
- data/ext/v8/upstream/v8/src/full-codegen.cc +1385 -0
- data/ext/v8/upstream/v8/src/full-codegen.h +753 -0
- data/ext/v8/upstream/v8/src/func-name-inferrer.cc +91 -0
- data/ext/v8/upstream/v8/src/func-name-inferrer.h +111 -0
- data/ext/v8/upstream/v8/src/gdb-jit.cc +1548 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/gdb-jit.h +0 -0
- data/ext/v8/upstream/v8/src/global-handles.cc +596 -0
- data/ext/v8/upstream/v8/src/global-handles.h +239 -0
- data/ext/v8/upstream/v8/src/globals.h +325 -0
- data/ext/v8/upstream/v8/src/handles-inl.h +177 -0
- data/ext/v8/upstream/v8/src/handles.cc +965 -0
- data/ext/v8/upstream/v8/src/handles.h +372 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/hashmap.cc +0 -0
- data/ext/v8/upstream/v8/src/hashmap.h +121 -0
- data/ext/v8/upstream/v8/src/heap-inl.h +703 -0
- data/ext/v8/upstream/v8/src/heap-profiler.cc +1173 -0
- data/ext/v8/upstream/v8/src/heap-profiler.h +396 -0
- data/ext/v8/upstream/v8/src/heap.cc +5856 -0
- data/ext/v8/upstream/v8/src/heap.h +2264 -0
- data/ext/v8/upstream/v8/src/hydrogen-instructions.cc +1639 -0
- data/ext/v8/upstream/v8/src/hydrogen-instructions.h +3657 -0
- data/ext/v8/upstream/v8/src/hydrogen.cc +6011 -0
- data/ext/v8/upstream/v8/src/hydrogen.h +1137 -0
- data/ext/v8/upstream/v8/src/ia32/assembler-ia32-inl.h +430 -0
- data/ext/v8/upstream/v8/src/ia32/assembler-ia32.cc +2846 -0
- data/ext/v8/upstream/v8/src/ia32/assembler-ia32.h +1159 -0
- data/ext/v8/upstream/v8/src/ia32/builtins-ia32.cc +1596 -0
- data/ext/v8/upstream/v8/src/ia32/code-stubs-ia32.cc +6549 -0
- data/ext/v8/upstream/v8/src/ia32/code-stubs-ia32.h +495 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/codegen-ia32-inl.h +0 -0
- data/ext/v8/upstream/v8/src/ia32/codegen-ia32.cc +10385 -0
- data/ext/v8/upstream/v8/src/ia32/codegen-ia32.h +801 -0
- data/ext/v8/upstream/v8/src/ia32/cpu-ia32.cc +88 -0
- data/ext/v8/upstream/v8/src/ia32/debug-ia32.cc +312 -0
- data/ext/v8/upstream/v8/src/ia32/deoptimizer-ia32.cc +774 -0
- data/ext/v8/upstream/v8/src/ia32/disasm-ia32.cc +1620 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/frames-ia32.cc +0 -0
- data/ext/v8/upstream/v8/src/ia32/frames-ia32.h +140 -0
- data/ext/v8/upstream/v8/src/ia32/full-codegen-ia32.cc +4357 -0
- data/ext/v8/upstream/v8/src/ia32/ic-ia32.cc +1779 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/jump-target-ia32.cc +0 -0
- data/ext/v8/upstream/v8/src/ia32/lithium-codegen-ia32.cc +4158 -0
- data/ext/v8/upstream/v8/src/ia32/lithium-codegen-ia32.h +318 -0
- data/ext/v8/upstream/v8/src/ia32/lithium-gap-resolver-ia32.cc +466 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/lithium-gap-resolver-ia32.h +0 -0
- data/ext/v8/upstream/v8/src/ia32/lithium-ia32.cc +2181 -0
- data/ext/v8/upstream/v8/src/ia32/lithium-ia32.h +2235 -0
- data/ext/v8/upstream/v8/src/ia32/macro-assembler-ia32.cc +2056 -0
- data/ext/v8/upstream/v8/src/ia32/macro-assembler-ia32.h +807 -0
- data/ext/v8/upstream/v8/src/ia32/regexp-macro-assembler-ia32.cc +1264 -0
- data/ext/v8/upstream/v8/src/ia32/regexp-macro-assembler-ia32.h +216 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/register-allocator-ia32-inl.h +0 -0
- data/ext/v8/upstream/v8/src/ia32/register-allocator-ia32.cc +157 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/register-allocator-ia32.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/simulator-ia32.cc +0 -0
- data/ext/v8/upstream/v8/src/ia32/simulator-ia32.h +72 -0
- data/ext/v8/upstream/v8/src/ia32/stub-cache-ia32.cc +3711 -0
- data/ext/v8/upstream/v8/src/ia32/virtual-frame-ia32.cc +1366 -0
- data/ext/v8/upstream/v8/src/ia32/virtual-frame-ia32.h +650 -0
- data/ext/v8/upstream/v8/src/ic-inl.h +130 -0
- data/ext/v8/upstream/v8/src/ic.cc +2389 -0
- data/ext/v8/upstream/v8/src/ic.h +675 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/inspector.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/inspector.h +0 -0
- data/ext/v8/upstream/v8/src/interpreter-irregexp.cc +659 -0
- data/ext/v8/upstream/v8/src/interpreter-irregexp.h +49 -0
- data/ext/v8/upstream/v8/src/isolate.cc +883 -0
- data/ext/v8/upstream/v8/src/isolate.h +1306 -0
- data/ext/v8/upstream/v8/src/json.js +342 -0
- data/ext/v8/upstream/v8/src/jsregexp.cc +5371 -0
- data/ext/v8/upstream/v8/src/jsregexp.h +1483 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/jump-target-heavy-inl.h +0 -0
- data/ext/v8/upstream/v8/src/jump-target-heavy.cc +427 -0
- data/ext/v8/upstream/v8/src/jump-target-heavy.h +238 -0
- data/ext/v8/upstream/v8/src/jump-target-inl.h +48 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/jump-target-light-inl.h +0 -0
- data/ext/v8/upstream/v8/src/jump-target-light.cc +111 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/jump-target-light.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/jump-target.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/jump-target.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/list-inl.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/list.h +0 -0
- data/ext/v8/upstream/v8/src/lithium-allocator-inl.h +142 -0
- data/ext/v8/upstream/v8/src/lithium-allocator.cc +2105 -0
- data/ext/v8/upstream/v8/src/lithium-allocator.h +630 -0
- data/ext/v8/upstream/v8/src/lithium.cc +169 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/lithium.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/liveedit-debugger.js +0 -0
- data/ext/v8/upstream/v8/src/liveedit.cc +1693 -0
- data/ext/v8/upstream/v8/src/liveedit.h +179 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/liveobjectlist-inl.h +0 -0
- data/ext/v8/upstream/v8/src/liveobjectlist.cc +2589 -0
- data/ext/v8/upstream/v8/src/liveobjectlist.h +322 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/log-inl.h +0 -0
- data/ext/v8/upstream/v8/src/log-utils.cc +423 -0
- data/ext/v8/upstream/v8/src/log-utils.h +229 -0
- data/ext/v8/upstream/v8/src/log.cc +1666 -0
- data/ext/v8/upstream/v8/src/log.h +446 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/macro-assembler.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/macros.py +0 -0
- data/ext/v8/upstream/v8/src/mark-compact.cc +3092 -0
- data/ext/v8/upstream/v8/src/mark-compact.h +506 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/math.js +0 -0
- data/ext/v8/upstream/v8/src/messages.cc +166 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/messages.h +0 -0
- data/ext/v8/upstream/v8/src/messages.js +1090 -0
- data/ext/v8/upstream/v8/src/mips/assembler-mips-inl.h +335 -0
- data/ext/v8/upstream/v8/src/mips/assembler-mips.cc +2093 -0
- data/ext/v8/upstream/v8/src/mips/assembler-mips.h +1066 -0
- data/ext/v8/upstream/v8/src/mips/builtins-mips.cc +148 -0
- data/ext/v8/upstream/v8/src/mips/code-stubs-mips.cc +752 -0
- data/ext/v8/upstream/v8/src/mips/code-stubs-mips.h +511 -0
- data/ext/v8/upstream/v8/src/mips/codegen-mips-inl.h +64 -0
- data/ext/v8/upstream/v8/src/mips/codegen-mips.cc +1213 -0
- data/ext/v8/upstream/v8/src/mips/codegen-mips.h +633 -0
- data/ext/v8/upstream/v8/src/mips/constants-mips.cc +352 -0
- data/ext/v8/upstream/v8/src/mips/constants-mips.h +723 -0
- data/ext/v8/upstream/v8/src/mips/cpu-mips.cc +90 -0
- data/ext/v8/upstream/v8/src/mips/debug-mips.cc +155 -0
- data/ext/v8/upstream/v8/src/mips/deoptimizer-mips.cc +91 -0
- data/ext/v8/upstream/v8/src/mips/disasm-mips.cc +1023 -0
- data/ext/v8/upstream/v8/src/mips/frames-mips.cc +48 -0
- data/ext/v8/upstream/v8/src/mips/frames-mips.h +179 -0
- data/ext/v8/upstream/v8/src/mips/full-codegen-mips.cc +727 -0
- data/ext/v8/upstream/v8/src/mips/ic-mips.cc +244 -0
- data/ext/v8/upstream/v8/src/mips/jump-target-mips.cc +80 -0
- data/ext/v8/upstream/v8/src/mips/lithium-codegen-mips.h +65 -0
- data/ext/v8/upstream/v8/src/mips/lithium-mips.h +304 -0
- data/ext/v8/upstream/v8/src/mips/macro-assembler-mips.cc +3327 -0
- data/ext/v8/upstream/v8/src/mips/macro-assembler-mips.h +1058 -0
- data/ext/v8/upstream/v8/src/mips/regexp-macro-assembler-mips.cc +478 -0
- data/ext/v8/upstream/v8/src/mips/regexp-macro-assembler-mips.h +250 -0
- data/ext/v8/upstream/v8/src/mips/register-allocator-mips-inl.h +134 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/mips/register-allocator-mips.cc +0 -0
- data/ext/v8/upstream/v8/src/mips/register-allocator-mips.h +47 -0
- data/ext/v8/upstream/v8/src/mips/simulator-mips.cc +2438 -0
- data/ext/v8/upstream/v8/src/mips/simulator-mips.h +394 -0
- data/ext/v8/upstream/v8/src/mips/stub-cache-mips.cc +601 -0
- data/ext/v8/upstream/v8/src/mips/virtual-frame-mips-inl.h +58 -0
- data/ext/v8/upstream/v8/src/mips/virtual-frame-mips.cc +307 -0
- data/ext/v8/upstream/v8/src/mips/virtual-frame-mips.h +530 -0
- data/ext/v8/upstream/v8/src/mirror-debugger.js +2381 -0
- data/ext/v8/upstream/v8/src/mksnapshot.cc +256 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/natives.h +0 -0
- data/ext/v8/upstream/v8/src/objects-debug.cc +722 -0
- data/ext/v8/upstream/v8/src/objects-inl.h +4166 -0
- data/ext/v8/upstream/v8/src/objects-printer.cc +801 -0
- data/ext/v8/upstream/v8/src/objects-visiting.cc +142 -0
- data/ext/v8/upstream/v8/src/objects-visiting.h +422 -0
- data/ext/v8/upstream/v8/src/objects.cc +10296 -0
- data/ext/v8/upstream/v8/src/objects.h +6662 -0
- data/ext/v8/upstream/v8/src/parser.cc +5168 -0
- data/ext/v8/upstream/v8/src/parser.h +823 -0
- data/ext/v8/upstream/v8/src/platform-cygwin.cc +811 -0
- data/ext/v8/upstream/v8/src/platform-freebsd.cc +854 -0
- data/ext/v8/upstream/v8/src/platform-linux.cc +1120 -0
- data/ext/v8/upstream/v8/src/platform-macos.cc +865 -0
- data/ext/v8/upstream/v8/src/platform-nullos.cc +504 -0
- data/ext/v8/upstream/v8/src/platform-openbsd.cc +672 -0
- data/ext/v8/upstream/v8/src/platform-posix.cc +424 -0
- data/ext/v8/upstream/v8/src/platform-solaris.cc +796 -0
- data/ext/v8/upstream/v8/src/platform-tls-mac.h +62 -0
- data/ext/v8/upstream/v8/src/platform-tls-win32.h +62 -0
- data/ext/v8/upstream/v8/src/platform-tls.h +50 -0
- data/ext/v8/upstream/v8/src/platform-win32.cc +2072 -0
- data/ext/v8/upstream/v8/src/platform.h +693 -0
- data/ext/v8/upstream/v8/src/preparse-data.cc +185 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/preparse-data.h +0 -0
- data/ext/v8/upstream/v8/src/preparser-api.cc +219 -0
- data/ext/v8/upstream/v8/src/preparser.cc +1205 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/preparser.h +0 -0
- data/ext/v8/upstream/v8/src/prettyprinter.cc +1530 -0
- data/ext/v8/upstream/v8/src/prettyprinter.h +223 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/profile-generator-inl.h +0 -0
- data/ext/v8/upstream/v8/src/profile-generator.cc +3095 -0
- data/ext/v8/upstream/v8/src/profile-generator.h +1125 -0
- data/ext/v8/upstream/v8/src/property.cc +102 -0
- data/ext/v8/upstream/v8/src/property.h +348 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/regexp-macro-assembler-irregexp-inl.h +0 -0
- data/ext/v8/upstream/v8/src/regexp-macro-assembler-irregexp.cc +470 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/regexp-macro-assembler-irregexp.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/regexp-macro-assembler-tracer.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/regexp-macro-assembler-tracer.h +0 -0
- data/ext/v8/upstream/v8/src/regexp-macro-assembler.cc +266 -0
- data/ext/v8/upstream/v8/src/regexp-macro-assembler.h +236 -0
- data/ext/v8/upstream/v8/src/regexp-stack.cc +111 -0
- data/ext/v8/upstream/v8/src/regexp-stack.h +147 -0
- data/ext/v8/upstream/v8/src/regexp.js +483 -0
- data/ext/v8/upstream/v8/src/register-allocator-inl.h +141 -0
- data/ext/v8/upstream/v8/src/register-allocator.cc +98 -0
- data/ext/v8/upstream/v8/src/register-allocator.h +310 -0
- data/ext/v8/upstream/v8/src/rewriter.cc +1024 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/rewriter.h +0 -0
- data/ext/v8/upstream/v8/src/runtime-profiler.cc +478 -0
- data/ext/v8/upstream/v8/src/runtime-profiler.h +192 -0
- data/ext/v8/upstream/v8/src/runtime.cc +11949 -0
- data/ext/v8/upstream/v8/src/runtime.h +643 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/runtime.js +0 -0
- data/ext/v8/upstream/v8/src/safepoint-table.cc +256 -0
- data/ext/v8/upstream/v8/src/safepoint-table.h +269 -0
- data/ext/v8/upstream/v8/src/scanner-base.cc +964 -0
- data/ext/v8/upstream/v8/src/scanner-base.h +664 -0
- data/ext/v8/upstream/v8/src/scanner.cc +584 -0
- data/ext/v8/upstream/v8/src/scanner.h +196 -0
- data/ext/v8/upstream/v8/src/scopeinfo.cc +631 -0
- data/ext/v8/upstream/v8/src/scopeinfo.h +249 -0
- data/ext/v8/upstream/v8/src/scopes.cc +1093 -0
- data/ext/v8/upstream/v8/src/scopes.h +508 -0
- data/ext/v8/upstream/v8/src/serialize.cc +1574 -0
- data/ext/v8/upstream/v8/src/serialize.h +589 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/shell.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/simulator.h +0 -0
- data/ext/v8/upstream/v8/src/small-pointer-list.h +163 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/smart-pointer.h +0 -0
- data/ext/v8/upstream/v8/src/snapshot-common.cc +82 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/snapshot-empty.cc +0 -0
- data/ext/v8/upstream/v8/src/snapshot.h +73 -0
- data/ext/v8/upstream/v8/src/spaces-inl.h +529 -0
- data/ext/v8/upstream/v8/src/spaces.cc +3147 -0
- data/ext/v8/upstream/v8/src/spaces.h +2368 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/splay-tree-inl.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/splay-tree.h +0 -0
- data/ext/v8/upstream/v8/src/string-search.cc +41 -0
- data/ext/v8/upstream/v8/src/string-search.h +568 -0
- data/ext/v8/upstream/v8/src/string-stream.cc +592 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/string-stream.h +0 -0
- data/ext/v8/upstream/v8/src/string.js +915 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/strtod.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/strtod.h +0 -0
- data/ext/v8/upstream/v8/src/stub-cache.cc +1940 -0
- data/ext/v8/upstream/v8/src/stub-cache.h +866 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/third_party/valgrind/valgrind.h +0 -0
- data/ext/v8/upstream/v8/src/token.cc +63 -0
- data/ext/v8/upstream/v8/src/token.h +288 -0
- data/ext/v8/upstream/v8/src/top.cc +983 -0
- data/ext/v8/upstream/v8/src/type-info.cc +472 -0
- data/ext/v8/upstream/v8/src/type-info.h +290 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/unbound-queue-inl.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/unbound-queue.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/unicode-inl.h +0 -0
- data/ext/v8/upstream/v8/src/unicode.cc +1624 -0
- data/ext/v8/upstream/v8/src/unicode.h +280 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/uri.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/utils.cc +0 -0
- data/ext/v8/upstream/v8/src/utils.h +796 -0
- data/ext/v8/upstream/v8/src/v8-counters.cc +62 -0
- data/ext/v8/upstream/v8/src/v8-counters.h +311 -0
- data/ext/v8/upstream/v8/src/v8.cc +215 -0
- data/ext/v8/upstream/v8/src/v8.h +130 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/v8checks.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/v8dll-main.cc +0 -0
- data/ext/v8/upstream/v8/src/v8globals.h +486 -0
- data/ext/v8/upstream/{3.1.8/src/memory.h → v8/src/v8memory.h} +0 -0
- data/ext/v8/upstream/v8/src/v8natives.js +1293 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/v8preparserdll-main.cc +0 -0
- data/ext/v8/upstream/v8/src/v8threads.cc +453 -0
- data/ext/v8/upstream/v8/src/v8threads.h +164 -0
- data/ext/v8/upstream/v8/src/v8utils.h +317 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/variables.cc +0 -0
- data/ext/v8/upstream/v8/src/variables.h +212 -0
- data/ext/v8/upstream/v8/src/version.cc +116 -0
- data/ext/v8/upstream/v8/src/version.h +68 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/virtual-frame-heavy-inl.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/virtual-frame-heavy.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/virtual-frame-inl.h +0 -0
- data/ext/v8/upstream/v8/src/virtual-frame-light-inl.h +171 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/virtual-frame-light.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/virtual-frame.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/virtual-frame.h +0 -0
- data/ext/v8/upstream/v8/src/vm-state-inl.h +138 -0
- data/ext/v8/upstream/v8/src/vm-state.h +70 -0
- data/ext/v8/upstream/v8/src/win32-headers.h +96 -0
- data/ext/v8/upstream/v8/src/x64/assembler-x64-inl.h +456 -0
- data/ext/v8/upstream/v8/src/x64/assembler-x64.cc +2954 -0
- data/ext/v8/upstream/v8/src/x64/assembler-x64.h +1630 -0
- data/ext/v8/upstream/v8/src/x64/builtins-x64.cc +1493 -0
- data/ext/v8/upstream/v8/src/x64/code-stubs-x64.cc +5132 -0
- data/ext/v8/upstream/v8/src/x64/code-stubs-x64.h +477 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/x64/codegen-x64-inl.h +0 -0
- data/ext/v8/upstream/v8/src/x64/codegen-x64.cc +8843 -0
- data/ext/v8/upstream/v8/src/x64/codegen-x64.h +753 -0
- data/ext/v8/upstream/v8/src/x64/cpu-x64.cc +88 -0
- data/ext/v8/upstream/v8/src/x64/debug-x64.cc +318 -0
- data/ext/v8/upstream/v8/src/x64/deoptimizer-x64.cc +815 -0
- data/ext/v8/upstream/v8/src/x64/disasm-x64.cc +1752 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/x64/frames-x64.cc +0 -0
- data/ext/v8/upstream/v8/src/x64/frames-x64.h +130 -0
- data/ext/v8/upstream/v8/src/x64/full-codegen-x64.cc +4339 -0
- data/ext/v8/upstream/v8/src/x64/ic-x64.cc +1752 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/x64/jump-target-x64.cc +0 -0
- data/ext/v8/upstream/v8/src/x64/lithium-codegen-x64.cc +3970 -0
- data/ext/v8/upstream/v8/src/x64/lithium-codegen-x64.h +318 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/x64/lithium-gap-resolver-x64.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/x64/lithium-gap-resolver-x64.h +0 -0
- data/ext/v8/upstream/v8/src/x64/lithium-x64.cc +2115 -0
- data/ext/v8/upstream/v8/src/x64/lithium-x64.h +2161 -0
- data/ext/v8/upstream/v8/src/x64/macro-assembler-x64.cc +2911 -0
- data/ext/v8/upstream/v8/src/x64/macro-assembler-x64.h +1984 -0
- data/ext/v8/upstream/v8/src/x64/regexp-macro-assembler-x64.cc +1398 -0
- data/ext/v8/upstream/v8/src/x64/regexp-macro-assembler-x64.h +282 -0
- data/ext/v8/upstream/v8/src/x64/register-allocator-x64-inl.h +87 -0
- data/ext/v8/upstream/v8/src/x64/register-allocator-x64.cc +95 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/x64/register-allocator-x64.h +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/src/x64/simulator-x64.cc +0 -0
- data/ext/v8/upstream/v8/src/x64/simulator-x64.h +71 -0
- data/ext/v8/upstream/v8/src/x64/stub-cache-x64.cc +3460 -0
- data/ext/v8/upstream/v8/src/x64/virtual-frame-x64.cc +1296 -0
- data/ext/v8/upstream/v8/src/x64/virtual-frame-x64.h +597 -0
- data/ext/v8/upstream/v8/src/zone-inl.h +129 -0
- data/ext/v8/upstream/v8/src/zone.cc +196 -0
- data/ext/v8/upstream/v8/src/zone.h +236 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/codemap.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/consarray.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/csvparser.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/disasm.py +0 -0
- data/ext/v8/upstream/v8/tools/freebsd-tick-processor +10 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/gc-nvp-trace-processor.py +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/generate-ten-powers.scm +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/grokdump.py +0 -0
- data/ext/v8/upstream/v8/tools/gyp/v8.gyp +844 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/js2c.py +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/jsmin.py +0 -0
- data/ext/v8/upstream/v8/tools/linux-tick-processor +35 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/ll_prof.py +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/logreader.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/mac-nm +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/mac-tick-processor +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/oom_dump/README +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/oom_dump/SConstruct +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/oom_dump/oom_dump.cc +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/presubmit.py +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/process-heap-prof.py +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/profile.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/profile_view.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/run-valgrind.py +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/splaytree.js +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/stats-viewer.py +0 -0
- data/ext/v8/upstream/v8/tools/test.py +1490 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/tickprocessor-driver.js +0 -0
- data/ext/v8/upstream/v8/tools/tickprocessor.js +877 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/utils.py +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/README.txt +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/arm.vsprops +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/common.vsprops +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/d8.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/d8_arm.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/d8_x64.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/d8js2c.cmd +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/debug.vsprops +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/ia32.vsprops +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/js2c.cmd +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/release.vsprops +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8.sln +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_arm.sln +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_arm.vcproj +0 -0
- data/ext/v8/upstream/v8/tools/visual_studio/v8_base.vcproj +1308 -0
- data/ext/v8/upstream/v8/tools/visual_studio/v8_base_arm.vcproj +1238 -0
- data/ext/v8/upstream/v8/tools/visual_studio/v8_base_x64.vcproj +1300 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_cctest.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_cctest_arm.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_cctest_x64.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_mksnapshot.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_mksnapshot_x64.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_process_sample.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_process_sample_arm.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_process_sample_x64.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_shell_sample.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_shell_sample_arm.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_shell_sample_x64.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_snapshot.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_snapshot_cc.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_snapshot_cc_x64.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_snapshot_x64.vcproj +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_x64.sln +0 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_x64.vcproj +0 -0
- data/ext/v8/upstream/v8/tools/visual_studio/x64.vsprops +18 -0
- data/ext/v8/upstream/{3.1.8 → v8}/tools/windows-tick-processor.bat +0 -0
- data/ext/v8/v8_callbacks.cpp +52 -92
- data/ext/v8/v8_date.cpp +2 -3
- data/ext/v8/v8_object.cpp +4 -0
- data/ext/v8/v8_template.cpp +2 -2
- data/ext/v8/v8_try_catch.cpp +8 -38
- data/lib/v8/version.rb +1 -1
- data/spec/ext/ext_spec_helper.rb +2 -20
- data/spec/ext/object_spec.rb +0 -12
- data/spec/ext/try_catch_spec.rb +29 -1
- data/spec/spec_helper.rb +1 -0
- data/spec/v8/portal/proxies_spec.rb +1 -84
- data/specmem/handle_memspec.rb +41 -0
- data/specmem/object_memspec.rb +16 -0
- data/specmem/proxies_memspec.rb +86 -0
- data/specmem/spec_helper.rb +24 -0
- data/therubyracer.gemspec +7 -2
- metadata +564 -541
- data/ext/v8/upstream/3.1.8/.gitignore +0 -31
- data/ext/v8/upstream/3.1.8/AUTHORS +0 -40
- data/ext/v8/upstream/3.1.8/ChangeLog +0 -2566
- data/ext/v8/upstream/3.1.8/SConstruct +0 -1192
- data/ext/v8/upstream/3.1.8/include/v8-debug.h +0 -384
- data/ext/v8/upstream/3.1.8/include/v8-preparser.h +0 -116
- data/ext/v8/upstream/3.1.8/include/v8-profiler.h +0 -426
- data/ext/v8/upstream/3.1.8/include/v8-testing.h +0 -99
- data/ext/v8/upstream/3.1.8/include/v8.h +0 -3846
- data/ext/v8/upstream/3.1.8/preparser/preparser-process.cc +0 -206
- data/ext/v8/upstream/3.1.8/src/SConscript +0 -356
- data/ext/v8/upstream/3.1.8/src/accessors.cc +0 -907
- data/ext/v8/upstream/3.1.8/src/allocation.cc +0 -204
- data/ext/v8/upstream/3.1.8/src/allocation.h +0 -176
- data/ext/v8/upstream/3.1.8/src/api.cc +0 -5191
- data/ext/v8/upstream/3.1.8/src/api.h +0 -508
- data/ext/v8/upstream/3.1.8/src/apiutils.h +0 -80
- data/ext/v8/upstream/3.1.8/src/arguments.h +0 -105
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm-inl.h +0 -352
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm.cc +0 -2756
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm.h +0 -1294
- data/ext/v8/upstream/3.1.8/src/arm/builtins-arm.cc +0 -1628
- data/ext/v8/upstream/3.1.8/src/arm/code-stubs-arm.cc +0 -6783
- data/ext/v8/upstream/3.1.8/src/arm/code-stubs-arm.h +0 -657
- data/ext/v8/upstream/3.1.8/src/arm/codegen-arm.cc +0 -7403
- data/ext/v8/upstream/3.1.8/src/arm/codegen-arm.h +0 -595
- data/ext/v8/upstream/3.1.8/src/arm/constants-arm.h +0 -769
- data/ext/v8/upstream/3.1.8/src/arm/cpu-arm.cc +0 -147
- data/ext/v8/upstream/3.1.8/src/arm/debug-arm.cc +0 -315
- data/ext/v8/upstream/3.1.8/src/arm/deoptimizer-arm.cc +0 -700
- data/ext/v8/upstream/3.1.8/src/arm/disasm-arm.cc +0 -1439
- data/ext/v8/upstream/3.1.8/src/arm/frames-arm.h +0 -168
- data/ext/v8/upstream/3.1.8/src/arm/full-codegen-arm.cc +0 -4230
- data/ext/v8/upstream/3.1.8/src/arm/ic-arm.cc +0 -1799
- data/ext/v8/upstream/3.1.8/src/arm/lithium-arm.cc +0 -2041
- data/ext/v8/upstream/3.1.8/src/arm/lithium-arm.h +0 -2046
- data/ext/v8/upstream/3.1.8/src/arm/lithium-codegen-arm.cc +0 -3822
- data/ext/v8/upstream/3.1.8/src/arm/lithium-codegen-arm.h +0 -312
- data/ext/v8/upstream/3.1.8/src/arm/lithium-gap-resolver-arm.cc +0 -303
- data/ext/v8/upstream/3.1.8/src/arm/macro-assembler-arm.cc +0 -2701
- data/ext/v8/upstream/3.1.8/src/arm/macro-assembler-arm.h +0 -1015
- data/ext/v8/upstream/3.1.8/src/arm/regexp-macro-assembler-arm.cc +0 -1280
- data/ext/v8/upstream/3.1.8/src/arm/regexp-macro-assembler-arm.h +0 -252
- data/ext/v8/upstream/3.1.8/src/arm/simulator-arm.cc +0 -3165
- data/ext/v8/upstream/3.1.8/src/arm/simulator-arm.h +0 -402
- data/ext/v8/upstream/3.1.8/src/arm/stub-cache-arm.cc +0 -4077
- data/ext/v8/upstream/3.1.8/src/arm/virtual-frame-arm.cc +0 -843
- data/ext/v8/upstream/3.1.8/src/arm/virtual-frame-arm.h +0 -520
- data/ext/v8/upstream/3.1.8/src/array.js +0 -1231
- data/ext/v8/upstream/3.1.8/src/assembler.cc +0 -973
- data/ext/v8/upstream/3.1.8/src/assembler.h +0 -787
- data/ext/v8/upstream/3.1.8/src/ast-inl.h +0 -107
- data/ext/v8/upstream/3.1.8/src/ast.cc +0 -1067
- data/ext/v8/upstream/3.1.8/src/ast.h +0 -2177
- data/ext/v8/upstream/3.1.8/src/atomicops.h +0 -165
- data/ext/v8/upstream/3.1.8/src/bootstrapper.cc +0 -1888
- data/ext/v8/upstream/3.1.8/src/bootstrapper.h +0 -118
- data/ext/v8/upstream/3.1.8/src/builtins.cc +0 -1586
- data/ext/v8/upstream/3.1.8/src/builtins.h +0 -339
- data/ext/v8/upstream/3.1.8/src/checks.cc +0 -110
- data/ext/v8/upstream/3.1.8/src/checks.h +0 -292
- data/ext/v8/upstream/3.1.8/src/code-stubs.cc +0 -230
- data/ext/v8/upstream/3.1.8/src/code-stubs.h +0 -950
- data/ext/v8/upstream/3.1.8/src/codegen-inl.h +0 -64
- data/ext/v8/upstream/3.1.8/src/codegen.cc +0 -495
- data/ext/v8/upstream/3.1.8/src/codegen.h +0 -245
- data/ext/v8/upstream/3.1.8/src/compilation-cache.cc +0 -654
- data/ext/v8/upstream/3.1.8/src/compilation-cache.h +0 -112
- data/ext/v8/upstream/3.1.8/src/compiler.cc +0 -806
- data/ext/v8/upstream/3.1.8/src/compiler.h +0 -290
- data/ext/v8/upstream/3.1.8/src/contexts.cc +0 -320
- data/ext/v8/upstream/3.1.8/src/contexts.h +0 -376
- data/ext/v8/upstream/3.1.8/src/conversions.cc +0 -1069
- data/ext/v8/upstream/3.1.8/src/counters.cc +0 -78
- data/ext/v8/upstream/3.1.8/src/counters.h +0 -242
- data/ext/v8/upstream/3.1.8/src/cpu-profiler-inl.h +0 -100
- data/ext/v8/upstream/3.1.8/src/cpu-profiler.cc +0 -554
- data/ext/v8/upstream/3.1.8/src/cpu-profiler.h +0 -291
- data/ext/v8/upstream/3.1.8/src/cpu.h +0 -65
- data/ext/v8/upstream/3.1.8/src/d8-debug.cc +0 -367
- data/ext/v8/upstream/3.1.8/src/d8-debug.h +0 -157
- data/ext/v8/upstream/3.1.8/src/d8-posix.cc +0 -693
- data/ext/v8/upstream/3.1.8/src/d8.cc +0 -792
- data/ext/v8/upstream/3.1.8/src/d8.gyp +0 -85
- data/ext/v8/upstream/3.1.8/src/data-flow.h +0 -379
- data/ext/v8/upstream/3.1.8/src/dateparser.h +0 -263
- data/ext/v8/upstream/3.1.8/src/debug-agent.cc +0 -446
- data/ext/v8/upstream/3.1.8/src/debug-agent.h +0 -131
- data/ext/v8/upstream/3.1.8/src/debug.cc +0 -3085
- data/ext/v8/upstream/3.1.8/src/debug.h +0 -1025
- data/ext/v8/upstream/3.1.8/src/deoptimizer.cc +0 -1185
- data/ext/v8/upstream/3.1.8/src/deoptimizer.h +0 -529
- data/ext/v8/upstream/3.1.8/src/disasm.h +0 -77
- data/ext/v8/upstream/3.1.8/src/disassembler.cc +0 -338
- data/ext/v8/upstream/3.1.8/src/execution.cc +0 -735
- data/ext/v8/upstream/3.1.8/src/execution.h +0 -322
- data/ext/v8/upstream/3.1.8/src/extensions/experimental/experimental.gyp +0 -53
- data/ext/v8/upstream/3.1.8/src/extensions/experimental/i18n-extension.cc +0 -264
- data/ext/v8/upstream/3.1.8/src/extensions/externalize-string-extension.cc +0 -141
- data/ext/v8/upstream/3.1.8/src/extensions/gc-extension.cc +0 -58
- data/ext/v8/upstream/3.1.8/src/factory.cc +0 -1087
- data/ext/v8/upstream/3.1.8/src/factory.h +0 -432
- data/ext/v8/upstream/3.1.8/src/flag-definitions.h +0 -552
- data/ext/v8/upstream/3.1.8/src/frame-element.cc +0 -42
- data/ext/v8/upstream/3.1.8/src/frame-element.h +0 -277
- data/ext/v8/upstream/3.1.8/src/frames-inl.h +0 -210
- data/ext/v8/upstream/3.1.8/src/frames.cc +0 -1232
- data/ext/v8/upstream/3.1.8/src/frames.h +0 -826
- data/ext/v8/upstream/3.1.8/src/full-codegen.cc +0 -1382
- data/ext/v8/upstream/3.1.8/src/full-codegen.h +0 -751
- data/ext/v8/upstream/3.1.8/src/func-name-inferrer.cc +0 -90
- data/ext/v8/upstream/3.1.8/src/func-name-inferrer.h +0 -111
- data/ext/v8/upstream/3.1.8/src/gdb-jit.cc +0 -1547
- data/ext/v8/upstream/3.1.8/src/global-handles.cc +0 -534
- data/ext/v8/upstream/3.1.8/src/global-handles.h +0 -181
- data/ext/v8/upstream/3.1.8/src/globals.h +0 -325
- data/ext/v8/upstream/3.1.8/src/handles-inl.h +0 -80
- data/ext/v8/upstream/3.1.8/src/handles.cc +0 -910
- data/ext/v8/upstream/3.1.8/src/handles.h +0 -424
- data/ext/v8/upstream/3.1.8/src/hashmap.h +0 -121
- data/ext/v8/upstream/3.1.8/src/heap-inl.h +0 -587
- data/ext/v8/upstream/3.1.8/src/heap-profiler.cc +0 -1128
- data/ext/v8/upstream/3.1.8/src/heap-profiler.h +0 -381
- data/ext/v8/upstream/3.1.8/src/heap.cc +0 -5610
- data/ext/v8/upstream/3.1.8/src/heap.h +0 -2218
- data/ext/v8/upstream/3.1.8/src/hydrogen-instructions.cc +0 -1490
- data/ext/v8/upstream/3.1.8/src/hydrogen-instructions.h +0 -3493
- data/ext/v8/upstream/3.1.8/src/hydrogen.cc +0 -6056
- data/ext/v8/upstream/3.1.8/src/hydrogen.h +0 -1091
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32-inl.h +0 -429
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32.cc +0 -2800
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32.h +0 -1093
- data/ext/v8/upstream/3.1.8/src/ia32/builtins-ia32.cc +0 -1590
- data/ext/v8/upstream/3.1.8/src/ia32/code-stubs-ia32.cc +0 -6624
- data/ext/v8/upstream/3.1.8/src/ia32/code-stubs-ia32.h +0 -536
- data/ext/v8/upstream/3.1.8/src/ia32/codegen-ia32.cc +0 -10354
- data/ext/v8/upstream/3.1.8/src/ia32/codegen-ia32.h +0 -798
- data/ext/v8/upstream/3.1.8/src/ia32/cpu-ia32.cc +0 -87
- data/ext/v8/upstream/3.1.8/src/ia32/debug-ia32.cc +0 -309
- data/ext/v8/upstream/3.1.8/src/ia32/deoptimizer-ia32.cc +0 -664
- data/ext/v8/upstream/3.1.8/src/ia32/disasm-ia32.cc +0 -1597
- data/ext/v8/upstream/3.1.8/src/ia32/frames-ia32.h +0 -140
- data/ext/v8/upstream/3.1.8/src/ia32/full-codegen-ia32.cc +0 -4278
- data/ext/v8/upstream/3.1.8/src/ia32/ic-ia32.cc +0 -1786
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-codegen-ia32.cc +0 -3880
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-codegen-ia32.h +0 -309
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-gap-resolver-ia32.cc +0 -460
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-ia32.cc +0 -2095
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-ia32.h +0 -2127
- data/ext/v8/upstream/3.1.8/src/ia32/macro-assembler-ia32.cc +0 -2031
- data/ext/v8/upstream/3.1.8/src/ia32/macro-assembler-ia32.h +0 -798
- data/ext/v8/upstream/3.1.8/src/ia32/regexp-macro-assembler-ia32.cc +0 -1253
- data/ext/v8/upstream/3.1.8/src/ia32/regexp-macro-assembler-ia32.h +0 -215
- data/ext/v8/upstream/3.1.8/src/ia32/register-allocator-ia32.cc +0 -157
- data/ext/v8/upstream/3.1.8/src/ia32/simulator-ia32.h +0 -72
- data/ext/v8/upstream/3.1.8/src/ia32/stub-cache-ia32.cc +0 -3732
- data/ext/v8/upstream/3.1.8/src/ia32/virtual-frame-ia32.cc +0 -1360
- data/ext/v8/upstream/3.1.8/src/ia32/virtual-frame-ia32.h +0 -646
- data/ext/v8/upstream/3.1.8/src/ic-inl.h +0 -129
- data/ext/v8/upstream/3.1.8/src/ic.cc +0 -2333
- data/ext/v8/upstream/3.1.8/src/ic.h +0 -639
- data/ext/v8/upstream/3.1.8/src/interpreter-irregexp.cc +0 -655
- data/ext/v8/upstream/3.1.8/src/interpreter-irregexp.h +0 -48
- data/ext/v8/upstream/3.1.8/src/json.js +0 -342
- data/ext/v8/upstream/3.1.8/src/jsregexp.cc +0 -5340
- data/ext/v8/upstream/3.1.8/src/jsregexp.h +0 -1484
- data/ext/v8/upstream/3.1.8/src/jump-target-heavy.cc +0 -430
- data/ext/v8/upstream/3.1.8/src/jump-target-heavy.h +0 -244
- data/ext/v8/upstream/3.1.8/src/jump-target-inl.h +0 -48
- data/ext/v8/upstream/3.1.8/src/jump-target-light.cc +0 -111
- data/ext/v8/upstream/3.1.8/src/lithium-allocator-inl.h +0 -140
- data/ext/v8/upstream/3.1.8/src/lithium-allocator.cc +0 -2093
- data/ext/v8/upstream/3.1.8/src/lithium-allocator.h +0 -644
- data/ext/v8/upstream/3.1.8/src/lithium.cc +0 -168
- data/ext/v8/upstream/3.1.8/src/liveedit.cc +0 -1650
- data/ext/v8/upstream/3.1.8/src/liveedit.h +0 -174
- data/ext/v8/upstream/3.1.8/src/liveobjectlist.cc +0 -2527
- data/ext/v8/upstream/3.1.8/src/liveobjectlist.h +0 -322
- data/ext/v8/upstream/3.1.8/src/log-utils.cc +0 -336
- data/ext/v8/upstream/3.1.8/src/log-utils.h +0 -232
- data/ext/v8/upstream/3.1.8/src/log.cc +0 -1608
- data/ext/v8/upstream/3.1.8/src/log.h +0 -379
- data/ext/v8/upstream/3.1.8/src/mark-compact.cc +0 -2957
- data/ext/v8/upstream/3.1.8/src/mark-compact.h +0 -433
- data/ext/v8/upstream/3.1.8/src/messages.cc +0 -164
- data/ext/v8/upstream/3.1.8/src/messages.js +0 -1071
- data/ext/v8/upstream/3.1.8/src/mips/assembler-mips-inl.h +0 -215
- data/ext/v8/upstream/3.1.8/src/mips/assembler-mips.cc +0 -1219
- data/ext/v8/upstream/3.1.8/src/mips/assembler-mips.h +0 -667
- data/ext/v8/upstream/3.1.8/src/mips/builtins-mips.cc +0 -205
- data/ext/v8/upstream/3.1.8/src/mips/codegen-mips-inl.h +0 -70
- data/ext/v8/upstream/3.1.8/src/mips/codegen-mips.cc +0 -1437
- data/ext/v8/upstream/3.1.8/src/mips/codegen-mips.h +0 -431
- data/ext/v8/upstream/3.1.8/src/mips/constants-mips.cc +0 -328
- data/ext/v8/upstream/3.1.8/src/mips/constants-mips.h +0 -525
- data/ext/v8/upstream/3.1.8/src/mips/cpu-mips.cc +0 -73
- data/ext/v8/upstream/3.1.8/src/mips/debug-mips.cc +0 -127
- data/ext/v8/upstream/3.1.8/src/mips/disasm-mips.cc +0 -787
- data/ext/v8/upstream/3.1.8/src/mips/fast-codegen-mips.cc +0 -77
- data/ext/v8/upstream/3.1.8/src/mips/frames-mips.cc +0 -96
- data/ext/v8/upstream/3.1.8/src/mips/frames-mips.h +0 -164
- data/ext/v8/upstream/3.1.8/src/mips/full-codegen-mips.cc +0 -277
- data/ext/v8/upstream/3.1.8/src/mips/ic-mips.cc +0 -208
- data/ext/v8/upstream/3.1.8/src/mips/jump-target-mips.cc +0 -175
- data/ext/v8/upstream/3.1.8/src/mips/macro-assembler-mips.cc +0 -1326
- data/ext/v8/upstream/3.1.8/src/mips/macro-assembler-mips.h +0 -461
- data/ext/v8/upstream/3.1.8/src/mips/register-allocator-mips-inl.h +0 -137
- data/ext/v8/upstream/3.1.8/src/mips/register-allocator-mips.h +0 -46
- data/ext/v8/upstream/3.1.8/src/mips/simulator-mips.cc +0 -1650
- data/ext/v8/upstream/3.1.8/src/mips/simulator-mips.h +0 -311
- data/ext/v8/upstream/3.1.8/src/mips/stub-cache-mips.cc +0 -418
- data/ext/v8/upstream/3.1.8/src/mips/virtual-frame-mips.cc +0 -319
- data/ext/v8/upstream/3.1.8/src/mips/virtual-frame-mips.h +0 -548
- data/ext/v8/upstream/3.1.8/src/mirror-debugger.js +0 -2380
- data/ext/v8/upstream/3.1.8/src/mksnapshot.cc +0 -256
- data/ext/v8/upstream/3.1.8/src/objects-debug.cc +0 -722
- data/ext/v8/upstream/3.1.8/src/objects-inl.h +0 -3946
- data/ext/v8/upstream/3.1.8/src/objects-printer.cc +0 -801
- data/ext/v8/upstream/3.1.8/src/objects-visiting.cc +0 -142
- data/ext/v8/upstream/3.1.8/src/objects-visiting.h +0 -401
- data/ext/v8/upstream/3.1.8/src/objects.cc +0 -10044
- data/ext/v8/upstream/3.1.8/src/objects.h +0 -6571
- data/ext/v8/upstream/3.1.8/src/parser.cc +0 -5165
- data/ext/v8/upstream/3.1.8/src/parser.h +0 -802
- data/ext/v8/upstream/3.1.8/src/platform-cygwin.cc +0 -745
- data/ext/v8/upstream/3.1.8/src/platform-freebsd.cc +0 -702
- data/ext/v8/upstream/3.1.8/src/platform-linux.cc +0 -981
- data/ext/v8/upstream/3.1.8/src/platform-macos.cc +0 -732
- data/ext/v8/upstream/3.1.8/src/platform-nullos.cc +0 -498
- data/ext/v8/upstream/3.1.8/src/platform-openbsd.cc +0 -657
- data/ext/v8/upstream/3.1.8/src/platform-posix.cc +0 -399
- data/ext/v8/upstream/3.1.8/src/platform-solaris.cc +0 -714
- data/ext/v8/upstream/3.1.8/src/platform-win32.cc +0 -1974
- data/ext/v8/upstream/3.1.8/src/platform.h +0 -636
- data/ext/v8/upstream/3.1.8/src/preparse-data.cc +0 -183
- data/ext/v8/upstream/3.1.8/src/preparser-api.cc +0 -213
- data/ext/v8/upstream/3.1.8/src/preparser.cc +0 -1205
- data/ext/v8/upstream/3.1.8/src/prettyprinter.cc +0 -1539
- data/ext/v8/upstream/3.1.8/src/prettyprinter.h +0 -223
- data/ext/v8/upstream/3.1.8/src/profile-generator.cc +0 -2899
- data/ext/v8/upstream/3.1.8/src/profile-generator.h +0 -1151
- data/ext/v8/upstream/3.1.8/src/property.cc +0 -96
- data/ext/v8/upstream/3.1.8/src/property.h +0 -337
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-irregexp.cc +0 -470
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler.cc +0 -257
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler.h +0 -231
- data/ext/v8/upstream/3.1.8/src/regexp-stack.cc +0 -103
- data/ext/v8/upstream/3.1.8/src/regexp-stack.h +0 -123
- data/ext/v8/upstream/3.1.8/src/regexp.js +0 -483
- data/ext/v8/upstream/3.1.8/src/register-allocator-inl.h +0 -141
- data/ext/v8/upstream/3.1.8/src/register-allocator.cc +0 -104
- data/ext/v8/upstream/3.1.8/src/register-allocator.h +0 -320
- data/ext/v8/upstream/3.1.8/src/rewriter.cc +0 -1023
- data/ext/v8/upstream/3.1.8/src/runtime-profiler.cc +0 -443
- data/ext/v8/upstream/3.1.8/src/runtime-profiler.h +0 -77
- data/ext/v8/upstream/3.1.8/src/runtime.cc +0 -11592
- data/ext/v8/upstream/3.1.8/src/runtime.h +0 -582
- data/ext/v8/upstream/3.1.8/src/safepoint-table.cc +0 -253
- data/ext/v8/upstream/3.1.8/src/safepoint-table.h +0 -263
- data/ext/v8/upstream/3.1.8/src/scanner-base.cc +0 -971
- data/ext/v8/upstream/3.1.8/src/scanner-base.h +0 -653
- data/ext/v8/upstream/3.1.8/src/scanner.cc +0 -586
- data/ext/v8/upstream/3.1.8/src/scanner.h +0 -194
- data/ext/v8/upstream/3.1.8/src/scopeinfo.cc +0 -636
- data/ext/v8/upstream/3.1.8/src/scopeinfo.h +0 -238
- data/ext/v8/upstream/3.1.8/src/scopes.cc +0 -1063
- data/ext/v8/upstream/3.1.8/src/scopes.h +0 -494
- data/ext/v8/upstream/3.1.8/src/serialize.cc +0 -1535
- data/ext/v8/upstream/3.1.8/src/serialize.h +0 -584
- data/ext/v8/upstream/3.1.8/src/snapshot-common.cc +0 -82
- data/ext/v8/upstream/3.1.8/src/snapshot.h +0 -71
- data/ext/v8/upstream/3.1.8/src/spaces-inl.h +0 -524
- data/ext/v8/upstream/3.1.8/src/spaces.cc +0 -3254
- data/ext/v8/upstream/3.1.8/src/spaces.h +0 -2362
- data/ext/v8/upstream/3.1.8/src/string-search.cc +0 -40
- data/ext/v8/upstream/3.1.8/src/string-search.h +0 -567
- data/ext/v8/upstream/3.1.8/src/string-stream.cc +0 -584
- data/ext/v8/upstream/3.1.8/src/string.js +0 -915
- data/ext/v8/upstream/3.1.8/src/stub-cache.cc +0 -1878
- data/ext/v8/upstream/3.1.8/src/stub-cache.h +0 -849
- data/ext/v8/upstream/3.1.8/src/token.cc +0 -63
- data/ext/v8/upstream/3.1.8/src/token.h +0 -288
- data/ext/v8/upstream/3.1.8/src/top.cc +0 -1152
- data/ext/v8/upstream/3.1.8/src/top.h +0 -608
- data/ext/v8/upstream/3.1.8/src/type-info.cc +0 -406
- data/ext/v8/upstream/3.1.8/src/type-info.h +0 -283
- data/ext/v8/upstream/3.1.8/src/unicode.cc +0 -1624
- data/ext/v8/upstream/3.1.8/src/unicode.h +0 -280
- data/ext/v8/upstream/3.1.8/src/utils.h +0 -793
- data/ext/v8/upstream/3.1.8/src/v8-counters.cc +0 -55
- data/ext/v8/upstream/3.1.8/src/v8-counters.h +0 -290
- data/ext/v8/upstream/3.1.8/src/v8.cc +0 -270
- data/ext/v8/upstream/3.1.8/src/v8.h +0 -127
- data/ext/v8/upstream/3.1.8/src/v8globals.h +0 -480
- data/ext/v8/upstream/3.1.8/src/v8natives.js +0 -1252
- data/ext/v8/upstream/3.1.8/src/v8threads.cc +0 -440
- data/ext/v8/upstream/3.1.8/src/v8threads.h +0 -157
- data/ext/v8/upstream/3.1.8/src/v8utils.h +0 -354
- data/ext/v8/upstream/3.1.8/src/variables.h +0 -212
- data/ext/v8/upstream/3.1.8/src/version.cc +0 -95
- data/ext/v8/upstream/3.1.8/src/version.h +0 -64
- data/ext/v8/upstream/3.1.8/src/virtual-frame-light-inl.h +0 -170
- data/ext/v8/upstream/3.1.8/src/vm-state-inl.h +0 -134
- data/ext/v8/upstream/3.1.8/src/vm-state.h +0 -68
- data/ext/v8/upstream/3.1.8/src/win32-headers.h +0 -95
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64-inl.h +0 -455
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64.cc +0 -3162
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64.h +0 -1584
- data/ext/v8/upstream/3.1.8/src/x64/builtins-x64.cc +0 -1492
- data/ext/v8/upstream/3.1.8/src/x64/code-stubs-x64.cc +0 -5150
- data/ext/v8/upstream/3.1.8/src/x64/code-stubs-x64.h +0 -519
- data/ext/v8/upstream/3.1.8/src/x64/codegen-x64.cc +0 -8835
- data/ext/v8/upstream/3.1.8/src/x64/codegen-x64.h +0 -750
- data/ext/v8/upstream/3.1.8/src/x64/cpu-x64.cc +0 -86
- data/ext/v8/upstream/3.1.8/src/x64/debug-x64.cc +0 -316
- data/ext/v8/upstream/3.1.8/src/x64/deoptimizer-x64.cc +0 -781
- data/ext/v8/upstream/3.1.8/src/x64/disasm-x64.cc +0 -1737
- data/ext/v8/upstream/3.1.8/src/x64/frames-x64.h +0 -130
- data/ext/v8/upstream/3.1.8/src/x64/full-codegen-x64.cc +0 -3984
- data/ext/v8/upstream/3.1.8/src/x64/ic-x64.cc +0 -1761
- data/ext/v8/upstream/3.1.8/src/x64/lithium-codegen-x64.cc +0 -3639
- data/ext/v8/upstream/3.1.8/src/x64/lithium-codegen-x64.h +0 -305
- data/ext/v8/upstream/3.1.8/src/x64/lithium-x64.cc +0 -2044
- data/ext/v8/upstream/3.1.8/src/x64/lithium-x64.h +0 -2052
- data/ext/v8/upstream/3.1.8/src/x64/macro-assembler-x64.cc +0 -2660
- data/ext/v8/upstream/3.1.8/src/x64/macro-assembler-x64.h +0 -1852
- data/ext/v8/upstream/3.1.8/src/x64/regexp-macro-assembler-x64.cc +0 -1382
- data/ext/v8/upstream/3.1.8/src/x64/regexp-macro-assembler-x64.h +0 -278
- data/ext/v8/upstream/3.1.8/src/x64/register-allocator-x64-inl.h +0 -87
- data/ext/v8/upstream/3.1.8/src/x64/register-allocator-x64.cc +0 -91
- data/ext/v8/upstream/3.1.8/src/x64/simulator-x64.h +0 -71
- data/ext/v8/upstream/3.1.8/src/x64/stub-cache-x64.cc +0 -3509
- data/ext/v8/upstream/3.1.8/src/x64/virtual-frame-x64.cc +0 -1292
- data/ext/v8/upstream/3.1.8/src/x64/virtual-frame-x64.h +0 -593
- data/ext/v8/upstream/3.1.8/src/zone-inl.h +0 -83
- data/ext/v8/upstream/3.1.8/src/zone.cc +0 -195
- data/ext/v8/upstream/3.1.8/src/zone.h +0 -233
- data/ext/v8/upstream/3.1.8/tools/gyp/v8.gyp +0 -869
- data/ext/v8/upstream/3.1.8/tools/linux-tick-processor +0 -33
- data/ext/v8/upstream/3.1.8/tools/tickprocessor.js +0 -863
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base.vcproj +0 -1296
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base_arm.vcproj +0 -1234
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base_x64.vcproj +0 -1296
- data/ext/v8/upstream/3.1.8/tools/visual_studio/x64.vsprops +0 -17
- data/spec/ext/mem_spec.rb +0 -42
@@ -0,0 +1,88 @@
|
|
1
|
+
// Copyright 2011 the V8 project authors. All rights reserved.
|
2
|
+
// Redistribution and use in source and binary forms, with or without
|
3
|
+
// modification, are permitted provided that the following conditions are
|
4
|
+
// met:
|
5
|
+
//
|
6
|
+
// * Redistributions of source code must retain the above copyright
|
7
|
+
// notice, this list of conditions and the following disclaimer.
|
8
|
+
// * Redistributions in binary form must reproduce the above
|
9
|
+
// copyright notice, this list of conditions and the following
|
10
|
+
// disclaimer in the documentation and/or other materials provided
|
11
|
+
// with the distribution.
|
12
|
+
// * Neither the name of Google Inc. nor the names of its
|
13
|
+
// contributors may be used to endorse or promote products derived
|
14
|
+
// from this software without specific prior written permission.
|
15
|
+
//
|
16
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
|
28
|
+
// CPU specific code for x64 independent of OS goes here.
|
29
|
+
|
30
|
+
#ifdef __GNUC__
|
31
|
+
#include "third_party/valgrind/valgrind.h"
|
32
|
+
#endif
|
33
|
+
|
34
|
+
#include "v8.h"
|
35
|
+
|
36
|
+
#if defined(V8_TARGET_ARCH_X64)
|
37
|
+
|
38
|
+
#include "cpu.h"
|
39
|
+
#include "macro-assembler.h"
|
40
|
+
|
41
|
+
namespace v8 {
|
42
|
+
namespace internal {
|
43
|
+
|
44
|
+
void CPU::Setup() {
|
45
|
+
CpuFeatures::Probe();
|
46
|
+
}
|
47
|
+
|
48
|
+
|
49
|
+
bool CPU::SupportsCrankshaft() {
|
50
|
+
return true; // Yay!
|
51
|
+
}
|
52
|
+
|
53
|
+
|
54
|
+
void CPU::FlushICache(void* start, size_t size) {
|
55
|
+
// No need to flush the instruction cache on Intel. On Intel instruction
|
56
|
+
// cache flushing is only necessary when multiple cores running the same
|
57
|
+
// code simultaneously. V8 (and JavaScript) is single threaded and when code
|
58
|
+
// is patched on an intel CPU the core performing the patching will have its
|
59
|
+
// own instruction cache updated automatically.
|
60
|
+
|
61
|
+
// If flushing of the instruction cache becomes necessary Windows has the
|
62
|
+
// API function FlushInstructionCache.
|
63
|
+
|
64
|
+
// By default, valgrind only checks the stack for writes that might need to
|
65
|
+
// invalidate already cached translated code. This leads to random
|
66
|
+
// instability when code patches or moves are sometimes unnoticed. One
|
67
|
+
// solution is to run valgrind with --smc-check=all, but this comes at a big
|
68
|
+
// performance cost. We can notify valgrind to invalidate its cache.
|
69
|
+
#ifdef VALGRIND_DISCARD_TRANSLATIONS
|
70
|
+
VALGRIND_DISCARD_TRANSLATIONS(start, size);
|
71
|
+
#endif
|
72
|
+
}
|
73
|
+
|
74
|
+
|
75
|
+
void CPU::DebugBreak() {
|
76
|
+
#ifdef _MSC_VER
|
77
|
+
// To avoid Visual Studio runtime support the following code can be used
|
78
|
+
// instead
|
79
|
+
// __asm { int 3 }
|
80
|
+
__debugbreak();
|
81
|
+
#else
|
82
|
+
asm("int $3");
|
83
|
+
#endif
|
84
|
+
}
|
85
|
+
|
86
|
+
} } // namespace v8::internal
|
87
|
+
|
88
|
+
#endif // V8_TARGET_ARCH_X64
|
@@ -0,0 +1,318 @@
|
|
1
|
+
// Copyright 2011 the V8 project authors. All rights reserved.
|
2
|
+
// Redistribution and use in source and binary forms, with or without
|
3
|
+
// modification, are permitted provided that the following conditions are
|
4
|
+
// met:
|
5
|
+
//
|
6
|
+
// * Redistributions of source code must retain the above copyright
|
7
|
+
// notice, this list of conditions and the following disclaimer.
|
8
|
+
// * Redistributions in binary form must reproduce the above
|
9
|
+
// copyright notice, this list of conditions and the following
|
10
|
+
// disclaimer in the documentation and/or other materials provided
|
11
|
+
// with the distribution.
|
12
|
+
// * Neither the name of Google Inc. nor the names of its
|
13
|
+
// contributors may be used to endorse or promote products derived
|
14
|
+
// from this software without specific prior written permission.
|
15
|
+
//
|
16
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
|
28
|
+
#include "v8.h"
|
29
|
+
|
30
|
+
#if defined(V8_TARGET_ARCH_X64)
|
31
|
+
|
32
|
+
#include "codegen-inl.h"
|
33
|
+
#include "debug.h"
|
34
|
+
|
35
|
+
|
36
|
+
namespace v8 {
|
37
|
+
namespace internal {
|
38
|
+
|
39
|
+
#ifdef ENABLE_DEBUGGER_SUPPORT
|
40
|
+
|
41
|
+
bool BreakLocationIterator::IsDebugBreakAtReturn() {
|
42
|
+
return Debug::IsDebugBreakAtReturn(rinfo());
|
43
|
+
}
|
44
|
+
|
45
|
+
|
46
|
+
// Patch the JS frame exit code with a debug break call. See
|
47
|
+
// CodeGenerator::VisitReturnStatement and VirtualFrame::Exit in codegen-x64.cc
|
48
|
+
// for the precise return instructions sequence.
|
49
|
+
void BreakLocationIterator::SetDebugBreakAtReturn() {
|
50
|
+
ASSERT(Assembler::kJSReturnSequenceLength >=
|
51
|
+
Assembler::kCallInstructionLength);
|
52
|
+
rinfo()->PatchCodeWithCall(
|
53
|
+
Isolate::Current()->debug()->debug_break_return()->entry(),
|
54
|
+
Assembler::kJSReturnSequenceLength - Assembler::kCallInstructionLength);
|
55
|
+
}
|
56
|
+
|
57
|
+
|
58
|
+
// Restore the JS frame exit code.
|
59
|
+
void BreakLocationIterator::ClearDebugBreakAtReturn() {
|
60
|
+
rinfo()->PatchCode(original_rinfo()->pc(),
|
61
|
+
Assembler::kJSReturnSequenceLength);
|
62
|
+
}
|
63
|
+
|
64
|
+
|
65
|
+
// A debug break in the frame exit code is identified by the JS frame exit code
|
66
|
+
// having been patched with a call instruction.
|
67
|
+
bool Debug::IsDebugBreakAtReturn(v8::internal::RelocInfo* rinfo) {
|
68
|
+
ASSERT(RelocInfo::IsJSReturn(rinfo->rmode()));
|
69
|
+
return rinfo->IsPatchedReturnSequence();
|
70
|
+
}
|
71
|
+
|
72
|
+
|
73
|
+
bool BreakLocationIterator::IsDebugBreakAtSlot() {
|
74
|
+
ASSERT(IsDebugBreakSlot());
|
75
|
+
// Check whether the debug break slot instructions have been patched.
|
76
|
+
return !Assembler::IsNop(rinfo()->pc());
|
77
|
+
}
|
78
|
+
|
79
|
+
|
80
|
+
void BreakLocationIterator::SetDebugBreakAtSlot() {
|
81
|
+
ASSERT(IsDebugBreakSlot());
|
82
|
+
rinfo()->PatchCodeWithCall(
|
83
|
+
Isolate::Current()->debug()->debug_break_slot()->entry(),
|
84
|
+
Assembler::kDebugBreakSlotLength - Assembler::kCallInstructionLength);
|
85
|
+
}
|
86
|
+
|
87
|
+
|
88
|
+
void BreakLocationIterator::ClearDebugBreakAtSlot() {
|
89
|
+
ASSERT(IsDebugBreakSlot());
|
90
|
+
rinfo()->PatchCode(original_rinfo()->pc(), Assembler::kDebugBreakSlotLength);
|
91
|
+
}
|
92
|
+
|
93
|
+
|
94
|
+
#define __ ACCESS_MASM(masm)
|
95
|
+
|
96
|
+
|
97
|
+
static void Generate_DebugBreakCallHelper(MacroAssembler* masm,
|
98
|
+
RegList object_regs,
|
99
|
+
RegList non_object_regs,
|
100
|
+
bool convert_call_to_jmp) {
|
101
|
+
// Enter an internal frame.
|
102
|
+
__ EnterInternalFrame();
|
103
|
+
|
104
|
+
// Store the registers containing live values on the expression stack to
|
105
|
+
// make sure that these are correctly updated during GC. Non object values
|
106
|
+
// are stored as as two smis causing it to be untouched by GC.
|
107
|
+
ASSERT((object_regs & ~kJSCallerSaved) == 0);
|
108
|
+
ASSERT((non_object_regs & ~kJSCallerSaved) == 0);
|
109
|
+
ASSERT((object_regs & non_object_regs) == 0);
|
110
|
+
for (int i = 0; i < kNumJSCallerSaved; i++) {
|
111
|
+
int r = JSCallerSavedCode(i);
|
112
|
+
Register reg = { r };
|
113
|
+
ASSERT(!reg.is(kScratchRegister));
|
114
|
+
if ((object_regs & (1 << r)) != 0) {
|
115
|
+
__ push(reg);
|
116
|
+
}
|
117
|
+
// Store the 64-bit value as two smis.
|
118
|
+
if ((non_object_regs & (1 << r)) != 0) {
|
119
|
+
__ movq(kScratchRegister, reg);
|
120
|
+
__ Integer32ToSmi(reg, reg);
|
121
|
+
__ push(reg);
|
122
|
+
__ sar(kScratchRegister, Immediate(32));
|
123
|
+
__ Integer32ToSmi(kScratchRegister, kScratchRegister);
|
124
|
+
__ push(kScratchRegister);
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
#ifdef DEBUG
|
129
|
+
__ RecordComment("// Calling from debug break to runtime - come in - over");
|
130
|
+
#endif
|
131
|
+
__ Set(rax, 0); // No arguments (argc == 0).
|
132
|
+
__ movq(rbx, ExternalReference::debug_break(masm->isolate()));
|
133
|
+
|
134
|
+
CEntryStub ceb(1);
|
135
|
+
__ CallStub(&ceb);
|
136
|
+
|
137
|
+
// Restore the register values from the expression stack.
|
138
|
+
for (int i = kNumJSCallerSaved - 1; i >= 0; i--) {
|
139
|
+
int r = JSCallerSavedCode(i);
|
140
|
+
Register reg = { r };
|
141
|
+
if (FLAG_debug_code) {
|
142
|
+
__ Set(reg, kDebugZapValue);
|
143
|
+
}
|
144
|
+
if ((object_regs & (1 << r)) != 0) {
|
145
|
+
__ pop(reg);
|
146
|
+
}
|
147
|
+
// Reconstruct the 64-bit value from two smis.
|
148
|
+
if ((non_object_regs & (1 << r)) != 0) {
|
149
|
+
__ pop(kScratchRegister);
|
150
|
+
__ SmiToInteger32(kScratchRegister, kScratchRegister);
|
151
|
+
__ shl(kScratchRegister, Immediate(32));
|
152
|
+
__ pop(reg);
|
153
|
+
__ SmiToInteger32(reg, reg);
|
154
|
+
__ or_(reg, kScratchRegister);
|
155
|
+
}
|
156
|
+
}
|
157
|
+
|
158
|
+
// Get rid of the internal frame.
|
159
|
+
__ LeaveInternalFrame();
|
160
|
+
|
161
|
+
// If this call did not replace a call but patched other code then there will
|
162
|
+
// be an unwanted return address left on the stack. Here we get rid of that.
|
163
|
+
if (convert_call_to_jmp) {
|
164
|
+
__ addq(rsp, Immediate(kPointerSize));
|
165
|
+
}
|
166
|
+
|
167
|
+
// Now that the break point has been handled, resume normal execution by
|
168
|
+
// jumping to the target address intended by the caller and that was
|
169
|
+
// overwritten by the address of DebugBreakXXX.
|
170
|
+
ExternalReference after_break_target =
|
171
|
+
ExternalReference(Debug_Address::AfterBreakTarget(), masm->isolate());
|
172
|
+
__ movq(kScratchRegister, after_break_target);
|
173
|
+
__ jmp(Operand(kScratchRegister, 0));
|
174
|
+
}
|
175
|
+
|
176
|
+
|
177
|
+
void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) {
|
178
|
+
// Register state for IC load call (from ic-x64.cc).
|
179
|
+
// ----------- S t a t e -------------
|
180
|
+
// -- rax : receiver
|
181
|
+
// -- rcx : name
|
182
|
+
// -----------------------------------
|
183
|
+
Generate_DebugBreakCallHelper(masm, rax.bit() | rcx.bit(), 0, false);
|
184
|
+
}
|
185
|
+
|
186
|
+
|
187
|
+
void Debug::GenerateStoreICDebugBreak(MacroAssembler* masm) {
|
188
|
+
// Register state for IC store call (from ic-x64.cc).
|
189
|
+
// ----------- S t a t e -------------
|
190
|
+
// -- rax : value
|
191
|
+
// -- rcx : name
|
192
|
+
// -- rdx : receiver
|
193
|
+
// -----------------------------------
|
194
|
+
Generate_DebugBreakCallHelper(
|
195
|
+
masm, rax.bit() | rcx.bit() | rdx.bit(), 0, false);
|
196
|
+
}
|
197
|
+
|
198
|
+
|
199
|
+
void Debug::GenerateKeyedLoadICDebugBreak(MacroAssembler* masm) {
|
200
|
+
// Register state for keyed IC load call (from ic-x64.cc).
|
201
|
+
// ----------- S t a t e -------------
|
202
|
+
// -- rax : key
|
203
|
+
// -- rdx : receiver
|
204
|
+
// -----------------------------------
|
205
|
+
Generate_DebugBreakCallHelper(masm, rax.bit() | rdx.bit(), 0, false);
|
206
|
+
}
|
207
|
+
|
208
|
+
|
209
|
+
void Debug::GenerateKeyedStoreICDebugBreak(MacroAssembler* masm) {
|
210
|
+
// Register state for keyed IC load call (from ic-x64.cc).
|
211
|
+
// ----------- S t a t e -------------
|
212
|
+
// -- rax : value
|
213
|
+
// -- rcx : key
|
214
|
+
// -- rdx : receiver
|
215
|
+
// -----------------------------------
|
216
|
+
Generate_DebugBreakCallHelper(
|
217
|
+
masm, rax.bit() | rcx.bit() | rdx.bit(), 0, false);
|
218
|
+
}
|
219
|
+
|
220
|
+
|
221
|
+
void Debug::GenerateCallICDebugBreak(MacroAssembler* masm) {
|
222
|
+
// Register state for IC call call (from ic-x64.cc)
|
223
|
+
// ----------- S t a t e -------------
|
224
|
+
// -- rcx: function name
|
225
|
+
// -----------------------------------
|
226
|
+
Generate_DebugBreakCallHelper(masm, rcx.bit(), 0, false);
|
227
|
+
}
|
228
|
+
|
229
|
+
|
230
|
+
void Debug::GenerateConstructCallDebugBreak(MacroAssembler* masm) {
|
231
|
+
// Register state just before return from JS function (from codegen-x64.cc).
|
232
|
+
// rax is the actual number of arguments not encoded as a smi, see comment
|
233
|
+
// above IC call.
|
234
|
+
// ----------- S t a t e -------------
|
235
|
+
// -- rax: number of arguments
|
236
|
+
// -----------------------------------
|
237
|
+
// The number of arguments in rax is not smi encoded.
|
238
|
+
Generate_DebugBreakCallHelper(masm, rdi.bit(), rax.bit(), false);
|
239
|
+
}
|
240
|
+
|
241
|
+
|
242
|
+
void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) {
|
243
|
+
// Register state just before return from JS function (from codegen-x64.cc).
|
244
|
+
// ----------- S t a t e -------------
|
245
|
+
// -- rax: return value
|
246
|
+
// -----------------------------------
|
247
|
+
Generate_DebugBreakCallHelper(masm, rax.bit(), 0, true);
|
248
|
+
}
|
249
|
+
|
250
|
+
|
251
|
+
void Debug::GenerateStubNoRegistersDebugBreak(MacroAssembler* masm) {
|
252
|
+
// Register state for stub CallFunction (from CallFunctionStub in ic-x64.cc).
|
253
|
+
// ----------- S t a t e -------------
|
254
|
+
// No registers used on entry.
|
255
|
+
// -----------------------------------
|
256
|
+
Generate_DebugBreakCallHelper(masm, 0, 0, false);
|
257
|
+
}
|
258
|
+
|
259
|
+
|
260
|
+
void Debug::GenerateSlot(MacroAssembler* masm) {
|
261
|
+
// Generate enough nop's to make space for a call instruction.
|
262
|
+
Label check_codesize;
|
263
|
+
__ bind(&check_codesize);
|
264
|
+
__ RecordDebugBreakSlot();
|
265
|
+
for (int i = 0; i < Assembler::kDebugBreakSlotLength; i++) {
|
266
|
+
__ nop();
|
267
|
+
}
|
268
|
+
ASSERT_EQ(Assembler::kDebugBreakSlotLength,
|
269
|
+
masm->SizeOfCodeGeneratedSince(&check_codesize));
|
270
|
+
}
|
271
|
+
|
272
|
+
|
273
|
+
void Debug::GenerateSlotDebugBreak(MacroAssembler* masm) {
|
274
|
+
// In the places where a debug break slot is inserted no registers can contain
|
275
|
+
// object pointers.
|
276
|
+
Generate_DebugBreakCallHelper(masm, 0, 0, true);
|
277
|
+
}
|
278
|
+
|
279
|
+
|
280
|
+
void Debug::GeneratePlainReturnLiveEdit(MacroAssembler* masm) {
|
281
|
+
masm->ret(0);
|
282
|
+
}
|
283
|
+
|
284
|
+
|
285
|
+
void Debug::GenerateFrameDropperLiveEdit(MacroAssembler* masm) {
|
286
|
+
ExternalReference restarter_frame_function_slot =
|
287
|
+
ExternalReference(Debug_Address::RestarterFrameFunctionPointer(),
|
288
|
+
masm->isolate());
|
289
|
+
__ movq(rax, restarter_frame_function_slot);
|
290
|
+
__ movq(Operand(rax, 0), Immediate(0));
|
291
|
+
|
292
|
+
// We do not know our frame height, but set rsp based on rbp.
|
293
|
+
__ lea(rsp, Operand(rbp, -1 * kPointerSize));
|
294
|
+
|
295
|
+
__ pop(rdi); // Function.
|
296
|
+
__ pop(rbp);
|
297
|
+
|
298
|
+
// Load context from the function.
|
299
|
+
__ movq(rsi, FieldOperand(rdi, JSFunction::kContextOffset));
|
300
|
+
|
301
|
+
// Get function code.
|
302
|
+
__ movq(rdx, FieldOperand(rdi, JSFunction::kSharedFunctionInfoOffset));
|
303
|
+
__ movq(rdx, FieldOperand(rdx, SharedFunctionInfo::kCodeOffset));
|
304
|
+
__ lea(rdx, FieldOperand(rdx, Code::kHeaderSize));
|
305
|
+
|
306
|
+
// Re-run JSFunction, rdi is function, rsi is context.
|
307
|
+
__ jmp(rdx);
|
308
|
+
}
|
309
|
+
|
310
|
+
const bool Debug::kFrameDropperSupported = true;
|
311
|
+
|
312
|
+
#undef __
|
313
|
+
|
314
|
+
#endif // ENABLE_DEBUGGER_SUPPORT
|
315
|
+
|
316
|
+
} } // namespace v8::internal
|
317
|
+
|
318
|
+
#endif // V8_TARGET_ARCH_X64
|
@@ -0,0 +1,815 @@
|
|
1
|
+
// Copyright 2011 the V8 project authors. All rights reserved.
|
2
|
+
// Redistribution and use in source and binary forms, with or without
|
3
|
+
// modification, are permitted provided that the following conditions are
|
4
|
+
// met:
|
5
|
+
//
|
6
|
+
// * Redistributions of source code must retain the above copyright
|
7
|
+
// notice, this list of conditions and the following disclaimer.
|
8
|
+
// * Redistributions in binary form must reproduce the above
|
9
|
+
// copyright notice, this list of conditions and the following
|
10
|
+
// disclaimer in the documentation and/or other materials provided
|
11
|
+
// with the distribution.
|
12
|
+
// * Neither the name of Google Inc. nor the names of its
|
13
|
+
// contributors may be used to endorse or promote products derived
|
14
|
+
// from this software without specific prior written permission.
|
15
|
+
//
|
16
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
|
28
|
+
#include "v8.h"
|
29
|
+
|
30
|
+
#if defined(V8_TARGET_ARCH_X64)
|
31
|
+
|
32
|
+
#include "codegen.h"
|
33
|
+
#include "deoptimizer.h"
|
34
|
+
#include "full-codegen.h"
|
35
|
+
#include "safepoint-table.h"
|
36
|
+
|
37
|
+
namespace v8 {
|
38
|
+
namespace internal {
|
39
|
+
|
40
|
+
|
41
|
+
int Deoptimizer::table_entry_size_ = 10;
|
42
|
+
|
43
|
+
|
44
|
+
int Deoptimizer::patch_size() {
|
45
|
+
return MacroAssembler::kCallInstructionLength;
|
46
|
+
}
|
47
|
+
|
48
|
+
|
49
|
+
#ifdef DEBUG
|
50
|
+
// Overwrites code with int3 instructions.
|
51
|
+
static void ZapCodeRange(Address from, Address to) {
|
52
|
+
CHECK(from <= to);
|
53
|
+
int length = static_cast<int>(to - from);
|
54
|
+
CodePatcher destroyer(from, length);
|
55
|
+
while (length-- > 0) {
|
56
|
+
destroyer.masm()->int3();
|
57
|
+
}
|
58
|
+
}
|
59
|
+
#endif
|
60
|
+
|
61
|
+
|
62
|
+
// Iterate through the entries of a SafepointTable that corresponds to
|
63
|
+
// deoptimization points.
|
64
|
+
class SafepointTableDeoptimiztionEntryIterator {
|
65
|
+
public:
|
66
|
+
explicit SafepointTableDeoptimiztionEntryIterator(Code* code)
|
67
|
+
: code_(code), table_(code), index_(-1), limit_(table_.length()) {
|
68
|
+
FindNextIndex();
|
69
|
+
}
|
70
|
+
|
71
|
+
SafepointEntry Next(Address* pc) {
|
72
|
+
if (index_ >= limit_) {
|
73
|
+
*pc = NULL;
|
74
|
+
return SafepointEntry(); // Invalid entry.
|
75
|
+
}
|
76
|
+
*pc = code_->instruction_start() + table_.GetPcOffset(index_);
|
77
|
+
SafepointEntry entry = table_.GetEntry(index_);
|
78
|
+
FindNextIndex();
|
79
|
+
return entry;
|
80
|
+
}
|
81
|
+
|
82
|
+
private:
|
83
|
+
void FindNextIndex() {
|
84
|
+
ASSERT(index_ < limit_);
|
85
|
+
while (++index_ < limit_) {
|
86
|
+
if (table_.GetEntry(index_).deoptimization_index() !=
|
87
|
+
Safepoint::kNoDeoptimizationIndex) {
|
88
|
+
return;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
Code* code_;
|
94
|
+
SafepointTable table_;
|
95
|
+
// Index of next deoptimization entry. If negative after calling
|
96
|
+
// FindNextIndex, there are no more, and Next will return an invalid
|
97
|
+
// SafepointEntry.
|
98
|
+
int index_;
|
99
|
+
// Table length.
|
100
|
+
int limit_;
|
101
|
+
};
|
102
|
+
|
103
|
+
|
104
|
+
void Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(Handle<Code> code) {
|
105
|
+
// TODO(1276): Implement.
|
106
|
+
}
|
107
|
+
|
108
|
+
|
109
|
+
void Deoptimizer::DeoptimizeFunction(JSFunction* function) {
|
110
|
+
HandleScope scope;
|
111
|
+
AssertNoAllocation no_allocation;
|
112
|
+
|
113
|
+
if (!function->IsOptimized()) return;
|
114
|
+
|
115
|
+
// Get the optimized code.
|
116
|
+
Code* code = function->code();
|
117
|
+
|
118
|
+
// Invalidate the relocation information, as it will become invalid by the
|
119
|
+
// code patching below, and is not needed any more.
|
120
|
+
code->InvalidateRelocation();
|
121
|
+
|
122
|
+
// For each return after a safepoint insert a absolute call to the
|
123
|
+
// corresponding deoptimization entry, or a short call to an absolute
|
124
|
+
// jump if space is short. The absolute jumps are put in a table just
|
125
|
+
// before the safepoint table (space was allocated there when the Code
|
126
|
+
// object was created, if necessary).
|
127
|
+
|
128
|
+
Address instruction_start = function->code()->instruction_start();
|
129
|
+
Address jump_table_address =
|
130
|
+
instruction_start + function->code()->safepoint_table_offset();
|
131
|
+
Address previous_pc = instruction_start;
|
132
|
+
|
133
|
+
SafepointTableDeoptimiztionEntryIterator deoptimizations(function->code());
|
134
|
+
Address entry_pc = NULL;
|
135
|
+
|
136
|
+
SafepointEntry current_entry = deoptimizations.Next(&entry_pc);
|
137
|
+
while (current_entry.is_valid()) {
|
138
|
+
int gap_code_size = current_entry.gap_code_size();
|
139
|
+
unsigned deoptimization_index = current_entry.deoptimization_index();
|
140
|
+
|
141
|
+
#ifdef DEBUG
|
142
|
+
// Destroy the code which is not supposed to run again.
|
143
|
+
ZapCodeRange(previous_pc, entry_pc);
|
144
|
+
#endif
|
145
|
+
// Position where Call will be patched in.
|
146
|
+
Address call_address = entry_pc + gap_code_size;
|
147
|
+
// End of call instruction, if using a direct call to a 64-bit address.
|
148
|
+
Address call_end_address =
|
149
|
+
call_address + MacroAssembler::kCallInstructionLength;
|
150
|
+
|
151
|
+
// Find next deoptimization entry, if any.
|
152
|
+
Address next_pc = NULL;
|
153
|
+
SafepointEntry next_entry = deoptimizations.Next(&next_pc);
|
154
|
+
|
155
|
+
if (!next_entry.is_valid() || next_pc >= call_end_address) {
|
156
|
+
// Room enough to write a long call instruction.
|
157
|
+
CodePatcher patcher(call_address, Assembler::kCallInstructionLength);
|
158
|
+
patcher.masm()->Call(GetDeoptimizationEntry(deoptimization_index, LAZY),
|
159
|
+
RelocInfo::NONE);
|
160
|
+
previous_pc = call_end_address;
|
161
|
+
} else {
|
162
|
+
// Not room enough for a long Call instruction. Write a short call
|
163
|
+
// instruction to a long jump placed elsewhere in the code.
|
164
|
+
Address short_call_end_address =
|
165
|
+
call_address + MacroAssembler::kShortCallInstructionLength;
|
166
|
+
ASSERT(next_pc >= short_call_end_address);
|
167
|
+
|
168
|
+
// Write jump in jump-table.
|
169
|
+
jump_table_address -= MacroAssembler::kJumpInstructionLength;
|
170
|
+
CodePatcher jump_patcher(jump_table_address,
|
171
|
+
MacroAssembler::kJumpInstructionLength);
|
172
|
+
jump_patcher.masm()->Jump(
|
173
|
+
GetDeoptimizationEntry(deoptimization_index, LAZY),
|
174
|
+
RelocInfo::NONE);
|
175
|
+
|
176
|
+
// Write call to jump at call_offset.
|
177
|
+
CodePatcher call_patcher(call_address,
|
178
|
+
MacroAssembler::kShortCallInstructionLength);
|
179
|
+
call_patcher.masm()->call(jump_table_address);
|
180
|
+
previous_pc = short_call_end_address;
|
181
|
+
}
|
182
|
+
|
183
|
+
// Continue with next deoptimization entry.
|
184
|
+
current_entry = next_entry;
|
185
|
+
entry_pc = next_pc;
|
186
|
+
}
|
187
|
+
|
188
|
+
#ifdef DEBUG
|
189
|
+
// Destroy the code which is not supposed to run again.
|
190
|
+
ZapCodeRange(previous_pc, jump_table_address);
|
191
|
+
#endif
|
192
|
+
|
193
|
+
// Add the deoptimizing code to the list.
|
194
|
+
DeoptimizingCodeListNode* node = new DeoptimizingCodeListNode(code);
|
195
|
+
DeoptimizerData* data = code->GetIsolate()->deoptimizer_data();
|
196
|
+
node->set_next(data->deoptimizing_code_list_);
|
197
|
+
data->deoptimizing_code_list_ = node;
|
198
|
+
|
199
|
+
// Set the code for the function to non-optimized version.
|
200
|
+
function->ReplaceCode(function->shared()->code());
|
201
|
+
|
202
|
+
if (FLAG_trace_deopt) {
|
203
|
+
PrintF("[forced deoptimization: ");
|
204
|
+
function->PrintName();
|
205
|
+
PrintF(" / %" V8PRIxPTR "]\n", reinterpret_cast<intptr_t>(function));
|
206
|
+
#ifdef DEBUG
|
207
|
+
if (FLAG_print_code) {
|
208
|
+
code->PrintLn();
|
209
|
+
}
|
210
|
+
#endif
|
211
|
+
}
|
212
|
+
}
|
213
|
+
|
214
|
+
|
215
|
+
void Deoptimizer::PatchStackCheckCodeAt(Address pc_after,
|
216
|
+
Code* check_code,
|
217
|
+
Code* replacement_code) {
|
218
|
+
Address call_target_address = pc_after - kIntSize;
|
219
|
+
ASSERT(check_code->entry() ==
|
220
|
+
Assembler::target_address_at(call_target_address));
|
221
|
+
// The stack check code matches the pattern:
|
222
|
+
//
|
223
|
+
// cmp rsp, <limit>
|
224
|
+
// jae ok
|
225
|
+
// call <stack guard>
|
226
|
+
// test rax, <loop nesting depth>
|
227
|
+
// ok: ...
|
228
|
+
//
|
229
|
+
// We will patch away the branch so the code is:
|
230
|
+
//
|
231
|
+
// cmp rsp, <limit> ;; Not changed
|
232
|
+
// nop
|
233
|
+
// nop
|
234
|
+
// call <on-stack replacment>
|
235
|
+
// test rax, <loop nesting depth>
|
236
|
+
// ok:
|
237
|
+
//
|
238
|
+
ASSERT(*(call_target_address - 3) == 0x73 && // jae
|
239
|
+
*(call_target_address - 2) == 0x07 && // offset
|
240
|
+
*(call_target_address - 1) == 0xe8); // call
|
241
|
+
*(call_target_address - 3) = 0x90; // nop
|
242
|
+
*(call_target_address - 2) = 0x90; // nop
|
243
|
+
Assembler::set_target_address_at(call_target_address,
|
244
|
+
replacement_code->entry());
|
245
|
+
}
|
246
|
+
|
247
|
+
|
248
|
+
void Deoptimizer::RevertStackCheckCodeAt(Address pc_after,
|
249
|
+
Code* check_code,
|
250
|
+
Code* replacement_code) {
|
251
|
+
Address call_target_address = pc_after - kIntSize;
|
252
|
+
ASSERT(replacement_code->entry() ==
|
253
|
+
Assembler::target_address_at(call_target_address));
|
254
|
+
// Replace the nops from patching (Deoptimizer::PatchStackCheckCode) to
|
255
|
+
// restore the conditional branch.
|
256
|
+
ASSERT(*(call_target_address - 3) == 0x90 && // nop
|
257
|
+
*(call_target_address - 2) == 0x90 && // nop
|
258
|
+
*(call_target_address - 1) == 0xe8); // call
|
259
|
+
*(call_target_address - 3) = 0x73; // jae
|
260
|
+
*(call_target_address - 2) = 0x07; // offset
|
261
|
+
Assembler::set_target_address_at(call_target_address,
|
262
|
+
check_code->entry());
|
263
|
+
}
|
264
|
+
|
265
|
+
|
266
|
+
static int LookupBailoutId(DeoptimizationInputData* data, unsigned ast_id) {
|
267
|
+
ByteArray* translations = data->TranslationByteArray();
|
268
|
+
int length = data->DeoptCount();
|
269
|
+
for (int i = 0; i < length; i++) {
|
270
|
+
if (static_cast<unsigned>(data->AstId(i)->value()) == ast_id) {
|
271
|
+
TranslationIterator it(translations, data->TranslationIndex(i)->value());
|
272
|
+
int value = it.Next();
|
273
|
+
ASSERT(Translation::BEGIN == static_cast<Translation::Opcode>(value));
|
274
|
+
// Read the number of frames.
|
275
|
+
value = it.Next();
|
276
|
+
if (value == 1) return i;
|
277
|
+
}
|
278
|
+
}
|
279
|
+
UNREACHABLE();
|
280
|
+
return -1;
|
281
|
+
}
|
282
|
+
|
283
|
+
|
284
|
+
void Deoptimizer::DoComputeOsrOutputFrame() {
|
285
|
+
DeoptimizationInputData* data = DeoptimizationInputData::cast(
|
286
|
+
optimized_code_->deoptimization_data());
|
287
|
+
unsigned ast_id = data->OsrAstId()->value();
|
288
|
+
// TODO(kasperl): This should not be the bailout_id_. It should be
|
289
|
+
// the ast id. Confusing.
|
290
|
+
ASSERT(bailout_id_ == ast_id);
|
291
|
+
|
292
|
+
int bailout_id = LookupBailoutId(data, ast_id);
|
293
|
+
unsigned translation_index = data->TranslationIndex(bailout_id)->value();
|
294
|
+
ByteArray* translations = data->TranslationByteArray();
|
295
|
+
|
296
|
+
TranslationIterator iterator(translations, translation_index);
|
297
|
+
Translation::Opcode opcode =
|
298
|
+
static_cast<Translation::Opcode>(iterator.Next());
|
299
|
+
ASSERT(Translation::BEGIN == opcode);
|
300
|
+
USE(opcode);
|
301
|
+
int count = iterator.Next();
|
302
|
+
ASSERT(count == 1);
|
303
|
+
USE(count);
|
304
|
+
|
305
|
+
opcode = static_cast<Translation::Opcode>(iterator.Next());
|
306
|
+
USE(opcode);
|
307
|
+
ASSERT(Translation::FRAME == opcode);
|
308
|
+
unsigned node_id = iterator.Next();
|
309
|
+
USE(node_id);
|
310
|
+
ASSERT(node_id == ast_id);
|
311
|
+
JSFunction* function = JSFunction::cast(ComputeLiteral(iterator.Next()));
|
312
|
+
USE(function);
|
313
|
+
ASSERT(function == function_);
|
314
|
+
unsigned height = iterator.Next();
|
315
|
+
unsigned height_in_bytes = height * kPointerSize;
|
316
|
+
USE(height_in_bytes);
|
317
|
+
|
318
|
+
unsigned fixed_size = ComputeFixedSize(function_);
|
319
|
+
unsigned input_frame_size = static_cast<unsigned>(input_->GetFrameSize());
|
320
|
+
ASSERT(fixed_size + height_in_bytes == input_frame_size);
|
321
|
+
|
322
|
+
unsigned stack_slot_size = optimized_code_->stack_slots() * kPointerSize;
|
323
|
+
unsigned outgoing_height = data->ArgumentsStackHeight(bailout_id)->value();
|
324
|
+
unsigned outgoing_size = outgoing_height * kPointerSize;
|
325
|
+
unsigned output_frame_size = fixed_size + stack_slot_size + outgoing_size;
|
326
|
+
ASSERT(outgoing_size == 0); // OSR does not happen in the middle of a call.
|
327
|
+
|
328
|
+
if (FLAG_trace_osr) {
|
329
|
+
PrintF("[on-stack replacement: begin 0x%08" V8PRIxPTR " ",
|
330
|
+
reinterpret_cast<intptr_t>(function_));
|
331
|
+
function_->PrintName();
|
332
|
+
PrintF(" => node=%u, frame=%d->%d]\n",
|
333
|
+
ast_id,
|
334
|
+
input_frame_size,
|
335
|
+
output_frame_size);
|
336
|
+
}
|
337
|
+
|
338
|
+
// There's only one output frame in the OSR case.
|
339
|
+
output_count_ = 1;
|
340
|
+
output_ = new FrameDescription*[1];
|
341
|
+
output_[0] = new(output_frame_size) FrameDescription(
|
342
|
+
output_frame_size, function_);
|
343
|
+
|
344
|
+
// Clear the incoming parameters in the optimized frame to avoid
|
345
|
+
// confusing the garbage collector.
|
346
|
+
unsigned output_offset = output_frame_size - kPointerSize;
|
347
|
+
int parameter_count = function_->shared()->formal_parameter_count() + 1;
|
348
|
+
for (int i = 0; i < parameter_count; ++i) {
|
349
|
+
output_[0]->SetFrameSlot(output_offset, 0);
|
350
|
+
output_offset -= kPointerSize;
|
351
|
+
}
|
352
|
+
|
353
|
+
// Translate the incoming parameters. This may overwrite some of the
|
354
|
+
// incoming argument slots we've just cleared.
|
355
|
+
int input_offset = input_frame_size - kPointerSize;
|
356
|
+
bool ok = true;
|
357
|
+
int limit = input_offset - (parameter_count * kPointerSize);
|
358
|
+
while (ok && input_offset > limit) {
|
359
|
+
ok = DoOsrTranslateCommand(&iterator, &input_offset);
|
360
|
+
}
|
361
|
+
|
362
|
+
// There are no translation commands for the caller's pc and fp, the
|
363
|
+
// context, and the function. Set them up explicitly.
|
364
|
+
for (int i = StandardFrameConstants::kCallerPCOffset;
|
365
|
+
ok && i >= StandardFrameConstants::kMarkerOffset;
|
366
|
+
i -= kPointerSize) {
|
367
|
+
intptr_t input_value = input_->GetFrameSlot(input_offset);
|
368
|
+
if (FLAG_trace_osr) {
|
369
|
+
const char* name = "UNKNOWN";
|
370
|
+
switch (i) {
|
371
|
+
case StandardFrameConstants::kCallerPCOffset:
|
372
|
+
name = "caller's pc";
|
373
|
+
break;
|
374
|
+
case StandardFrameConstants::kCallerFPOffset:
|
375
|
+
name = "fp";
|
376
|
+
break;
|
377
|
+
case StandardFrameConstants::kContextOffset:
|
378
|
+
name = "context";
|
379
|
+
break;
|
380
|
+
case StandardFrameConstants::kMarkerOffset:
|
381
|
+
name = "function";
|
382
|
+
break;
|
383
|
+
}
|
384
|
+
PrintF(" [rsp + %d] <- 0x%08" V8PRIxPTR " ; [rsp + %d] "
|
385
|
+
"(fixed part - %s)\n",
|
386
|
+
output_offset,
|
387
|
+
input_value,
|
388
|
+
input_offset,
|
389
|
+
name);
|
390
|
+
}
|
391
|
+
output_[0]->SetFrameSlot(output_offset, input_->GetFrameSlot(input_offset));
|
392
|
+
input_offset -= kPointerSize;
|
393
|
+
output_offset -= kPointerSize;
|
394
|
+
}
|
395
|
+
|
396
|
+
// Translate the rest of the frame.
|
397
|
+
while (ok && input_offset >= 0) {
|
398
|
+
ok = DoOsrTranslateCommand(&iterator, &input_offset);
|
399
|
+
}
|
400
|
+
|
401
|
+
// If translation of any command failed, continue using the input frame.
|
402
|
+
if (!ok) {
|
403
|
+
delete output_[0];
|
404
|
+
output_[0] = input_;
|
405
|
+
output_[0]->SetPc(reinterpret_cast<intptr_t>(from_));
|
406
|
+
} else {
|
407
|
+
// Setup the frame pointer and the context pointer.
|
408
|
+
output_[0]->SetRegister(rbp.code(), input_->GetRegister(rbp.code()));
|
409
|
+
output_[0]->SetRegister(rsi.code(), input_->GetRegister(rsi.code()));
|
410
|
+
|
411
|
+
unsigned pc_offset = data->OsrPcOffset()->value();
|
412
|
+
intptr_t pc = reinterpret_cast<intptr_t>(
|
413
|
+
optimized_code_->entry() + pc_offset);
|
414
|
+
output_[0]->SetPc(pc);
|
415
|
+
}
|
416
|
+
Code* continuation =
|
417
|
+
function->GetIsolate()->builtins()->builtin(Builtins::kNotifyOSR);
|
418
|
+
output_[0]->SetContinuation(
|
419
|
+
reinterpret_cast<intptr_t>(continuation->entry()));
|
420
|
+
|
421
|
+
if (FLAG_trace_osr) {
|
422
|
+
PrintF("[on-stack replacement translation %s: 0x%08" V8PRIxPTR " ",
|
423
|
+
ok ? "finished" : "aborted",
|
424
|
+
reinterpret_cast<intptr_t>(function));
|
425
|
+
function->PrintName();
|
426
|
+
PrintF(" => pc=0x%0" V8PRIxPTR "]\n", output_[0]->GetPc());
|
427
|
+
}
|
428
|
+
}
|
429
|
+
|
430
|
+
|
431
|
+
void Deoptimizer::DoComputeFrame(TranslationIterator* iterator,
|
432
|
+
int frame_index) {
|
433
|
+
// Read the ast node id, function, and frame height for this output frame.
|
434
|
+
Translation::Opcode opcode =
|
435
|
+
static_cast<Translation::Opcode>(iterator->Next());
|
436
|
+
USE(opcode);
|
437
|
+
ASSERT(Translation::FRAME == opcode);
|
438
|
+
int node_id = iterator->Next();
|
439
|
+
JSFunction* function = JSFunction::cast(ComputeLiteral(iterator->Next()));
|
440
|
+
unsigned height = iterator->Next();
|
441
|
+
unsigned height_in_bytes = height * kPointerSize;
|
442
|
+
if (FLAG_trace_deopt) {
|
443
|
+
PrintF(" translating ");
|
444
|
+
function->PrintName();
|
445
|
+
PrintF(" => node=%d, height=%d\n", node_id, height_in_bytes);
|
446
|
+
}
|
447
|
+
|
448
|
+
// The 'fixed' part of the frame consists of the incoming parameters and
|
449
|
+
// the part described by JavaScriptFrameConstants.
|
450
|
+
unsigned fixed_frame_size = ComputeFixedSize(function);
|
451
|
+
unsigned input_frame_size = static_cast<unsigned>(input_->GetFrameSize());
|
452
|
+
unsigned output_frame_size = height_in_bytes + fixed_frame_size;
|
453
|
+
|
454
|
+
// Allocate and store the output frame description.
|
455
|
+
FrameDescription* output_frame =
|
456
|
+
new(output_frame_size) FrameDescription(output_frame_size, function);
|
457
|
+
|
458
|
+
bool is_bottommost = (0 == frame_index);
|
459
|
+
bool is_topmost = (output_count_ - 1 == frame_index);
|
460
|
+
ASSERT(frame_index >= 0 && frame_index < output_count_);
|
461
|
+
ASSERT(output_[frame_index] == NULL);
|
462
|
+
output_[frame_index] = output_frame;
|
463
|
+
|
464
|
+
// The top address for the bottommost output frame can be computed from
|
465
|
+
// the input frame pointer and the output frame's height. For all
|
466
|
+
// subsequent output frames, it can be computed from the previous one's
|
467
|
+
// top address and the current frame's size.
|
468
|
+
intptr_t top_address;
|
469
|
+
if (is_bottommost) {
|
470
|
+
// 2 = context and function in the frame.
|
471
|
+
top_address =
|
472
|
+
input_->GetRegister(rbp.code()) - (2 * kPointerSize) - height_in_bytes;
|
473
|
+
} else {
|
474
|
+
top_address = output_[frame_index - 1]->GetTop() - output_frame_size;
|
475
|
+
}
|
476
|
+
output_frame->SetTop(top_address);
|
477
|
+
|
478
|
+
// Compute the incoming parameter translation.
|
479
|
+
int parameter_count = function->shared()->formal_parameter_count() + 1;
|
480
|
+
unsigned output_offset = output_frame_size;
|
481
|
+
unsigned input_offset = input_frame_size;
|
482
|
+
for (int i = 0; i < parameter_count; ++i) {
|
483
|
+
output_offset -= kPointerSize;
|
484
|
+
DoTranslateCommand(iterator, frame_index, output_offset);
|
485
|
+
}
|
486
|
+
input_offset -= (parameter_count * kPointerSize);
|
487
|
+
|
488
|
+
// There are no translation commands for the caller's pc and fp, the
|
489
|
+
// context, and the function. Synthesize their values and set them up
|
490
|
+
// explicitly.
|
491
|
+
//
|
492
|
+
// The caller's pc for the bottommost output frame is the same as in the
|
493
|
+
// input frame. For all subsequent output frames, it can be read from the
|
494
|
+
// previous one. This frame's pc can be computed from the non-optimized
|
495
|
+
// function code and AST id of the bailout.
|
496
|
+
output_offset -= kPointerSize;
|
497
|
+
input_offset -= kPointerSize;
|
498
|
+
intptr_t value;
|
499
|
+
if (is_bottommost) {
|
500
|
+
value = input_->GetFrameSlot(input_offset);
|
501
|
+
} else {
|
502
|
+
value = output_[frame_index - 1]->GetPc();
|
503
|
+
}
|
504
|
+
output_frame->SetFrameSlot(output_offset, value);
|
505
|
+
if (FLAG_trace_deopt) {
|
506
|
+
PrintF(" 0x%08" V8PRIxPTR ": [top + %d] <- 0x%08"
|
507
|
+
V8PRIxPTR " ; caller's pc\n",
|
508
|
+
top_address + output_offset, output_offset, value);
|
509
|
+
}
|
510
|
+
|
511
|
+
// The caller's frame pointer for the bottommost output frame is the same
|
512
|
+
// as in the input frame. For all subsequent output frames, it can be
|
513
|
+
// read from the previous one. Also compute and set this frame's frame
|
514
|
+
// pointer.
|
515
|
+
output_offset -= kPointerSize;
|
516
|
+
input_offset -= kPointerSize;
|
517
|
+
if (is_bottommost) {
|
518
|
+
value = input_->GetFrameSlot(input_offset);
|
519
|
+
} else {
|
520
|
+
value = output_[frame_index - 1]->GetFp();
|
521
|
+
}
|
522
|
+
output_frame->SetFrameSlot(output_offset, value);
|
523
|
+
intptr_t fp_value = top_address + output_offset;
|
524
|
+
ASSERT(!is_bottommost || input_->GetRegister(rbp.code()) == fp_value);
|
525
|
+
output_frame->SetFp(fp_value);
|
526
|
+
if (is_topmost) output_frame->SetRegister(rbp.code(), fp_value);
|
527
|
+
if (FLAG_trace_deopt) {
|
528
|
+
PrintF(" 0x%08" V8PRIxPTR ": [top + %d] <- 0x%08"
|
529
|
+
V8PRIxPTR " ; caller's fp\n",
|
530
|
+
fp_value, output_offset, value);
|
531
|
+
}
|
532
|
+
|
533
|
+
// For the bottommost output frame the context can be gotten from the input
|
534
|
+
// frame. For all subsequent output frames it can be gotten from the function
|
535
|
+
// so long as we don't inline functions that need local contexts.
|
536
|
+
output_offset -= kPointerSize;
|
537
|
+
input_offset -= kPointerSize;
|
538
|
+
if (is_bottommost) {
|
539
|
+
value = input_->GetFrameSlot(input_offset);
|
540
|
+
} else {
|
541
|
+
value = reinterpret_cast<intptr_t>(function->context());
|
542
|
+
}
|
543
|
+
output_frame->SetFrameSlot(output_offset, value);
|
544
|
+
if (is_topmost) output_frame->SetRegister(rsi.code(), value);
|
545
|
+
if (FLAG_trace_deopt) {
|
546
|
+
PrintF(" 0x%08" V8PRIxPTR ": [top + %d] <- 0x%08"
|
547
|
+
V8PRIxPTR "; context\n",
|
548
|
+
top_address + output_offset, output_offset, value);
|
549
|
+
}
|
550
|
+
|
551
|
+
// The function was mentioned explicitly in the BEGIN_FRAME.
|
552
|
+
output_offset -= kPointerSize;
|
553
|
+
input_offset -= kPointerSize;
|
554
|
+
value = reinterpret_cast<intptr_t>(function);
|
555
|
+
// The function for the bottommost output frame should also agree with the
|
556
|
+
// input frame.
|
557
|
+
ASSERT(!is_bottommost || input_->GetFrameSlot(input_offset) == value);
|
558
|
+
output_frame->SetFrameSlot(output_offset, value);
|
559
|
+
if (FLAG_trace_deopt) {
|
560
|
+
PrintF(" 0x%08" V8PRIxPTR ": [top + %d] <- 0x%08"
|
561
|
+
V8PRIxPTR "; function\n",
|
562
|
+
top_address + output_offset, output_offset, value);
|
563
|
+
}
|
564
|
+
|
565
|
+
// Translate the rest of the frame.
|
566
|
+
for (unsigned i = 0; i < height; ++i) {
|
567
|
+
output_offset -= kPointerSize;
|
568
|
+
DoTranslateCommand(iterator, frame_index, output_offset);
|
569
|
+
}
|
570
|
+
ASSERT(0 == output_offset);
|
571
|
+
|
572
|
+
// Compute this frame's PC, state, and continuation.
|
573
|
+
Code* non_optimized_code = function->shared()->code();
|
574
|
+
FixedArray* raw_data = non_optimized_code->deoptimization_data();
|
575
|
+
DeoptimizationOutputData* data = DeoptimizationOutputData::cast(raw_data);
|
576
|
+
Address start = non_optimized_code->instruction_start();
|
577
|
+
unsigned pc_and_state = GetOutputInfo(data, node_id, function->shared());
|
578
|
+
unsigned pc_offset = FullCodeGenerator::PcField::decode(pc_and_state);
|
579
|
+
intptr_t pc_value = reinterpret_cast<intptr_t>(start + pc_offset);
|
580
|
+
output_frame->SetPc(pc_value);
|
581
|
+
|
582
|
+
FullCodeGenerator::State state =
|
583
|
+
FullCodeGenerator::StateField::decode(pc_and_state);
|
584
|
+
output_frame->SetState(Smi::FromInt(state));
|
585
|
+
|
586
|
+
// Set the continuation for the topmost frame.
|
587
|
+
if (is_topmost) {
|
588
|
+
Code* continuation = (bailout_type_ == EAGER)
|
589
|
+
? isolate_->builtins()->builtin(Builtins::kNotifyDeoptimized)
|
590
|
+
: isolate_->builtins()->builtin(Builtins::kNotifyLazyDeoptimized);
|
591
|
+
output_frame->SetContinuation(
|
592
|
+
reinterpret_cast<intptr_t>(continuation->entry()));
|
593
|
+
}
|
594
|
+
|
595
|
+
if (output_count_ - 1 == frame_index) iterator->Done();
|
596
|
+
}
|
597
|
+
|
598
|
+
|
599
|
+
#define __ masm()->
|
600
|
+
|
601
|
+
void Deoptimizer::EntryGenerator::Generate() {
|
602
|
+
GeneratePrologue();
|
603
|
+
|
604
|
+
// Save all general purpose registers before messing with them.
|
605
|
+
const int kNumberOfRegisters = Register::kNumRegisters;
|
606
|
+
|
607
|
+
const int kDoubleRegsSize = kDoubleSize *
|
608
|
+
XMMRegister::kNumAllocatableRegisters;
|
609
|
+
__ subq(rsp, Immediate(kDoubleRegsSize));
|
610
|
+
|
611
|
+
for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; ++i) {
|
612
|
+
XMMRegister xmm_reg = XMMRegister::FromAllocationIndex(i);
|
613
|
+
int offset = i * kDoubleSize;
|
614
|
+
__ movsd(Operand(rsp, offset), xmm_reg);
|
615
|
+
}
|
616
|
+
|
617
|
+
// We push all registers onto the stack, even though we do not need
|
618
|
+
// to restore all later.
|
619
|
+
for (int i = 0; i < kNumberOfRegisters; i++) {
|
620
|
+
Register r = Register::toRegister(i);
|
621
|
+
__ push(r);
|
622
|
+
}
|
623
|
+
|
624
|
+
const int kSavedRegistersAreaSize = kNumberOfRegisters * kPointerSize +
|
625
|
+
kDoubleRegsSize;
|
626
|
+
|
627
|
+
// When calling new_deoptimizer_function we need to pass the last argument
|
628
|
+
// on the stack on windows and in r8 on linux. The remaining arguments are
|
629
|
+
// all passed in registers (different ones on linux and windows though).
|
630
|
+
|
631
|
+
#ifdef _WIN64
|
632
|
+
Register arg4 = r9;
|
633
|
+
Register arg3 = r8;
|
634
|
+
Register arg2 = rdx;
|
635
|
+
Register arg1 = rcx;
|
636
|
+
#else
|
637
|
+
Register arg4 = rcx;
|
638
|
+
Register arg3 = rdx;
|
639
|
+
Register arg2 = rsi;
|
640
|
+
Register arg1 = rdi;
|
641
|
+
#endif
|
642
|
+
|
643
|
+
// We use this to keep the value of the fifth argument temporarily.
|
644
|
+
// Unfortunately we can't store it directly in r8 (used for passing
|
645
|
+
// this on linux), since it is another parameter passing register on windows.
|
646
|
+
Register arg5 = r11;
|
647
|
+
|
648
|
+
// Get the bailout id from the stack.
|
649
|
+
__ movq(arg3, Operand(rsp, kSavedRegistersAreaSize));
|
650
|
+
|
651
|
+
// Get the address of the location in the code object if possible
|
652
|
+
// and compute the fp-to-sp delta in register arg5.
|
653
|
+
if (type() == EAGER) {
|
654
|
+
__ Set(arg4, 0);
|
655
|
+
__ lea(arg5, Operand(rsp, kSavedRegistersAreaSize + 1 * kPointerSize));
|
656
|
+
} else {
|
657
|
+
__ movq(arg4, Operand(rsp, kSavedRegistersAreaSize + 1 * kPointerSize));
|
658
|
+
__ lea(arg5, Operand(rsp, kSavedRegistersAreaSize + 2 * kPointerSize));
|
659
|
+
}
|
660
|
+
|
661
|
+
__ subq(arg5, rbp);
|
662
|
+
__ neg(arg5);
|
663
|
+
|
664
|
+
// Allocate a new deoptimizer object.
|
665
|
+
__ PrepareCallCFunction(6);
|
666
|
+
__ movq(rax, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
|
667
|
+
__ movq(arg1, rax);
|
668
|
+
__ movq(arg2, Immediate(type()));
|
669
|
+
// Args 3 and 4 are already in the right registers.
|
670
|
+
|
671
|
+
// On windows put the arguments on the stack (PrepareCallCFunction
|
672
|
+
// has created space for this). On linux pass the arguments in r8 and r9.
|
673
|
+
#ifdef _WIN64
|
674
|
+
__ movq(Operand(rsp, 4 * kPointerSize), arg5);
|
675
|
+
__ LoadAddress(arg5, ExternalReference::isolate_address());
|
676
|
+
__ movq(Operand(rsp, 5 * kPointerSize), arg5);
|
677
|
+
#else
|
678
|
+
__ movq(r8, arg5);
|
679
|
+
__ LoadAddress(r9, ExternalReference::isolate_address());
|
680
|
+
#endif
|
681
|
+
|
682
|
+
Isolate* isolate = masm()->isolate();
|
683
|
+
|
684
|
+
__ CallCFunction(ExternalReference::new_deoptimizer_function(isolate), 6);
|
685
|
+
// Preserve deoptimizer object in register rax and get the input
|
686
|
+
// frame descriptor pointer.
|
687
|
+
__ movq(rbx, Operand(rax, Deoptimizer::input_offset()));
|
688
|
+
|
689
|
+
// Fill in the input registers.
|
690
|
+
for (int i = kNumberOfRegisters -1; i >= 0; i--) {
|
691
|
+
int offset = (i * kPointerSize) + FrameDescription::registers_offset();
|
692
|
+
__ pop(Operand(rbx, offset));
|
693
|
+
}
|
694
|
+
|
695
|
+
// Fill in the double input registers.
|
696
|
+
int double_regs_offset = FrameDescription::double_registers_offset();
|
697
|
+
for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; i++) {
|
698
|
+
int dst_offset = i * kDoubleSize + double_regs_offset;
|
699
|
+
__ pop(Operand(rbx, dst_offset));
|
700
|
+
}
|
701
|
+
|
702
|
+
// Remove the bailout id from the stack.
|
703
|
+
if (type() == EAGER) {
|
704
|
+
__ addq(rsp, Immediate(kPointerSize));
|
705
|
+
} else {
|
706
|
+
__ addq(rsp, Immediate(2 * kPointerSize));
|
707
|
+
}
|
708
|
+
|
709
|
+
// Compute a pointer to the unwinding limit in register rcx; that is
|
710
|
+
// the first stack slot not part of the input frame.
|
711
|
+
__ movq(rcx, Operand(rbx, FrameDescription::frame_size_offset()));
|
712
|
+
__ addq(rcx, rsp);
|
713
|
+
|
714
|
+
// Unwind the stack down to - but not including - the unwinding
|
715
|
+
// limit and copy the contents of the activation frame to the input
|
716
|
+
// frame description.
|
717
|
+
__ lea(rdx, Operand(rbx, FrameDescription::frame_content_offset()));
|
718
|
+
Label pop_loop;
|
719
|
+
__ bind(&pop_loop);
|
720
|
+
__ pop(Operand(rdx, 0));
|
721
|
+
__ addq(rdx, Immediate(sizeof(intptr_t)));
|
722
|
+
__ cmpq(rcx, rsp);
|
723
|
+
__ j(not_equal, &pop_loop);
|
724
|
+
|
725
|
+
// Compute the output frame in the deoptimizer.
|
726
|
+
__ push(rax);
|
727
|
+
__ PrepareCallCFunction(2);
|
728
|
+
__ movq(arg1, rax);
|
729
|
+
__ LoadAddress(arg2, ExternalReference::isolate_address());
|
730
|
+
__ CallCFunction(
|
731
|
+
ExternalReference::compute_output_frames_function(isolate), 2);
|
732
|
+
__ pop(rax);
|
733
|
+
|
734
|
+
// Replace the current frame with the output frames.
|
735
|
+
Label outer_push_loop, inner_push_loop;
|
736
|
+
// Outer loop state: rax = current FrameDescription**, rdx = one past the
|
737
|
+
// last FrameDescription**.
|
738
|
+
__ movl(rdx, Operand(rax, Deoptimizer::output_count_offset()));
|
739
|
+
__ movq(rax, Operand(rax, Deoptimizer::output_offset()));
|
740
|
+
__ lea(rdx, Operand(rax, rdx, times_8, 0));
|
741
|
+
__ bind(&outer_push_loop);
|
742
|
+
// Inner loop state: rbx = current FrameDescription*, rcx = loop index.
|
743
|
+
__ movq(rbx, Operand(rax, 0));
|
744
|
+
__ movq(rcx, Operand(rbx, FrameDescription::frame_size_offset()));
|
745
|
+
__ bind(&inner_push_loop);
|
746
|
+
__ subq(rcx, Immediate(sizeof(intptr_t)));
|
747
|
+
__ push(Operand(rbx, rcx, times_1, FrameDescription::frame_content_offset()));
|
748
|
+
__ testq(rcx, rcx);
|
749
|
+
__ j(not_zero, &inner_push_loop);
|
750
|
+
__ addq(rax, Immediate(kPointerSize));
|
751
|
+
__ cmpq(rax, rdx);
|
752
|
+
__ j(below, &outer_push_loop);
|
753
|
+
|
754
|
+
// In case of OSR, we have to restore the XMM registers.
|
755
|
+
if (type() == OSR) {
|
756
|
+
for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; ++i) {
|
757
|
+
XMMRegister xmm_reg = XMMRegister::FromAllocationIndex(i);
|
758
|
+
int src_offset = i * kDoubleSize + double_regs_offset;
|
759
|
+
__ movsd(xmm_reg, Operand(rbx, src_offset));
|
760
|
+
}
|
761
|
+
}
|
762
|
+
|
763
|
+
// Push state, pc, and continuation from the last output frame.
|
764
|
+
if (type() != OSR) {
|
765
|
+
__ push(Operand(rbx, FrameDescription::state_offset()));
|
766
|
+
}
|
767
|
+
__ push(Operand(rbx, FrameDescription::pc_offset()));
|
768
|
+
__ push(Operand(rbx, FrameDescription::continuation_offset()));
|
769
|
+
|
770
|
+
// Push the registers from the last output frame.
|
771
|
+
for (int i = 0; i < kNumberOfRegisters; i++) {
|
772
|
+
int offset = (i * kPointerSize) + FrameDescription::registers_offset();
|
773
|
+
__ push(Operand(rbx, offset));
|
774
|
+
}
|
775
|
+
|
776
|
+
// Restore the registers from the stack.
|
777
|
+
for (int i = kNumberOfRegisters - 1; i >= 0 ; i--) {
|
778
|
+
Register r = Register::toRegister(i);
|
779
|
+
// Do not restore rsp, simply pop the value into the next register
|
780
|
+
// and overwrite this afterwards.
|
781
|
+
if (r.is(rsp)) {
|
782
|
+
ASSERT(i > 0);
|
783
|
+
r = Register::toRegister(i - 1);
|
784
|
+
}
|
785
|
+
__ pop(r);
|
786
|
+
}
|
787
|
+
|
788
|
+
// Set up the roots register.
|
789
|
+
__ InitializeRootRegister();
|
790
|
+
__ InitializeSmiConstantRegister();
|
791
|
+
|
792
|
+
// Return to the continuation point.
|
793
|
+
__ ret(0);
|
794
|
+
}
|
795
|
+
|
796
|
+
|
797
|
+
void Deoptimizer::TableEntryGenerator::GeneratePrologue() {
|
798
|
+
// Create a sequence of deoptimization entries.
|
799
|
+
Label done;
|
800
|
+
for (int i = 0; i < count(); i++) {
|
801
|
+
int start = masm()->pc_offset();
|
802
|
+
USE(start);
|
803
|
+
__ push_imm32(i);
|
804
|
+
__ jmp(&done);
|
805
|
+
ASSERT(masm()->pc_offset() - start == table_entry_size_);
|
806
|
+
}
|
807
|
+
__ bind(&done);
|
808
|
+
}
|
809
|
+
|
810
|
+
#undef __
|
811
|
+
|
812
|
+
|
813
|
+
} } // namespace v8::internal
|
814
|
+
|
815
|
+
#endif // V8_TARGET_ARCH_X64
|