therubyracer 0.8.1.pre2 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of therubyracer might be problematic. Click here for more details.
- data/Changelog.md +2 -1
- data/README.md +6 -3
- data/ext/v8/upstream/3.1.8/.gitignore +31 -0
- data/ext/v8/upstream/3.1.8/AUTHORS +40 -0
- data/ext/v8/upstream/3.1.8/ChangeLog +2566 -0
- data/ext/v8/upstream/3.1.8/LICENSE +52 -0
- data/ext/v8/upstream/3.1.8/LICENSE.strongtalk +29 -0
- data/ext/v8/upstream/3.1.8/LICENSE.v8 +26 -0
- data/ext/v8/upstream/3.1.8/LICENSE.valgrind +45 -0
- data/ext/v8/upstream/3.1.8/SConstruct +1192 -0
- data/ext/v8/upstream/3.1.8/build/README.txt +25 -0
- data/ext/v8/upstream/3.1.8/build/all.gyp +18 -0
- data/ext/v8/upstream/3.1.8/build/armu.gypi +32 -0
- data/ext/v8/upstream/3.1.8/build/common.gypi +82 -0
- data/ext/v8/upstream/3.1.8/build/gyp_v8 +145 -0
- data/ext/v8/upstream/3.1.8/include/v8-debug.h +384 -0
- data/ext/v8/upstream/3.1.8/include/v8-preparser.h +116 -0
- data/ext/v8/upstream/3.1.8/include/v8-profiler.h +426 -0
- data/ext/v8/upstream/3.1.8/include/v8-testing.h +99 -0
- data/ext/v8/upstream/3.1.8/include/v8.h +3846 -0
- data/ext/v8/upstream/3.1.8/include/v8stdint.h +53 -0
- data/ext/v8/upstream/3.1.8/preparser/preparser-process.cc +206 -0
- data/ext/v8/upstream/3.1.8/src/SConscript +356 -0
- data/ext/v8/upstream/3.1.8/src/accessors.cc +907 -0
- data/ext/v8/upstream/3.1.8/src/accessors.h +121 -0
- data/ext/v8/upstream/3.1.8/src/allocation.cc +204 -0
- data/ext/v8/upstream/3.1.8/src/allocation.h +176 -0
- data/ext/v8/upstream/3.1.8/src/api.cc +5191 -0
- data/ext/v8/upstream/3.1.8/src/api.h +508 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/apinatives.js +0 -0
- data/ext/v8/upstream/3.1.8/src/apiutils.h +80 -0
- data/ext/v8/upstream/3.1.8/src/arguments.h +105 -0
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm-inl.h +352 -0
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm.cc +2756 -0
- data/ext/v8/upstream/3.1.8/src/arm/assembler-arm.h +1294 -0
- data/ext/v8/upstream/3.1.8/src/arm/builtins-arm.cc +1628 -0
- data/ext/v8/upstream/3.1.8/src/arm/code-stubs-arm.cc +6783 -0
- data/ext/v8/upstream/3.1.8/src/arm/code-stubs-arm.h +657 -0
- data/ext/v8/upstream/3.1.8/src/arm/codegen-arm-inl.h +48 -0
- data/ext/v8/upstream/3.1.8/src/arm/codegen-arm.cc +7403 -0
- data/ext/v8/upstream/3.1.8/src/arm/codegen-arm.h +595 -0
- data/ext/v8/upstream/3.1.8/src/arm/constants-arm.cc +152 -0
- data/ext/v8/upstream/3.1.8/src/arm/constants-arm.h +769 -0
- data/ext/v8/upstream/3.1.8/src/arm/cpu-arm.cc +147 -0
- data/ext/v8/upstream/3.1.8/src/arm/debug-arm.cc +315 -0
- data/ext/v8/upstream/3.1.8/src/arm/deoptimizer-arm.cc +700 -0
- data/ext/v8/upstream/3.1.8/src/arm/disasm-arm.cc +1439 -0
- data/ext/v8/upstream/3.1.8/src/arm/frames-arm.cc +45 -0
- data/ext/v8/upstream/3.1.8/src/arm/frames-arm.h +168 -0
- data/ext/v8/upstream/3.1.8/src/arm/full-codegen-arm.cc +4230 -0
- data/ext/v8/upstream/3.1.8/src/arm/ic-arm.cc +1799 -0
- data/ext/v8/upstream/3.1.8/src/arm/jump-target-arm.cc +174 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-arm.cc +2041 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-arm.h +2046 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-codegen-arm.cc +3822 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-codegen-arm.h +312 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-gap-resolver-arm.cc +303 -0
- data/ext/v8/upstream/3.1.8/src/arm/lithium-gap-resolver-arm.h +84 -0
- data/ext/v8/upstream/3.1.8/src/arm/macro-assembler-arm.cc +2701 -0
- data/ext/v8/upstream/3.1.8/src/arm/macro-assembler-arm.h +1015 -0
- data/ext/v8/upstream/3.1.8/src/arm/regexp-macro-assembler-arm.cc +1280 -0
- data/ext/v8/upstream/3.1.8/src/arm/regexp-macro-assembler-arm.h +252 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/register-allocator-arm-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/register-allocator-arm.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/register-allocator-arm.h +0 -0
- data/ext/v8/upstream/3.1.8/src/arm/simulator-arm.cc +3165 -0
- data/ext/v8/upstream/3.1.8/src/arm/simulator-arm.h +402 -0
- data/ext/v8/upstream/3.1.8/src/arm/stub-cache-arm.cc +4077 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/virtual-frame-arm-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/arm/virtual-frame-arm.cc +843 -0
- data/ext/v8/upstream/3.1.8/src/arm/virtual-frame-arm.h +520 -0
- data/ext/v8/upstream/3.1.8/src/array.js +1231 -0
- data/ext/v8/upstream/3.1.8/src/assembler.cc +973 -0
- data/ext/v8/upstream/3.1.8/src/assembler.h +787 -0
- data/ext/v8/upstream/3.1.8/src/ast-inl.h +107 -0
- data/ext/v8/upstream/3.1.8/src/ast.cc +1067 -0
- data/ext/v8/upstream/3.1.8/src/ast.h +2177 -0
- data/ext/v8/upstream/3.1.8/src/atomicops.h +165 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_arm_gcc.h +145 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_gcc.cc +126 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_gcc.h +287 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_macosx.h +301 -0
- data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_msvc.h +203 -0
- data/ext/v8/upstream/3.1.8/src/bignum-dtoa.cc +655 -0
- data/ext/v8/upstream/3.1.8/src/bignum-dtoa.h +81 -0
- data/ext/v8/upstream/3.1.8/src/bignum.cc +768 -0
- data/ext/v8/upstream/3.1.8/src/bignum.h +140 -0
- data/ext/v8/upstream/3.1.8/src/bootstrapper.cc +1888 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/bootstrapper.h +0 -0
- data/ext/v8/upstream/3.1.8/src/builtins.cc +1586 -0
- data/ext/v8/upstream/3.1.8/src/builtins.h +339 -0
- data/ext/v8/upstream/3.1.8/src/bytecodes-irregexp.h +105 -0
- data/ext/v8/upstream/3.1.8/src/cached-powers.cc +177 -0
- data/ext/v8/upstream/3.1.8/src/cached-powers.h +65 -0
- data/ext/v8/upstream/3.1.8/src/char-predicates-inl.h +94 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/char-predicates.h +0 -0
- data/ext/v8/upstream/3.1.8/src/checks.cc +110 -0
- data/ext/v8/upstream/3.1.8/src/checks.h +292 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/circular-queue-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/circular-queue.cc +122 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/circular-queue.h +0 -0
- data/ext/v8/upstream/3.1.8/src/code-stubs.cc +230 -0
- data/ext/v8/upstream/3.1.8/src/code-stubs.h +950 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/code.h +0 -0
- data/ext/v8/upstream/3.1.8/src/codegen-inl.h +64 -0
- data/ext/v8/upstream/3.1.8/src/codegen.cc +495 -0
- data/ext/v8/upstream/3.1.8/src/codegen.h +245 -0
- data/ext/v8/upstream/3.1.8/src/compilation-cache.cc +654 -0
- data/ext/v8/upstream/3.1.8/src/compilation-cache.h +112 -0
- data/ext/v8/upstream/3.1.8/src/compiler.cc +806 -0
- data/ext/v8/upstream/3.1.8/src/compiler.h +290 -0
- data/ext/v8/upstream/3.1.8/src/contexts.cc +320 -0
- data/ext/v8/upstream/3.1.8/src/contexts.h +376 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/conversions-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/conversions.cc +1069 -0
- data/ext/v8/upstream/3.1.8/src/conversions.h +122 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/counters.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/counters.h +242 -0
- data/ext/v8/upstream/3.1.8/src/cpu-profiler-inl.h +100 -0
- data/ext/v8/upstream/3.1.8/src/cpu-profiler.cc +554 -0
- data/ext/v8/upstream/3.1.8/src/cpu-profiler.h +291 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/cpu.h +0 -0
- data/ext/v8/upstream/3.1.8/src/d8-debug.cc +367 -0
- data/ext/v8/upstream/3.1.8/src/d8-debug.h +157 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/d8-posix.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/d8-readline.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/d8-windows.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/d8.cc +792 -0
- data/ext/v8/upstream/3.1.8/src/d8.gyp +85 -0
- data/ext/v8/upstream/3.1.8/src/d8.h +231 -0
- data/ext/v8/upstream/3.1.8/src/d8.js +2798 -0
- data/ext/v8/upstream/3.1.8/src/data-flow.cc +545 -0
- data/ext/v8/upstream/3.1.8/src/data-flow.h +379 -0
- data/ext/v8/upstream/3.1.8/src/date.js +1103 -0
- data/ext/v8/upstream/3.1.8/src/dateparser-inl.h +125 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/dateparser.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/dateparser.h +263 -0
- data/ext/v8/upstream/3.1.8/src/debug-agent.cc +446 -0
- data/ext/v8/upstream/3.1.8/src/debug-agent.h +131 -0
- data/ext/v8/upstream/3.1.8/src/debug-debugger.js +2569 -0
- data/ext/v8/upstream/3.1.8/src/debug.cc +3085 -0
- data/ext/v8/upstream/3.1.8/src/debug.h +1025 -0
- data/ext/v8/upstream/3.1.8/src/deoptimizer.cc +1185 -0
- data/ext/v8/upstream/3.1.8/src/deoptimizer.h +529 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/disasm.h +0 -0
- data/ext/v8/upstream/3.1.8/src/disassembler.cc +338 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/disassembler.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/diy-fp.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/diy-fp.h +0 -0
- data/ext/v8/upstream/3.1.8/src/double.h +238 -0
- data/ext/v8/upstream/3.1.8/src/dtoa.cc +103 -0
- data/ext/v8/upstream/3.1.8/src/dtoa.h +85 -0
- data/ext/v8/upstream/3.1.8/src/execution.cc +735 -0
- data/ext/v8/upstream/3.1.8/src/execution.h +322 -0
- data/ext/v8/upstream/3.1.8/src/extensions/experimental/experimental.gyp +53 -0
- data/ext/v8/upstream/3.1.8/src/extensions/experimental/i18n-extension.cc +264 -0
- data/ext/v8/upstream/3.1.8/src/extensions/experimental/i18n-extension.h +64 -0
- data/ext/v8/upstream/3.1.8/src/extensions/externalize-string-extension.cc +141 -0
- data/ext/v8/upstream/3.1.8/src/extensions/externalize-string-extension.h +50 -0
- data/ext/v8/upstream/3.1.8/src/extensions/gc-extension.cc +58 -0
- data/ext/v8/upstream/3.1.8/src/extensions/gc-extension.h +49 -0
- data/ext/v8/upstream/3.1.8/src/factory.cc +1087 -0
- data/ext/v8/upstream/3.1.8/src/factory.h +432 -0
- data/ext/v8/upstream/3.1.8/src/fast-dtoa.cc +736 -0
- data/ext/v8/upstream/3.1.8/src/fast-dtoa.h +83 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/fixed-dtoa.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/fixed-dtoa.h +0 -0
- data/ext/v8/upstream/3.1.8/src/flag-definitions.h +552 -0
- data/ext/v8/upstream/3.1.8/src/flags.cc +551 -0
- data/ext/v8/upstream/3.1.8/src/flags.h +79 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/frame-element.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/frame-element.h +277 -0
- data/ext/v8/upstream/3.1.8/src/frames-inl.h +210 -0
- data/ext/v8/upstream/3.1.8/src/frames.cc +1232 -0
- data/ext/v8/upstream/3.1.8/src/frames.h +826 -0
- data/ext/v8/upstream/3.1.8/src/full-codegen.cc +1382 -0
- data/ext/v8/upstream/3.1.8/src/full-codegen.h +751 -0
- data/ext/v8/upstream/3.1.8/src/func-name-inferrer.cc +90 -0
- data/ext/v8/upstream/3.1.8/src/func-name-inferrer.h +111 -0
- data/ext/v8/upstream/3.1.8/src/gdb-jit.cc +1547 -0
- data/ext/v8/upstream/3.1.8/src/gdb-jit.h +138 -0
- data/ext/v8/upstream/3.1.8/src/global-handles.cc +534 -0
- data/ext/v8/upstream/3.1.8/src/global-handles.h +181 -0
- data/ext/v8/upstream/3.1.8/src/globals.h +325 -0
- data/ext/v8/upstream/3.1.8/src/handles-inl.h +80 -0
- data/ext/v8/upstream/3.1.8/src/handles.cc +910 -0
- data/ext/v8/upstream/3.1.8/src/handles.h +424 -0
- data/ext/v8/upstream/3.1.8/src/hashmap.cc +230 -0
- data/ext/v8/upstream/3.1.8/src/hashmap.h +121 -0
- data/ext/v8/upstream/3.1.8/src/heap-inl.h +587 -0
- data/ext/v8/upstream/3.1.8/src/heap-profiler.cc +1128 -0
- data/ext/v8/upstream/3.1.8/src/heap-profiler.h +381 -0
- data/ext/v8/upstream/3.1.8/src/heap.cc +5610 -0
- data/ext/v8/upstream/3.1.8/src/heap.h +2218 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen-instructions.cc +1490 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen-instructions.h +3493 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen.cc +6056 -0
- data/ext/v8/upstream/3.1.8/src/hydrogen.h +1091 -0
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32-inl.h +429 -0
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32.cc +2800 -0
- data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32.h +1093 -0
- data/ext/v8/upstream/3.1.8/src/ia32/builtins-ia32.cc +1590 -0
- data/ext/v8/upstream/3.1.8/src/ia32/code-stubs-ia32.cc +6624 -0
- data/ext/v8/upstream/3.1.8/src/ia32/code-stubs-ia32.h +536 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/codegen-ia32-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/ia32/codegen-ia32.cc +10354 -0
- data/ext/v8/upstream/3.1.8/src/ia32/codegen-ia32.h +798 -0
- data/ext/v8/upstream/3.1.8/src/ia32/cpu-ia32.cc +87 -0
- data/ext/v8/upstream/3.1.8/src/ia32/debug-ia32.cc +309 -0
- data/ext/v8/upstream/3.1.8/src/ia32/deoptimizer-ia32.cc +664 -0
- data/ext/v8/upstream/3.1.8/src/ia32/disasm-ia32.cc +1597 -0
- data/ext/v8/upstream/3.1.8/src/ia32/frames-ia32.cc +45 -0
- data/ext/v8/upstream/3.1.8/src/ia32/frames-ia32.h +140 -0
- data/ext/v8/upstream/3.1.8/src/ia32/full-codegen-ia32.cc +4278 -0
- data/ext/v8/upstream/3.1.8/src/ia32/ic-ia32.cc +1786 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/jump-target-ia32.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-codegen-ia32.cc +3880 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-codegen-ia32.h +309 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-gap-resolver-ia32.cc +460 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-gap-resolver-ia32.h +110 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-ia32.cc +2095 -0
- data/ext/v8/upstream/3.1.8/src/ia32/lithium-ia32.h +2127 -0
- data/ext/v8/upstream/3.1.8/src/ia32/macro-assembler-ia32.cc +2031 -0
- data/ext/v8/upstream/3.1.8/src/ia32/macro-assembler-ia32.h +798 -0
- data/ext/v8/upstream/3.1.8/src/ia32/regexp-macro-assembler-ia32.cc +1253 -0
- data/ext/v8/upstream/3.1.8/src/ia32/regexp-macro-assembler-ia32.h +215 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/register-allocator-ia32-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/register-allocator-ia32.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/register-allocator-ia32.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/simulator-ia32.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/ia32/simulator-ia32.h +72 -0
- data/ext/v8/upstream/3.1.8/src/ia32/stub-cache-ia32.cc +3732 -0
- data/ext/v8/upstream/3.1.8/src/ia32/virtual-frame-ia32.cc +1360 -0
- data/ext/v8/upstream/3.1.8/src/ia32/virtual-frame-ia32.h +646 -0
- data/ext/v8/upstream/3.1.8/src/ic-inl.h +129 -0
- data/ext/v8/upstream/3.1.8/src/ic.cc +2333 -0
- data/ext/v8/upstream/3.1.8/src/ic.h +639 -0
- data/ext/v8/upstream/3.1.8/src/inspector.cc +63 -0
- data/ext/v8/upstream/3.1.8/src/inspector.h +62 -0
- data/ext/v8/upstream/3.1.8/src/interpreter-irregexp.cc +655 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/interpreter-irregexp.h +0 -0
- data/ext/v8/upstream/3.1.8/src/json.js +342 -0
- data/ext/v8/upstream/3.1.8/src/jsregexp.cc +5340 -0
- data/ext/v8/upstream/3.1.8/src/jsregexp.h +1484 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target-heavy-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-heavy.cc +430 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-heavy.h +244 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target-light-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-light.cc +111 -0
- data/ext/v8/upstream/3.1.8/src/jump-target-light.h +193 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target.h +0 -0
- data/ext/v8/upstream/3.1.8/src/list-inl.h +206 -0
- data/ext/v8/upstream/3.1.8/src/list.h +164 -0
- data/ext/v8/upstream/3.1.8/src/lithium-allocator-inl.h +140 -0
- data/ext/v8/upstream/3.1.8/src/lithium-allocator.cc +2093 -0
- data/ext/v8/upstream/3.1.8/src/lithium-allocator.h +644 -0
- data/ext/v8/upstream/3.1.8/src/lithium.cc +168 -0
- data/ext/v8/upstream/3.1.8/src/lithium.h +592 -0
- data/ext/v8/upstream/3.1.8/src/liveedit-debugger.js +1082 -0
- data/ext/v8/upstream/3.1.8/src/liveedit.cc +1650 -0
- data/ext/v8/upstream/3.1.8/src/liveedit.h +174 -0
- data/ext/v8/upstream/3.1.8/src/liveobjectlist-inl.h +126 -0
- data/ext/v8/upstream/3.1.8/src/liveobjectlist.cc +2527 -0
- data/ext/v8/upstream/3.1.8/src/liveobjectlist.h +322 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/log-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/log-utils.cc +336 -0
- data/ext/v8/upstream/3.1.8/src/log-utils.h +232 -0
- data/ext/v8/upstream/3.1.8/src/log.cc +1608 -0
- data/ext/v8/upstream/3.1.8/src/log.h +379 -0
- data/ext/v8/upstream/3.1.8/src/macro-assembler.h +120 -0
- data/ext/v8/upstream/3.1.8/src/macros.py +178 -0
- data/ext/v8/upstream/3.1.8/src/mark-compact.cc +2957 -0
- data/ext/v8/upstream/3.1.8/src/mark-compact.h +433 -0
- data/ext/v8/upstream/3.1.8/src/math.js +264 -0
- data/ext/v8/upstream/3.1.8/src/memory.h +82 -0
- data/ext/v8/upstream/3.1.8/src/messages.cc +164 -0
- data/ext/v8/upstream/3.1.8/src/messages.h +114 -0
- data/ext/v8/upstream/3.1.8/src/messages.js +1071 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/assembler-mips-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/assembler-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/assembler-mips.h +667 -0
- data/ext/v8/upstream/3.1.8/src/mips/builtins-mips.cc +205 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/codegen-mips-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/codegen-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/codegen-mips.h +431 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/constants-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/constants-mips.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/cpu-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/debug-mips.cc +127 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/disasm-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/fast-codegen-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/frames-mips.cc +96 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/frames-mips.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/full-codegen-mips.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/ic-mips.cc +208 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/jump-target-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/macro-assembler-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/macro-assembler-mips.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/register-allocator-mips-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/register-allocator-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/register-allocator-mips.h +0 -0
- data/ext/v8/upstream/3.1.8/src/mips/simulator-mips.cc +1650 -0
- data/ext/v8/upstream/3.1.8/src/mips/simulator-mips.h +311 -0
- data/ext/v8/upstream/3.1.8/src/mips/stub-cache-mips.cc +418 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/virtual-frame-mips.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/virtual-frame-mips.h +0 -0
- data/ext/v8/upstream/3.1.8/src/mirror-debugger.js +2380 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mksnapshot.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/natives.h +0 -0
- data/ext/v8/upstream/3.1.8/src/objects-debug.cc +722 -0
- data/ext/v8/upstream/3.1.8/src/objects-inl.h +3946 -0
- data/ext/v8/upstream/3.1.8/src/objects-printer.cc +801 -0
- data/ext/v8/upstream/3.1.8/src/objects-visiting.cc +142 -0
- data/ext/v8/upstream/3.1.8/src/objects-visiting.h +401 -0
- data/ext/v8/upstream/3.1.8/src/objects.cc +10044 -0
- data/ext/v8/upstream/3.1.8/src/objects.h +6571 -0
- data/ext/v8/upstream/3.1.8/src/parser.cc +5165 -0
- data/ext/v8/upstream/3.1.8/src/parser.h +802 -0
- data/ext/v8/upstream/3.1.8/src/platform-cygwin.cc +745 -0
- data/ext/v8/upstream/3.1.8/src/platform-freebsd.cc +702 -0
- data/ext/v8/upstream/3.1.8/src/platform-linux.cc +981 -0
- data/ext/v8/upstream/3.1.8/src/platform-macos.cc +732 -0
- data/ext/v8/upstream/3.1.8/src/platform-nullos.cc +498 -0
- data/ext/v8/upstream/3.1.8/src/platform-openbsd.cc +657 -0
- data/ext/v8/upstream/3.1.8/src/platform-posix.cc +399 -0
- data/ext/v8/upstream/3.1.8/src/platform-solaris.cc +714 -0
- data/ext/v8/upstream/3.1.8/src/platform-win32.cc +1974 -0
- data/ext/v8/upstream/3.1.8/src/platform.h +636 -0
- data/ext/v8/upstream/3.1.8/src/preparse-data.cc +183 -0
- data/ext/v8/upstream/3.1.8/src/preparse-data.h +249 -0
- data/ext/v8/upstream/3.1.8/src/preparser-api.cc +213 -0
- data/ext/v8/upstream/3.1.8/src/preparser.cc +1205 -0
- data/ext/v8/upstream/3.1.8/src/preparser.h +278 -0
- data/ext/v8/upstream/3.1.8/src/prettyprinter.cc +1539 -0
- data/ext/v8/upstream/3.1.8/src/prettyprinter.h +223 -0
- data/ext/v8/upstream/3.1.8/src/profile-generator-inl.h +128 -0
- data/ext/v8/upstream/3.1.8/src/profile-generator.cc +2899 -0
- data/ext/v8/upstream/3.1.8/src/profile-generator.h +1151 -0
- data/ext/v8/upstream/3.1.8/src/property.cc +96 -0
- data/ext/v8/upstream/3.1.8/src/property.h +337 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/regexp-macro-assembler-irregexp-inl.h +0 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-irregexp.cc +470 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-irregexp.h +142 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-tracer.cc +373 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-tracer.h +104 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler.cc +257 -0
- data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler.h +231 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/regexp-stack.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/regexp-stack.h +0 -0
- data/ext/v8/upstream/3.1.8/src/regexp.js +483 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/register-allocator-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/register-allocator.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/register-allocator.h +0 -0
- data/ext/v8/upstream/3.1.8/src/rewriter.cc +1023 -0
- data/ext/v8/upstream/3.1.8/src/rewriter.h +59 -0
- data/ext/v8/upstream/3.1.8/src/runtime-profiler.cc +443 -0
- data/ext/v8/upstream/3.1.8/src/runtime-profiler.h +77 -0
- data/ext/v8/upstream/3.1.8/src/runtime.cc +11592 -0
- data/ext/v8/upstream/3.1.8/src/runtime.h +582 -0
- data/ext/v8/upstream/3.1.8/src/runtime.js +643 -0
- data/ext/v8/upstream/3.1.8/src/safepoint-table.cc +253 -0
- data/ext/v8/upstream/3.1.8/src/safepoint-table.h +263 -0
- data/ext/v8/upstream/3.1.8/src/scanner-base.cc +971 -0
- data/ext/v8/upstream/3.1.8/src/scanner-base.h +653 -0
- data/ext/v8/upstream/3.1.8/src/scanner.cc +586 -0
- data/ext/v8/upstream/3.1.8/src/scanner.h +194 -0
- data/ext/v8/upstream/3.1.8/src/scopeinfo.cc +636 -0
- data/ext/v8/upstream/3.1.8/src/scopeinfo.h +238 -0
- data/ext/v8/upstream/3.1.8/src/scopes.cc +1063 -0
- data/ext/v8/upstream/3.1.8/src/scopes.h +494 -0
- data/ext/v8/upstream/3.1.8/src/serialize.cc +1535 -0
- data/ext/v8/upstream/3.1.8/src/serialize.h +584 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/shell.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/simulator.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/smart-pointer.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/snapshot-common.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/snapshot-empty.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/snapshot.h +0 -0
- data/ext/v8/upstream/3.1.8/src/spaces-inl.h +524 -0
- data/ext/v8/upstream/3.1.8/src/spaces.cc +3254 -0
- data/ext/v8/upstream/3.1.8/src/spaces.h +2362 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/splay-tree-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/splay-tree.h +0 -0
- data/ext/v8/upstream/3.1.8/src/string-search.cc +40 -0
- data/ext/v8/upstream/3.1.8/src/string-search.h +567 -0
- data/ext/v8/upstream/3.1.8/src/string-stream.cc +584 -0
- data/ext/v8/upstream/3.1.8/src/string-stream.h +191 -0
- data/ext/v8/upstream/3.1.8/src/string.js +915 -0
- data/ext/v8/upstream/3.1.8/src/strtod.cc +440 -0
- data/ext/v8/upstream/3.1.8/src/strtod.h +40 -0
- data/ext/v8/upstream/3.1.8/src/stub-cache.cc +1878 -0
- data/ext/v8/upstream/3.1.8/src/stub-cache.h +849 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/third_party/valgrind/valgrind.h +0 -0
- data/ext/v8/upstream/3.1.8/src/token.cc +63 -0
- data/ext/v8/upstream/3.1.8/src/token.h +288 -0
- data/ext/v8/upstream/3.1.8/src/top.cc +1152 -0
- data/ext/v8/upstream/3.1.8/src/top.h +608 -0
- data/ext/v8/upstream/3.1.8/src/type-info.cc +406 -0
- data/ext/v8/upstream/3.1.8/src/type-info.h +283 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/unbound-queue-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/unbound-queue.h +0 -0
- data/ext/v8/upstream/3.1.8/src/unicode-inl.h +238 -0
- data/ext/v8/upstream/3.1.8/src/unicode.cc +1624 -0
- data/ext/v8/upstream/3.1.8/src/unicode.h +280 -0
- data/ext/v8/upstream/3.1.8/src/uri.js +402 -0
- data/ext/v8/upstream/3.1.8/src/utils.cc +371 -0
- data/ext/v8/upstream/3.1.8/src/utils.h +793 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/v8-counters.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/v8-counters.h +290 -0
- data/ext/v8/upstream/3.1.8/src/v8.cc +270 -0
- data/ext/v8/upstream/3.1.8/src/v8.h +127 -0
- data/ext/v8/upstream/3.1.8/src/v8checks.h +64 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/v8dll-main.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/v8globals.h +480 -0
- data/ext/v8/upstream/3.1.8/src/v8natives.js +1252 -0
- data/ext/v8/upstream/3.1.8/src/v8preparserdll-main.cc +39 -0
- data/ext/v8/upstream/3.1.8/src/v8threads.cc +440 -0
- data/ext/v8/upstream/3.1.8/src/v8threads.h +157 -0
- data/ext/v8/upstream/3.1.8/src/v8utils.h +354 -0
- data/ext/v8/upstream/3.1.8/src/variables.cc +132 -0
- data/ext/v8/upstream/3.1.8/src/variables.h +212 -0
- data/ext/v8/upstream/3.1.8/src/version.cc +95 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/version.h +0 -0
- data/ext/v8/upstream/3.1.8/src/virtual-frame-heavy-inl.h +190 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-heavy.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-light-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-light.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/virtual-frame.h +59 -0
- data/ext/v8/upstream/3.1.8/src/vm-state-inl.h +134 -0
- data/ext/v8/upstream/3.1.8/src/vm-state.h +68 -0
- data/ext/v8/upstream/3.1.8/src/win32-headers.h +95 -0
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64-inl.h +455 -0
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64.cc +3162 -0
- data/ext/v8/upstream/3.1.8/src/x64/assembler-x64.h +1584 -0
- data/ext/v8/upstream/3.1.8/src/x64/builtins-x64.cc +1492 -0
- data/ext/v8/upstream/3.1.8/src/x64/code-stubs-x64.cc +5150 -0
- data/ext/v8/upstream/3.1.8/src/x64/code-stubs-x64.h +519 -0
- data/ext/v8/upstream/3.1.8/src/x64/codegen-x64-inl.h +46 -0
- data/ext/v8/upstream/3.1.8/src/x64/codegen-x64.cc +8835 -0
- data/ext/v8/upstream/3.1.8/src/x64/codegen-x64.h +750 -0
- data/ext/v8/upstream/3.1.8/src/x64/cpu-x64.cc +86 -0
- data/ext/v8/upstream/3.1.8/src/x64/debug-x64.cc +316 -0
- data/ext/v8/upstream/3.1.8/src/x64/deoptimizer-x64.cc +781 -0
- data/ext/v8/upstream/3.1.8/src/x64/disasm-x64.cc +1737 -0
- data/ext/v8/upstream/3.1.8/src/x64/frames-x64.cc +45 -0
- data/ext/v8/upstream/3.1.8/src/x64/frames-x64.h +130 -0
- data/ext/v8/upstream/3.1.8/src/x64/full-codegen-x64.cc +3984 -0
- data/ext/v8/upstream/3.1.8/src/x64/ic-x64.cc +1761 -0
- data/ext/v8/upstream/3.1.8/src/x64/jump-target-x64.cc +437 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-codegen-x64.cc +3639 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-codegen-x64.h +305 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-gap-resolver-x64.cc +320 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-gap-resolver-x64.h +74 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-x64.cc +2044 -0
- data/ext/v8/upstream/3.1.8/src/x64/lithium-x64.h +2052 -0
- data/ext/v8/upstream/3.1.8/src/x64/macro-assembler-x64.cc +2660 -0
- data/ext/v8/upstream/3.1.8/src/x64/macro-assembler-x64.h +1852 -0
- data/ext/v8/upstream/3.1.8/src/x64/regexp-macro-assembler-x64.cc +1382 -0
- data/ext/v8/upstream/3.1.8/src/x64/regexp-macro-assembler-x64.h +278 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/register-allocator-x64-inl.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/register-allocator-x64.cc +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/register-allocator-x64.h +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/simulator-x64.cc +0 -0
- data/ext/v8/upstream/3.1.8/src/x64/simulator-x64.h +71 -0
- data/ext/v8/upstream/3.1.8/src/x64/stub-cache-x64.cc +3509 -0
- data/ext/v8/upstream/3.1.8/src/x64/virtual-frame-x64.cc +1292 -0
- data/ext/v8/upstream/3.1.8/src/x64/virtual-frame-x64.h +593 -0
- data/ext/v8/upstream/3.1.8/src/zone-inl.h +83 -0
- data/ext/v8/upstream/3.1.8/src/zone.cc +195 -0
- data/ext/v8/upstream/3.1.8/src/zone.h +233 -0
- data/ext/v8/upstream/3.1.8/tools/codemap.js +265 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/consarray.js +0 -0
- data/ext/v8/upstream/3.1.8/tools/csvparser.js +78 -0
- data/ext/v8/upstream/3.1.8/tools/disasm.py +92 -0
- data/ext/v8/upstream/3.1.8/tools/gc-nvp-trace-processor.py +328 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/generate-ten-powers.scm +0 -0
- data/ext/v8/upstream/3.1.8/tools/grokdump.py +840 -0
- data/ext/v8/upstream/3.1.8/tools/gyp/v8.gyp +869 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/js2c.py +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/jsmin.py +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/linux-tick-processor +0 -0
- data/ext/v8/upstream/3.1.8/tools/ll_prof.py +919 -0
- data/ext/v8/upstream/3.1.8/tools/logreader.js +185 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/mac-nm +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/mac-tick-processor +0 -0
- data/ext/v8/upstream/3.1.8/tools/oom_dump/README +31 -0
- data/ext/v8/upstream/3.1.8/tools/oom_dump/SConstruct +42 -0
- data/ext/v8/upstream/3.1.8/tools/oom_dump/oom_dump.cc +288 -0
- data/ext/v8/upstream/3.1.8/tools/presubmit.py +305 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/process-heap-prof.py +0 -0
- data/ext/v8/upstream/3.1.8/tools/profile.js +751 -0
- data/ext/v8/upstream/3.1.8/tools/profile_view.js +219 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/run-valgrind.py +0 -0
- data/ext/v8/upstream/3.1.8/tools/splaytree.js +316 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/stats-viewer.py +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/tickprocessor-driver.js +0 -0
- data/ext/v8/upstream/3.1.8/tools/tickprocessor.js +863 -0
- data/ext/v8/upstream/3.1.8/tools/utils.py +96 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/README.txt +70 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/arm.vsprops +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/common.vsprops +34 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8_arm.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8js2c.cmd +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/debug.vsprops +17 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/ia32.vsprops +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/js2c.cmd +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/release.vsprops +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8.sln +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_arm.sln +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_arm.vcproj +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base.vcproj +1296 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base_arm.vcproj +1234 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base_x64.vcproj +1296 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_cctest.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_cctest_arm.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_cctest_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_mksnapshot.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_mksnapshot_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_process_sample.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_process_sample_arm.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_process_sample_x64.vcproj +0 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_shell_sample.vcproj +147 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_shell_sample_arm.vcproj +147 -0
- data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_shell_sample_x64.vcproj +163 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot_cc.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot_cc_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_x64.sln +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/x64.vsprops +0 -0
- data/ext/v8/upstream/3.1.8/tools/windows-tick-processor.bat +30 -0
- data/ext/v8/upstream/Makefile +2 -1
- data/ext/v8/v8_template.cpp +2 -2
- data/lib/v8/version.rb +1 -1
- data/spec/redjs/jsapi_spec.rb +2 -2
- metadata +552 -490
- data/ext/v8/upstream/2.3.3/.gitignore +0 -26
- data/ext/v8/upstream/2.3.3/AUTHORS +0 -31
- data/ext/v8/upstream/2.3.3/ChangeLog +0 -1916
- data/ext/v8/upstream/2.3.3/LICENSE +0 -55
- data/ext/v8/upstream/2.3.3/SConstruct +0 -1154
- data/ext/v8/upstream/2.3.3/include/v8-debug.h +0 -381
- data/ext/v8/upstream/2.3.3/include/v8-profiler.h +0 -353
- data/ext/v8/upstream/2.3.3/include/v8.h +0 -3616
- data/ext/v8/upstream/2.3.3/src/SConscript +0 -330
- data/ext/v8/upstream/2.3.3/src/accessors.cc +0 -661
- data/ext/v8/upstream/2.3.3/src/accessors.h +0 -114
- data/ext/v8/upstream/2.3.3/src/allocation.cc +0 -198
- data/ext/v8/upstream/2.3.3/src/allocation.h +0 -169
- data/ext/v8/upstream/2.3.3/src/api.cc +0 -4795
- data/ext/v8/upstream/2.3.3/src/api.h +0 -485
- data/ext/v8/upstream/2.3.3/src/apiutils.h +0 -69
- data/ext/v8/upstream/2.3.3/src/arguments.h +0 -96
- data/ext/v8/upstream/2.3.3/src/arm/assembler-arm-inl.h +0 -305
- data/ext/v8/upstream/2.3.3/src/arm/assembler-arm.cc +0 -2580
- data/ext/v8/upstream/2.3.3/src/arm/assembler-arm.h +0 -1275
- data/ext/v8/upstream/2.3.3/src/arm/builtins-arm.cc +0 -1320
- data/ext/v8/upstream/2.3.3/src/arm/codegen-arm-inl.h +0 -48
- data/ext/v8/upstream/2.3.3/src/arm/codegen-arm.cc +0 -11398
- data/ext/v8/upstream/2.3.3/src/arm/codegen-arm.h +0 -1102
- data/ext/v8/upstream/2.3.3/src/arm/constants-arm.cc +0 -154
- data/ext/v8/upstream/2.3.3/src/arm/constants-arm.h +0 -388
- data/ext/v8/upstream/2.3.3/src/arm/cpu-arm.cc +0 -142
- data/ext/v8/upstream/2.3.3/src/arm/debug-arm.cc +0 -309
- data/ext/v8/upstream/2.3.3/src/arm/disasm-arm.cc +0 -1459
- data/ext/v8/upstream/2.3.3/src/arm/fast-codegen-arm.cc +0 -241
- data/ext/v8/upstream/2.3.3/src/arm/frames-arm.cc +0 -123
- data/ext/v8/upstream/2.3.3/src/arm/frames-arm.h +0 -162
- data/ext/v8/upstream/2.3.3/src/arm/full-codegen-arm.cc +0 -3178
- data/ext/v8/upstream/2.3.3/src/arm/ic-arm.cc +0 -2258
- data/ext/v8/upstream/2.3.3/src/arm/jump-target-arm.cc +0 -164
- data/ext/v8/upstream/2.3.3/src/arm/macro-assembler-arm.cc +0 -1892
- data/ext/v8/upstream/2.3.3/src/arm/macro-assembler-arm.h +0 -727
- data/ext/v8/upstream/2.3.3/src/arm/regexp-macro-assembler-arm.cc +0 -1261
- data/ext/v8/upstream/2.3.3/src/arm/regexp-macro-assembler-arm.h +0 -266
- data/ext/v8/upstream/2.3.3/src/arm/simulator-arm.cc +0 -2822
- data/ext/v8/upstream/2.3.3/src/arm/simulator-arm.h +0 -361
- data/ext/v8/upstream/2.3.3/src/arm/stub-cache-arm.cc +0 -2387
- data/ext/v8/upstream/2.3.3/src/arm/virtual-frame-arm.cc +0 -834
- data/ext/v8/upstream/2.3.3/src/arm/virtual-frame-arm.h +0 -519
- data/ext/v8/upstream/2.3.3/src/array.js +0 -1127
- data/ext/v8/upstream/2.3.3/src/assembler.cc +0 -801
- data/ext/v8/upstream/2.3.3/src/assembler.h +0 -573
- data/ext/v8/upstream/2.3.3/src/ast-inl.h +0 -81
- data/ext/v8/upstream/2.3.3/src/ast.cc +0 -1152
- data/ext/v8/upstream/2.3.3/src/ast.h +0 -2106
- data/ext/v8/upstream/2.3.3/src/bootstrapper.cc +0 -1819
- data/ext/v8/upstream/2.3.3/src/builtins.cc +0 -1529
- data/ext/v8/upstream/2.3.3/src/builtins.h +0 -263
- data/ext/v8/upstream/2.3.3/src/bytecodes-irregexp.h +0 -104
- data/ext/v8/upstream/2.3.3/src/cached-powers.h +0 -119
- data/ext/v8/upstream/2.3.3/src/char-predicates-inl.h +0 -86
- data/ext/v8/upstream/2.3.3/src/checks.cc +0 -100
- data/ext/v8/upstream/2.3.3/src/checks.h +0 -310
- data/ext/v8/upstream/2.3.3/src/circular-queue.cc +0 -121
- data/ext/v8/upstream/2.3.3/src/code-stubs.cc +0 -177
- data/ext/v8/upstream/2.3.3/src/code-stubs.h +0 -177
- data/ext/v8/upstream/2.3.3/src/codegen-inl.h +0 -60
- data/ext/v8/upstream/2.3.3/src/codegen.cc +0 -516
- data/ext/v8/upstream/2.3.3/src/codegen.h +0 -897
- data/ext/v8/upstream/2.3.3/src/compilation-cache.cc +0 -562
- data/ext/v8/upstream/2.3.3/src/compilation-cache.h +0 -102
- data/ext/v8/upstream/2.3.3/src/compiler.cc +0 -654
- data/ext/v8/upstream/2.3.3/src/compiler.h +0 -299
- data/ext/v8/upstream/2.3.3/src/contexts.cc +0 -256
- data/ext/v8/upstream/2.3.3/src/contexts.h +0 -342
- data/ext/v8/upstream/2.3.3/src/conversions.cc +0 -1119
- data/ext/v8/upstream/2.3.3/src/conversions.h +0 -123
- data/ext/v8/upstream/2.3.3/src/counters.h +0 -239
- data/ext/v8/upstream/2.3.3/src/cpu-profiler-inl.h +0 -100
- data/ext/v8/upstream/2.3.3/src/cpu-profiler.cc +0 -538
- data/ext/v8/upstream/2.3.3/src/cpu-profiler.h +0 -285
- data/ext/v8/upstream/2.3.3/src/d8-debug.cc +0 -356
- data/ext/v8/upstream/2.3.3/src/d8-debug.h +0 -155
- data/ext/v8/upstream/2.3.3/src/d8.cc +0 -783
- data/ext/v8/upstream/2.3.3/src/d8.h +0 -227
- data/ext/v8/upstream/2.3.3/src/d8.js +0 -1683
- data/ext/v8/upstream/2.3.3/src/data-flow.cc +0 -758
- data/ext/v8/upstream/2.3.3/src/data-flow.h +0 -278
- data/ext/v8/upstream/2.3.3/src/date.js +0 -1059
- data/ext/v8/upstream/2.3.3/src/dateparser-inl.h +0 -123
- data/ext/v8/upstream/2.3.3/src/dateparser.h +0 -244
- data/ext/v8/upstream/2.3.3/src/debug-agent.cc +0 -427
- data/ext/v8/upstream/2.3.3/src/debug-agent.h +0 -129
- data/ext/v8/upstream/2.3.3/src/debug-debugger.js +0 -2227
- data/ext/v8/upstream/2.3.3/src/debug.cc +0 -3005
- data/ext/v8/upstream/2.3.3/src/debug.h +0 -993
- data/ext/v8/upstream/2.3.3/src/disassembler.cc +0 -312
- data/ext/v8/upstream/2.3.3/src/double.h +0 -169
- data/ext/v8/upstream/2.3.3/src/dtoa-config.c +0 -92
- data/ext/v8/upstream/2.3.3/src/dtoa.cc +0 -77
- data/ext/v8/upstream/2.3.3/src/dtoa.h +0 -81
- data/ext/v8/upstream/2.3.3/src/execution.cc +0 -809
- data/ext/v8/upstream/2.3.3/src/execution.h +0 -336
- data/ext/v8/upstream/2.3.3/src/factory.cc +0 -1003
- data/ext/v8/upstream/2.3.3/src/factory.h +0 -410
- data/ext/v8/upstream/2.3.3/src/fast-codegen.cc +0 -746
- data/ext/v8/upstream/2.3.3/src/fast-codegen.h +0 -161
- data/ext/v8/upstream/2.3.3/src/fast-dtoa.cc +0 -505
- data/ext/v8/upstream/2.3.3/src/fast-dtoa.h +0 -58
- data/ext/v8/upstream/2.3.3/src/flag-definitions.h +0 -455
- data/ext/v8/upstream/2.3.3/src/flags.cc +0 -551
- data/ext/v8/upstream/2.3.3/src/flags.h +0 -81
- data/ext/v8/upstream/2.3.3/src/flow-graph.cc +0 -763
- data/ext/v8/upstream/2.3.3/src/flow-graph.h +0 -180
- data/ext/v8/upstream/2.3.3/src/frame-element.h +0 -273
- data/ext/v8/upstream/2.3.3/src/frames-inl.h +0 -217
- data/ext/v8/upstream/2.3.3/src/frames.cc +0 -826
- data/ext/v8/upstream/2.3.3/src/frames.h +0 -682
- data/ext/v8/upstream/2.3.3/src/full-codegen.cc +0 -1443
- data/ext/v8/upstream/2.3.3/src/full-codegen.h +0 -548
- data/ext/v8/upstream/2.3.3/src/func-name-inferrer.cc +0 -76
- data/ext/v8/upstream/2.3.3/src/func-name-inferrer.h +0 -135
- data/ext/v8/upstream/2.3.3/src/global-handles.cc +0 -520
- data/ext/v8/upstream/2.3.3/src/global-handles.h +0 -180
- data/ext/v8/upstream/2.3.3/src/globals.h +0 -669
- data/ext/v8/upstream/2.3.3/src/handles-inl.h +0 -76
- data/ext/v8/upstream/2.3.3/src/handles.cc +0 -825
- data/ext/v8/upstream/2.3.3/src/handles.h +0 -393
- data/ext/v8/upstream/2.3.3/src/hashmap.cc +0 -226
- data/ext/v8/upstream/2.3.3/src/hashmap.h +0 -120
- data/ext/v8/upstream/2.3.3/src/heap-inl.h +0 -493
- data/ext/v8/upstream/2.3.3/src/heap-profiler.cc +0 -779
- data/ext/v8/upstream/2.3.3/src/heap-profiler.h +0 -323
- data/ext/v8/upstream/2.3.3/src/heap.cc +0 -4994
- data/ext/v8/upstream/2.3.3/src/heap.h +0 -1984
- data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32-inl.h +0 -360
- data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32.cc +0 -2600
- data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32.h +0 -969
- data/ext/v8/upstream/2.3.3/src/ia32/builtins-ia32.cc +0 -1261
- data/ext/v8/upstream/2.3.3/src/ia32/codegen-ia32.cc +0 -13968
- data/ext/v8/upstream/2.3.3/src/ia32/codegen-ia32.h +0 -1097
- data/ext/v8/upstream/2.3.3/src/ia32/cpu-ia32.cc +0 -83
- data/ext/v8/upstream/2.3.3/src/ia32/debug-ia32.cc +0 -309
- data/ext/v8/upstream/2.3.3/src/ia32/disasm-ia32.cc +0 -1471
- data/ext/v8/upstream/2.3.3/src/ia32/fast-codegen-ia32.cc +0 -954
- data/ext/v8/upstream/2.3.3/src/ia32/fast-codegen-ia32.h +0 -155
- data/ext/v8/upstream/2.3.3/src/ia32/frames-ia32.cc +0 -115
- data/ext/v8/upstream/2.3.3/src/ia32/frames-ia32.h +0 -135
- data/ext/v8/upstream/2.3.3/src/ia32/full-codegen-ia32.cc +0 -3281
- data/ext/v8/upstream/2.3.3/src/ia32/ic-ia32.cc +0 -1966
- data/ext/v8/upstream/2.3.3/src/ia32/macro-assembler-ia32.cc +0 -1610
- data/ext/v8/upstream/2.3.3/src/ia32/macro-assembler-ia32.h +0 -610
- data/ext/v8/upstream/2.3.3/src/ia32/regexp-macro-assembler-ia32.cc +0 -1247
- data/ext/v8/upstream/2.3.3/src/ia32/regexp-macro-assembler-ia32.h +0 -214
- data/ext/v8/upstream/2.3.3/src/ia32/simulator-ia32.h +0 -62
- data/ext/v8/upstream/2.3.3/src/ia32/stub-cache-ia32.cc +0 -2750
- data/ext/v8/upstream/2.3.3/src/ia32/virtual-frame-ia32.cc +0 -1334
- data/ext/v8/upstream/2.3.3/src/ia32/virtual-frame-ia32.h +0 -627
- data/ext/v8/upstream/2.3.3/src/ic-inl.h +0 -120
- data/ext/v8/upstream/2.3.3/src/ic.cc +0 -1827
- data/ext/v8/upstream/2.3.3/src/ic.h +0 -515
- data/ext/v8/upstream/2.3.3/src/interpreter-irregexp.cc +0 -646
- data/ext/v8/upstream/2.3.3/src/json.js +0 -268
- data/ext/v8/upstream/2.3.3/src/jsregexp.cc +0 -5283
- data/ext/v8/upstream/2.3.3/src/jsregexp.h +0 -1463
- data/ext/v8/upstream/2.3.3/src/jump-target-heavy.cc +0 -429
- data/ext/v8/upstream/2.3.3/src/jump-target-heavy.h +0 -244
- data/ext/v8/upstream/2.3.3/src/jump-target-light.cc +0 -110
- data/ext/v8/upstream/2.3.3/src/jump-target-light.h +0 -192
- data/ext/v8/upstream/2.3.3/src/list-inl.h +0 -166
- data/ext/v8/upstream/2.3.3/src/list.h +0 -159
- data/ext/v8/upstream/2.3.3/src/liveedit-debugger.js +0 -1057
- data/ext/v8/upstream/2.3.3/src/liveedit.cc +0 -1480
- data/ext/v8/upstream/2.3.3/src/liveedit.h +0 -170
- data/ext/v8/upstream/2.3.3/src/log-utils.cc +0 -497
- data/ext/v8/upstream/2.3.3/src/log-utils.h +0 -289
- data/ext/v8/upstream/2.3.3/src/log.cc +0 -1561
- data/ext/v8/upstream/2.3.3/src/log.h +0 -384
- data/ext/v8/upstream/2.3.3/src/macro-assembler.h +0 -86
- data/ext/v8/upstream/2.3.3/src/macros.py +0 -177
- data/ext/v8/upstream/2.3.3/src/mark-compact.cc +0 -2330
- data/ext/v8/upstream/2.3.3/src/mark-compact.h +0 -451
- data/ext/v8/upstream/2.3.3/src/math.js +0 -264
- data/ext/v8/upstream/2.3.3/src/memory.h +0 -74
- data/ext/v8/upstream/2.3.3/src/messages.cc +0 -183
- data/ext/v8/upstream/2.3.3/src/messages.h +0 -113
- data/ext/v8/upstream/2.3.3/src/messages.js +0 -982
- data/ext/v8/upstream/2.3.3/src/mips/assembler-mips.h +0 -668
- data/ext/v8/upstream/2.3.3/src/mips/builtins-mips.cc +0 -205
- data/ext/v8/upstream/2.3.3/src/mips/codegen-mips.h +0 -434
- data/ext/v8/upstream/2.3.3/src/mips/debug-mips.cc +0 -131
- data/ext/v8/upstream/2.3.3/src/mips/frames-mips.cc +0 -102
- data/ext/v8/upstream/2.3.3/src/mips/ic-mips.cc +0 -220
- data/ext/v8/upstream/2.3.3/src/mips/simulator-mips.cc +0 -1651
- data/ext/v8/upstream/2.3.3/src/mips/simulator-mips.h +0 -311
- data/ext/v8/upstream/2.3.3/src/mips/stub-cache-mips.cc +0 -403
- data/ext/v8/upstream/2.3.3/src/mirror-debugger.js +0 -2380
- data/ext/v8/upstream/2.3.3/src/objects-debug.cc +0 -1366
- data/ext/v8/upstream/2.3.3/src/objects-inl.h +0 -3333
- data/ext/v8/upstream/2.3.3/src/objects.cc +0 -8820
- data/ext/v8/upstream/2.3.3/src/objects.h +0 -5373
- data/ext/v8/upstream/2.3.3/src/oprofile-agent.cc +0 -108
- data/ext/v8/upstream/2.3.3/src/oprofile-agent.h +0 -77
- data/ext/v8/upstream/2.3.3/src/parser.cc +0 -5207
- data/ext/v8/upstream/2.3.3/src/parser.h +0 -197
- data/ext/v8/upstream/2.3.3/src/platform-freebsd.cc +0 -667
- data/ext/v8/upstream/2.3.3/src/platform-linux.cc +0 -862
- data/ext/v8/upstream/2.3.3/src/platform-macos.cc +0 -665
- data/ext/v8/upstream/2.3.3/src/platform-nullos.cc +0 -454
- data/ext/v8/upstream/2.3.3/src/platform-openbsd.cc +0 -622
- data/ext/v8/upstream/2.3.3/src/platform-posix.cc +0 -362
- data/ext/v8/upstream/2.3.3/src/platform-solaris.cc +0 -653
- data/ext/v8/upstream/2.3.3/src/platform-win32.cc +0 -1911
- data/ext/v8/upstream/2.3.3/src/platform.h +0 -577
- data/ext/v8/upstream/2.3.3/src/powers-ten.h +0 -2461
- data/ext/v8/upstream/2.3.3/src/prettyprinter.cc +0 -1531
- data/ext/v8/upstream/2.3.3/src/prettyprinter.h +0 -221
- data/ext/v8/upstream/2.3.3/src/profile-generator-inl.h +0 -148
- data/ext/v8/upstream/2.3.3/src/profile-generator.cc +0 -1830
- data/ext/v8/upstream/2.3.3/src/profile-generator.h +0 -853
- data/ext/v8/upstream/2.3.3/src/property.cc +0 -96
- data/ext/v8/upstream/2.3.3/src/property.h +0 -315
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-irregexp.cc +0 -464
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-irregexp.h +0 -141
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-tracer.cc +0 -356
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-tracer.h +0 -103
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler.cc +0 -261
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler.h +0 -228
- data/ext/v8/upstream/2.3.3/src/regexp.js +0 -549
- data/ext/v8/upstream/2.3.3/src/rewriter.cc +0 -1038
- data/ext/v8/upstream/2.3.3/src/rewriter.h +0 -54
- data/ext/v8/upstream/2.3.3/src/runtime.cc +0 -10599
- data/ext/v8/upstream/2.3.3/src/runtime.h +0 -459
- data/ext/v8/upstream/2.3.3/src/runtime.js +0 -629
- data/ext/v8/upstream/2.3.3/src/scanner.cc +0 -1346
- data/ext/v8/upstream/2.3.3/src/scanner.h +0 -503
- data/ext/v8/upstream/2.3.3/src/scopeinfo.cc +0 -637
- data/ext/v8/upstream/2.3.3/src/scopeinfo.h +0 -233
- data/ext/v8/upstream/2.3.3/src/scopes.cc +0 -962
- data/ext/v8/upstream/2.3.3/src/scopes.h +0 -400
- data/ext/v8/upstream/2.3.3/src/serialize.cc +0 -1461
- data/ext/v8/upstream/2.3.3/src/serialize.h +0 -581
- data/ext/v8/upstream/2.3.3/src/spaces-inl.h +0 -483
- data/ext/v8/upstream/2.3.3/src/spaces.cc +0 -2901
- data/ext/v8/upstream/2.3.3/src/spaces.h +0 -2197
- data/ext/v8/upstream/2.3.3/src/string-stream.cc +0 -584
- data/ext/v8/upstream/2.3.3/src/string-stream.h +0 -189
- data/ext/v8/upstream/2.3.3/src/string.js +0 -1006
- data/ext/v8/upstream/2.3.3/src/stub-cache.cc +0 -1379
- data/ext/v8/upstream/2.3.3/src/stub-cache.h +0 -756
- data/ext/v8/upstream/2.3.3/src/third_party/dtoa/COPYING +0 -15
- data/ext/v8/upstream/2.3.3/src/third_party/dtoa/dtoa.c +0 -3334
- data/ext/v8/upstream/2.3.3/src/token.cc +0 -56
- data/ext/v8/upstream/2.3.3/src/token.h +0 -270
- data/ext/v8/upstream/2.3.3/src/top.cc +0 -1067
- data/ext/v8/upstream/2.3.3/src/top.h +0 -463
- data/ext/v8/upstream/2.3.3/src/type-info.cc +0 -53
- data/ext/v8/upstream/2.3.3/src/type-info.h +0 -244
- data/ext/v8/upstream/2.3.3/src/unicode-inl.h +0 -238
- data/ext/v8/upstream/2.3.3/src/unicode.cc +0 -749
- data/ext/v8/upstream/2.3.3/src/unicode.h +0 -279
- data/ext/v8/upstream/2.3.3/src/uri.js +0 -415
- data/ext/v8/upstream/2.3.3/src/utils.cc +0 -285
- data/ext/v8/upstream/2.3.3/src/utils.h +0 -745
- data/ext/v8/upstream/2.3.3/src/v8-counters.h +0 -250
- data/ext/v8/upstream/2.3.3/src/v8.cc +0 -228
- data/ext/v8/upstream/2.3.3/src/v8.h +0 -121
- data/ext/v8/upstream/2.3.3/src/v8natives.js +0 -1188
- data/ext/v8/upstream/2.3.3/src/v8threads.cc +0 -461
- data/ext/v8/upstream/2.3.3/src/v8threads.h +0 -159
- data/ext/v8/upstream/2.3.3/src/variables.cc +0 -119
- data/ext/v8/upstream/2.3.3/src/variables.h +0 -205
- data/ext/v8/upstream/2.3.3/src/version.cc +0 -88
- data/ext/v8/upstream/2.3.3/src/virtual-frame-heavy-inl.h +0 -192
- data/ext/v8/upstream/2.3.3/src/virtual-frame.h +0 -46
- data/ext/v8/upstream/2.3.3/src/vm-state-inl.h +0 -137
- data/ext/v8/upstream/2.3.3/src/vm-state.cc +0 -39
- data/ext/v8/upstream/2.3.3/src/vm-state.h +0 -77
- data/ext/v8/upstream/2.3.3/src/x64/assembler-x64-inl.h +0 -400
- data/ext/v8/upstream/2.3.3/src/x64/assembler-x64.cc +0 -2963
- data/ext/v8/upstream/2.3.3/src/x64/assembler-x64.h +0 -1438
- data/ext/v8/upstream/2.3.3/src/x64/builtins-x64.cc +0 -1296
- data/ext/v8/upstream/2.3.3/src/x64/codegen-x64-inl.h +0 -46
- data/ext/v8/upstream/2.3.3/src/x64/codegen-x64.cc +0 -12491
- data/ext/v8/upstream/2.3.3/src/x64/codegen-x64.h +0 -1090
- data/ext/v8/upstream/2.3.3/src/x64/cpu-x64.cc +0 -83
- data/ext/v8/upstream/2.3.3/src/x64/debug-x64.cc +0 -267
- data/ext/v8/upstream/2.3.3/src/x64/disasm-x64.cc +0 -1696
- data/ext/v8/upstream/2.3.3/src/x64/fast-codegen-x64.cc +0 -250
- data/ext/v8/upstream/2.3.3/src/x64/frames-x64.cc +0 -113
- data/ext/v8/upstream/2.3.3/src/x64/frames-x64.h +0 -125
- data/ext/v8/upstream/2.3.3/src/x64/full-codegen-x64.cc +0 -3270
- data/ext/v8/upstream/2.3.3/src/x64/ic-x64.cc +0 -1907
- data/ext/v8/upstream/2.3.3/src/x64/jump-target-x64.cc +0 -437
- data/ext/v8/upstream/2.3.3/src/x64/macro-assembler-x64.cc +0 -2793
- data/ext/v8/upstream/2.3.3/src/x64/macro-assembler-x64.h +0 -916
- data/ext/v8/upstream/2.3.3/src/x64/regexp-macro-assembler-x64.cc +0 -1374
- data/ext/v8/upstream/2.3.3/src/x64/regexp-macro-assembler-x64.h +0 -277
- data/ext/v8/upstream/2.3.3/src/x64/simulator-x64.h +0 -63
- data/ext/v8/upstream/2.3.3/src/x64/stub-cache-x64.cc +0 -2560
- data/ext/v8/upstream/2.3.3/src/x64/virtual-frame-x64.cc +0 -1264
- data/ext/v8/upstream/2.3.3/src/x64/virtual-frame-x64.h +0 -590
- data/ext/v8/upstream/2.3.3/src/zone-inl.h +0 -82
- data/ext/v8/upstream/2.3.3/src/zone.cc +0 -194
- data/ext/v8/upstream/2.3.3/src/zone.h +0 -221
- data/ext/v8/upstream/2.3.3/tools/codemap.js +0 -270
- data/ext/v8/upstream/2.3.3/tools/csvparser.js +0 -83
- data/ext/v8/upstream/2.3.3/tools/gc-nvp-trace-processor.py +0 -317
- data/ext/v8/upstream/2.3.3/tools/gyp/v8.gyp +0 -749
- data/ext/v8/upstream/2.3.3/tools/linux-tick-processor.py +0 -78
- data/ext/v8/upstream/2.3.3/tools/logreader.js +0 -338
- data/ext/v8/upstream/2.3.3/tools/oprofile/annotate +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/common +0 -19
- data/ext/v8/upstream/2.3.3/tools/oprofile/dump +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/report +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/reset +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/run +0 -14
- data/ext/v8/upstream/2.3.3/tools/oprofile/shutdown +0 -7
- data/ext/v8/upstream/2.3.3/tools/oprofile/start +0 -7
- data/ext/v8/upstream/2.3.3/tools/presubmit.py +0 -299
- data/ext/v8/upstream/2.3.3/tools/profile.js +0 -691
- data/ext/v8/upstream/2.3.3/tools/profile_view.js +0 -224
- data/ext/v8/upstream/2.3.3/tools/splaytree.js +0 -322
- data/ext/v8/upstream/2.3.3/tools/splaytree.py +0 -226
- data/ext/v8/upstream/2.3.3/tools/tickprocessor.js +0 -862
- data/ext/v8/upstream/2.3.3/tools/tickprocessor.py +0 -571
- data/ext/v8/upstream/2.3.3/tools/utils.py +0 -88
- data/ext/v8/upstream/2.3.3/tools/visual_studio/README.txt +0 -71
- data/ext/v8/upstream/2.3.3/tools/visual_studio/common.vsprops +0 -34
- data/ext/v8/upstream/2.3.3/tools/visual_studio/debug.vsprops +0 -17
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base.vcproj +0 -1143
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base_arm.vcproj +0 -1115
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base_x64.vcproj +0 -1096
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample.vcproj +0 -145
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample_arm.vcproj +0 -145
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample_x64.vcproj +0 -161
- data/ext/v8/upstream/2.3.3/tools/windows-tick-processor.bat +0 -29
- data/ext/v8/upstream/2.3.3/tools/windows-tick-processor.py +0 -137
@@ -1,121 +0,0 @@
|
|
1
|
-
// Copyright 2006-2008 the V8 project authors. All rights reserved.
|
2
|
-
// Redistribution and use in source and binary forms, with or without
|
3
|
-
// modification, are permitted provided that the following conditions are
|
4
|
-
// met:
|
5
|
-
//
|
6
|
-
// * Redistributions of source code must retain the above copyright
|
7
|
-
// notice, this list of conditions and the following disclaimer.
|
8
|
-
// * Redistributions in binary form must reproduce the above
|
9
|
-
// copyright notice, this list of conditions and the following
|
10
|
-
// disclaimer in the documentation and/or other materials provided
|
11
|
-
// with the distribution.
|
12
|
-
// * Neither the name of Google Inc. nor the names of its
|
13
|
-
// contributors may be used to endorse or promote products derived
|
14
|
-
// from this software without specific prior written permission.
|
15
|
-
//
|
16
|
-
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
-
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
-
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
-
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
-
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
-
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
-
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
-
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
-
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
-
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
-
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
-
|
28
|
-
//
|
29
|
-
// Top include for all V8 .cc files.
|
30
|
-
//
|
31
|
-
|
32
|
-
#ifndef V8_V8_H_
|
33
|
-
#define V8_V8_H_
|
34
|
-
|
35
|
-
#if defined(GOOGLE3)
|
36
|
-
// Google3 special flag handling.
|
37
|
-
#if defined(DEBUG) && defined(NDEBUG)
|
38
|
-
// If both are defined in Google3, then we are building an optimized v8 with
|
39
|
-
// assertions enabled.
|
40
|
-
#undef NDEBUG
|
41
|
-
#elif !defined(DEBUG) && !defined(NDEBUG)
|
42
|
-
// If neither is defined in Google3, then we are building a debug v8. Mark it
|
43
|
-
// as such.
|
44
|
-
#define DEBUG
|
45
|
-
#endif
|
46
|
-
#endif // defined(GOOGLE3)
|
47
|
-
|
48
|
-
// V8 only uses DEBUG, but included external files
|
49
|
-
// may use NDEBUG - make sure they are consistent.
|
50
|
-
#if defined(DEBUG) && defined(NDEBUG)
|
51
|
-
#error both DEBUG and NDEBUG are set
|
52
|
-
#endif
|
53
|
-
|
54
|
-
// Basic includes
|
55
|
-
#include "../include/v8.h"
|
56
|
-
#include "globals.h"
|
57
|
-
#include "checks.h"
|
58
|
-
#include "allocation.h"
|
59
|
-
#include "utils.h"
|
60
|
-
#include "flags.h"
|
61
|
-
|
62
|
-
// Objects & heap
|
63
|
-
#include "objects.h"
|
64
|
-
#include "spaces.h"
|
65
|
-
#include "heap.h"
|
66
|
-
#include "objects-inl.h"
|
67
|
-
#include "spaces-inl.h"
|
68
|
-
#include "heap-inl.h"
|
69
|
-
#include "log-inl.h"
|
70
|
-
#include "cpu-profiler-inl.h"
|
71
|
-
#include "handles-inl.h"
|
72
|
-
#include "vm-state-inl.h"
|
73
|
-
|
74
|
-
namespace v8 {
|
75
|
-
namespace internal {
|
76
|
-
|
77
|
-
class Deserializer;
|
78
|
-
|
79
|
-
class V8 : public AllStatic {
|
80
|
-
public:
|
81
|
-
// Global actions.
|
82
|
-
|
83
|
-
// If Initialize is called with des == NULL, the initial state is
|
84
|
-
// created from scratch. If a non-null Deserializer is given, the
|
85
|
-
// initial state is created by reading the deserialized data into an
|
86
|
-
// empty heap.
|
87
|
-
static bool Initialize(Deserializer* des);
|
88
|
-
static void TearDown();
|
89
|
-
static bool IsRunning() { return is_running_; }
|
90
|
-
// To be dead you have to have lived
|
91
|
-
static bool IsDead() { return has_fatal_error_ || has_been_disposed_; }
|
92
|
-
static void SetFatalError();
|
93
|
-
|
94
|
-
// Report process out of memory. Implementation found in api.cc.
|
95
|
-
static void FatalProcessOutOfMemory(const char* location);
|
96
|
-
|
97
|
-
// Random number generation support. Not cryptographically safe.
|
98
|
-
static uint32_t Random();
|
99
|
-
static Object* FillHeapNumberWithRandom(Object* heap_number);
|
100
|
-
|
101
|
-
// Idle notification directly from the API.
|
102
|
-
static bool IdleNotification();
|
103
|
-
|
104
|
-
private:
|
105
|
-
// True if engine is currently running
|
106
|
-
static bool is_running_;
|
107
|
-
// True if V8 has ever been run
|
108
|
-
static bool has_been_setup_;
|
109
|
-
// True if error has been signaled for current engine
|
110
|
-
// (reset to false if engine is restarted)
|
111
|
-
static bool has_fatal_error_;
|
112
|
-
// True if engine has been shut down
|
113
|
-
// (reset if engine is restarted)
|
114
|
-
static bool has_been_disposed_;
|
115
|
-
};
|
116
|
-
|
117
|
-
} } // namespace v8::internal
|
118
|
-
|
119
|
-
namespace i = v8::internal;
|
120
|
-
|
121
|
-
#endif // V8_V8_H_
|
@@ -1,1188 +0,0 @@
|
|
1
|
-
// Copyright 2006-2008 the V8 project authors. All rights reserved.
|
2
|
-
// Redistribution and use in source and binary forms, with or without
|
3
|
-
// modification, are permitted provided that the following conditions are
|
4
|
-
// met:
|
5
|
-
//
|
6
|
-
// * Redistributions of source code must retain the above copyright
|
7
|
-
// notice, this list of conditions and the following disclaimer.
|
8
|
-
// * Redistributions in binary form must reproduce the above
|
9
|
-
// copyright notice, this list of conditions and the following
|
10
|
-
// disclaimer in the documentation and/or other materials provided
|
11
|
-
// with the distribution.
|
12
|
-
// * Neither the name of Google Inc. nor the names of its
|
13
|
-
// contributors may be used to endorse or promote products derived
|
14
|
-
// from this software without specific prior written permission.
|
15
|
-
//
|
16
|
-
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
-
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
-
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
-
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
-
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
-
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
-
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
-
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
-
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
-
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
-
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
-
|
28
|
-
// This file relies on the fact that the following declarations have been made
|
29
|
-
//
|
30
|
-
// in runtime.js:
|
31
|
-
// const $Object = global.Object;
|
32
|
-
// const $Boolean = global.Boolean;
|
33
|
-
// const $Number = global.Number;
|
34
|
-
// const $Function = global.Function;
|
35
|
-
// const $Array = global.Array;
|
36
|
-
// const $NaN = 0/0;
|
37
|
-
//
|
38
|
-
// in math.js:
|
39
|
-
// const $floor = MathFloor
|
40
|
-
|
41
|
-
const $isNaN = GlobalIsNaN;
|
42
|
-
const $isFinite = GlobalIsFinite;
|
43
|
-
|
44
|
-
|
45
|
-
// ----------------------------------------------------------------------------
|
46
|
-
|
47
|
-
|
48
|
-
// Helper function used to install functions on objects.
|
49
|
-
function InstallFunctions(object, attributes, functions) {
|
50
|
-
if (functions.length >= 8) {
|
51
|
-
%OptimizeObjectForAddingMultipleProperties(object, functions.length >> 1);
|
52
|
-
}
|
53
|
-
for (var i = 0; i < functions.length; i += 2) {
|
54
|
-
var key = functions[i];
|
55
|
-
var f = functions[i + 1];
|
56
|
-
%FunctionSetName(f, key);
|
57
|
-
%FunctionRemovePrototype(f);
|
58
|
-
%SetProperty(object, key, f, attributes);
|
59
|
-
}
|
60
|
-
%ToFastProperties(object);
|
61
|
-
}
|
62
|
-
|
63
|
-
// Emulates JSC by installing functions on a hidden prototype that
|
64
|
-
// lies above the current object/prototype. This lets you override
|
65
|
-
// functions on String.prototype etc. and then restore the old function
|
66
|
-
// with delete. See http://code.google.com/p/chromium/issues/detail?id=1717
|
67
|
-
function InstallFunctionsOnHiddenPrototype(object, attributes, functions) {
|
68
|
-
var hidden_prototype = new $Object();
|
69
|
-
%SetHiddenPrototype(object, hidden_prototype);
|
70
|
-
InstallFunctions(hidden_prototype, attributes, functions);
|
71
|
-
}
|
72
|
-
|
73
|
-
|
74
|
-
// ----------------------------------------------------------------------------
|
75
|
-
|
76
|
-
|
77
|
-
// ECMA 262 - 15.1.4
|
78
|
-
function GlobalIsNaN(number) {
|
79
|
-
var n = ToNumber(number);
|
80
|
-
return NUMBER_IS_NAN(n);
|
81
|
-
}
|
82
|
-
|
83
|
-
|
84
|
-
// ECMA 262 - 15.1.5
|
85
|
-
function GlobalIsFinite(number) {
|
86
|
-
if (!IS_NUMBER(number)) number = ToNumber(number);
|
87
|
-
|
88
|
-
// NaN - NaN == NaN, Infinity - Infinity == NaN, -Infinity - -Infinity == NaN.
|
89
|
-
return %_IsSmi(number) || number - number == 0;
|
90
|
-
}
|
91
|
-
|
92
|
-
|
93
|
-
// ECMA-262 - 15.1.2.2
|
94
|
-
function GlobalParseInt(string, radix) {
|
95
|
-
if (IS_UNDEFINED(radix)) {
|
96
|
-
// Some people use parseInt instead of Math.floor. This
|
97
|
-
// optimization makes parseInt on a Smi 12 times faster (60ns
|
98
|
-
// vs 800ns). The following optimization makes parseInt on a
|
99
|
-
// non-Smi number 9 times faster (230ns vs 2070ns). Together
|
100
|
-
// they make parseInt on a string 1.4% slower (274ns vs 270ns).
|
101
|
-
if (%_IsSmi(string)) return string;
|
102
|
-
if (IS_NUMBER(string) &&
|
103
|
-
((0.01 < string && string < 1e9) ||
|
104
|
-
(-1e9 < string && string < -0.01))) {
|
105
|
-
// Truncate number.
|
106
|
-
return string | 0;
|
107
|
-
}
|
108
|
-
radix = 0;
|
109
|
-
} else {
|
110
|
-
radix = TO_INT32(radix);
|
111
|
-
if (!(radix == 0 || (2 <= radix && radix <= 36)))
|
112
|
-
return $NaN;
|
113
|
-
}
|
114
|
-
return %StringParseInt(ToString(string), radix);
|
115
|
-
}
|
116
|
-
|
117
|
-
|
118
|
-
// ECMA-262 - 15.1.2.3
|
119
|
-
function GlobalParseFloat(string) {
|
120
|
-
return %StringParseFloat(ToString(string));
|
121
|
-
}
|
122
|
-
|
123
|
-
|
124
|
-
function GlobalEval(x) {
|
125
|
-
if (!IS_STRING(x)) return x;
|
126
|
-
|
127
|
-
var global_receiver = %GlobalReceiver(global);
|
128
|
-
var this_is_global_receiver = (this === global_receiver);
|
129
|
-
var global_is_detached = (global === global_receiver);
|
130
|
-
|
131
|
-
if (!this_is_global_receiver || global_is_detached) {
|
132
|
-
throw new $EvalError('The "this" object passed to eval must ' +
|
133
|
-
'be the global object from which eval originated');
|
134
|
-
}
|
135
|
-
|
136
|
-
var f = %CompileString(x, false);
|
137
|
-
if (!IS_FUNCTION(f)) return f;
|
138
|
-
|
139
|
-
return f.call(this);
|
140
|
-
}
|
141
|
-
|
142
|
-
|
143
|
-
// execScript for IE compatibility.
|
144
|
-
function GlobalExecScript(expr, lang) {
|
145
|
-
// NOTE: We don't care about the character casing.
|
146
|
-
if (!lang || /javascript/i.test(lang)) {
|
147
|
-
var f = %CompileString(ToString(expr), false);
|
148
|
-
f.call(%GlobalReceiver(global));
|
149
|
-
}
|
150
|
-
return null;
|
151
|
-
}
|
152
|
-
|
153
|
-
|
154
|
-
// ----------------------------------------------------------------------------
|
155
|
-
|
156
|
-
|
157
|
-
function SetupGlobal() {
|
158
|
-
// ECMA 262 - 15.1.1.1.
|
159
|
-
%SetProperty(global, "NaN", $NaN, DONT_ENUM | DONT_DELETE);
|
160
|
-
|
161
|
-
// ECMA-262 - 15.1.1.2.
|
162
|
-
%SetProperty(global, "Infinity", 1/0, DONT_ENUM | DONT_DELETE);
|
163
|
-
|
164
|
-
// ECMA-262 - 15.1.1.3.
|
165
|
-
%SetProperty(global, "undefined", void 0, DONT_ENUM | DONT_DELETE);
|
166
|
-
|
167
|
-
// Setup non-enumerable function on the global object.
|
168
|
-
InstallFunctions(global, DONT_ENUM, $Array(
|
169
|
-
"isNaN", GlobalIsNaN,
|
170
|
-
"isFinite", GlobalIsFinite,
|
171
|
-
"parseInt", GlobalParseInt,
|
172
|
-
"parseFloat", GlobalParseFloat,
|
173
|
-
"eval", GlobalEval,
|
174
|
-
"execScript", GlobalExecScript
|
175
|
-
));
|
176
|
-
}
|
177
|
-
|
178
|
-
SetupGlobal();
|
179
|
-
|
180
|
-
|
181
|
-
// ----------------------------------------------------------------------------
|
182
|
-
// Boolean (first part of definition)
|
183
|
-
|
184
|
-
|
185
|
-
%SetCode($Boolean, function(x) {
|
186
|
-
if (%_IsConstructCall()) {
|
187
|
-
%_SetValueOf(this, ToBoolean(x));
|
188
|
-
} else {
|
189
|
-
return ToBoolean(x);
|
190
|
-
}
|
191
|
-
});
|
192
|
-
|
193
|
-
%FunctionSetPrototype($Boolean, new $Boolean(false));
|
194
|
-
|
195
|
-
%SetProperty($Boolean.prototype, "constructor", $Boolean, DONT_ENUM);
|
196
|
-
|
197
|
-
// ----------------------------------------------------------------------------
|
198
|
-
// Object
|
199
|
-
|
200
|
-
$Object.prototype.constructor = $Object;
|
201
|
-
|
202
|
-
// ECMA-262 - 15.2.4.2
|
203
|
-
function ObjectToString() {
|
204
|
-
return "[object " + %_ClassOf(ToObject(this)) + "]";
|
205
|
-
}
|
206
|
-
|
207
|
-
|
208
|
-
// ECMA-262 - 15.2.4.3
|
209
|
-
function ObjectToLocaleString() {
|
210
|
-
return this.toString();
|
211
|
-
}
|
212
|
-
|
213
|
-
|
214
|
-
// ECMA-262 - 15.2.4.4
|
215
|
-
function ObjectValueOf() {
|
216
|
-
return ToObject(this);
|
217
|
-
}
|
218
|
-
|
219
|
-
|
220
|
-
// ECMA-262 - 15.2.4.5
|
221
|
-
function ObjectHasOwnProperty(V) {
|
222
|
-
return %HasLocalProperty(ToObject(this), ToString(V));
|
223
|
-
}
|
224
|
-
|
225
|
-
|
226
|
-
// ECMA-262 - 15.2.4.6
|
227
|
-
function ObjectIsPrototypeOf(V) {
|
228
|
-
if (!IS_SPEC_OBJECT(V)) return false;
|
229
|
-
return %IsInPrototypeChain(this, V);
|
230
|
-
}
|
231
|
-
|
232
|
-
|
233
|
-
// ECMA-262 - 15.2.4.6
|
234
|
-
function ObjectPropertyIsEnumerable(V) {
|
235
|
-
return %IsPropertyEnumerable(ToObject(this), ToString(V));
|
236
|
-
}
|
237
|
-
|
238
|
-
|
239
|
-
// Extensions for providing property getters and setters.
|
240
|
-
function ObjectDefineGetter(name, fun) {
|
241
|
-
if (this == null && !IS_UNDETECTABLE(this)) {
|
242
|
-
throw new $TypeError('Object.prototype.__defineGetter__: this is Null');
|
243
|
-
}
|
244
|
-
if (!IS_FUNCTION(fun)) {
|
245
|
-
throw new $TypeError('Object.prototype.__defineGetter__: Expecting function');
|
246
|
-
}
|
247
|
-
return %DefineAccessor(ToObject(this), ToString(name), GETTER, fun);
|
248
|
-
}
|
249
|
-
|
250
|
-
|
251
|
-
function ObjectLookupGetter(name) {
|
252
|
-
if (this == null && !IS_UNDETECTABLE(this)) {
|
253
|
-
throw new $TypeError('Object.prototype.__lookupGetter__: this is Null');
|
254
|
-
}
|
255
|
-
return %LookupAccessor(ToObject(this), ToString(name), GETTER);
|
256
|
-
}
|
257
|
-
|
258
|
-
|
259
|
-
function ObjectDefineSetter(name, fun) {
|
260
|
-
if (this == null && !IS_UNDETECTABLE(this)) {
|
261
|
-
throw new $TypeError('Object.prototype.__defineSetter__: this is Null');
|
262
|
-
}
|
263
|
-
if (!IS_FUNCTION(fun)) {
|
264
|
-
throw new $TypeError(
|
265
|
-
'Object.prototype.__defineSetter__: Expecting function');
|
266
|
-
}
|
267
|
-
return %DefineAccessor(ToObject(this), ToString(name), SETTER, fun);
|
268
|
-
}
|
269
|
-
|
270
|
-
|
271
|
-
function ObjectLookupSetter(name) {
|
272
|
-
if (this == null && !IS_UNDETECTABLE(this)) {
|
273
|
-
throw new $TypeError('Object.prototype.__lookupSetter__: this is Null');
|
274
|
-
}
|
275
|
-
return %LookupAccessor(ToObject(this), ToString(name), SETTER);
|
276
|
-
}
|
277
|
-
|
278
|
-
|
279
|
-
function ObjectKeys(obj) {
|
280
|
-
if (!IS_SPEC_OBJECT(obj))
|
281
|
-
throw MakeTypeError("obj_ctor_property_non_object", ["keys"]);
|
282
|
-
return %LocalKeys(obj);
|
283
|
-
}
|
284
|
-
|
285
|
-
|
286
|
-
// ES5 8.10.1.
|
287
|
-
function IsAccessorDescriptor(desc) {
|
288
|
-
if (IS_UNDEFINED(desc)) return false;
|
289
|
-
return desc.hasGetter_ || desc.hasSetter_;
|
290
|
-
}
|
291
|
-
|
292
|
-
|
293
|
-
// ES5 8.10.2.
|
294
|
-
function IsDataDescriptor(desc) {
|
295
|
-
if (IS_UNDEFINED(desc)) return false;
|
296
|
-
return desc.hasValue_ || desc.hasWritable_;
|
297
|
-
}
|
298
|
-
|
299
|
-
|
300
|
-
// ES5 8.10.3.
|
301
|
-
function IsGenericDescriptor(desc) {
|
302
|
-
return !(IsAccessorDescriptor(desc) || IsDataDescriptor(desc));
|
303
|
-
}
|
304
|
-
|
305
|
-
|
306
|
-
function IsInconsistentDescriptor(desc) {
|
307
|
-
return IsAccessorDescriptor(desc) && IsDataDescriptor(desc);
|
308
|
-
}
|
309
|
-
|
310
|
-
// ES5 8.10.4
|
311
|
-
function FromPropertyDescriptor(desc) {
|
312
|
-
if (IS_UNDEFINED(desc)) return desc;
|
313
|
-
var obj = new $Object();
|
314
|
-
if (IsDataDescriptor(desc)) {
|
315
|
-
obj.value = desc.getValue();
|
316
|
-
obj.writable = desc.isWritable();
|
317
|
-
}
|
318
|
-
if (IsAccessorDescriptor(desc)) {
|
319
|
-
obj.get = desc.getGet();
|
320
|
-
obj.set = desc.getSet();
|
321
|
-
}
|
322
|
-
obj.enumerable = desc.isEnumerable();
|
323
|
-
obj.configurable = desc.isConfigurable();
|
324
|
-
return obj;
|
325
|
-
}
|
326
|
-
|
327
|
-
// ES5 8.10.5.
|
328
|
-
function ToPropertyDescriptor(obj) {
|
329
|
-
if (!IS_SPEC_OBJECT(obj)) {
|
330
|
-
throw MakeTypeError("property_desc_object", [obj]);
|
331
|
-
}
|
332
|
-
var desc = new PropertyDescriptor();
|
333
|
-
|
334
|
-
if ("enumerable" in obj) {
|
335
|
-
desc.setEnumerable(ToBoolean(obj.enumerable));
|
336
|
-
}
|
337
|
-
|
338
|
-
if ("configurable" in obj) {
|
339
|
-
desc.setConfigurable(ToBoolean(obj.configurable));
|
340
|
-
}
|
341
|
-
|
342
|
-
if ("value" in obj) {
|
343
|
-
desc.setValue(obj.value);
|
344
|
-
}
|
345
|
-
|
346
|
-
if ("writable" in obj) {
|
347
|
-
desc.setWritable(ToBoolean(obj.writable));
|
348
|
-
}
|
349
|
-
|
350
|
-
if ("get" in obj) {
|
351
|
-
var get = obj.get;
|
352
|
-
if (!IS_UNDEFINED(get) && !IS_FUNCTION(get)) {
|
353
|
-
throw MakeTypeError("getter_must_be_callable", [get]);
|
354
|
-
}
|
355
|
-
desc.setGet(get);
|
356
|
-
}
|
357
|
-
|
358
|
-
if ("set" in obj) {
|
359
|
-
var set = obj.set;
|
360
|
-
if (!IS_UNDEFINED(set) && !IS_FUNCTION(set)) {
|
361
|
-
throw MakeTypeError("setter_must_be_callable", [set]);
|
362
|
-
}
|
363
|
-
desc.setSet(set);
|
364
|
-
}
|
365
|
-
|
366
|
-
if (IsInconsistentDescriptor(desc)) {
|
367
|
-
throw MakeTypeError("value_and_accessor", [obj]);
|
368
|
-
}
|
369
|
-
return desc;
|
370
|
-
}
|
371
|
-
|
372
|
-
|
373
|
-
function PropertyDescriptor() {
|
374
|
-
// Initialize here so they are all in-object and have the same map.
|
375
|
-
// Default values from ES5 8.6.1.
|
376
|
-
this.value_ = void 0;
|
377
|
-
this.hasValue_ = false;
|
378
|
-
this.writable_ = false;
|
379
|
-
this.hasWritable_ = false;
|
380
|
-
this.enumerable_ = false;
|
381
|
-
this.hasEnumerable_ = false;
|
382
|
-
this.configurable_ = false;
|
383
|
-
this.hasConfigurable_ = false;
|
384
|
-
this.get_ = void 0;
|
385
|
-
this.hasGetter_ = false;
|
386
|
-
this.set_ = void 0;
|
387
|
-
this.hasSetter_ = false;
|
388
|
-
}
|
389
|
-
|
390
|
-
|
391
|
-
PropertyDescriptor.prototype.setValue = function(value) {
|
392
|
-
this.value_ = value;
|
393
|
-
this.hasValue_ = true;
|
394
|
-
}
|
395
|
-
|
396
|
-
|
397
|
-
PropertyDescriptor.prototype.getValue = function() {
|
398
|
-
return this.value_;
|
399
|
-
}
|
400
|
-
|
401
|
-
|
402
|
-
PropertyDescriptor.prototype.hasValue = function() {
|
403
|
-
return this.hasValue_;
|
404
|
-
}
|
405
|
-
|
406
|
-
|
407
|
-
PropertyDescriptor.prototype.setEnumerable = function(enumerable) {
|
408
|
-
this.enumerable_ = enumerable;
|
409
|
-
this.hasEnumerable_ = true;
|
410
|
-
}
|
411
|
-
|
412
|
-
|
413
|
-
PropertyDescriptor.prototype.isEnumerable = function () {
|
414
|
-
return this.enumerable_;
|
415
|
-
}
|
416
|
-
|
417
|
-
|
418
|
-
PropertyDescriptor.prototype.hasEnumerable = function() {
|
419
|
-
return this.hasEnumerable_;
|
420
|
-
}
|
421
|
-
|
422
|
-
|
423
|
-
PropertyDescriptor.prototype.setWritable = function(writable) {
|
424
|
-
this.writable_ = writable;
|
425
|
-
this.hasWritable_ = true;
|
426
|
-
}
|
427
|
-
|
428
|
-
|
429
|
-
PropertyDescriptor.prototype.isWritable = function() {
|
430
|
-
return this.writable_;
|
431
|
-
}
|
432
|
-
|
433
|
-
|
434
|
-
PropertyDescriptor.prototype.hasWritable = function() {
|
435
|
-
return this.hasWritable_;
|
436
|
-
}
|
437
|
-
|
438
|
-
|
439
|
-
PropertyDescriptor.prototype.setConfigurable = function(configurable) {
|
440
|
-
this.configurable_ = configurable;
|
441
|
-
this.hasConfigurable_ = true;
|
442
|
-
}
|
443
|
-
|
444
|
-
|
445
|
-
PropertyDescriptor.prototype.hasConfigurable = function() {
|
446
|
-
return this.hasConfigurable_;
|
447
|
-
}
|
448
|
-
|
449
|
-
|
450
|
-
PropertyDescriptor.prototype.isConfigurable = function() {
|
451
|
-
return this.configurable_;
|
452
|
-
}
|
453
|
-
|
454
|
-
|
455
|
-
PropertyDescriptor.prototype.setGet = function(get) {
|
456
|
-
this.get_ = get;
|
457
|
-
this.hasGetter_ = true;
|
458
|
-
}
|
459
|
-
|
460
|
-
|
461
|
-
PropertyDescriptor.prototype.getGet = function() {
|
462
|
-
return this.get_;
|
463
|
-
}
|
464
|
-
|
465
|
-
|
466
|
-
PropertyDescriptor.prototype.hasGetter = function() {
|
467
|
-
return this.hasGetter_;
|
468
|
-
}
|
469
|
-
|
470
|
-
|
471
|
-
PropertyDescriptor.prototype.setSet = function(set) {
|
472
|
-
this.set_ = set;
|
473
|
-
this.hasSetter_ = true;
|
474
|
-
}
|
475
|
-
|
476
|
-
|
477
|
-
PropertyDescriptor.prototype.getSet = function() {
|
478
|
-
return this.set_;
|
479
|
-
}
|
480
|
-
|
481
|
-
|
482
|
-
PropertyDescriptor.prototype.hasSetter = function() {
|
483
|
-
return this.hasSetter_;
|
484
|
-
}
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
// ES5 section 8.12.1.
|
489
|
-
function GetOwnProperty(obj, p) {
|
490
|
-
var desc = new PropertyDescriptor();
|
491
|
-
|
492
|
-
// GetOwnProperty returns an array indexed by the constants
|
493
|
-
// defined in macros.py.
|
494
|
-
// If p is not a property on obj undefined is returned.
|
495
|
-
var props = %GetOwnProperty(ToObject(obj), ToString(p));
|
496
|
-
|
497
|
-
if (IS_UNDEFINED(props)) return void 0;
|
498
|
-
|
499
|
-
// This is an accessor
|
500
|
-
if (props[IS_ACCESSOR_INDEX]) {
|
501
|
-
desc.setGet(props[GETTER_INDEX]);
|
502
|
-
desc.setSet(props[SETTER_INDEX]);
|
503
|
-
} else {
|
504
|
-
desc.setValue(props[VALUE_INDEX]);
|
505
|
-
desc.setWritable(props[WRITABLE_INDEX]);
|
506
|
-
}
|
507
|
-
desc.setEnumerable(props[ENUMERABLE_INDEX]);
|
508
|
-
desc.setConfigurable(props[CONFIGURABLE_INDEX]);
|
509
|
-
|
510
|
-
return desc;
|
511
|
-
}
|
512
|
-
|
513
|
-
|
514
|
-
// ES5 section 8.12.2.
|
515
|
-
function GetProperty(obj, p) {
|
516
|
-
var prop = GetOwnProperty(obj);
|
517
|
-
if (!IS_UNDEFINED(prop)) return prop;
|
518
|
-
var proto = obj.__proto__;
|
519
|
-
if (IS_NULL(proto)) return void 0;
|
520
|
-
return GetProperty(proto, p);
|
521
|
-
}
|
522
|
-
|
523
|
-
|
524
|
-
// ES5 section 8.12.6
|
525
|
-
function HasProperty(obj, p) {
|
526
|
-
var desc = GetProperty(obj, p);
|
527
|
-
return IS_UNDEFINED(desc) ? false : true;
|
528
|
-
}
|
529
|
-
|
530
|
-
|
531
|
-
// ES5 8.12.9.
|
532
|
-
function DefineOwnProperty(obj, p, desc, should_throw) {
|
533
|
-
var current = GetOwnProperty(obj, p);
|
534
|
-
var extensible = %IsExtensible(ToObject(obj));
|
535
|
-
|
536
|
-
// Error handling according to spec.
|
537
|
-
// Step 3
|
538
|
-
if (IS_UNDEFINED(current) && !extensible)
|
539
|
-
throw MakeTypeError("define_disallowed", ["defineProperty"]);
|
540
|
-
|
541
|
-
if (!IS_UNDEFINED(current) && !current.isConfigurable()) {
|
542
|
-
// Step 5 and 6
|
543
|
-
if ((!desc.hasEnumerable() ||
|
544
|
-
SameValue(desc.isEnumerable() && current.isEnumerable())) &&
|
545
|
-
(!desc.hasConfigurable() ||
|
546
|
-
SameValue(desc.isConfigurable(), current.isConfigurable())) &&
|
547
|
-
(!desc.hasWritable() ||
|
548
|
-
SameValue(desc.isWritable(), current.isWritable())) &&
|
549
|
-
(!desc.hasValue() ||
|
550
|
-
SameValue(desc.getValue(), current.getValue())) &&
|
551
|
-
(!desc.hasGetter() ||
|
552
|
-
SameValue(desc.getGet(), current.getGet())) &&
|
553
|
-
(!desc.hasSetter() ||
|
554
|
-
SameValue(desc.getSet(), current.getSet()))) {
|
555
|
-
return true;
|
556
|
-
}
|
557
|
-
|
558
|
-
// Step 7
|
559
|
-
if (desc.isConfigurable() || desc.isEnumerable() != current.isEnumerable())
|
560
|
-
throw MakeTypeError("redefine_disallowed", ["defineProperty"]);
|
561
|
-
// Step 9
|
562
|
-
if (IsDataDescriptor(current) != IsDataDescriptor(desc))
|
563
|
-
throw MakeTypeError("redefine_disallowed", ["defineProperty"]);
|
564
|
-
// Step 10
|
565
|
-
if (IsDataDescriptor(current) && IsDataDescriptor(desc)) {
|
566
|
-
if (!current.isWritable() && desc.isWritable())
|
567
|
-
throw MakeTypeError("redefine_disallowed", ["defineProperty"]);
|
568
|
-
if (!current.isWritable() && desc.hasValue() &&
|
569
|
-
!SameValue(desc.getValue(), current.getValue())) {
|
570
|
-
throw MakeTypeError("redefine_disallowed", ["defineProperty"]);
|
571
|
-
}
|
572
|
-
}
|
573
|
-
// Step 11
|
574
|
-
if (IsAccessorDescriptor(desc) && IsAccessorDescriptor(current)) {
|
575
|
-
if (desc.hasSetter() && !SameValue(desc.getSet(), current.getSet())){
|
576
|
-
throw MakeTypeError("redefine_disallowed", ["defineProperty"]);
|
577
|
-
}
|
578
|
-
if (desc.hasGetter() && !SameValue(desc.getGet(),current.getGet()))
|
579
|
-
throw MakeTypeError("redefine_disallowed", ["defineProperty"]);
|
580
|
-
}
|
581
|
-
}
|
582
|
-
|
583
|
-
// Send flags - enumerable and configurable are common - writable is
|
584
|
-
// only send to the data descriptor.
|
585
|
-
// Take special care if enumerable and configurable is not defined on
|
586
|
-
// desc (we need to preserve the existing values from current).
|
587
|
-
var flag = NONE;
|
588
|
-
if (desc.hasEnumerable()) {
|
589
|
-
flag |= desc.isEnumerable() ? 0 : DONT_ENUM;
|
590
|
-
} else if (!IS_UNDEFINED(current)) {
|
591
|
-
flag |= current.isEnumerable() ? 0 : DONT_ENUM;
|
592
|
-
} else {
|
593
|
-
flag |= DONT_ENUM;
|
594
|
-
}
|
595
|
-
|
596
|
-
if (desc.hasConfigurable()) {
|
597
|
-
flag |= desc.isConfigurable() ? 0 : DONT_DELETE;
|
598
|
-
} else if (!IS_UNDEFINED(current)) {
|
599
|
-
flag |= current.isConfigurable() ? 0 : DONT_DELETE;
|
600
|
-
} else
|
601
|
-
flag |= DONT_DELETE;
|
602
|
-
|
603
|
-
if (IsDataDescriptor(desc) || IsGenericDescriptor(desc)) {
|
604
|
-
if (desc.hasWritable()) {
|
605
|
-
flag |= desc.isWritable() ? 0 : READ_ONLY;
|
606
|
-
} else if (!IS_UNDEFINED(current)) {
|
607
|
-
flag |= current.isWritable() ? 0 : READ_ONLY;
|
608
|
-
} else {
|
609
|
-
flag |= READ_ONLY;
|
610
|
-
}
|
611
|
-
%DefineOrRedefineDataProperty(obj, p, desc.getValue(), flag);
|
612
|
-
} else {
|
613
|
-
if (desc.hasGetter() && IS_FUNCTION(desc.getGet())) {
|
614
|
-
%DefineOrRedefineAccessorProperty(obj, p, GETTER, desc.getGet(), flag);
|
615
|
-
}
|
616
|
-
if (desc.hasSetter() && IS_FUNCTION(desc.getSet())) {
|
617
|
-
%DefineOrRedefineAccessorProperty(obj, p, SETTER, desc.getSet(), flag);
|
618
|
-
}
|
619
|
-
}
|
620
|
-
return true;
|
621
|
-
}
|
622
|
-
|
623
|
-
|
624
|
-
// ES5 section 15.2.3.2.
|
625
|
-
function ObjectGetPrototypeOf(obj) {
|
626
|
-
if (!IS_SPEC_OBJECT(obj))
|
627
|
-
throw MakeTypeError("obj_ctor_property_non_object", ["getPrototypeOf"]);
|
628
|
-
return obj.__proto__;
|
629
|
-
}
|
630
|
-
|
631
|
-
|
632
|
-
// ES5 section 15.2.3.3
|
633
|
-
function ObjectGetOwnPropertyDescriptor(obj, p) {
|
634
|
-
if (!IS_SPEC_OBJECT(obj))
|
635
|
-
throw MakeTypeError("obj_ctor_property_non_object", ["getOwnPropertyDescriptor"]);
|
636
|
-
var desc = GetOwnProperty(obj, p);
|
637
|
-
return FromPropertyDescriptor(desc);
|
638
|
-
}
|
639
|
-
|
640
|
-
|
641
|
-
// ES5 section 15.2.3.4.
|
642
|
-
function ObjectGetOwnPropertyNames(obj) {
|
643
|
-
if (!IS_SPEC_OBJECT(obj))
|
644
|
-
throw MakeTypeError("obj_ctor_property_non_object", ["getOwnPropertyNames"]);
|
645
|
-
|
646
|
-
// Find all the indexed properties.
|
647
|
-
|
648
|
-
// Get the local element names.
|
649
|
-
var propertyNames = %GetLocalElementNames(obj);
|
650
|
-
|
651
|
-
// Get names for indexed interceptor properties.
|
652
|
-
if (%GetInterceptorInfo(obj) & 1) {
|
653
|
-
var indexedInterceptorNames =
|
654
|
-
%GetIndexedInterceptorElementNames(obj);
|
655
|
-
if (indexedInterceptorNames)
|
656
|
-
propertyNames = propertyNames.concat(indexedInterceptorNames);
|
657
|
-
}
|
658
|
-
|
659
|
-
// Find all the named properties.
|
660
|
-
|
661
|
-
// Get the local property names.
|
662
|
-
propertyNames = propertyNames.concat(%GetLocalPropertyNames(obj));
|
663
|
-
|
664
|
-
// Get names for named interceptor properties if any.
|
665
|
-
|
666
|
-
if (%GetInterceptorInfo(obj) & 2) {
|
667
|
-
var namedInterceptorNames =
|
668
|
-
%GetNamedInterceptorPropertyNames(obj);
|
669
|
-
if (namedInterceptorNames) {
|
670
|
-
propertyNames = propertyNames.concat(namedInterceptorNames);
|
671
|
-
}
|
672
|
-
}
|
673
|
-
|
674
|
-
// Property names are expected to be unique strings.
|
675
|
-
var propertySet = {};
|
676
|
-
var j = 0;
|
677
|
-
for (var i = 0; i < propertyNames.length; ++i) {
|
678
|
-
var name = ToString(propertyNames[i]);
|
679
|
-
// We need to check for the exact property value since for intrinsic
|
680
|
-
// properties like toString if(propertySet["toString"]) will always
|
681
|
-
// succeed.
|
682
|
-
if (propertySet[name] === true)
|
683
|
-
continue;
|
684
|
-
propertySet[name] = true;
|
685
|
-
propertyNames[j++] = name;
|
686
|
-
}
|
687
|
-
propertyNames.length = j;
|
688
|
-
|
689
|
-
return propertyNames;
|
690
|
-
}
|
691
|
-
|
692
|
-
|
693
|
-
// ES5 section 15.2.3.5.
|
694
|
-
function ObjectCreate(proto, properties) {
|
695
|
-
if (!IS_SPEC_OBJECT(proto) && proto !== null) {
|
696
|
-
throw MakeTypeError("proto_object_or_null", [proto]);
|
697
|
-
}
|
698
|
-
var obj = new $Object();
|
699
|
-
obj.__proto__ = proto;
|
700
|
-
if (!IS_UNDEFINED(properties)) ObjectDefineProperties(obj, properties);
|
701
|
-
return obj;
|
702
|
-
}
|
703
|
-
|
704
|
-
|
705
|
-
// ES5 section 15.2.3.6.
|
706
|
-
function ObjectDefineProperty(obj, p, attributes) {
|
707
|
-
if (!IS_SPEC_OBJECT(obj)) {
|
708
|
-
throw MakeTypeError("obj_ctor_property_non_object", ["defineProperty"]);
|
709
|
-
}
|
710
|
-
var name = ToString(p);
|
711
|
-
var desc = ToPropertyDescriptor(attributes);
|
712
|
-
DefineOwnProperty(obj, name, desc, true);
|
713
|
-
return obj;
|
714
|
-
}
|
715
|
-
|
716
|
-
|
717
|
-
// ES5 section 15.2.3.7.
|
718
|
-
function ObjectDefineProperties(obj, properties) {
|
719
|
-
if (!IS_SPEC_OBJECT(obj))
|
720
|
-
throw MakeTypeError("obj_ctor_property_non_object", ["defineProperties"]);
|
721
|
-
var props = ToObject(properties);
|
722
|
-
var key_values = [];
|
723
|
-
for (var key in props) {
|
724
|
-
if (%HasLocalProperty(props, key)) {
|
725
|
-
key_values.push(key);
|
726
|
-
var value = props[key];
|
727
|
-
var desc = ToPropertyDescriptor(value);
|
728
|
-
key_values.push(desc);
|
729
|
-
}
|
730
|
-
}
|
731
|
-
for (var i = 0; i < key_values.length; i += 2) {
|
732
|
-
var key = key_values[i];
|
733
|
-
var desc = key_values[i + 1];
|
734
|
-
DefineOwnProperty(obj, key, desc, true);
|
735
|
-
}
|
736
|
-
return obj;
|
737
|
-
}
|
738
|
-
|
739
|
-
|
740
|
-
// ES5 section 15.2.3.8.
|
741
|
-
function ObjectSeal(obj) {
|
742
|
-
if (!IS_SPEC_OBJECT(obj)) {
|
743
|
-
throw MakeTypeError("obj_ctor_property_non_object", ["seal"]);
|
744
|
-
}
|
745
|
-
var names = ObjectGetOwnPropertyNames(obj);
|
746
|
-
for (var key in names) {
|
747
|
-
var name = names[key];
|
748
|
-
var desc = GetOwnProperty(obj, name);
|
749
|
-
if (desc.isConfigurable()) desc.setConfigurable(false);
|
750
|
-
DefineOwnProperty(obj, name, desc, true);
|
751
|
-
}
|
752
|
-
ObjectPreventExtension(obj);
|
753
|
-
}
|
754
|
-
|
755
|
-
|
756
|
-
// ES5 section 15.2.3.9.
|
757
|
-
function ObjectFreeze(obj) {
|
758
|
-
if (!IS_SPEC_OBJECT(obj)) {
|
759
|
-
throw MakeTypeError("obj_ctor_property_non_object", ["freeze"]);
|
760
|
-
}
|
761
|
-
var names = ObjectGetOwnPropertyNames(obj);
|
762
|
-
for (var key in names) {
|
763
|
-
var name = names[key];
|
764
|
-
var desc = GetOwnProperty(obj, name);
|
765
|
-
if (IsDataDescriptor(desc)) desc.setWritable(false);
|
766
|
-
if (desc.isConfigurable()) desc.setConfigurable(false);
|
767
|
-
DefineOwnProperty(obj, name, desc, true);
|
768
|
-
}
|
769
|
-
ObjectPreventExtension(obj);
|
770
|
-
}
|
771
|
-
|
772
|
-
|
773
|
-
// ES5 section 15.2.3.10
|
774
|
-
function ObjectPreventExtension(obj) {
|
775
|
-
if (!IS_SPEC_OBJECT(obj)) {
|
776
|
-
throw MakeTypeError("obj_ctor_property_non_object", ["preventExtension"]);
|
777
|
-
}
|
778
|
-
%PreventExtensions(obj);
|
779
|
-
return obj;
|
780
|
-
}
|
781
|
-
|
782
|
-
|
783
|
-
// ES5 section 15.2.3.11
|
784
|
-
function ObjectIsSealed(obj) {
|
785
|
-
if (!IS_SPEC_OBJECT(obj)) {
|
786
|
-
throw MakeTypeError("obj_ctor_property_non_object", ["isSealed"]);
|
787
|
-
}
|
788
|
-
var names = ObjectGetOwnPropertyNames(obj);
|
789
|
-
for (var key in names) {
|
790
|
-
var name = names[key];
|
791
|
-
var desc = GetOwnProperty(obj, name);
|
792
|
-
if (desc.isConfigurable()) return false;
|
793
|
-
}
|
794
|
-
if (!ObjectIsExtensible(obj)) {
|
795
|
-
return true;
|
796
|
-
}
|
797
|
-
return false;
|
798
|
-
}
|
799
|
-
|
800
|
-
|
801
|
-
// ES5 section 15.2.3.12
|
802
|
-
function ObjectIsFrozen(obj) {
|
803
|
-
if (!IS_SPEC_OBJECT(obj)) {
|
804
|
-
throw MakeTypeError("obj_ctor_property_non_object", ["isFrozen"]);
|
805
|
-
}
|
806
|
-
var names = ObjectGetOwnPropertyNames(obj);
|
807
|
-
for (var key in names) {
|
808
|
-
var name = names[key];
|
809
|
-
var desc = GetOwnProperty(obj, name);
|
810
|
-
if (IsDataDescriptor(desc) && desc.isWritable()) return false;
|
811
|
-
if (desc.isConfigurable()) return false;
|
812
|
-
}
|
813
|
-
if (!ObjectIsExtensible(obj)) {
|
814
|
-
return true;
|
815
|
-
}
|
816
|
-
return false;
|
817
|
-
}
|
818
|
-
|
819
|
-
|
820
|
-
// ES5 section 15.2.3.13
|
821
|
-
function ObjectIsExtensible(obj) {
|
822
|
-
if (!IS_SPEC_OBJECT(obj)) {
|
823
|
-
throw MakeTypeError("obj_ctor_property_non_object", ["preventExtension"]);
|
824
|
-
}
|
825
|
-
return %IsExtensible(obj);
|
826
|
-
}
|
827
|
-
|
828
|
-
|
829
|
-
%SetCode($Object, function(x) {
|
830
|
-
if (%_IsConstructCall()) {
|
831
|
-
if (x == null) return this;
|
832
|
-
return ToObject(x);
|
833
|
-
} else {
|
834
|
-
if (x == null) return { };
|
835
|
-
return ToObject(x);
|
836
|
-
}
|
837
|
-
});
|
838
|
-
|
839
|
-
|
840
|
-
// ----------------------------------------------------------------------------
|
841
|
-
|
842
|
-
|
843
|
-
function SetupObject() {
|
844
|
-
// Setup non-enumerable functions on the Object.prototype object.
|
845
|
-
InstallFunctions($Object.prototype, DONT_ENUM, $Array(
|
846
|
-
"toString", ObjectToString,
|
847
|
-
"toLocaleString", ObjectToLocaleString,
|
848
|
-
"valueOf", ObjectValueOf,
|
849
|
-
"hasOwnProperty", ObjectHasOwnProperty,
|
850
|
-
"isPrototypeOf", ObjectIsPrototypeOf,
|
851
|
-
"propertyIsEnumerable", ObjectPropertyIsEnumerable,
|
852
|
-
"__defineGetter__", ObjectDefineGetter,
|
853
|
-
"__lookupGetter__", ObjectLookupGetter,
|
854
|
-
"__defineSetter__", ObjectDefineSetter,
|
855
|
-
"__lookupSetter__", ObjectLookupSetter
|
856
|
-
));
|
857
|
-
InstallFunctions($Object, DONT_ENUM, $Array(
|
858
|
-
"keys", ObjectKeys,
|
859
|
-
"create", ObjectCreate,
|
860
|
-
"defineProperty", ObjectDefineProperty,
|
861
|
-
"defineProperties", ObjectDefineProperties,
|
862
|
-
"freeze", ObjectFreeze,
|
863
|
-
"getPrototypeOf", ObjectGetPrototypeOf,
|
864
|
-
"getOwnPropertyDescriptor", ObjectGetOwnPropertyDescriptor,
|
865
|
-
"getOwnPropertyNames", ObjectGetOwnPropertyNames,
|
866
|
-
"isExtensible", ObjectIsExtensible,
|
867
|
-
"isFrozen", ObjectIsFrozen,
|
868
|
-
"isSealed", ObjectIsSealed,
|
869
|
-
"preventExtensions", ObjectPreventExtension,
|
870
|
-
"seal", ObjectSeal
|
871
|
-
));
|
872
|
-
}
|
873
|
-
|
874
|
-
SetupObject();
|
875
|
-
|
876
|
-
|
877
|
-
// ----------------------------------------------------------------------------
|
878
|
-
// Boolean
|
879
|
-
|
880
|
-
function BooleanToString() {
|
881
|
-
// NOTE: Both Boolean objects and values can enter here as
|
882
|
-
// 'this'. This is not as dictated by ECMA-262.
|
883
|
-
if (!IS_BOOLEAN(this) && !IS_BOOLEAN_WRAPPER(this))
|
884
|
-
throw new $TypeError('Boolean.prototype.toString is not generic');
|
885
|
-
return ToString(%_ValueOf(this));
|
886
|
-
}
|
887
|
-
|
888
|
-
|
889
|
-
function BooleanValueOf() {
|
890
|
-
// NOTE: Both Boolean objects and values can enter here as
|
891
|
-
// 'this'. This is not as dictated by ECMA-262.
|
892
|
-
if (!IS_BOOLEAN(this) && !IS_BOOLEAN_WRAPPER(this))
|
893
|
-
throw new $TypeError('Boolean.prototype.valueOf is not generic');
|
894
|
-
return %_ValueOf(this);
|
895
|
-
}
|
896
|
-
|
897
|
-
|
898
|
-
function BooleanToJSON(key) {
|
899
|
-
return CheckJSONPrimitive(this.valueOf());
|
900
|
-
}
|
901
|
-
|
902
|
-
|
903
|
-
// ----------------------------------------------------------------------------
|
904
|
-
|
905
|
-
|
906
|
-
function SetupBoolean() {
|
907
|
-
InstallFunctions($Boolean.prototype, DONT_ENUM, $Array(
|
908
|
-
"toString", BooleanToString,
|
909
|
-
"valueOf", BooleanValueOf,
|
910
|
-
"toJSON", BooleanToJSON
|
911
|
-
));
|
912
|
-
}
|
913
|
-
|
914
|
-
SetupBoolean();
|
915
|
-
|
916
|
-
// ----------------------------------------------------------------------------
|
917
|
-
// Number
|
918
|
-
|
919
|
-
// Set the Number function and constructor.
|
920
|
-
%SetCode($Number, function(x) {
|
921
|
-
var value = %_ArgumentsLength() == 0 ? 0 : ToNumber(x);
|
922
|
-
if (%_IsConstructCall()) {
|
923
|
-
%_SetValueOf(this, value);
|
924
|
-
} else {
|
925
|
-
return value;
|
926
|
-
}
|
927
|
-
});
|
928
|
-
|
929
|
-
%FunctionSetPrototype($Number, new $Number(0));
|
930
|
-
|
931
|
-
// ECMA-262 section 15.7.4.2.
|
932
|
-
function NumberToString(radix) {
|
933
|
-
// NOTE: Both Number objects and values can enter here as
|
934
|
-
// 'this'. This is not as dictated by ECMA-262.
|
935
|
-
var number = this;
|
936
|
-
if (!IS_NUMBER(this)) {
|
937
|
-
if (!IS_NUMBER_WRAPPER(this))
|
938
|
-
throw new $TypeError('Number.prototype.toString is not generic');
|
939
|
-
// Get the value of this number in case it's an object.
|
940
|
-
number = %_ValueOf(this);
|
941
|
-
}
|
942
|
-
// Fast case: Convert number in radix 10.
|
943
|
-
if (IS_UNDEFINED(radix) || radix === 10) {
|
944
|
-
return ToString(number);
|
945
|
-
}
|
946
|
-
|
947
|
-
// Convert the radix to an integer and check the range.
|
948
|
-
radix = TO_INTEGER(radix);
|
949
|
-
if (radix < 2 || radix > 36) {
|
950
|
-
throw new $RangeError('toString() radix argument must be between 2 and 36');
|
951
|
-
}
|
952
|
-
// Convert the number to a string in the given radix.
|
953
|
-
return %NumberToRadixString(number, radix);
|
954
|
-
}
|
955
|
-
|
956
|
-
|
957
|
-
// ECMA-262 section 15.7.4.3
|
958
|
-
function NumberToLocaleString() {
|
959
|
-
return this.toString();
|
960
|
-
}
|
961
|
-
|
962
|
-
|
963
|
-
// ECMA-262 section 15.7.4.4
|
964
|
-
function NumberValueOf() {
|
965
|
-
// NOTE: Both Number objects and values can enter here as
|
966
|
-
// 'this'. This is not as dictated by ECMA-262.
|
967
|
-
if (!IS_NUMBER(this) && !IS_NUMBER_WRAPPER(this))
|
968
|
-
throw new $TypeError('Number.prototype.valueOf is not generic');
|
969
|
-
return %_ValueOf(this);
|
970
|
-
}
|
971
|
-
|
972
|
-
|
973
|
-
// ECMA-262 section 15.7.4.5
|
974
|
-
function NumberToFixed(fractionDigits) {
|
975
|
-
var f = TO_INTEGER(fractionDigits);
|
976
|
-
if (f < 0 || f > 20) {
|
977
|
-
throw new $RangeError("toFixed() digits argument must be between 0 and 20");
|
978
|
-
}
|
979
|
-
var x = ToNumber(this);
|
980
|
-
return %NumberToFixed(x, f);
|
981
|
-
}
|
982
|
-
|
983
|
-
|
984
|
-
// ECMA-262 section 15.7.4.6
|
985
|
-
function NumberToExponential(fractionDigits) {
|
986
|
-
var f = -1;
|
987
|
-
if (!IS_UNDEFINED(fractionDigits)) {
|
988
|
-
f = TO_INTEGER(fractionDigits);
|
989
|
-
if (f < 0 || f > 20) {
|
990
|
-
throw new $RangeError("toExponential() argument must be between 0 and 20");
|
991
|
-
}
|
992
|
-
}
|
993
|
-
var x = ToNumber(this);
|
994
|
-
return %NumberToExponential(x, f);
|
995
|
-
}
|
996
|
-
|
997
|
-
|
998
|
-
// ECMA-262 section 15.7.4.7
|
999
|
-
function NumberToPrecision(precision) {
|
1000
|
-
if (IS_UNDEFINED(precision)) return ToString(%_ValueOf(this));
|
1001
|
-
var p = TO_INTEGER(precision);
|
1002
|
-
if (p < 1 || p > 21) {
|
1003
|
-
throw new $RangeError("toPrecision() argument must be between 1 and 21");
|
1004
|
-
}
|
1005
|
-
var x = ToNumber(this);
|
1006
|
-
return %NumberToPrecision(x, p);
|
1007
|
-
}
|
1008
|
-
|
1009
|
-
|
1010
|
-
function CheckJSONPrimitive(val) {
|
1011
|
-
if (!IsPrimitive(val))
|
1012
|
-
throw MakeTypeError('result_not_primitive', ['toJSON', val]);
|
1013
|
-
return val;
|
1014
|
-
}
|
1015
|
-
|
1016
|
-
|
1017
|
-
function NumberToJSON(key) {
|
1018
|
-
return CheckJSONPrimitive(this.valueOf());
|
1019
|
-
}
|
1020
|
-
|
1021
|
-
|
1022
|
-
// ----------------------------------------------------------------------------
|
1023
|
-
|
1024
|
-
function SetupNumber() {
|
1025
|
-
%OptimizeObjectForAddingMultipleProperties($Number.prototype, 8);
|
1026
|
-
// Setup the constructor property on the Number prototype object.
|
1027
|
-
%SetProperty($Number.prototype, "constructor", $Number, DONT_ENUM);
|
1028
|
-
|
1029
|
-
%OptimizeObjectForAddingMultipleProperties($Number, 5);
|
1030
|
-
// ECMA-262 section 15.7.3.1.
|
1031
|
-
%SetProperty($Number,
|
1032
|
-
"MAX_VALUE",
|
1033
|
-
1.7976931348623157e+308,
|
1034
|
-
DONT_ENUM | DONT_DELETE | READ_ONLY);
|
1035
|
-
|
1036
|
-
// ECMA-262 section 15.7.3.2.
|
1037
|
-
%SetProperty($Number, "MIN_VALUE", 5e-324, DONT_ENUM | DONT_DELETE | READ_ONLY);
|
1038
|
-
|
1039
|
-
// ECMA-262 section 15.7.3.3.
|
1040
|
-
%SetProperty($Number, "NaN", $NaN, DONT_ENUM | DONT_DELETE | READ_ONLY);
|
1041
|
-
|
1042
|
-
// ECMA-262 section 15.7.3.4.
|
1043
|
-
%SetProperty($Number,
|
1044
|
-
"NEGATIVE_INFINITY",
|
1045
|
-
-1/0,
|
1046
|
-
DONT_ENUM | DONT_DELETE | READ_ONLY);
|
1047
|
-
|
1048
|
-
// ECMA-262 section 15.7.3.5.
|
1049
|
-
%SetProperty($Number,
|
1050
|
-
"POSITIVE_INFINITY",
|
1051
|
-
1/0,
|
1052
|
-
DONT_ENUM | DONT_DELETE | READ_ONLY);
|
1053
|
-
%ToFastProperties($Number);
|
1054
|
-
|
1055
|
-
// Setup non-enumerable functions on the Number prototype object.
|
1056
|
-
InstallFunctions($Number.prototype, DONT_ENUM, $Array(
|
1057
|
-
"toString", NumberToString,
|
1058
|
-
"toLocaleString", NumberToLocaleString,
|
1059
|
-
"valueOf", NumberValueOf,
|
1060
|
-
"toFixed", NumberToFixed,
|
1061
|
-
"toExponential", NumberToExponential,
|
1062
|
-
"toPrecision", NumberToPrecision,
|
1063
|
-
"toJSON", NumberToJSON
|
1064
|
-
));
|
1065
|
-
}
|
1066
|
-
|
1067
|
-
SetupNumber();
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
// ----------------------------------------------------------------------------
|
1072
|
-
// Function
|
1073
|
-
|
1074
|
-
$Function.prototype.constructor = $Function;
|
1075
|
-
|
1076
|
-
function FunctionSourceString(func) {
|
1077
|
-
if (!IS_FUNCTION(func)) {
|
1078
|
-
throw new $TypeError('Function.prototype.toString is not generic');
|
1079
|
-
}
|
1080
|
-
|
1081
|
-
var source = %FunctionGetSourceCode(func);
|
1082
|
-
if (!IS_STRING(source) || %FunctionIsBuiltin(func)) {
|
1083
|
-
var name = %FunctionGetName(func);
|
1084
|
-
if (name) {
|
1085
|
-
// Mimic what KJS does.
|
1086
|
-
return 'function ' + name + '() { [native code] }';
|
1087
|
-
} else {
|
1088
|
-
return 'function () { [native code] }';
|
1089
|
-
}
|
1090
|
-
}
|
1091
|
-
|
1092
|
-
var name = %FunctionGetName(func);
|
1093
|
-
return 'function ' + name + source;
|
1094
|
-
}
|
1095
|
-
|
1096
|
-
|
1097
|
-
function FunctionToString() {
|
1098
|
-
return FunctionSourceString(this);
|
1099
|
-
}
|
1100
|
-
|
1101
|
-
|
1102
|
-
// ES5 15.3.4.5
|
1103
|
-
function FunctionBind(this_arg) { // Length is 1.
|
1104
|
-
if (!IS_FUNCTION(this)) {
|
1105
|
-
throw new $TypeError('Bind must be called on a function');
|
1106
|
-
}
|
1107
|
-
// this_arg is not an argument that should be bound.
|
1108
|
-
var argc_bound = %_ArgumentsLength() - 1;
|
1109
|
-
if (argc_bound > 0) {
|
1110
|
-
var bound_args = new $Array(argc_bound);
|
1111
|
-
for(var i = 0; i < argc_bound; i++) {
|
1112
|
-
bound_args[i] = %_Arguments(i+1);
|
1113
|
-
}
|
1114
|
-
}
|
1115
|
-
var fn = this;
|
1116
|
-
var result = function() {
|
1117
|
-
// Combine the args we got from the bind call with the args
|
1118
|
-
// given as argument to the invocation.
|
1119
|
-
var argc = %_ArgumentsLength();
|
1120
|
-
var args = new $Array(argc + argc_bound);
|
1121
|
-
// Add bound arguments.
|
1122
|
-
for (var i = 0; i < argc_bound; i++) {
|
1123
|
-
args[i] = bound_args[i];
|
1124
|
-
}
|
1125
|
-
// Add arguments from call.
|
1126
|
-
for (var i = 0; i < argc; i++) {
|
1127
|
-
args[argc_bound + i] = %_Arguments(i);
|
1128
|
-
}
|
1129
|
-
// If this is a construct call we use a special runtime method
|
1130
|
-
// to generate the actual object using the bound function.
|
1131
|
-
if (%_IsConstructCall()) {
|
1132
|
-
return %NewObjectFromBound(fn, args);
|
1133
|
-
}
|
1134
|
-
return fn.apply(this_arg, args);
|
1135
|
-
};
|
1136
|
-
|
1137
|
-
// We already have caller and arguments properties on functions,
|
1138
|
-
// which are non-configurable. It therefore makes no sence to
|
1139
|
-
// try to redefine these as defined by the spec. The spec says
|
1140
|
-
// that bind should make these throw a TypeError if get or set
|
1141
|
-
// is called and make them non-enumerable and non-configurable.
|
1142
|
-
// To be consistent with our normal functions we leave this as it is.
|
1143
|
-
|
1144
|
-
// Set the correct length.
|
1145
|
-
var length = (this.length - argc_bound) > 0 ? this.length - argc_bound : 0;
|
1146
|
-
%FunctionSetLength(result, length);
|
1147
|
-
|
1148
|
-
return result;
|
1149
|
-
}
|
1150
|
-
|
1151
|
-
|
1152
|
-
function NewFunction(arg1) { // length == 1
|
1153
|
-
var n = %_ArgumentsLength();
|
1154
|
-
var p = '';
|
1155
|
-
if (n > 1) {
|
1156
|
-
p = new $Array(n - 1);
|
1157
|
-
// Explicitly convert all parameters to strings.
|
1158
|
-
// Array.prototype.join replaces null with empty strings which is
|
1159
|
-
// not appropriate.
|
1160
|
-
for (var i = 0; i < n - 1; i++) p[i] = ToString(%_Arguments(i));
|
1161
|
-
p = p.join(',');
|
1162
|
-
// If the formal parameters string include ) - an illegal
|
1163
|
-
// character - it may make the combined function expression
|
1164
|
-
// compile. We avoid this problem by checking for this early on.
|
1165
|
-
if (p.indexOf(')') != -1) throw MakeSyntaxError('unable_to_parse',[]);
|
1166
|
-
}
|
1167
|
-
var body = (n > 0) ? ToString(%_Arguments(n - 1)) : '';
|
1168
|
-
var source = '(function(' + p + ') {\n' + body + '\n})';
|
1169
|
-
|
1170
|
-
// The call to SetNewFunctionAttributes will ensure the prototype
|
1171
|
-
// property of the resulting function is enumerable (ECMA262, 15.3.5.2).
|
1172
|
-
var f = %CompileString(source, false)();
|
1173
|
-
%FunctionSetName(f, "anonymous");
|
1174
|
-
return %SetNewFunctionAttributes(f);
|
1175
|
-
}
|
1176
|
-
|
1177
|
-
%SetCode($Function, NewFunction);
|
1178
|
-
|
1179
|
-
// ----------------------------------------------------------------------------
|
1180
|
-
|
1181
|
-
function SetupFunction() {
|
1182
|
-
InstallFunctions($Function.prototype, DONT_ENUM, $Array(
|
1183
|
-
"bind", FunctionBind,
|
1184
|
-
"toString", FunctionToString
|
1185
|
-
));
|
1186
|
-
}
|
1187
|
-
|
1188
|
-
SetupFunction();
|