therubyracer 0.4.7-x86-darwin-10
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/Doxyfile +1514 -0
- data/History.txt +39 -0
- data/Manifest.txt +1192 -0
- data/README.rdoc +157 -0
- data/Rakefile +49 -0
- data/docs/data_conversion.txt +18 -0
- data/ext/v8/Makefile +169 -0
- data/ext/v8/callbacks.cpp +160 -0
- data/ext/v8/callbacks.h +14 -0
- data/ext/v8/convert_ruby.cpp +8 -0
- data/ext/v8/convert_ruby.h +99 -0
- data/ext/v8/convert_string.cpp +10 -0
- data/ext/v8/convert_string.h +73 -0
- data/ext/v8/convert_v8.cpp +9 -0
- data/ext/v8/convert_v8.h +121 -0
- data/ext/v8/converters.cpp +83 -0
- data/ext/v8/converters.h +23 -0
- data/ext/v8/extconf.rb +44 -0
- data/ext/v8/upstream/2.0.6/.sconsign.dblite +0 -0
- data/ext/v8/upstream/2.0.6/AUTHORS +23 -0
- data/ext/v8/upstream/2.0.6/ChangeLog +1479 -0
- data/ext/v8/upstream/2.0.6/LICENSE +55 -0
- data/ext/v8/upstream/2.0.6/SConstruct +1028 -0
- data/ext/v8/upstream/2.0.6/benchmarks/README.txt +63 -0
- data/ext/v8/upstream/2.0.6/benchmarks/base.js +264 -0
- data/ext/v8/upstream/2.0.6/benchmarks/crypto.js +1698 -0
- data/ext/v8/upstream/2.0.6/benchmarks/deltablue.js +880 -0
- data/ext/v8/upstream/2.0.6/benchmarks/earley-boyer.js +4684 -0
- data/ext/v8/upstream/2.0.6/benchmarks/raytrace.js +935 -0
- data/ext/v8/upstream/2.0.6/benchmarks/regexp.js +1614 -0
- data/ext/v8/upstream/2.0.6/benchmarks/revisions.html +86 -0
- data/ext/v8/upstream/2.0.6/benchmarks/richards.js +539 -0
- data/ext/v8/upstream/2.0.6/benchmarks/run.html +141 -0
- data/ext/v8/upstream/2.0.6/benchmarks/run.js +61 -0
- data/ext/v8/upstream/2.0.6/benchmarks/splay.js +378 -0
- data/ext/v8/upstream/2.0.6/benchmarks/style.css +77 -0
- data/ext/v8/upstream/2.0.6/benchmarks/v8-logo.png +0 -0
- data/ext/v8/upstream/2.0.6/include/v8-debug.h +275 -0
- data/ext/v8/upstream/2.0.6/include/v8.h +3236 -0
- data/ext/v8/upstream/2.0.6/samples/SConscript +38 -0
- data/ext/v8/upstream/2.0.6/samples/count-hosts.js +42 -0
- data/ext/v8/upstream/2.0.6/samples/process.cc +622 -0
- data/ext/v8/upstream/2.0.6/samples/shell.cc +303 -0
- data/ext/v8/upstream/2.0.6/src/SConscript +283 -0
- data/ext/v8/upstream/2.0.6/src/accessors.cc +695 -0
- data/ext/v8/upstream/2.0.6/src/accessors.h +114 -0
- data/ext/v8/upstream/2.0.6/src/allocation.cc +198 -0
- data/ext/v8/upstream/2.0.6/src/allocation.h +169 -0
- data/ext/v8/upstream/2.0.6/src/api.cc +3831 -0
- data/ext/v8/upstream/2.0.6/src/api.h +479 -0
- data/ext/v8/upstream/2.0.6/src/apinatives.js +110 -0
- data/ext/v8/upstream/2.0.6/src/apiutils.h +69 -0
- data/ext/v8/upstream/2.0.6/src/arguments.h +97 -0
- data/ext/v8/upstream/2.0.6/src/arm/assembler-arm-inl.h +277 -0
- data/ext/v8/upstream/2.0.6/src/arm/assembler-arm.cc +1821 -0
- data/ext/v8/upstream/2.0.6/src/arm/assembler-arm.h +1027 -0
- data/ext/v8/upstream/2.0.6/src/arm/assembler-thumb2-inl.h +267 -0
- data/ext/v8/upstream/2.0.6/src/arm/assembler-thumb2.cc +1821 -0
- data/ext/v8/upstream/2.0.6/src/arm/assembler-thumb2.h +1027 -0
- data/ext/v8/upstream/2.0.6/src/arm/builtins-arm.cc +1271 -0
- data/ext/v8/upstream/2.0.6/src/arm/codegen-arm-inl.h +74 -0
- data/ext/v8/upstream/2.0.6/src/arm/codegen-arm.cc +6682 -0
- data/ext/v8/upstream/2.0.6/src/arm/codegen-arm.h +535 -0
- data/ext/v8/upstream/2.0.6/src/arm/constants-arm.cc +112 -0
- data/ext/v8/upstream/2.0.6/src/arm/constants-arm.h +347 -0
- data/ext/v8/upstream/2.0.6/src/arm/cpu-arm.cc +132 -0
- data/ext/v8/upstream/2.0.6/src/arm/debug-arm.cc +213 -0
- data/ext/v8/upstream/2.0.6/src/arm/disasm-arm.cc +1166 -0
- data/ext/v8/upstream/2.0.6/src/arm/fast-codegen-arm.cc +1698 -0
- data/ext/v8/upstream/2.0.6/src/arm/frames-arm.cc +123 -0
- data/ext/v8/upstream/2.0.6/src/arm/frames-arm.h +162 -0
- data/ext/v8/upstream/2.0.6/src/arm/ic-arm.cc +849 -0
- data/ext/v8/upstream/2.0.6/src/arm/jump-target-arm.cc +238 -0
- data/ext/v8/upstream/2.0.6/src/arm/macro-assembler-arm.cc +1259 -0
- data/ext/v8/upstream/2.0.6/src/arm/macro-assembler-arm.h +423 -0
- data/ext/v8/upstream/2.0.6/src/arm/regexp-macro-assembler-arm.cc +1266 -0
- data/ext/v8/upstream/2.0.6/src/arm/regexp-macro-assembler-arm.h +282 -0
- data/ext/v8/upstream/2.0.6/src/arm/register-allocator-arm-inl.h +103 -0
- data/ext/v8/upstream/2.0.6/src/arm/register-allocator-arm.cc +59 -0
- data/ext/v8/upstream/2.0.6/src/arm/register-allocator-arm.h +43 -0
- data/ext/v8/upstream/2.0.6/src/arm/simulator-arm.cc +2264 -0
- data/ext/v8/upstream/2.0.6/src/arm/simulator-arm.h +306 -0
- data/ext/v8/upstream/2.0.6/src/arm/stub-cache-arm.cc +1516 -0
- data/ext/v8/upstream/2.0.6/src/arm/virtual-frame-arm.cc +412 -0
- data/ext/v8/upstream/2.0.6/src/arm/virtual-frame-arm.h +532 -0
- data/ext/v8/upstream/2.0.6/src/array.js +1154 -0
- data/ext/v8/upstream/2.0.6/src/assembler.cc +772 -0
- data/ext/v8/upstream/2.0.6/src/assembler.h +525 -0
- data/ext/v8/upstream/2.0.6/src/ast.cc +512 -0
- data/ext/v8/upstream/2.0.6/src/ast.h +1820 -0
- data/ext/v8/upstream/2.0.6/src/bootstrapper.cc +1680 -0
- data/ext/v8/upstream/2.0.6/src/bootstrapper.h +103 -0
- data/ext/v8/upstream/2.0.6/src/builtins.cc +851 -0
- data/ext/v8/upstream/2.0.6/src/builtins.h +245 -0
- data/ext/v8/upstream/2.0.6/src/bytecodes-irregexp.h +104 -0
- data/ext/v8/upstream/2.0.6/src/char-predicates-inl.h +86 -0
- data/ext/v8/upstream/2.0.6/src/char-predicates.h +65 -0
- data/ext/v8/upstream/2.0.6/src/checks.cc +100 -0
- data/ext/v8/upstream/2.0.6/src/checks.h +284 -0
- data/ext/v8/upstream/2.0.6/src/code-stubs.cc +164 -0
- data/ext/v8/upstream/2.0.6/src/code-stubs.h +164 -0
- data/ext/v8/upstream/2.0.6/src/code.h +68 -0
- data/ext/v8/upstream/2.0.6/src/codegen-inl.h +88 -0
- data/ext/v8/upstream/2.0.6/src/codegen.cc +504 -0
- data/ext/v8/upstream/2.0.6/src/codegen.h +522 -0
- data/ext/v8/upstream/2.0.6/src/compilation-cache.cc +490 -0
- data/ext/v8/upstream/2.0.6/src/compilation-cache.h +98 -0
- data/ext/v8/upstream/2.0.6/src/compiler.cc +1132 -0
- data/ext/v8/upstream/2.0.6/src/compiler.h +107 -0
- data/ext/v8/upstream/2.0.6/src/contexts.cc +256 -0
- data/ext/v8/upstream/2.0.6/src/contexts.h +345 -0
- data/ext/v8/upstream/2.0.6/src/conversions-inl.h +95 -0
- data/ext/v8/upstream/2.0.6/src/conversions.cc +709 -0
- data/ext/v8/upstream/2.0.6/src/conversions.h +118 -0
- data/ext/v8/upstream/2.0.6/src/counters.cc +78 -0
- data/ext/v8/upstream/2.0.6/src/counters.h +239 -0
- data/ext/v8/upstream/2.0.6/src/cpu.h +65 -0
- data/ext/v8/upstream/2.0.6/src/d8-debug.cc +345 -0
- data/ext/v8/upstream/2.0.6/src/d8-debug.h +155 -0
- data/ext/v8/upstream/2.0.6/src/d8-posix.cc +675 -0
- data/ext/v8/upstream/2.0.6/src/d8-readline.cc +128 -0
- data/ext/v8/upstream/2.0.6/src/d8-windows.cc +42 -0
- data/ext/v8/upstream/2.0.6/src/d8.cc +776 -0
- data/ext/v8/upstream/2.0.6/src/d8.h +225 -0
- data/ext/v8/upstream/2.0.6/src/d8.js +1625 -0
- data/ext/v8/upstream/2.0.6/src/date-delay.js +1138 -0
- data/ext/v8/upstream/2.0.6/src/dateparser-inl.h +114 -0
- data/ext/v8/upstream/2.0.6/src/dateparser.cc +186 -0
- data/ext/v8/upstream/2.0.6/src/dateparser.h +240 -0
- data/ext/v8/upstream/2.0.6/src/debug-agent.cc +425 -0
- data/ext/v8/upstream/2.0.6/src/debug-agent.h +129 -0
- data/ext/v8/upstream/2.0.6/src/debug-delay.js +2073 -0
- data/ext/v8/upstream/2.0.6/src/debug.cc +2751 -0
- data/ext/v8/upstream/2.0.6/src/debug.h +866 -0
- data/ext/v8/upstream/2.0.6/src/disasm.h +77 -0
- data/ext/v8/upstream/2.0.6/src/disassembler.cc +318 -0
- data/ext/v8/upstream/2.0.6/src/disassembler.h +56 -0
- data/ext/v8/upstream/2.0.6/src/dtoa-config.c +91 -0
- data/ext/v8/upstream/2.0.6/src/execution.cc +701 -0
- data/ext/v8/upstream/2.0.6/src/execution.h +312 -0
- data/ext/v8/upstream/2.0.6/src/factory.cc +957 -0
- data/ext/v8/upstream/2.0.6/src/factory.h +393 -0
- data/ext/v8/upstream/2.0.6/src/fast-codegen.cc +725 -0
- data/ext/v8/upstream/2.0.6/src/fast-codegen.h +371 -0
- data/ext/v8/upstream/2.0.6/src/flag-definitions.h +426 -0
- data/ext/v8/upstream/2.0.6/src/flags.cc +555 -0
- data/ext/v8/upstream/2.0.6/src/flags.h +81 -0
- data/ext/v8/upstream/2.0.6/src/frame-element.cc +45 -0
- data/ext/v8/upstream/2.0.6/src/frame-element.h +235 -0
- data/ext/v8/upstream/2.0.6/src/frames-inl.h +215 -0
- data/ext/v8/upstream/2.0.6/src/frames.cc +749 -0
- data/ext/v8/upstream/2.0.6/src/frames.h +659 -0
- data/ext/v8/upstream/2.0.6/src/func-name-inferrer.cc +76 -0
- data/ext/v8/upstream/2.0.6/src/func-name-inferrer.h +135 -0
- data/ext/v8/upstream/2.0.6/src/global-handles.cc +516 -0
- data/ext/v8/upstream/2.0.6/src/global-handles.h +180 -0
- data/ext/v8/upstream/2.0.6/src/globals.h +608 -0
- data/ext/v8/upstream/2.0.6/src/handles-inl.h +76 -0
- data/ext/v8/upstream/2.0.6/src/handles.cc +811 -0
- data/ext/v8/upstream/2.0.6/src/handles.h +367 -0
- data/ext/v8/upstream/2.0.6/src/hashmap.cc +226 -0
- data/ext/v8/upstream/2.0.6/src/hashmap.h +120 -0
- data/ext/v8/upstream/2.0.6/src/heap-inl.h +407 -0
- data/ext/v8/upstream/2.0.6/src/heap-profiler.cc +695 -0
- data/ext/v8/upstream/2.0.6/src/heap-profiler.h +277 -0
- data/ext/v8/upstream/2.0.6/src/heap.cc +4204 -0
- data/ext/v8/upstream/2.0.6/src/heap.h +1704 -0
- data/ext/v8/upstream/2.0.6/src/ia32/assembler-ia32-inl.h +325 -0
- data/ext/v8/upstream/2.0.6/src/ia32/assembler-ia32.cc +2375 -0
- data/ext/v8/upstream/2.0.6/src/ia32/assembler-ia32.h +914 -0
- data/ext/v8/upstream/2.0.6/src/ia32/builtins-ia32.cc +1222 -0
- data/ext/v8/upstream/2.0.6/src/ia32/codegen-ia32-inl.h +46 -0
- data/ext/v8/upstream/2.0.6/src/ia32/codegen-ia32.cc +9770 -0
- data/ext/v8/upstream/2.0.6/src/ia32/codegen-ia32.h +834 -0
- data/ext/v8/upstream/2.0.6/src/ia32/cpu-ia32.cc +79 -0
- data/ext/v8/upstream/2.0.6/src/ia32/debug-ia32.cc +208 -0
- data/ext/v8/upstream/2.0.6/src/ia32/disasm-ia32.cc +1357 -0
- data/ext/v8/upstream/2.0.6/src/ia32/fast-codegen-ia32.cc +1813 -0
- data/ext/v8/upstream/2.0.6/src/ia32/frames-ia32.cc +111 -0
- data/ext/v8/upstream/2.0.6/src/ia32/frames-ia32.h +135 -0
- data/ext/v8/upstream/2.0.6/src/ia32/ic-ia32.cc +1490 -0
- data/ext/v8/upstream/2.0.6/src/ia32/jump-target-ia32.cc +432 -0
- data/ext/v8/upstream/2.0.6/src/ia32/macro-assembler-ia32.cc +1517 -0
- data/ext/v8/upstream/2.0.6/src/ia32/macro-assembler-ia32.h +528 -0
- data/ext/v8/upstream/2.0.6/src/ia32/regexp-macro-assembler-ia32.cc +1219 -0
- data/ext/v8/upstream/2.0.6/src/ia32/regexp-macro-assembler-ia32.h +230 -0
- data/ext/v8/upstream/2.0.6/src/ia32/register-allocator-ia32-inl.h +82 -0
- data/ext/v8/upstream/2.0.6/src/ia32/register-allocator-ia32.cc +99 -0
- data/ext/v8/upstream/2.0.6/src/ia32/register-allocator-ia32.h +43 -0
- data/ext/v8/upstream/2.0.6/src/ia32/simulator-ia32.cc +30 -0
- data/ext/v8/upstream/2.0.6/src/ia32/simulator-ia32.h +62 -0
- data/ext/v8/upstream/2.0.6/src/ia32/stub-cache-ia32.cc +1961 -0
- data/ext/v8/upstream/2.0.6/src/ia32/virtual-frame-ia32.cc +1105 -0
- data/ext/v8/upstream/2.0.6/src/ia32/virtual-frame-ia32.h +580 -0
- data/ext/v8/upstream/2.0.6/src/ic-inl.h +93 -0
- data/ext/v8/upstream/2.0.6/src/ic.cc +1426 -0
- data/ext/v8/upstream/2.0.6/src/ic.h +443 -0
- data/ext/v8/upstream/2.0.6/src/interpreter-irregexp.cc +646 -0
- data/ext/v8/upstream/2.0.6/src/interpreter-irregexp.h +48 -0
- data/ext/v8/upstream/2.0.6/src/json-delay.js +254 -0
- data/ext/v8/upstream/2.0.6/src/jsregexp.cc +5234 -0
- data/ext/v8/upstream/2.0.6/src/jsregexp.h +1439 -0
- data/ext/v8/upstream/2.0.6/src/jump-target-inl.h +49 -0
- data/ext/v8/upstream/2.0.6/src/jump-target.cc +383 -0
- data/ext/v8/upstream/2.0.6/src/jump-target.h +280 -0
- data/ext/v8/upstream/2.0.6/src/list-inl.h +166 -0
- data/ext/v8/upstream/2.0.6/src/list.h +158 -0
- data/ext/v8/upstream/2.0.6/src/log-inl.h +126 -0
- data/ext/v8/upstream/2.0.6/src/log-utils.cc +503 -0
- data/ext/v8/upstream/2.0.6/src/log-utils.h +292 -0
- data/ext/v8/upstream/2.0.6/src/log.cc +1457 -0
- data/ext/v8/upstream/2.0.6/src/log.h +371 -0
- data/ext/v8/upstream/2.0.6/src/macro-assembler.h +93 -0
- data/ext/v8/upstream/2.0.6/src/macros.py +137 -0
- data/ext/v8/upstream/2.0.6/src/mark-compact.cc +2007 -0
- data/ext/v8/upstream/2.0.6/src/mark-compact.h +442 -0
- data/ext/v8/upstream/2.0.6/src/math.js +263 -0
- data/ext/v8/upstream/2.0.6/src/memory.h +74 -0
- data/ext/v8/upstream/2.0.6/src/messages.cc +177 -0
- data/ext/v8/upstream/2.0.6/src/messages.h +112 -0
- data/ext/v8/upstream/2.0.6/src/messages.js +937 -0
- data/ext/v8/upstream/2.0.6/src/mirror-delay.js +2332 -0
- data/ext/v8/upstream/2.0.6/src/mksnapshot.cc +169 -0
- data/ext/v8/upstream/2.0.6/src/natives.h +63 -0
- data/ext/v8/upstream/2.0.6/src/objects-debug.cc +1317 -0
- data/ext/v8/upstream/2.0.6/src/objects-inl.h +3044 -0
- data/ext/v8/upstream/2.0.6/src/objects.cc +8306 -0
- data/ext/v8/upstream/2.0.6/src/objects.h +4960 -0
- data/ext/v8/upstream/2.0.6/src/oprofile-agent.cc +116 -0
- data/ext/v8/upstream/2.0.6/src/oprofile-agent.h +69 -0
- data/ext/v8/upstream/2.0.6/src/parser.cc +4810 -0
- data/ext/v8/upstream/2.0.6/src/parser.h +195 -0
- data/ext/v8/upstream/2.0.6/src/platform-freebsd.cc +645 -0
- data/ext/v8/upstream/2.0.6/src/platform-linux.cc +808 -0
- data/ext/v8/upstream/2.0.6/src/platform-macos.cc +643 -0
- data/ext/v8/upstream/2.0.6/src/platform-nullos.cc +454 -0
- data/ext/v8/upstream/2.0.6/src/platform-openbsd.cc +597 -0
- data/ext/v8/upstream/2.0.6/src/platform-posix.cc +380 -0
- data/ext/v8/upstream/2.0.6/src/platform-win32.cc +1908 -0
- data/ext/v8/upstream/2.0.6/src/platform.h +556 -0
- data/ext/v8/upstream/2.0.6/src/prettyprinter.cc +1511 -0
- data/ext/v8/upstream/2.0.6/src/prettyprinter.h +219 -0
- data/ext/v8/upstream/2.0.6/src/property.cc +96 -0
- data/ext/v8/upstream/2.0.6/src/property.h +327 -0
- data/ext/v8/upstream/2.0.6/src/regexp-delay.js +406 -0
- data/ext/v8/upstream/2.0.6/src/regexp-macro-assembler-irregexp-inl.h +78 -0
- data/ext/v8/upstream/2.0.6/src/regexp-macro-assembler-irregexp.cc +464 -0
- data/ext/v8/upstream/2.0.6/src/regexp-macro-assembler-irregexp.h +141 -0
- data/ext/v8/upstream/2.0.6/src/regexp-macro-assembler-tracer.cc +356 -0
- data/ext/v8/upstream/2.0.6/src/regexp-macro-assembler-tracer.h +103 -0
- data/ext/v8/upstream/2.0.6/src/regexp-macro-assembler.cc +240 -0
- data/ext/v8/upstream/2.0.6/src/regexp-macro-assembler.h +220 -0
- data/ext/v8/upstream/2.0.6/src/regexp-stack.cc +103 -0
- data/ext/v8/upstream/2.0.6/src/regexp-stack.h +123 -0
- data/ext/v8/upstream/2.0.6/src/register-allocator-inl.h +74 -0
- data/ext/v8/upstream/2.0.6/src/register-allocator.cc +100 -0
- data/ext/v8/upstream/2.0.6/src/register-allocator.h +295 -0
- data/ext/v8/upstream/2.0.6/src/rewriter.cc +855 -0
- data/ext/v8/upstream/2.0.6/src/rewriter.h +54 -0
- data/ext/v8/upstream/2.0.6/src/runtime.cc +8163 -0
- data/ext/v8/upstream/2.0.6/src/runtime.h +432 -0
- data/ext/v8/upstream/2.0.6/src/runtime.js +626 -0
- data/ext/v8/upstream/2.0.6/src/scanner.cc +1098 -0
- data/ext/v8/upstream/2.0.6/src/scanner.h +425 -0
- data/ext/v8/upstream/2.0.6/src/scopeinfo.cc +649 -0
- data/ext/v8/upstream/2.0.6/src/scopeinfo.h +236 -0
- data/ext/v8/upstream/2.0.6/src/scopes.cc +963 -0
- data/ext/v8/upstream/2.0.6/src/scopes.h +401 -0
- data/ext/v8/upstream/2.0.6/src/serialize.cc +1260 -0
- data/ext/v8/upstream/2.0.6/src/serialize.h +404 -0
- data/ext/v8/upstream/2.0.6/src/shell.h +55 -0
- data/ext/v8/upstream/2.0.6/src/simulator.h +41 -0
- data/ext/v8/upstream/2.0.6/src/smart-pointer.h +109 -0
- data/ext/v8/upstream/2.0.6/src/snapshot-common.cc +97 -0
- data/ext/v8/upstream/2.0.6/src/snapshot-empty.cc +40 -0
- data/ext/v8/upstream/2.0.6/src/snapshot.h +59 -0
- data/ext/v8/upstream/2.0.6/src/spaces-inl.h +372 -0
- data/ext/v8/upstream/2.0.6/src/spaces.cc +2864 -0
- data/ext/v8/upstream/2.0.6/src/spaces.h +2072 -0
- data/ext/v8/upstream/2.0.6/src/string-stream.cc +584 -0
- data/ext/v8/upstream/2.0.6/src/string-stream.h +189 -0
- data/ext/v8/upstream/2.0.6/src/string.js +901 -0
- data/ext/v8/upstream/2.0.6/src/stub-cache.cc +1108 -0
- data/ext/v8/upstream/2.0.6/src/stub-cache.h +578 -0
- data/ext/v8/upstream/2.0.6/src/third_party/dtoa/COPYING +15 -0
- data/ext/v8/upstream/2.0.6/src/third_party/dtoa/dtoa.c +3330 -0
- data/ext/v8/upstream/2.0.6/src/third_party/valgrind/valgrind.h +3925 -0
- data/ext/v8/upstream/2.0.6/src/token.cc +56 -0
- data/ext/v8/upstream/2.0.6/src/token.h +270 -0
- data/ext/v8/upstream/2.0.6/src/top.cc +991 -0
- data/ext/v8/upstream/2.0.6/src/top.h +459 -0
- data/ext/v8/upstream/2.0.6/src/unicode-inl.h +238 -0
- data/ext/v8/upstream/2.0.6/src/unicode.cc +749 -0
- data/ext/v8/upstream/2.0.6/src/unicode.h +279 -0
- data/ext/v8/upstream/2.0.6/src/uri.js +415 -0
- data/ext/v8/upstream/2.0.6/src/usage-analyzer.cc +426 -0
- data/ext/v8/upstream/2.0.6/src/usage-analyzer.h +40 -0
- data/ext/v8/upstream/2.0.6/src/utils.cc +322 -0
- data/ext/v8/upstream/2.0.6/src/utils.h +592 -0
- data/ext/v8/upstream/2.0.6/src/v8-counters.cc +55 -0
- data/ext/v8/upstream/2.0.6/src/v8-counters.h +198 -0
- data/ext/v8/upstream/2.0.6/src/v8.cc +193 -0
- data/ext/v8/upstream/2.0.6/src/v8.h +119 -0
- data/ext/v8/upstream/2.0.6/src/v8natives.js +846 -0
- data/ext/v8/upstream/2.0.6/src/v8threads.cc +450 -0
- data/ext/v8/upstream/2.0.6/src/v8threads.h +144 -0
- data/ext/v8/upstream/2.0.6/src/variables.cc +163 -0
- data/ext/v8/upstream/2.0.6/src/variables.h +235 -0
- data/ext/v8/upstream/2.0.6/src/version.cc +88 -0
- data/ext/v8/upstream/2.0.6/src/version.h +64 -0
- data/ext/v8/upstream/2.0.6/src/virtual-frame.cc +381 -0
- data/ext/v8/upstream/2.0.6/src/virtual-frame.h +44 -0
- data/ext/v8/upstream/2.0.6/src/x64/assembler-x64-inl.h +352 -0
- data/ext/v8/upstream/2.0.6/src/x64/assembler-x64.cc +2539 -0
- data/ext/v8/upstream/2.0.6/src/x64/assembler-x64.h +1399 -0
- data/ext/v8/upstream/2.0.6/src/x64/builtins-x64.cc +1255 -0
- data/ext/v8/upstream/2.0.6/src/x64/codegen-x64-inl.h +46 -0
- data/ext/v8/upstream/2.0.6/src/x64/codegen-x64.cc +8223 -0
- data/ext/v8/upstream/2.0.6/src/x64/codegen-x64.h +785 -0
- data/ext/v8/upstream/2.0.6/src/x64/cpu-x64.cc +79 -0
- data/ext/v8/upstream/2.0.6/src/x64/debug-x64.cc +202 -0
- data/ext/v8/upstream/2.0.6/src/x64/disasm-x64.cc +1596 -0
- data/ext/v8/upstream/2.0.6/src/x64/fast-codegen-x64.cc +1820 -0
- data/ext/v8/upstream/2.0.6/src/x64/frames-x64.cc +109 -0
- data/ext/v8/upstream/2.0.6/src/x64/frames-x64.h +121 -0
- data/ext/v8/upstream/2.0.6/src/x64/ic-x64.cc +1392 -0
- data/ext/v8/upstream/2.0.6/src/x64/jump-target-x64.cc +432 -0
- data/ext/v8/upstream/2.0.6/src/x64/macro-assembler-x64.cc +2409 -0
- data/ext/v8/upstream/2.0.6/src/x64/macro-assembler-x64.h +765 -0
- data/ext/v8/upstream/2.0.6/src/x64/regexp-macro-assembler-x64.cc +1337 -0
- data/ext/v8/upstream/2.0.6/src/x64/regexp-macro-assembler-x64.h +295 -0
- data/ext/v8/upstream/2.0.6/src/x64/register-allocator-x64-inl.h +86 -0
- data/ext/v8/upstream/2.0.6/src/x64/register-allocator-x64.cc +84 -0
- data/ext/v8/upstream/2.0.6/src/x64/register-allocator-x64.h +43 -0
- data/ext/v8/upstream/2.0.6/src/x64/simulator-x64.cc +27 -0
- data/ext/v8/upstream/2.0.6/src/x64/simulator-x64.h +63 -0
- data/ext/v8/upstream/2.0.6/src/x64/stub-cache-x64.cc +1884 -0
- data/ext/v8/upstream/2.0.6/src/x64/virtual-frame-x64.cc +1089 -0
- data/ext/v8/upstream/2.0.6/src/x64/virtual-frame-x64.h +560 -0
- data/ext/v8/upstream/2.0.6/src/zone-inl.h +297 -0
- data/ext/v8/upstream/2.0.6/src/zone.cc +193 -0
- data/ext/v8/upstream/2.0.6/src/zone.h +305 -0
- data/ext/v8/upstream/2.0.6/test/cctest/SConscript +95 -0
- data/ext/v8/upstream/2.0.6/test/cctest/cctest.cc +126 -0
- data/ext/v8/upstream/2.0.6/test/cctest/cctest.h +211 -0
- data/ext/v8/upstream/2.0.6/test/cctest/cctest.status +54 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-accessors.cc +450 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-alloc.cc +215 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-api.cc +8699 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-assembler-arm.cc +227 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-assembler-ia32.cc +395 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-assembler-x64.cc +292 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-ast.cc +97 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-compiler.cc +318 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-conversions.cc +130 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-debug.cc +5788 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-decls.cc +593 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-disasm-arm.cc +281 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-disasm-ia32.cc +418 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-flags.cc +234 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-func-name-inference.cc +267 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-hashmap.cc +176 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-heap-profiler.cc +396 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-heap.cc +796 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-list.cc +101 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-lock.cc +63 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-log-stack-tracer.cc +372 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-log-utils.cc +310 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-log.cc +1081 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-macro-assembler-x64.cc +2104 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-mark-compact.cc +341 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-parsing.cc +129 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-platform-linux.cc +80 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-platform-macos.cc +10 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-platform-nullos.cc +80 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-platform-win32.cc +26 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-regexp.cc +1815 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-serialize.cc +438 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-sockets.cc +162 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-spaces.cc +248 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-strings.cc +432 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-thread-termination.cc +290 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-threads.cc +52 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-utils.cc +186 -0
- data/ext/v8/upstream/2.0.6/test/cctest/test-version.cc +89 -0
- data/ext/v8/upstream/2.0.6/test/cctest/testcfg.py +108 -0
- data/ext/v8/upstream/2.0.6/test/es5conform/README +14 -0
- data/ext/v8/upstream/2.0.6/test/es5conform/es5conform.status +226 -0
- data/ext/v8/upstream/2.0.6/test/es5conform/harness-adapt.js +74 -0
- data/ext/v8/upstream/2.0.6/test/es5conform/testcfg.py +108 -0
- data/ext/v8/upstream/2.0.6/test/message/message.status +31 -0
- data/ext/v8/upstream/2.0.6/test/message/overwritten-builtins.js +31 -0
- data/ext/v8/upstream/2.0.6/test/message/overwritten-builtins.out +30 -0
- data/ext/v8/upstream/2.0.6/test/message/regress/regress-73.js +33 -0
- data/ext/v8/upstream/2.0.6/test/message/regress/regress-73.out +30 -0
- data/ext/v8/upstream/2.0.6/test/message/regress/regress-75.js +32 -0
- data/ext/v8/upstream/2.0.6/test/message/regress/regress-75.out +30 -0
- data/ext/v8/upstream/2.0.6/test/message/simple-throw.js +28 -0
- data/ext/v8/upstream/2.0.6/test/message/simple-throw.out +30 -0
- data/ext/v8/upstream/2.0.6/test/message/testcfg.py +135 -0
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-no-message.js +51 -0
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-no-message.out +26 -0
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-return-in-finally.js +39 -0
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-return-in-finally.out +28 -0
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-throw-in-catch-and-finally.js +34 -0
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-throw-in-catch-and-finally.out +30 -0
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-throw-in-catch.js +34 -0
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-throw-in-catch.out +30 -0
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-throw-in-finally.js +34 -0
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-throw-in-finally.out +30 -0
- data/ext/v8/upstream/2.0.6/test/message/try-finally-return-in-finally.js +37 -0
- data/ext/v8/upstream/2.0.6/test/message/try-finally-return-in-finally.out +28 -0
- data/ext/v8/upstream/2.0.6/test/message/try-finally-throw-in-finally.js +32 -0
- data/ext/v8/upstream/2.0.6/test/message/try-finally-throw-in-finally.out +30 -0
- data/ext/v8/upstream/2.0.6/test/message/try-finally-throw-in-try-and-finally.js +32 -0
- data/ext/v8/upstream/2.0.6/test/message/try-finally-throw-in-try-and-finally.out +30 -0
- data/ext/v8/upstream/2.0.6/test/message/try-finally-throw-in-try.js +32 -0
- data/ext/v8/upstream/2.0.6/test/message/try-finally-throw-in-try.out +30 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/api-call-after-bypassed-exception.js +39 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/apply.js +196 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/arguments-apply.js +134 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/arguments-call-apply.js +41 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/arguments-enum.js +52 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/arguments-indirect.js +47 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/arguments-lazy.js +47 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/arguments-opt.js +130 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/arguments-read-and-assignment.js +164 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/arguments.js +97 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-concat.js +120 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-constructor.js +119 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-functions-prototype.js +159 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-indexing.js +66 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-iteration.js +228 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-join.js +45 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-length-number-conversion.js +53 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-length.js +111 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-reduce.js +514 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-sort.js +362 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-splice.js +314 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/ascii-regexp-subject.js +49 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/big-array-literal.js +111 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/big-object-literal.js +114 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/binary-operation-overwrite.js +36 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/bit-not.js +75 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/bitwise-operations-undefined.js +49 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/body-not-visible.js +39 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/bugs/bug-1344252.js +79 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/bugs/bug-222.js +42 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/bugs/bug-223.js +39 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/bugs/bug-900066.js +38 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/bugs/bug-941049.js +100 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/call-non-function-call.js +38 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/call-non-function.js +63 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/call.js +87 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/char-escape.js +53 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/class-of-builtins.js +50 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/closure.js +37 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/codegen-coverage.js +91 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/compare-character.js +50 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/compare-nan.js +66 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/countoperation.js +111 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/function-call.js +52 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/globals.js +65 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/jsnatives.js +33 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/literals-assignment.js +104 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/literals.js +52 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/loops.js +35 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/objectliterals.js +57 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/property-simple.js +39 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/short-circuit.js +102 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/thisfunction.js +35 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/const-declaration.js +172 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/const-eval-init.js +111 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/const-redecl.js +220 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/const.js +70 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/constant-folding.js +232 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/context-variable-assignments.js +37 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/cyclic-array-to-string.js +65 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/cyrillic.js +199 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/d8-os.js +180 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/date-parse.js +268 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/date.js +149 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-backtrace-text.js +122 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-backtrace.js +272 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-breakpoints.js +120 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-changebreakpoint.js +108 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-clearbreakpoint.js +101 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-clearbreakpointgroup.js +117 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-compile-event.js +126 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-conditional-breakpoints.js +171 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-constructed-by.js +60 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-constructor.js +78 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-continue.js +114 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-enable-disable-breakpoints.js +90 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-evaluate-arguments.js +93 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-evaluate-bool-constructor.js +80 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-evaluate-locals.js +132 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-evaluate-recursive.js +167 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-evaluate-with.js +77 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-evaluate.js +118 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-event-listener.js +73 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-handle.js +252 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-ignore-breakpoints.js +89 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-mirror-cache.js +85 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-multiple-breakpoints.js +105 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-referenced-by.js +112 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-references.js +118 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-scopes.js +761 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-script-breakpoints.js +112 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-script.js +92 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-scripts-request.js +108 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-setbreakpoint.js +165 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-sourceinfo.js +352 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-sourceslice.js +74 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-step-stub-callfunction.js +87 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-step.js +82 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-stepin-accessor.js +248 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-stepin-builtin.js +78 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-stepin-call-function-stub.js +115 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-stepin-constructor.js +78 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-stepin-function-call.js +149 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-stepnext-do-while.js +79 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-stepout-recursive-function.js +106 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-stepout-to-builtin.js +84 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-suspend.js +96 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-version.js +90 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/declare-locally.js +43 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/deep-recursion.js +66 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/delay-syntax-error.js +41 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/delete-global-properties.js +37 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/delete-in-eval.js +32 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/delete-in-with.js +34 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/delete-vars-from-eval.js +40 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/delete.js +163 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/div-mod.js +157 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/do-not-strip-fc.js +31 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/dont-enum-array-holes.js +35 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/dont-reinit-global-var.js +47 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/double-equals.js +114 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/dtoa.js +32 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/enumeration-order.js +109 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/error-constructors.js +32 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/escape.js +118 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/eval-enclosing-function-name.js +76 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/eval-typeof-non-existing.js +35 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/eval.js +157 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/execScript-case-insensitive.js +34 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/extra-arguments.js +54 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/extra-commas.js +46 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/for-in-null-or-undefined.js +33 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/for-in-special-cases.js +64 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/for-in.js +86 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/fun-as-prototype.js +36 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/fun-name.js +34 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/function-arguments-null.js +30 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/function-caller.js +48 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/function-names.js +133 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/function-property.js +29 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/function-prototype.js +98 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/function-source.js +49 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/function.js +83 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/fuzz-accessors.js +85 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/fuzz-natives.js +159 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/get-own-property-descriptor.js +51 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/get-prototype-of.js +68 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/getter-in-prototype.js +50 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/getter-in-value-prototype.js +35 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/global-const-var-conflicts.js +57 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/global-deleted-property-ic.js +45 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/global-deleted-property-keyed.js +38 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/global-ic.js +48 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/global-load-from-eval-in-with.js +59 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/global-load-from-eval.js +85 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/global-load-from-nested-eval.js +66 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/global-vars-eval.js +34 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/global-vars-with.js +43 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/greedy.js +60 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/has-own-property.js +38 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/html-comments.js +57 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/html-string-funcs.js +47 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/if-in-undefined.js +36 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/in.js +159 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/indexed-accessors.js +120 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/instanceof.js +93 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/integer-to-string.js +35 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/invalid-lhs.js +65 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/invalid-source-element.js +31 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/json.js +207 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/keyed-ic.js +236 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/keyed-storage-extend.js +55 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/large-object-allocation.js +300 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/large-object-literal.js +56 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/lazy-load.js +34 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/leakcheck.js +53 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/length.js +78 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/local-load-from-eval.js +39 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/math-min-max.js +105 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/megamorphic-callbacks.js +70 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-array.js +138 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-boolean.js +59 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-date.js +77 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-error.js +94 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-function.js +90 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-null.js +50 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-number.js +77 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-object.js +227 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-regexp.js +110 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-script.js +100 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-string.js +89 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-undefined.js +50 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-unresolved-function.js +81 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/mjsunit.js +203 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/mjsunit.status +66 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/mul-exhaustive.js +4511 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/multiple-return.js +62 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/negate-zero.js +42 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/negate.js +59 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/new.js +56 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/newline-in-string.js +46 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/no-branch-elimination.js +36 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/no-octal-constants-above-256.js +32 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/no-semicolon.js +45 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/non-ascii-replace.js +30 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/nul-characters.js +38 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/number-limits.js +47 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/number-string-index-call.js +32 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/number-tostring-small.js +395 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/number-tostring.js +338 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/obj-construct.js +46 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/object-create.js +250 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/object-literal-gc.js +66 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/object-literal.js +105 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/override-read-only-property.js +64 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/parse-int-float.js +85 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/property-load-across-eval.js +85 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/property-object-key.js +36 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/proto.js +33 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/prototype.js +93 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/receiver-in-with-calls.js +47 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-UC16.js +47 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-call-as-function.js +36 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-capture.js +57 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-captures.js +31 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-indexof.js +77 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-lookahead.js +166 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-loop-capture.js +29 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-multiline-stack-trace.js +116 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-multiline.js +112 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-standalones.js +78 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-static.js +167 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-string-methods.js +51 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp.js +390 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1030466.js +45 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1036894.js +38 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1039610.js +29 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1050043.js +51 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1062422.js +30 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1066899.js +37 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1081309.js +110 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1102760.js +35 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1110164.js +46 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1112051.js +33 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1114040.js +58 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1134697.js +31 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-114.js +43 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-116.js +40 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1170187.js +80 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1173979.js +48 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1175390.js +30 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1177518.js +39 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1177809.js +31 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1178598.js +90 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1182832.js +38 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1187524.js +34 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1199401.js +75 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1199637.js +78 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1200351.js +2032 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1201933.js +40 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1203459.js +29 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1207276.js +36 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1213516.js +40 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1213575.js +41 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1215653.js +365 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-124.js +57 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1254366.js +38 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1327557.js +36 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1341167.js +33 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1346700.js +29 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-137.js +46 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1439135.js +40 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-149.js +28 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1493017.js +52 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-155924.js +46 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-171.js +41 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-176.js +50 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-186.js +72 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-187.js +30 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-189.js +36 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-191.js +42 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1919169.js +40 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-192.js +38 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-193.js +44 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-20070207.js +42 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-201.js +37 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-219.js +176 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-220.js +31 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-221.js +34 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-2249423.js +40 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-225.js +32 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-227.js +33 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-231.js +92 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-233.js +39 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-244.js +67 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-246.js +31 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-253.js +31 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-254.js +58 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-259.js +33 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-260.js +33 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-263.js +38 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-265.js +64 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-267.js +35 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-269.js +49 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-279.js +62 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-284.js +50 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-286.js +36 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-294.js +43 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-312.js +31 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-317.js +31 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-318.js +35 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-326.js +40 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-334.js +90 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-341.js +36 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-345.js +51 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-349.js +32 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-35.js +33 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-351.js +31 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-386.js +47 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-392.js +34 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-394.js +47 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-396.js +39 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-397.js +34 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-399.js +32 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-406.js +69 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-416.js +38 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-475.js +28 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-483.js +35 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-485.js +64 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-486.js +30 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-490.js +48 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-491.js +47 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-492.js +52 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-496.js +39 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-502.js +38 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-503.js +63 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-515.js +40 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-524.js +32 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-526.js +32 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-540.js +47 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-545.js +47 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-57.js +32 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-580.js +55 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-588599.js +31 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-6-9-regexp.js +30 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-662254.js +40 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-666721.js +53 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-667061.js +90 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-670147.js +34 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-674753.js +87 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-676025.js +31 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-678525.js +59 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-682649.js +30 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-69.js +43 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-734862.js +37 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-737588.js +34 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-74.js +41 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-780423.js +39 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-799761.js +92 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-806473.js +60 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-842017.js +60 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-86.js +46 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-87.js +58 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-874178.js +32 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-875031.js +37 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-877615.js +37 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-892742.js +50 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-900055.js +42 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-900966.js +38 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-91.js +38 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-925537.js +42 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-937896.js +50 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-990205.js +35 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-992733.js +35 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-996542.js +40 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-998565.js +51 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-crbug-18639.js +34 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-r3391.js +77 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/scanner.js +30 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/short-circuit-boolean.js +46 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/simple-constructor.js +140 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/sin-cos.js +45 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/smi-negative-zero.js +100 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/smi-ops.js +671 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/sparse-array-reverse.js +131 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/sparse-array.js +41 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/stack-traces.js +204 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/str-to-num.js +158 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/stress-array-push.js +34 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/strict-equals.js +90 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-add.js +195 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-case.js +28 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-charat.js +53 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-charcodeat.js +192 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-compare-alignment.js +47 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-flatten.js +37 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-index.js +154 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-indexof-1.js +99 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-indexof-2.js +68 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-lastindexof.js +88 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-localecompare.js +40 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-match.js +149 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-replace-gc.js +57 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-replace.js +182 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-search.js +30 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-split.js +126 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/substr.js +65 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/switch.js +289 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/testcfg.py +137 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/third_party/array-isarray.js +48 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/third_party/array-splice-webkit.js +62 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/third_party/object-keys.js +68 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/third_party/regexp-pcre.js +6603 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/third_party/string-trim.js +107 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/this-in-callbacks.js +47 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/this.js +46 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/throw-and-catch-function.js +50 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/throw-exception-for-null-access.js +37 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/to-precision.js +82 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/to_number_order.js +129 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/tobool.js +36 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/toint32.js +129 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/codemap.js +180 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/consarray.js +60 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/csvparser.js +79 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/logreader.js +98 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/profile.js +348 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/profile_view.js +95 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/splaytree.js +166 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/tickprocessor-test.default +55 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/tickprocessor-test.gc-state +21 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/tickprocessor-test.ignore-unknown +51 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/tickprocessor-test.separate-ic +61 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/tickprocessor.js +409 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/top-level-assignments.js +107 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/touint32.js +72 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/transcendentals.js +49 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/try-catch-extension-object.js +58 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/try-catch-scopes.js +42 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/try-finally-nested.js +46 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/try.js +394 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/typeof.js +40 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/undeletable-functions.js +181 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/unicode-case-overoptimization.js +35 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/unicode-string-to-number.js +46 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/unicode-test.js +9169 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/unusual-constructor.js +38 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/uri.js +78 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/value-callic-prototype-change.js +94 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/var.js +37 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/with-function-expression.js +36 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/with-leave.js +61 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/with-parameter-access.js +47 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/with-prototype.js +44 -0
- data/ext/v8/upstream/2.0.6/test/mjsunit/with-value.js +38 -0
- data/ext/v8/upstream/2.0.6/test/mozilla/mozilla-shell-emulation.js +37 -0
- data/ext/v8/upstream/2.0.6/test/mozilla/mozilla.status +815 -0
- data/ext/v8/upstream/2.0.6/test/mozilla/testcfg.py +138 -0
- data/ext/v8/upstream/2.0.6/test/sputnik/README +6 -0
- data/ext/v8/upstream/2.0.6/test/sputnik/sputnik.status +318 -0
- data/ext/v8/upstream/2.0.6/test/sputnik/testcfg.py +112 -0
- data/ext/v8/upstream/2.0.6/tools/codemap.js +258 -0
- data/ext/v8/upstream/2.0.6/tools/consarray.js +93 -0
- data/ext/v8/upstream/2.0.6/tools/csvparser.js +98 -0
- data/ext/v8/upstream/2.0.6/tools/gyp/v8.gyp +620 -0
- data/ext/v8/upstream/2.0.6/tools/js2c.py +376 -0
- data/ext/v8/upstream/2.0.6/tools/js2c.pyc +0 -0
- data/ext/v8/upstream/2.0.6/tools/jsmin.py +280 -0
- data/ext/v8/upstream/2.0.6/tools/jsmin.pyc +0 -0
- data/ext/v8/upstream/2.0.6/tools/linux-tick-processor +24 -0
- data/ext/v8/upstream/2.0.6/tools/linux-tick-processor.py +78 -0
- data/ext/v8/upstream/2.0.6/tools/logreader.js +320 -0
- data/ext/v8/upstream/2.0.6/tools/mac-nm +18 -0
- data/ext/v8/upstream/2.0.6/tools/mac-tick-processor +6 -0
- data/ext/v8/upstream/2.0.6/tools/oprofile/annotate +7 -0
- data/ext/v8/upstream/2.0.6/tools/oprofile/common +19 -0
- data/ext/v8/upstream/2.0.6/tools/oprofile/dump +7 -0
- data/ext/v8/upstream/2.0.6/tools/oprofile/report +7 -0
- data/ext/v8/upstream/2.0.6/tools/oprofile/reset +7 -0
- data/ext/v8/upstream/2.0.6/tools/oprofile/run +14 -0
- data/ext/v8/upstream/2.0.6/tools/oprofile/shutdown +7 -0
- data/ext/v8/upstream/2.0.6/tools/oprofile/start +7 -0
- data/ext/v8/upstream/2.0.6/tools/presubmit.py +299 -0
- data/ext/v8/upstream/2.0.6/tools/process-heap-prof.py +120 -0
- data/ext/v8/upstream/2.0.6/tools/profile.js +621 -0
- data/ext/v8/upstream/2.0.6/tools/profile_view.js +224 -0
- data/ext/v8/upstream/2.0.6/tools/run-valgrind.py +77 -0
- data/ext/v8/upstream/2.0.6/tools/splaytree.js +322 -0
- data/ext/v8/upstream/2.0.6/tools/splaytree.py +226 -0
- data/ext/v8/upstream/2.0.6/tools/stats-viewer.py +456 -0
- data/ext/v8/upstream/2.0.6/tools/test.py +1370 -0
- data/ext/v8/upstream/2.0.6/tools/tickprocessor-driver.js +53 -0
- data/ext/v8/upstream/2.0.6/tools/tickprocessor.js +731 -0
- data/ext/v8/upstream/2.0.6/tools/tickprocessor.py +535 -0
- data/ext/v8/upstream/2.0.6/tools/utils.py +82 -0
- data/ext/v8/upstream/2.0.6/tools/utils.pyc +0 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/README.txt +71 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/arm.vsprops +14 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/common.vsprops +35 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/d8.vcproj +199 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/d8_arm.vcproj +199 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/d8_x64.vcproj +201 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/d8js2c.cmd +6 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/debug.vsprops +17 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/ia32.vsprops +13 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/js2c.cmd +6 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/release.vsprops +24 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8.sln +101 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8.vcproj +223 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_arm.sln +74 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_arm.vcproj +223 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_base.vcproj +971 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_base_arm.vcproj +983 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_base_x64.vcproj +959 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_cctest.vcproj +255 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_cctest_arm.vcproj +243 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_cctest_x64.vcproj +257 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_mksnapshot.vcproj +151 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_mksnapshot_x64.vcproj +151 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_process_sample.vcproj +151 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_process_sample_arm.vcproj +151 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_process_sample_x64.vcproj +151 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_shell_sample.vcproj +151 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_shell_sample_arm.vcproj +151 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_shell_sample_x64.vcproj +153 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_snapshot.vcproj +142 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_snapshot_cc.vcproj +92 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_snapshot_cc_x64.vcproj +92 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_snapshot_x64.vcproj +142 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_x64.sln +101 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/v8_x64.vcproj +223 -0
- data/ext/v8/upstream/2.0.6/tools/visual_studio/x64.vsprops +13 -0
- data/ext/v8/upstream/2.0.6/tools/windows-tick-processor.bat +5 -0
- data/ext/v8/upstream/2.0.6/tools/windows-tick-processor.py +137 -0
- data/ext/v8/upstream/scons/CHANGES.txt +5183 -0
- data/ext/v8/upstream/scons/LICENSE.txt +20 -0
- data/ext/v8/upstream/scons/MANIFEST +202 -0
- data/ext/v8/upstream/scons/PKG-INFO +13 -0
- data/ext/v8/upstream/scons/README.txt +273 -0
- data/ext/v8/upstream/scons/RELEASE.txt +1040 -0
- data/ext/v8/upstream/scons/engine/SCons/Action.py +1256 -0
- data/ext/v8/upstream/scons/engine/SCons/Builder.py +868 -0
- data/ext/v8/upstream/scons/engine/SCons/CacheDir.py +217 -0
- data/ext/v8/upstream/scons/engine/SCons/Conftest.py +794 -0
- data/ext/v8/upstream/scons/engine/SCons/Debug.py +237 -0
- data/ext/v8/upstream/scons/engine/SCons/Defaults.py +485 -0
- data/ext/v8/upstream/scons/engine/SCons/Environment.py +2327 -0
- data/ext/v8/upstream/scons/engine/SCons/Errors.py +207 -0
- data/ext/v8/upstream/scons/engine/SCons/Executor.py +636 -0
- data/ext/v8/upstream/scons/engine/SCons/Job.py +435 -0
- data/ext/v8/upstream/scons/engine/SCons/Memoize.py +292 -0
- data/ext/v8/upstream/scons/engine/SCons/Node/Alias.py +153 -0
- data/ext/v8/upstream/scons/engine/SCons/Node/FS.py +3220 -0
- data/ext/v8/upstream/scons/engine/SCons/Node/Python.py +128 -0
- data/ext/v8/upstream/scons/engine/SCons/Node/__init__.py +1341 -0
- data/ext/v8/upstream/scons/engine/SCons/Options/BoolOption.py +50 -0
- data/ext/v8/upstream/scons/engine/SCons/Options/EnumOption.py +50 -0
- data/ext/v8/upstream/scons/engine/SCons/Options/ListOption.py +50 -0
- data/ext/v8/upstream/scons/engine/SCons/Options/PackageOption.py +50 -0
- data/ext/v8/upstream/scons/engine/SCons/Options/PathOption.py +76 -0
- data/ext/v8/upstream/scons/engine/SCons/Options/__init__.py +74 -0
- data/ext/v8/upstream/scons/engine/SCons/PathList.py +232 -0
- data/ext/v8/upstream/scons/engine/SCons/Platform/__init__.py +236 -0
- data/ext/v8/upstream/scons/engine/SCons/Platform/aix.py +70 -0
- data/ext/v8/upstream/scons/engine/SCons/Platform/cygwin.py +55 -0
- data/ext/v8/upstream/scons/engine/SCons/Platform/darwin.py +46 -0
- data/ext/v8/upstream/scons/engine/SCons/Platform/hpux.py +46 -0
- data/ext/v8/upstream/scons/engine/SCons/Platform/irix.py +44 -0
- data/ext/v8/upstream/scons/engine/SCons/Platform/os2.py +58 -0
- data/ext/v8/upstream/scons/engine/SCons/Platform/posix.py +264 -0
- data/ext/v8/upstream/scons/engine/SCons/Platform/sunos.py +50 -0
- data/ext/v8/upstream/scons/engine/SCons/Platform/win32.py +386 -0
- data/ext/v8/upstream/scons/engine/SCons/SConf.py +1038 -0
- data/ext/v8/upstream/scons/engine/SCons/SConsign.py +381 -0
- data/ext/v8/upstream/scons/engine/SCons/Scanner/C.py +132 -0
- data/ext/v8/upstream/scons/engine/SCons/Scanner/D.py +74 -0
- data/ext/v8/upstream/scons/engine/SCons/Scanner/Dir.py +111 -0
- data/ext/v8/upstream/scons/engine/SCons/Scanner/Fortran.py +320 -0
- data/ext/v8/upstream/scons/engine/SCons/Scanner/IDL.py +48 -0
- data/ext/v8/upstream/scons/engine/SCons/Scanner/LaTeX.py +378 -0
- data/ext/v8/upstream/scons/engine/SCons/Scanner/Prog.py +103 -0
- data/ext/v8/upstream/scons/engine/SCons/Scanner/RC.py +55 -0
- data/ext/v8/upstream/scons/engine/SCons/Scanner/__init__.py +415 -0
- data/ext/v8/upstream/scons/engine/SCons/Script/Interactive.py +386 -0
- data/ext/v8/upstream/scons/engine/SCons/Script/Main.py +1360 -0
- data/ext/v8/upstream/scons/engine/SCons/Script/SConsOptions.py +944 -0
- data/ext/v8/upstream/scons/engine/SCons/Script/SConscript.py +642 -0
- data/ext/v8/upstream/scons/engine/SCons/Script/__init__.py +414 -0
- data/ext/v8/upstream/scons/engine/SCons/Sig.py +63 -0
- data/ext/v8/upstream/scons/engine/SCons/Subst.py +911 -0
- data/ext/v8/upstream/scons/engine/SCons/Taskmaster.py +1030 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/386asm.py +61 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/BitKeeper.py +65 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/CVS.py +73 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/FortranCommon.py +247 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/JavaCommon.py +324 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/__init__.py +56 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/arch.py +61 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/common.py +210 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/netframework.py +84 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/sdk.py +321 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/vc.py +367 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/vs.py +497 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/Perforce.py +104 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/PharLapCommon.py +138 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/RCS.py +64 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/SCCS.py +64 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/Subversion.py +71 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/__init__.py +675 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/aixc++.py +82 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/aixcc.py +74 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/aixf77.py +80 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/aixlink.py +76 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/applelink.py +71 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/ar.py +63 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/as.py +78 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/bcc32.py +82 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/c++.py +99 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/cc.py +114 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/cvf.py +58 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/default.py +50 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/dmd.py +224 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/dvi.py +64 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/dvipdf.py +125 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/dvips.py +94 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/f77.py +62 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/f90.py +62 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/f95.py +63 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/filesystem.py +98 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/fortran.py +63 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/g++.py +90 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/g77.py +73 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/gas.py +53 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/gcc.py +80 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/gfortran.py +64 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/gnulink.py +63 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/gs.py +81 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/hpc++.py +85 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/hpcc.py +53 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/hplink.py +77 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/icc.py +59 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/icl.py +52 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/ifl.py +72 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/ifort.py +90 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/ilink.py +59 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/ilink32.py +60 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/install.py +229 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/intelc.py +490 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/ipkg.py +71 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/jar.py +110 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/javac.py +234 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/javah.py +138 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/latex.py +79 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/lex.py +99 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/link.py +121 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/linkloc.py +112 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/m4.py +63 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/masm.py +77 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/midl.py +90 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/mingw.py +159 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/mslib.py +64 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/mslink.py +266 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/mssdk.py +50 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/msvc.py +269 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/msvs.py +1439 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/mwcc.py +208 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/mwld.py +107 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/nasm.py +72 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/__init__.py +314 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/ipk.py +185 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/msi.py +526 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/rpm.py +367 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/src_tarbz2.py +43 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/src_targz.py +43 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/src_zip.py +43 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/tarbz2.py +44 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/targz.py +44 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/zip.py +44 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/pdf.py +78 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/pdflatex.py +83 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/pdftex.py +108 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/qt.py +336 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/rmic.py +121 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/rpcgen.py +70 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/rpm.py +132 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/sgiar.py +68 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/sgic++.py +58 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/sgicc.py +53 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/sgilink.py +63 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/sunar.py +67 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/sunc++.py +142 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/suncc.py +58 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/sunf77.py +63 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/sunf90.py +64 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/sunf95.py +64 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/sunlink.py +77 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/swig.py +186 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/tar.py +73 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/tex.py +805 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/textfile.py +175 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/tlib.py +53 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/wix.py +100 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/yacc.py +131 -0
- data/ext/v8/upstream/scons/engine/SCons/Tool/zip.py +100 -0
- data/ext/v8/upstream/scons/engine/SCons/Util.py +1645 -0
- data/ext/v8/upstream/scons/engine/SCons/Variables/BoolVariable.py +91 -0
- data/ext/v8/upstream/scons/engine/SCons/Variables/EnumVariable.py +107 -0
- data/ext/v8/upstream/scons/engine/SCons/Variables/ListVariable.py +139 -0
- data/ext/v8/upstream/scons/engine/SCons/Variables/PackageVariable.py +109 -0
- data/ext/v8/upstream/scons/engine/SCons/Variables/PathVariable.py +147 -0
- data/ext/v8/upstream/scons/engine/SCons/Variables/__init__.py +317 -0
- data/ext/v8/upstream/scons/engine/SCons/Warnings.py +228 -0
- data/ext/v8/upstream/scons/engine/SCons/__init__.py +49 -0
- data/ext/v8/upstream/scons/engine/SCons/compat/__init__.py +302 -0
- data/ext/v8/upstream/scons/engine/SCons/compat/_scons_UserString.py +98 -0
- data/ext/v8/upstream/scons/engine/SCons/compat/_scons_hashlib.py +91 -0
- data/ext/v8/upstream/scons/engine/SCons/compat/_scons_itertools.py +124 -0
- data/ext/v8/upstream/scons/engine/SCons/compat/_scons_optparse.py +1725 -0
- data/ext/v8/upstream/scons/engine/SCons/compat/_scons_sets.py +583 -0
- data/ext/v8/upstream/scons/engine/SCons/compat/_scons_sets15.py +176 -0
- data/ext/v8/upstream/scons/engine/SCons/compat/_scons_shlex.py +325 -0
- data/ext/v8/upstream/scons/engine/SCons/compat/_scons_subprocess.py +1296 -0
- data/ext/v8/upstream/scons/engine/SCons/compat/_scons_textwrap.py +382 -0
- data/ext/v8/upstream/scons/engine/SCons/compat/builtins.py +187 -0
- data/ext/v8/upstream/scons/engine/SCons/cpp.py +598 -0
- data/ext/v8/upstream/scons/engine/SCons/dblite.py +248 -0
- data/ext/v8/upstream/scons/engine/SCons/exitfuncs.py +77 -0
- data/ext/v8/upstream/scons/os_spawnv_fix.diff +83 -0
- data/ext/v8/upstream/scons/scons-time.1 +1017 -0
- data/ext/v8/upstream/scons/scons.1 +15179 -0
- data/ext/v8/upstream/scons/sconsign.1 +208 -0
- data/ext/v8/upstream/scons/script/scons +184 -0
- data/ext/v8/upstream/scons/script/scons-time +1529 -0
- data/ext/v8/upstream/scons/script/scons.bat +31 -0
- data/ext/v8/upstream/scons/script/sconsign +508 -0
- data/ext/v8/upstream/scons/setup.cfg +6 -0
- data/ext/v8/upstream/scons/setup.py +427 -0
- data/ext/v8/v8.cpp +81 -0
- data/ext/v8/v8_cxt.cpp +92 -0
- data/ext/v8/v8_cxt.h +20 -0
- data/ext/v8/v8_func.cpp +10 -0
- data/ext/v8/v8_func.h +11 -0
- data/ext/v8/v8_msg.cpp +17 -0
- data/ext/v8/v8_msg.h +10 -0
- data/ext/v8/v8_obj.cpp +52 -0
- data/ext/v8/v8_obj.h +13 -0
- data/ext/v8/v8_ref.cpp +26 -0
- data/ext/v8/v8_ref.h +31 -0
- data/ext/v8/v8_script.cpp +20 -0
- data/ext/v8/v8_script.h +8 -0
- data/ext/v8/v8_standalone.cpp +69 -0
- data/ext/v8/v8_standalone.h +31 -0
- data/ext/v8/v8_str.cpp +17 -0
- data/ext/v8/v8_str.h +9 -0
- data/ext/v8/v8_template.cpp +53 -0
- data/ext/v8/v8_template.h +13 -0
- data/lib/v8.rb +10 -0
- data/lib/v8/context.rb +87 -0
- data/lib/v8/object.rb +38 -0
- data/lib/v8/to.rb +33 -0
- data/lib/v8/v8.bundle +0 -0
- data/script/console +10 -0
- data/script/destroy +14 -0
- data/script/generate +14 -0
- data/spec/ext/cxt_spec.rb +25 -0
- data/spec/ext/obj_spec.rb +13 -0
- data/spec/redjs/README.txt +8 -0
- data/spec/redjs/jsapi_spec.rb +394 -0
- data/spec/redjs/tap.rb +8 -0
- data/spec/redjs_helper.rb +3 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +14 -0
- data/spec/v8/to_spec.rb +15 -0
- data/tasks/rspec.rake +21 -0
- data/therubyracer.gemspec +34 -0
- metadata +1269 -0
@@ -0,0 +1,1271 @@
|
|
1
|
+
// Copyright 2006-2009 the V8 project authors. All rights reserved.
|
2
|
+
// Redistribution and use in source and binary forms, with or without
|
3
|
+
// modification, are permitted provided that the following conditions are
|
4
|
+
// met:
|
5
|
+
//
|
6
|
+
// * Redistributions of source code must retain the above copyright
|
7
|
+
// notice, this list of conditions and the following disclaimer.
|
8
|
+
// * Redistributions in binary form must reproduce the above
|
9
|
+
// copyright notice, this list of conditions and the following
|
10
|
+
// disclaimer in the documentation and/or other materials provided
|
11
|
+
// with the distribution.
|
12
|
+
// * Neither the name of Google Inc. nor the names of its
|
13
|
+
// contributors may be used to endorse or promote products derived
|
14
|
+
// from this software without specific prior written permission.
|
15
|
+
//
|
16
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
|
28
|
+
#include "v8.h"
|
29
|
+
|
30
|
+
#include "codegen-inl.h"
|
31
|
+
#include "debug.h"
|
32
|
+
#include "runtime.h"
|
33
|
+
|
34
|
+
namespace v8 {
|
35
|
+
namespace internal {
|
36
|
+
|
37
|
+
|
38
|
+
#define __ ACCESS_MASM(masm)
|
39
|
+
|
40
|
+
|
41
|
+
void Builtins::Generate_Adaptor(MacroAssembler* masm, CFunctionId id) {
|
42
|
+
// TODO(428): Don't pass the function in a static variable.
|
43
|
+
__ mov(ip, Operand(ExternalReference::builtin_passed_function()));
|
44
|
+
__ str(r1, MemOperand(ip, 0));
|
45
|
+
|
46
|
+
// The actual argument count has already been loaded into register
|
47
|
+
// r0, but JumpToRuntime expects r0 to contain the number of
|
48
|
+
// arguments including the receiver.
|
49
|
+
__ add(r0, r0, Operand(1));
|
50
|
+
__ JumpToRuntime(ExternalReference(id));
|
51
|
+
}
|
52
|
+
|
53
|
+
|
54
|
+
// Load the built-in Array function from the current context.
|
55
|
+
static void GenerateLoadArrayFunction(MacroAssembler* masm, Register result) {
|
56
|
+
// Load the global context.
|
57
|
+
|
58
|
+
__ ldr(result, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_INDEX)));
|
59
|
+
__ ldr(result,
|
60
|
+
FieldMemOperand(result, GlobalObject::kGlobalContextOffset));
|
61
|
+
// Load the Array function from the global context.
|
62
|
+
__ ldr(result,
|
63
|
+
MemOperand(result,
|
64
|
+
Context::SlotOffset(Context::ARRAY_FUNCTION_INDEX)));
|
65
|
+
}
|
66
|
+
|
67
|
+
|
68
|
+
// This constant has the same value as JSArray::kPreallocatedArrayElements and
|
69
|
+
// if JSArray::kPreallocatedArrayElements is changed handling of loop unfolding
|
70
|
+
// below should be reconsidered.
|
71
|
+
static const int kLoopUnfoldLimit = 4;
|
72
|
+
|
73
|
+
|
74
|
+
// Allocate an empty JSArray. The allocated array is put into the result
|
75
|
+
// register. An elements backing store is allocated with size initial_capacity
|
76
|
+
// and filled with the hole values.
|
77
|
+
static void AllocateEmptyJSArray(MacroAssembler* masm,
|
78
|
+
Register array_function,
|
79
|
+
Register result,
|
80
|
+
Register scratch1,
|
81
|
+
Register scratch2,
|
82
|
+
Register scratch3,
|
83
|
+
int initial_capacity,
|
84
|
+
Label* gc_required) {
|
85
|
+
ASSERT(initial_capacity > 0);
|
86
|
+
// Load the initial map from the array function.
|
87
|
+
__ ldr(scratch1, FieldMemOperand(array_function,
|
88
|
+
JSFunction::kPrototypeOrInitialMapOffset));
|
89
|
+
|
90
|
+
// Allocate the JSArray object together with space for a fixed array with the
|
91
|
+
// requested elements.
|
92
|
+
int size = JSArray::kSize + FixedArray::SizeFor(initial_capacity);
|
93
|
+
__ AllocateInNewSpace(size / kPointerSize,
|
94
|
+
result,
|
95
|
+
scratch2,
|
96
|
+
scratch3,
|
97
|
+
gc_required,
|
98
|
+
TAG_OBJECT);
|
99
|
+
|
100
|
+
// Allocated the JSArray. Now initialize the fields except for the elements
|
101
|
+
// array.
|
102
|
+
// result: JSObject
|
103
|
+
// scratch1: initial map
|
104
|
+
// scratch2: start of next object
|
105
|
+
__ str(scratch1, FieldMemOperand(result, JSObject::kMapOffset));
|
106
|
+
__ LoadRoot(scratch1, Heap::kEmptyFixedArrayRootIndex);
|
107
|
+
__ str(scratch1, FieldMemOperand(result, JSArray::kPropertiesOffset));
|
108
|
+
// Field JSArray::kElementsOffset is initialized later.
|
109
|
+
__ mov(scratch3, Operand(0));
|
110
|
+
__ str(scratch3, FieldMemOperand(result, JSArray::kLengthOffset));
|
111
|
+
|
112
|
+
// Calculate the location of the elements array and set elements array member
|
113
|
+
// of the JSArray.
|
114
|
+
// result: JSObject
|
115
|
+
// scratch2: start of next object
|
116
|
+
__ lea(scratch1, MemOperand(result, JSArray::kSize));
|
117
|
+
__ str(scratch1, FieldMemOperand(result, JSArray::kElementsOffset));
|
118
|
+
|
119
|
+
// Clear the heap tag on the elements array.
|
120
|
+
__ and_(scratch1, scratch1, Operand(~kHeapObjectTagMask));
|
121
|
+
|
122
|
+
// Initialize the FixedArray and fill it with holes. FixedArray length is not
|
123
|
+
// stored as a smi.
|
124
|
+
// result: JSObject
|
125
|
+
// scratch1: elements array (untagged)
|
126
|
+
// scratch2: start of next object
|
127
|
+
__ LoadRoot(scratch3, Heap::kFixedArrayMapRootIndex);
|
128
|
+
ASSERT_EQ(0 * kPointerSize, FixedArray::kMapOffset);
|
129
|
+
__ str(scratch3, MemOperand(scratch1, kPointerSize, PostIndex));
|
130
|
+
__ mov(scratch3, Operand(initial_capacity));
|
131
|
+
ASSERT_EQ(1 * kPointerSize, FixedArray::kLengthOffset);
|
132
|
+
__ str(scratch3, MemOperand(scratch1, kPointerSize, PostIndex));
|
133
|
+
|
134
|
+
// Fill the FixedArray with the hole value.
|
135
|
+
ASSERT_EQ(2 * kPointerSize, FixedArray::kHeaderSize);
|
136
|
+
ASSERT(initial_capacity <= kLoopUnfoldLimit);
|
137
|
+
__ LoadRoot(scratch3, Heap::kTheHoleValueRootIndex);
|
138
|
+
for (int i = 0; i < initial_capacity; i++) {
|
139
|
+
__ str(scratch3, MemOperand(scratch1, kPointerSize, PostIndex));
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
// Allocate a JSArray with the number of elements stored in a register. The
|
144
|
+
// register array_function holds the built-in Array function and the register
|
145
|
+
// array_size holds the size of the array as a smi. The allocated array is put
|
146
|
+
// into the result register and beginning and end of the FixedArray elements
|
147
|
+
// storage is put into registers elements_array_storage and elements_array_end
|
148
|
+
// (see below for when that is not the case). If the parameter fill_with_holes
|
149
|
+
// is true the allocated elements backing store is filled with the hole values
|
150
|
+
// otherwise it is left uninitialized. When the backing store is filled the
|
151
|
+
// register elements_array_storage is scratched.
|
152
|
+
static void AllocateJSArray(MacroAssembler* masm,
|
153
|
+
Register array_function, // Array function.
|
154
|
+
Register array_size, // As a smi.
|
155
|
+
Register result,
|
156
|
+
Register elements_array_storage,
|
157
|
+
Register elements_array_end,
|
158
|
+
Register scratch1,
|
159
|
+
Register scratch2,
|
160
|
+
bool fill_with_hole,
|
161
|
+
Label* gc_required) {
|
162
|
+
Label not_empty, allocated;
|
163
|
+
|
164
|
+
// Load the initial map from the array function.
|
165
|
+
__ ldr(elements_array_storage,
|
166
|
+
FieldMemOperand(array_function,
|
167
|
+
JSFunction::kPrototypeOrInitialMapOffset));
|
168
|
+
|
169
|
+
// Check whether an empty sized array is requested.
|
170
|
+
__ tst(array_size, array_size);
|
171
|
+
__ b(nz, ¬_empty);
|
172
|
+
|
173
|
+
// If an empty array is requested allocate a small elements array anyway. This
|
174
|
+
// keeps the code below free of special casing for the empty array.
|
175
|
+
int size = JSArray::kSize +
|
176
|
+
FixedArray::SizeFor(JSArray::kPreallocatedArrayElements);
|
177
|
+
__ AllocateInNewSpace(size / kPointerSize,
|
178
|
+
result,
|
179
|
+
elements_array_end,
|
180
|
+
scratch1,
|
181
|
+
gc_required,
|
182
|
+
TAG_OBJECT);
|
183
|
+
__ jmp(&allocated);
|
184
|
+
|
185
|
+
// Allocate the JSArray object together with space for a FixedArray with the
|
186
|
+
// requested number of elements.
|
187
|
+
__ bind(¬_empty);
|
188
|
+
ASSERT(kSmiTagSize == 1 && kSmiTag == 0);
|
189
|
+
__ mov(elements_array_end,
|
190
|
+
Operand((JSArray::kSize + FixedArray::kHeaderSize) / kPointerSize));
|
191
|
+
__ add(elements_array_end,
|
192
|
+
elements_array_end,
|
193
|
+
Operand(array_size, ASR, kSmiTagSize));
|
194
|
+
__ AllocateInNewSpace(elements_array_end,
|
195
|
+
result,
|
196
|
+
scratch1,
|
197
|
+
scratch2,
|
198
|
+
gc_required,
|
199
|
+
TAG_OBJECT);
|
200
|
+
|
201
|
+
// Allocated the JSArray. Now initialize the fields except for the elements
|
202
|
+
// array.
|
203
|
+
// result: JSObject
|
204
|
+
// elements_array_storage: initial map
|
205
|
+
// array_size: size of array (smi)
|
206
|
+
__ bind(&allocated);
|
207
|
+
__ str(elements_array_storage, FieldMemOperand(result, JSObject::kMapOffset));
|
208
|
+
__ LoadRoot(elements_array_storage, Heap::kEmptyFixedArrayRootIndex);
|
209
|
+
__ str(elements_array_storage,
|
210
|
+
FieldMemOperand(result, JSArray::kPropertiesOffset));
|
211
|
+
// Field JSArray::kElementsOffset is initialized later.
|
212
|
+
__ str(array_size, FieldMemOperand(result, JSArray::kLengthOffset));
|
213
|
+
|
214
|
+
// Calculate the location of the elements array and set elements array member
|
215
|
+
// of the JSArray.
|
216
|
+
// result: JSObject
|
217
|
+
// array_size: size of array (smi)
|
218
|
+
__ add(elements_array_storage, result, Operand(JSArray::kSize));
|
219
|
+
__ str(elements_array_storage,
|
220
|
+
FieldMemOperand(result, JSArray::kElementsOffset));
|
221
|
+
|
222
|
+
// Clear the heap tag on the elements array.
|
223
|
+
__ and_(elements_array_storage,
|
224
|
+
elements_array_storage,
|
225
|
+
Operand(~kHeapObjectTagMask));
|
226
|
+
// Initialize the fixed array and fill it with holes. FixedArray length is not
|
227
|
+
// stored as a smi.
|
228
|
+
// result: JSObject
|
229
|
+
// elements_array_storage: elements array (untagged)
|
230
|
+
// array_size: size of array (smi)
|
231
|
+
ASSERT(kSmiTag == 0);
|
232
|
+
__ LoadRoot(scratch1, Heap::kFixedArrayMapRootIndex);
|
233
|
+
ASSERT_EQ(0 * kPointerSize, FixedArray::kMapOffset);
|
234
|
+
__ str(scratch1, MemOperand(elements_array_storage, kPointerSize, PostIndex));
|
235
|
+
// Convert array_size from smi to value.
|
236
|
+
__ mov(array_size,
|
237
|
+
Operand(array_size, ASR, kSmiTagSize));
|
238
|
+
__ tst(array_size, array_size);
|
239
|
+
// Length of the FixedArray is the number of pre-allocated elements if
|
240
|
+
// the actual JSArray has length 0 and the size of the JSArray for non-empty
|
241
|
+
// JSArrays. The length of a FixedArray is not stored as a smi.
|
242
|
+
__ mov(array_size, Operand(JSArray::kPreallocatedArrayElements), LeaveCC, eq);
|
243
|
+
ASSERT_EQ(1 * kPointerSize, FixedArray::kLengthOffset);
|
244
|
+
__ str(array_size,
|
245
|
+
MemOperand(elements_array_storage, kPointerSize, PostIndex));
|
246
|
+
|
247
|
+
// Calculate elements array and elements array end.
|
248
|
+
// result: JSObject
|
249
|
+
// elements_array_storage: elements array element storage
|
250
|
+
// array_size: size of elements array
|
251
|
+
__ add(elements_array_end,
|
252
|
+
elements_array_storage,
|
253
|
+
Operand(array_size, LSL, kPointerSizeLog2));
|
254
|
+
|
255
|
+
// Fill the allocated FixedArray with the hole value if requested.
|
256
|
+
// result: JSObject
|
257
|
+
// elements_array_storage: elements array element storage
|
258
|
+
// elements_array_end: start of next object
|
259
|
+
if (fill_with_hole) {
|
260
|
+
Label loop, entry;
|
261
|
+
__ LoadRoot(scratch1, Heap::kTheHoleValueRootIndex);
|
262
|
+
__ jmp(&entry);
|
263
|
+
__ bind(&loop);
|
264
|
+
__ str(scratch1,
|
265
|
+
MemOperand(elements_array_storage, kPointerSize, PostIndex));
|
266
|
+
__ bind(&entry);
|
267
|
+
__ cmp(elements_array_storage, elements_array_end);
|
268
|
+
__ b(lt, &loop);
|
269
|
+
}
|
270
|
+
}
|
271
|
+
|
272
|
+
// Create a new array for the built-in Array function. This function allocates
|
273
|
+
// the JSArray object and the FixedArray elements array and initializes these.
|
274
|
+
// If the Array cannot be constructed in native code the runtime is called. This
|
275
|
+
// function assumes the following state:
|
276
|
+
// r0: argc
|
277
|
+
// r1: constructor (built-in Array function)
|
278
|
+
// lr: return address
|
279
|
+
// sp[0]: last argument
|
280
|
+
// This function is used for both construct and normal calls of Array. The only
|
281
|
+
// difference between handling a construct call and a normal call is that for a
|
282
|
+
// construct call the constructor function in r1 needs to be preserved for
|
283
|
+
// entering the generic code. In both cases argc in r0 needs to be preserved.
|
284
|
+
// Both registers are preserved by this code so no need to differentiate between
|
285
|
+
// construct call and normal call.
|
286
|
+
static void ArrayNativeCode(MacroAssembler* masm,
|
287
|
+
Label* call_generic_code) {
|
288
|
+
Label argc_one_or_more, argc_two_or_more;
|
289
|
+
|
290
|
+
// Check for array construction with zero arguments or one.
|
291
|
+
__ cmp(r0, Operand(0));
|
292
|
+
__ b(ne, &argc_one_or_more);
|
293
|
+
|
294
|
+
// Handle construction of an empty array.
|
295
|
+
AllocateEmptyJSArray(masm,
|
296
|
+
r1,
|
297
|
+
r2,
|
298
|
+
r3,
|
299
|
+
r4,
|
300
|
+
r5,
|
301
|
+
JSArray::kPreallocatedArrayElements,
|
302
|
+
call_generic_code);
|
303
|
+
__ IncrementCounter(&Counters::array_function_native, 1, r3, r4);
|
304
|
+
// Setup return value, remove receiver from stack and return.
|
305
|
+
__ mov(r0, r2);
|
306
|
+
__ add(sp, sp, Operand(kPointerSize));
|
307
|
+
__ Jump(lr);
|
308
|
+
|
309
|
+
// Check for one argument. Bail out if argument is not smi or if it is
|
310
|
+
// negative.
|
311
|
+
__ bind(&argc_one_or_more);
|
312
|
+
__ cmp(r0, Operand(1));
|
313
|
+
__ b(ne, &argc_two_or_more);
|
314
|
+
ASSERT(kSmiTag == 0);
|
315
|
+
__ ldr(r2, MemOperand(sp)); // Get the argument from the stack.
|
316
|
+
__ and_(r3, r2, Operand(kIntptrSignBit | kSmiTagMask), SetCC);
|
317
|
+
__ b(ne, call_generic_code);
|
318
|
+
|
319
|
+
// Handle construction of an empty array of a certain size. Bail out if size
|
320
|
+
// is too large to actually allocate an elements array.
|
321
|
+
ASSERT(kSmiTag == 0);
|
322
|
+
__ cmp(r2, Operand(JSObject::kInitialMaxFastElementArray << kSmiTagSize));
|
323
|
+
__ b(ge, call_generic_code);
|
324
|
+
|
325
|
+
// r0: argc
|
326
|
+
// r1: constructor
|
327
|
+
// r2: array_size (smi)
|
328
|
+
// sp[0]: argument
|
329
|
+
AllocateJSArray(masm,
|
330
|
+
r1,
|
331
|
+
r2,
|
332
|
+
r3,
|
333
|
+
r4,
|
334
|
+
r5,
|
335
|
+
r6,
|
336
|
+
r7,
|
337
|
+
true,
|
338
|
+
call_generic_code);
|
339
|
+
__ IncrementCounter(&Counters::array_function_native, 1, r2, r4);
|
340
|
+
// Setup return value, remove receiver and argument from stack and return.
|
341
|
+
__ mov(r0, r3);
|
342
|
+
__ add(sp, sp, Operand(2 * kPointerSize));
|
343
|
+
__ Jump(lr);
|
344
|
+
|
345
|
+
// Handle construction of an array from a list of arguments.
|
346
|
+
__ bind(&argc_two_or_more);
|
347
|
+
__ mov(r2, Operand(r0, LSL, kSmiTagSize)); // Convet argc to a smi.
|
348
|
+
|
349
|
+
// r0: argc
|
350
|
+
// r1: constructor
|
351
|
+
// r2: array_size (smi)
|
352
|
+
// sp[0]: last argument
|
353
|
+
AllocateJSArray(masm,
|
354
|
+
r1,
|
355
|
+
r2,
|
356
|
+
r3,
|
357
|
+
r4,
|
358
|
+
r5,
|
359
|
+
r6,
|
360
|
+
r7,
|
361
|
+
false,
|
362
|
+
call_generic_code);
|
363
|
+
__ IncrementCounter(&Counters::array_function_native, 1, r2, r6);
|
364
|
+
|
365
|
+
// Fill arguments as array elements. Copy from the top of the stack (last
|
366
|
+
// element) to the array backing store filling it backwards. Note:
|
367
|
+
// elements_array_end points after the backing store therefore PreIndex is
|
368
|
+
// used when filling the backing store.
|
369
|
+
// r0: argc
|
370
|
+
// r3: JSArray
|
371
|
+
// r4: elements_array storage start (untagged)
|
372
|
+
// r5: elements_array_end (untagged)
|
373
|
+
// sp[0]: last argument
|
374
|
+
Label loop, entry;
|
375
|
+
__ jmp(&entry);
|
376
|
+
__ bind(&loop);
|
377
|
+
__ ldr(r2, MemOperand(sp, kPointerSize, PostIndex));
|
378
|
+
__ str(r2, MemOperand(r5, -kPointerSize, PreIndex));
|
379
|
+
__ bind(&entry);
|
380
|
+
__ cmp(r4, r5);
|
381
|
+
__ b(lt, &loop);
|
382
|
+
|
383
|
+
// Remove caller arguments and receiver from the stack, setup return value and
|
384
|
+
// return.
|
385
|
+
// r0: argc
|
386
|
+
// r3: JSArray
|
387
|
+
// sp[0]: receiver
|
388
|
+
__ add(sp, sp, Operand(kPointerSize));
|
389
|
+
__ mov(r0, r3);
|
390
|
+
__ Jump(lr);
|
391
|
+
}
|
392
|
+
|
393
|
+
|
394
|
+
void Builtins::Generate_ArrayCode(MacroAssembler* masm) {
|
395
|
+
// ----------- S t a t e -------------
|
396
|
+
// -- r0 : number of arguments
|
397
|
+
// -- lr : return address
|
398
|
+
// -- sp[...]: constructor arguments
|
399
|
+
// -----------------------------------
|
400
|
+
Label generic_array_code, one_or_more_arguments, two_or_more_arguments;
|
401
|
+
|
402
|
+
// Get the Array function.
|
403
|
+
GenerateLoadArrayFunction(masm, r1);
|
404
|
+
|
405
|
+
if (FLAG_debug_code) {
|
406
|
+
// Initial map for the builtin Array function shoud be a map.
|
407
|
+
__ ldr(r2, FieldMemOperand(r1, JSFunction::kPrototypeOrInitialMapOffset));
|
408
|
+
__ tst(r2, Operand(kSmiTagMask));
|
409
|
+
__ Assert(ne, "Unexpected initial map for Array function");
|
410
|
+
__ CompareObjectType(r2, r3, r4, MAP_TYPE);
|
411
|
+
__ Assert(eq, "Unexpected initial map for Array function");
|
412
|
+
}
|
413
|
+
|
414
|
+
// Run the native code for the Array function called as a normal function.
|
415
|
+
ArrayNativeCode(masm, &generic_array_code);
|
416
|
+
|
417
|
+
// Jump to the generic array code if the specialized code cannot handle
|
418
|
+
// the construction.
|
419
|
+
__ bind(&generic_array_code);
|
420
|
+
Code* code = Builtins::builtin(Builtins::ArrayCodeGeneric);
|
421
|
+
Handle<Code> array_code(code);
|
422
|
+
__ Jump(array_code, RelocInfo::CODE_TARGET);
|
423
|
+
}
|
424
|
+
|
425
|
+
|
426
|
+
void Builtins::Generate_ArrayConstructCode(MacroAssembler* masm) {
|
427
|
+
// ----------- S t a t e -------------
|
428
|
+
// -- r0 : number of arguments
|
429
|
+
// -- r1 : constructor function
|
430
|
+
// -- lr : return address
|
431
|
+
// -- sp[...]: constructor arguments
|
432
|
+
// -----------------------------------
|
433
|
+
Label generic_constructor;
|
434
|
+
|
435
|
+
if (FLAG_debug_code) {
|
436
|
+
// The array construct code is only set for the builtin Array function which
|
437
|
+
// always have a map.
|
438
|
+
GenerateLoadArrayFunction(masm, r2);
|
439
|
+
__ cmp(r1, r2);
|
440
|
+
__ Assert(eq, "Unexpected Array function");
|
441
|
+
// Initial map for the builtin Array function should be a map.
|
442
|
+
__ ldr(r2, FieldMemOperand(r1, JSFunction::kPrototypeOrInitialMapOffset));
|
443
|
+
__ tst(r2, Operand(kSmiTagMask));
|
444
|
+
__ Assert(ne, "Unexpected initial map for Array function");
|
445
|
+
__ CompareObjectType(r2, r3, r4, MAP_TYPE);
|
446
|
+
__ Assert(eq, "Unexpected initial map for Array function");
|
447
|
+
}
|
448
|
+
|
449
|
+
// Run the native code for the Array function called as a constructor.
|
450
|
+
ArrayNativeCode(masm, &generic_constructor);
|
451
|
+
|
452
|
+
// Jump to the generic construct code in case the specialized code cannot
|
453
|
+
// handle the construction.
|
454
|
+
__ bind(&generic_constructor);
|
455
|
+
Code* code = Builtins::builtin(Builtins::JSConstructStubGeneric);
|
456
|
+
Handle<Code> generic_construct_stub(code);
|
457
|
+
__ Jump(generic_construct_stub, RelocInfo::CODE_TARGET);
|
458
|
+
}
|
459
|
+
|
460
|
+
|
461
|
+
void Builtins::Generate_JSConstructCall(MacroAssembler* masm) {
|
462
|
+
// ----------- S t a t e -------------
|
463
|
+
// -- r0 : number of arguments
|
464
|
+
// -- r1 : constructor function
|
465
|
+
// -- lr : return address
|
466
|
+
// -- sp[...]: constructor arguments
|
467
|
+
// -----------------------------------
|
468
|
+
|
469
|
+
Label non_function_call;
|
470
|
+
// Check that the function is not a smi.
|
471
|
+
__ tst(r1, Operand(kSmiTagMask));
|
472
|
+
__ b(eq, &non_function_call);
|
473
|
+
// Check that the function is a JSFunction.
|
474
|
+
__ CompareObjectType(r1, r2, r2, JS_FUNCTION_TYPE);
|
475
|
+
__ b(ne, &non_function_call);
|
476
|
+
|
477
|
+
// Jump to the function-specific construct stub.
|
478
|
+
__ ldr(r2, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset));
|
479
|
+
__ ldr(r2, FieldMemOperand(r2, SharedFunctionInfo::kConstructStubOffset));
|
480
|
+
__ add(pc, r2, Operand(Code::kHeaderSize - kHeapObjectTag));
|
481
|
+
|
482
|
+
// r0: number of arguments
|
483
|
+
// r1: called object
|
484
|
+
__ bind(&non_function_call);
|
485
|
+
|
486
|
+
// Set expected number of arguments to zero (not changing r0).
|
487
|
+
__ mov(r2, Operand(0));
|
488
|
+
__ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION_AS_CONSTRUCTOR);
|
489
|
+
__ Jump(Handle<Code>(builtin(ArgumentsAdaptorTrampoline)),
|
490
|
+
RelocInfo::CODE_TARGET);
|
491
|
+
}
|
492
|
+
|
493
|
+
|
494
|
+
void Builtins::Generate_JSConstructStubGeneric(MacroAssembler* masm) {
|
495
|
+
// Enter a construct frame.
|
496
|
+
__ EnterConstructFrame();
|
497
|
+
|
498
|
+
// Preserve the two incoming parameters on the stack.
|
499
|
+
__ mov(r0, Operand(r0, LSL, kSmiTagSize));
|
500
|
+
__ push(r0); // Smi-tagged arguments count.
|
501
|
+
__ push(r1); // Constructor function.
|
502
|
+
|
503
|
+
// Use r7 for holding undefined which is used in several places below.
|
504
|
+
__ LoadRoot(r7, Heap::kUndefinedValueRootIndex);
|
505
|
+
|
506
|
+
// Try to allocate the object without transitioning into C code. If any of the
|
507
|
+
// preconditions is not met, the code bails out to the runtime call.
|
508
|
+
Label rt_call, allocated;
|
509
|
+
if (FLAG_inline_new) {
|
510
|
+
Label undo_allocation;
|
511
|
+
#ifdef ENABLE_DEBUGGER_SUPPORT
|
512
|
+
ExternalReference debug_step_in_fp =
|
513
|
+
ExternalReference::debug_step_in_fp_address();
|
514
|
+
__ mov(r2, Operand(debug_step_in_fp));
|
515
|
+
__ ldr(r2, MemOperand(r2));
|
516
|
+
__ tst(r2, r2);
|
517
|
+
__ b(nz, &rt_call);
|
518
|
+
#endif
|
519
|
+
|
520
|
+
// Load the initial map and verify that it is in fact a map.
|
521
|
+
// r1: constructor function
|
522
|
+
// r7: undefined
|
523
|
+
__ ldr(r2, FieldMemOperand(r1, JSFunction::kPrototypeOrInitialMapOffset));
|
524
|
+
__ tst(r2, Operand(kSmiTagMask));
|
525
|
+
__ b(eq, &rt_call);
|
526
|
+
__ CompareObjectType(r2, r3, r4, MAP_TYPE);
|
527
|
+
__ b(ne, &rt_call);
|
528
|
+
|
529
|
+
// Check that the constructor is not constructing a JSFunction (see comments
|
530
|
+
// in Runtime_NewObject in runtime.cc). In which case the initial map's
|
531
|
+
// instance type would be JS_FUNCTION_TYPE.
|
532
|
+
// r1: constructor function
|
533
|
+
// r2: initial map
|
534
|
+
// r7: undefined
|
535
|
+
__ CompareInstanceType(r2, r3, JS_FUNCTION_TYPE);
|
536
|
+
__ b(eq, &rt_call);
|
537
|
+
|
538
|
+
// Now allocate the JSObject on the heap.
|
539
|
+
// r1: constructor function
|
540
|
+
// r2: initial map
|
541
|
+
// r7: undefined
|
542
|
+
__ ldrb(r3, FieldMemOperand(r2, Map::kInstanceSizeOffset));
|
543
|
+
__ AllocateInNewSpace(r3, r4, r5, r6, &rt_call, NO_ALLOCATION_FLAGS);
|
544
|
+
|
545
|
+
// Allocated the JSObject, now initialize the fields. Map is set to initial
|
546
|
+
// map and properties and elements are set to empty fixed array.
|
547
|
+
// r1: constructor function
|
548
|
+
// r2: initial map
|
549
|
+
// r3: object size
|
550
|
+
// r4: JSObject (not tagged)
|
551
|
+
// r7: undefined
|
552
|
+
__ LoadRoot(r6, Heap::kEmptyFixedArrayRootIndex);
|
553
|
+
__ mov(r5, r4);
|
554
|
+
ASSERT_EQ(0 * kPointerSize, JSObject::kMapOffset);
|
555
|
+
__ str(r2, MemOperand(r5, kPointerSize, PostIndex));
|
556
|
+
ASSERT_EQ(1 * kPointerSize, JSObject::kPropertiesOffset);
|
557
|
+
__ str(r6, MemOperand(r5, kPointerSize, PostIndex));
|
558
|
+
ASSERT_EQ(2 * kPointerSize, JSObject::kElementsOffset);
|
559
|
+
__ str(r6, MemOperand(r5, kPointerSize, PostIndex));
|
560
|
+
|
561
|
+
// Fill all the in-object properties with undefined.
|
562
|
+
// r1: constructor function
|
563
|
+
// r2: initial map
|
564
|
+
// r3: object size (in words)
|
565
|
+
// r4: JSObject (not tagged)
|
566
|
+
// r5: First in-object property of JSObject (not tagged)
|
567
|
+
// r7: undefined
|
568
|
+
__ add(r6, r4, Operand(r3, LSL, kPointerSizeLog2)); // End of object.
|
569
|
+
ASSERT_EQ(3 * kPointerSize, JSObject::kHeaderSize);
|
570
|
+
{ Label loop, entry;
|
571
|
+
__ b(&entry);
|
572
|
+
__ bind(&loop);
|
573
|
+
__ str(r7, MemOperand(r5, kPointerSize, PostIndex));
|
574
|
+
__ bind(&entry);
|
575
|
+
__ cmp(r5, Operand(r6));
|
576
|
+
__ b(lt, &loop);
|
577
|
+
}
|
578
|
+
|
579
|
+
// Add the object tag to make the JSObject real, so that we can continue and
|
580
|
+
// jump into the continuation code at any time from now on. Any failures
|
581
|
+
// need to undo the allocation, so that the heap is in a consistent state
|
582
|
+
// and verifiable.
|
583
|
+
__ add(r4, r4, Operand(kHeapObjectTag));
|
584
|
+
|
585
|
+
// Check if a non-empty properties array is needed. Continue with allocated
|
586
|
+
// object if not fall through to runtime call if it is.
|
587
|
+
// r1: constructor function
|
588
|
+
// r4: JSObject
|
589
|
+
// r5: start of next object (not tagged)
|
590
|
+
// r7: undefined
|
591
|
+
__ ldrb(r3, FieldMemOperand(r2, Map::kUnusedPropertyFieldsOffset));
|
592
|
+
// The field instance sizes contains both pre-allocated property fields and
|
593
|
+
// in-object properties.
|
594
|
+
__ ldr(r0, FieldMemOperand(r2, Map::kInstanceSizesOffset));
|
595
|
+
__ and_(r6,
|
596
|
+
r0,
|
597
|
+
Operand(0x000000FF << Map::kPreAllocatedPropertyFieldsByte * 8));
|
598
|
+
__ add(r3, r3, Operand(r6, LSR, Map::kPreAllocatedPropertyFieldsByte * 8));
|
599
|
+
__ and_(r6, r0, Operand(0x000000FF << Map::kInObjectPropertiesByte * 8));
|
600
|
+
__ sub(r3, r3, Operand(r6, LSR, Map::kInObjectPropertiesByte * 8), SetCC);
|
601
|
+
|
602
|
+
// Done if no extra properties are to be allocated.
|
603
|
+
__ b(eq, &allocated);
|
604
|
+
__ Assert(pl, "Property allocation count failed.");
|
605
|
+
|
606
|
+
// Scale the number of elements by pointer size and add the header for
|
607
|
+
// FixedArrays to the start of the next object calculation from above.
|
608
|
+
// r1: constructor
|
609
|
+
// r3: number of elements in properties array
|
610
|
+
// r4: JSObject
|
611
|
+
// r5: start of next object
|
612
|
+
// r7: undefined
|
613
|
+
__ add(r0, r3, Operand(FixedArray::kHeaderSize / kPointerSize));
|
614
|
+
__ AllocateInNewSpace(r0,
|
615
|
+
r5,
|
616
|
+
r6,
|
617
|
+
r2,
|
618
|
+
&undo_allocation,
|
619
|
+
RESULT_CONTAINS_TOP);
|
620
|
+
|
621
|
+
// Initialize the FixedArray.
|
622
|
+
// r1: constructor
|
623
|
+
// r3: number of elements in properties array
|
624
|
+
// r4: JSObject
|
625
|
+
// r5: FixedArray (not tagged)
|
626
|
+
// r7: undefined
|
627
|
+
__ LoadRoot(r6, Heap::kFixedArrayMapRootIndex);
|
628
|
+
__ mov(r2, r5);
|
629
|
+
ASSERT_EQ(0 * kPointerSize, JSObject::kMapOffset);
|
630
|
+
__ str(r6, MemOperand(r2, kPointerSize, PostIndex));
|
631
|
+
ASSERT_EQ(1 * kPointerSize, Array::kLengthOffset);
|
632
|
+
__ str(r3, MemOperand(r2, kPointerSize, PostIndex));
|
633
|
+
|
634
|
+
// Initialize the fields to undefined.
|
635
|
+
// r1: constructor function
|
636
|
+
// r2: First element of FixedArray (not tagged)
|
637
|
+
// r3: number of elements in properties array
|
638
|
+
// r4: JSObject
|
639
|
+
// r5: FixedArray (not tagged)
|
640
|
+
// r7: undefined
|
641
|
+
__ add(r6, r2, Operand(r3, LSL, kPointerSizeLog2)); // End of object.
|
642
|
+
ASSERT_EQ(2 * kPointerSize, FixedArray::kHeaderSize);
|
643
|
+
{ Label loop, entry;
|
644
|
+
__ b(&entry);
|
645
|
+
__ bind(&loop);
|
646
|
+
__ str(r7, MemOperand(r2, kPointerSize, PostIndex));
|
647
|
+
__ bind(&entry);
|
648
|
+
__ cmp(r2, Operand(r6));
|
649
|
+
__ b(lt, &loop);
|
650
|
+
}
|
651
|
+
|
652
|
+
// Store the initialized FixedArray into the properties field of
|
653
|
+
// the JSObject
|
654
|
+
// r1: constructor function
|
655
|
+
// r4: JSObject
|
656
|
+
// r5: FixedArray (not tagged)
|
657
|
+
__ add(r5, r5, Operand(kHeapObjectTag)); // Add the heap tag.
|
658
|
+
__ str(r5, FieldMemOperand(r4, JSObject::kPropertiesOffset));
|
659
|
+
|
660
|
+
// Continue with JSObject being successfully allocated
|
661
|
+
// r1: constructor function
|
662
|
+
// r4: JSObject
|
663
|
+
__ jmp(&allocated);
|
664
|
+
|
665
|
+
// Undo the setting of the new top so that the heap is verifiable. For
|
666
|
+
// example, the map's unused properties potentially do not match the
|
667
|
+
// allocated objects unused properties.
|
668
|
+
// r4: JSObject (previous new top)
|
669
|
+
__ bind(&undo_allocation);
|
670
|
+
__ UndoAllocationInNewSpace(r4, r5);
|
671
|
+
}
|
672
|
+
|
673
|
+
// Allocate the new receiver object using the runtime call.
|
674
|
+
// r1: constructor function
|
675
|
+
__ bind(&rt_call);
|
676
|
+
__ push(r1); // argument for Runtime_NewObject
|
677
|
+
__ CallRuntime(Runtime::kNewObject, 1);
|
678
|
+
__ mov(r4, r0);
|
679
|
+
|
680
|
+
// Receiver for constructor call allocated.
|
681
|
+
// r4: JSObject
|
682
|
+
__ bind(&allocated);
|
683
|
+
__ push(r4);
|
684
|
+
|
685
|
+
// Push the function and the allocated receiver from the stack.
|
686
|
+
// sp[0]: receiver (newly allocated object)
|
687
|
+
// sp[1]: constructor function
|
688
|
+
// sp[2]: number of arguments (smi-tagged)
|
689
|
+
__ ldr(r1, MemOperand(sp, kPointerSize));
|
690
|
+
__ push(r1); // Constructor function.
|
691
|
+
__ push(r4); // Receiver.
|
692
|
+
|
693
|
+
// Reload the number of arguments from the stack.
|
694
|
+
// r1: constructor function
|
695
|
+
// sp[0]: receiver
|
696
|
+
// sp[1]: constructor function
|
697
|
+
// sp[2]: receiver
|
698
|
+
// sp[3]: constructor function
|
699
|
+
// sp[4]: number of arguments (smi-tagged)
|
700
|
+
__ ldr(r3, MemOperand(sp, 4 * kPointerSize));
|
701
|
+
|
702
|
+
// Setup pointer to last argument.
|
703
|
+
__ add(r2, fp, Operand(StandardFrameConstants::kCallerSPOffset));
|
704
|
+
|
705
|
+
// Setup number of arguments for function call below
|
706
|
+
__ mov(r0, Operand(r3, LSR, kSmiTagSize));
|
707
|
+
|
708
|
+
// Copy arguments and receiver to the expression stack.
|
709
|
+
// r0: number of arguments
|
710
|
+
// r2: address of last argument (caller sp)
|
711
|
+
// r1: constructor function
|
712
|
+
// r3: number of arguments (smi-tagged)
|
713
|
+
// sp[0]: receiver
|
714
|
+
// sp[1]: constructor function
|
715
|
+
// sp[2]: receiver
|
716
|
+
// sp[3]: constructor function
|
717
|
+
// sp[4]: number of arguments (smi-tagged)
|
718
|
+
Label loop, entry;
|
719
|
+
__ b(&entry);
|
720
|
+
__ bind(&loop);
|
721
|
+
__ ldr(ip, MemOperand(r2, r3, LSL, kPointerSizeLog2 - 1));
|
722
|
+
__ push(ip);
|
723
|
+
__ bind(&entry);
|
724
|
+
__ sub(r3, r3, Operand(2), SetCC);
|
725
|
+
__ b(ge, &loop);
|
726
|
+
|
727
|
+
// Call the function.
|
728
|
+
// r0: number of arguments
|
729
|
+
// r1: constructor function
|
730
|
+
ParameterCount actual(r0);
|
731
|
+
__ InvokeFunction(r1, actual, CALL_FUNCTION);
|
732
|
+
|
733
|
+
// Pop the function from the stack.
|
734
|
+
// sp[0]: constructor function
|
735
|
+
// sp[2]: receiver
|
736
|
+
// sp[3]: constructor function
|
737
|
+
// sp[4]: number of arguments (smi-tagged)
|
738
|
+
__ pop();
|
739
|
+
|
740
|
+
// Restore context from the frame.
|
741
|
+
// r0: result
|
742
|
+
// sp[0]: receiver
|
743
|
+
// sp[1]: constructor function
|
744
|
+
// sp[2]: number of arguments (smi-tagged)
|
745
|
+
__ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
|
746
|
+
|
747
|
+
// If the result is an object (in the ECMA sense), we should get rid
|
748
|
+
// of the receiver and use the result; see ECMA-262 section 13.2.2-7
|
749
|
+
// on page 74.
|
750
|
+
Label use_receiver, exit;
|
751
|
+
|
752
|
+
// If the result is a smi, it is *not* an object in the ECMA sense.
|
753
|
+
// r0: result
|
754
|
+
// sp[0]: receiver (newly allocated object)
|
755
|
+
// sp[1]: constructor function
|
756
|
+
// sp[2]: number of arguments (smi-tagged)
|
757
|
+
__ tst(r0, Operand(kSmiTagMask));
|
758
|
+
__ b(eq, &use_receiver);
|
759
|
+
|
760
|
+
// If the type of the result (stored in its map) is less than
|
761
|
+
// FIRST_JS_OBJECT_TYPE, it is not an object in the ECMA sense.
|
762
|
+
__ CompareObjectType(r0, r3, r3, FIRST_JS_OBJECT_TYPE);
|
763
|
+
__ b(ge, &exit);
|
764
|
+
|
765
|
+
// Throw away the result of the constructor invocation and use the
|
766
|
+
// on-stack receiver as the result.
|
767
|
+
__ bind(&use_receiver);
|
768
|
+
__ ldr(r0, MemOperand(sp));
|
769
|
+
|
770
|
+
// Remove receiver from the stack, remove caller arguments, and
|
771
|
+
// return.
|
772
|
+
__ bind(&exit);
|
773
|
+
// r0: result
|
774
|
+
// sp[0]: receiver (newly allocated object)
|
775
|
+
// sp[1]: constructor function
|
776
|
+
// sp[2]: number of arguments (smi-tagged)
|
777
|
+
__ ldr(r1, MemOperand(sp, 2 * kPointerSize));
|
778
|
+
__ LeaveConstructFrame();
|
779
|
+
__ add(sp, sp, Operand(r1, LSL, kPointerSizeLog2 - 1));
|
780
|
+
__ add(sp, sp, Operand(kPointerSize));
|
781
|
+
__ IncrementCounter(&Counters::constructed_objects, 1, r1, r2);
|
782
|
+
__ Jump(lr);
|
783
|
+
}
|
784
|
+
|
785
|
+
|
786
|
+
static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm,
|
787
|
+
bool is_construct) {
|
788
|
+
// Called from Generate_JS_Entry
|
789
|
+
// r0: code entry
|
790
|
+
// r1: function
|
791
|
+
// r2: receiver
|
792
|
+
// r3: argc
|
793
|
+
// r4: argv
|
794
|
+
// r5-r7, cp may be clobbered
|
795
|
+
|
796
|
+
// Clear the context before we push it when entering the JS frame.
|
797
|
+
__ mov(cp, Operand(0));
|
798
|
+
|
799
|
+
// Enter an internal frame.
|
800
|
+
__ EnterInternalFrame();
|
801
|
+
|
802
|
+
// Set up the context from the function argument.
|
803
|
+
__ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset));
|
804
|
+
|
805
|
+
// Set up the roots register.
|
806
|
+
ExternalReference roots_address = ExternalReference::roots_address();
|
807
|
+
__ mov(r10, Operand(roots_address));
|
808
|
+
|
809
|
+
// Push the function and the receiver onto the stack.
|
810
|
+
__ push(r1);
|
811
|
+
__ push(r2);
|
812
|
+
|
813
|
+
// Copy arguments to the stack in a loop.
|
814
|
+
// r1: function
|
815
|
+
// r3: argc
|
816
|
+
// r4: argv, i.e. points to first arg
|
817
|
+
Label loop, entry;
|
818
|
+
__ add(r2, r4, Operand(r3, LSL, kPointerSizeLog2));
|
819
|
+
// r2 points past last arg.
|
820
|
+
__ b(&entry);
|
821
|
+
__ bind(&loop);
|
822
|
+
__ ldr(r0, MemOperand(r4, kPointerSize, PostIndex)); // read next parameter
|
823
|
+
__ ldr(r0, MemOperand(r0)); // dereference handle
|
824
|
+
__ push(r0); // push parameter
|
825
|
+
__ bind(&entry);
|
826
|
+
__ cmp(r4, Operand(r2));
|
827
|
+
__ b(ne, &loop);
|
828
|
+
|
829
|
+
// Initialize all JavaScript callee-saved registers, since they will be seen
|
830
|
+
// by the garbage collector as part of handlers.
|
831
|
+
__ LoadRoot(r4, Heap::kUndefinedValueRootIndex);
|
832
|
+
__ mov(r5, Operand(r4));
|
833
|
+
__ mov(r6, Operand(r4));
|
834
|
+
__ mov(r7, Operand(r4));
|
835
|
+
if (kR9Available == 1) {
|
836
|
+
__ mov(r9, Operand(r4));
|
837
|
+
}
|
838
|
+
|
839
|
+
// Invoke the code and pass argc as r0.
|
840
|
+
__ mov(r0, Operand(r3));
|
841
|
+
if (is_construct) {
|
842
|
+
__ Call(Handle<Code>(Builtins::builtin(Builtins::JSConstructCall)),
|
843
|
+
RelocInfo::CODE_TARGET);
|
844
|
+
} else {
|
845
|
+
ParameterCount actual(r0);
|
846
|
+
__ InvokeFunction(r1, actual, CALL_FUNCTION);
|
847
|
+
}
|
848
|
+
|
849
|
+
// Exit the JS frame and remove the parameters (except function), and return.
|
850
|
+
// Respect ABI stack constraint.
|
851
|
+
__ LeaveInternalFrame();
|
852
|
+
__ Jump(lr);
|
853
|
+
|
854
|
+
// r0: result
|
855
|
+
}
|
856
|
+
|
857
|
+
|
858
|
+
void Builtins::Generate_JSEntryTrampoline(MacroAssembler* masm) {
|
859
|
+
Generate_JSEntryTrampolineHelper(masm, false);
|
860
|
+
}
|
861
|
+
|
862
|
+
|
863
|
+
void Builtins::Generate_JSConstructEntryTrampoline(MacroAssembler* masm) {
|
864
|
+
Generate_JSEntryTrampolineHelper(masm, true);
|
865
|
+
}
|
866
|
+
|
867
|
+
|
868
|
+
void Builtins::Generate_FunctionCall(MacroAssembler* masm) {
|
869
|
+
// 1. Make sure we have at least one argument.
|
870
|
+
// r0: actual number of argument
|
871
|
+
{ Label done;
|
872
|
+
__ tst(r0, Operand(r0));
|
873
|
+
__ b(ne, &done);
|
874
|
+
__ LoadRoot(r2, Heap::kUndefinedValueRootIndex);
|
875
|
+
__ push(r2);
|
876
|
+
__ add(r0, r0, Operand(1));
|
877
|
+
__ bind(&done);
|
878
|
+
}
|
879
|
+
|
880
|
+
// 2. Get the function to call from the stack.
|
881
|
+
// r0: actual number of argument
|
882
|
+
{ Label done, non_function, function;
|
883
|
+
__ ldr(r1, MemOperand(sp, r0, LSL, kPointerSizeLog2));
|
884
|
+
__ tst(r1, Operand(kSmiTagMask));
|
885
|
+
__ b(eq, &non_function);
|
886
|
+
__ CompareObjectType(r1, r2, r2, JS_FUNCTION_TYPE);
|
887
|
+
__ b(eq, &function);
|
888
|
+
|
889
|
+
// Non-function called: Clear the function to force exception.
|
890
|
+
__ bind(&non_function);
|
891
|
+
__ mov(r1, Operand(0));
|
892
|
+
__ b(&done);
|
893
|
+
|
894
|
+
// Change the context eagerly because it will be used below to get the
|
895
|
+
// right global object.
|
896
|
+
__ bind(&function);
|
897
|
+
__ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset));
|
898
|
+
|
899
|
+
__ bind(&done);
|
900
|
+
}
|
901
|
+
|
902
|
+
// 3. Make sure first argument is an object; convert if necessary.
|
903
|
+
// r0: actual number of arguments
|
904
|
+
// r1: function
|
905
|
+
{ Label call_to_object, use_global_receiver, patch_receiver, done;
|
906
|
+
__ add(r2, sp, Operand(r0, LSL, kPointerSizeLog2));
|
907
|
+
__ ldr(r2, MemOperand(r2, -kPointerSize));
|
908
|
+
|
909
|
+
// r0: actual number of arguments
|
910
|
+
// r1: function
|
911
|
+
// r2: first argument
|
912
|
+
__ tst(r2, Operand(kSmiTagMask));
|
913
|
+
__ b(eq, &call_to_object);
|
914
|
+
|
915
|
+
__ LoadRoot(r3, Heap::kNullValueRootIndex);
|
916
|
+
__ cmp(r2, r3);
|
917
|
+
__ b(eq, &use_global_receiver);
|
918
|
+
__ LoadRoot(r3, Heap::kUndefinedValueRootIndex);
|
919
|
+
__ cmp(r2, r3);
|
920
|
+
__ b(eq, &use_global_receiver);
|
921
|
+
|
922
|
+
__ CompareObjectType(r2, r3, r3, FIRST_JS_OBJECT_TYPE);
|
923
|
+
__ b(lt, &call_to_object);
|
924
|
+
__ cmp(r3, Operand(LAST_JS_OBJECT_TYPE));
|
925
|
+
__ b(le, &done);
|
926
|
+
|
927
|
+
__ bind(&call_to_object);
|
928
|
+
__ EnterInternalFrame();
|
929
|
+
|
930
|
+
// Store number of arguments and function across the call into the runtime.
|
931
|
+
__ mov(r0, Operand(r0, LSL, kSmiTagSize));
|
932
|
+
__ push(r0);
|
933
|
+
__ push(r1);
|
934
|
+
|
935
|
+
__ push(r2);
|
936
|
+
__ InvokeBuiltin(Builtins::TO_OBJECT, CALL_JS);
|
937
|
+
__ mov(r2, r0);
|
938
|
+
|
939
|
+
// Restore number of arguments and function.
|
940
|
+
__ pop(r1);
|
941
|
+
__ pop(r0);
|
942
|
+
__ mov(r0, Operand(r0, ASR, kSmiTagSize));
|
943
|
+
|
944
|
+
__ LeaveInternalFrame();
|
945
|
+
__ b(&patch_receiver);
|
946
|
+
|
947
|
+
// Use the global receiver object from the called function as the receiver.
|
948
|
+
__ bind(&use_global_receiver);
|
949
|
+
const int kGlobalIndex =
|
950
|
+
Context::kHeaderSize + Context::GLOBAL_INDEX * kPointerSize;
|
951
|
+
__ ldr(r2, FieldMemOperand(cp, kGlobalIndex));
|
952
|
+
__ ldr(r2, FieldMemOperand(r2, GlobalObject::kGlobalContextOffset));
|
953
|
+
__ ldr(r2, FieldMemOperand(r2, kGlobalIndex));
|
954
|
+
__ ldr(r2, FieldMemOperand(r2, GlobalObject::kGlobalReceiverOffset));
|
955
|
+
|
956
|
+
__ bind(&patch_receiver);
|
957
|
+
__ add(r3, sp, Operand(r0, LSL, kPointerSizeLog2));
|
958
|
+
__ str(r2, MemOperand(r3, -kPointerSize));
|
959
|
+
|
960
|
+
__ bind(&done);
|
961
|
+
}
|
962
|
+
|
963
|
+
// 4. Shift stuff one slot down the stack
|
964
|
+
// r0: actual number of arguments (including call() receiver)
|
965
|
+
// r1: function
|
966
|
+
{ Label loop;
|
967
|
+
// Calculate the copy start address (destination). Copy end address is sp.
|
968
|
+
__ add(r2, sp, Operand(r0, LSL, kPointerSizeLog2));
|
969
|
+
__ add(r2, r2, Operand(kPointerSize)); // copy receiver too
|
970
|
+
|
971
|
+
__ bind(&loop);
|
972
|
+
__ ldr(ip, MemOperand(r2, -kPointerSize));
|
973
|
+
__ str(ip, MemOperand(r2));
|
974
|
+
__ sub(r2, r2, Operand(kPointerSize));
|
975
|
+
__ cmp(r2, sp);
|
976
|
+
__ b(ne, &loop);
|
977
|
+
}
|
978
|
+
|
979
|
+
// 5. Adjust the actual number of arguments and remove the top element.
|
980
|
+
// r0: actual number of arguments (including call() receiver)
|
981
|
+
// r1: function
|
982
|
+
__ sub(r0, r0, Operand(1));
|
983
|
+
__ add(sp, sp, Operand(kPointerSize));
|
984
|
+
|
985
|
+
// 6. Get the code for the function or the non-function builtin.
|
986
|
+
// If number of expected arguments matches, then call. Otherwise restart
|
987
|
+
// the arguments adaptor stub.
|
988
|
+
// r0: actual number of arguments
|
989
|
+
// r1: function
|
990
|
+
{ Label invoke;
|
991
|
+
__ tst(r1, r1);
|
992
|
+
__ b(ne, &invoke);
|
993
|
+
__ mov(r2, Operand(0)); // expected arguments is 0 for CALL_NON_FUNCTION
|
994
|
+
__ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION);
|
995
|
+
__ Jump(Handle<Code>(builtin(ArgumentsAdaptorTrampoline)),
|
996
|
+
RelocInfo::CODE_TARGET);
|
997
|
+
|
998
|
+
__ bind(&invoke);
|
999
|
+
__ ldr(r3, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset));
|
1000
|
+
__ ldr(r2,
|
1001
|
+
FieldMemOperand(r3,
|
1002
|
+
SharedFunctionInfo::kFormalParameterCountOffset));
|
1003
|
+
__ ldr(r3,
|
1004
|
+
MemOperand(r3, SharedFunctionInfo::kCodeOffset - kHeapObjectTag));
|
1005
|
+
__ add(r3, r3, Operand(Code::kHeaderSize - kHeapObjectTag));
|
1006
|
+
__ cmp(r2, r0); // Check formal and actual parameter counts.
|
1007
|
+
__ Jump(Handle<Code>(builtin(ArgumentsAdaptorTrampoline)),
|
1008
|
+
RelocInfo::CODE_TARGET, ne);
|
1009
|
+
|
1010
|
+
// 7. Jump to the code in r3 without checking arguments.
|
1011
|
+
ParameterCount expected(0);
|
1012
|
+
__ InvokeCode(r3, expected, expected, JUMP_FUNCTION);
|
1013
|
+
}
|
1014
|
+
}
|
1015
|
+
|
1016
|
+
|
1017
|
+
void Builtins::Generate_FunctionApply(MacroAssembler* masm) {
|
1018
|
+
const int kIndexOffset = -5 * kPointerSize;
|
1019
|
+
const int kLimitOffset = -4 * kPointerSize;
|
1020
|
+
const int kArgsOffset = 2 * kPointerSize;
|
1021
|
+
const int kRecvOffset = 3 * kPointerSize;
|
1022
|
+
const int kFunctionOffset = 4 * kPointerSize;
|
1023
|
+
|
1024
|
+
__ EnterInternalFrame();
|
1025
|
+
|
1026
|
+
__ ldr(r0, MemOperand(fp, kFunctionOffset)); // get the function
|
1027
|
+
__ push(r0);
|
1028
|
+
__ ldr(r0, MemOperand(fp, kArgsOffset)); // get the args array
|
1029
|
+
__ push(r0);
|
1030
|
+
__ InvokeBuiltin(Builtins::APPLY_PREPARE, CALL_JS);
|
1031
|
+
|
1032
|
+
// Check the stack for overflow. We are not trying need to catch
|
1033
|
+
// interruptions (e.g. debug break and preemption) here, so the "real stack
|
1034
|
+
// limit" is checked.
|
1035
|
+
Label okay;
|
1036
|
+
__ LoadRoot(r2, Heap::kRealStackLimitRootIndex);
|
1037
|
+
// Make r2 the space we have left. The stack might already be overflowed
|
1038
|
+
// here which will cause r2 to become negative.
|
1039
|
+
__ sub(r2, sp, r2);
|
1040
|
+
// Check if the arguments will overflow the stack.
|
1041
|
+
__ cmp(r2, Operand(r0, LSL, kPointerSizeLog2 - kSmiTagSize));
|
1042
|
+
__ b(gt, &okay); // Signed comparison.
|
1043
|
+
|
1044
|
+
// Out of stack space.
|
1045
|
+
__ ldr(r1, MemOperand(fp, kFunctionOffset));
|
1046
|
+
__ push(r1);
|
1047
|
+
__ push(r0);
|
1048
|
+
__ InvokeBuiltin(Builtins::APPLY_OVERFLOW, CALL_JS);
|
1049
|
+
// End of stack check.
|
1050
|
+
|
1051
|
+
// Push current limit and index.
|
1052
|
+
__ bind(&okay);
|
1053
|
+
__ push(r0); // limit
|
1054
|
+
__ mov(r1, Operand(0)); // initial index
|
1055
|
+
__ push(r1);
|
1056
|
+
|
1057
|
+
// Change context eagerly to get the right global object if necessary.
|
1058
|
+
__ ldr(r0, MemOperand(fp, kFunctionOffset));
|
1059
|
+
__ ldr(cp, FieldMemOperand(r0, JSFunction::kContextOffset));
|
1060
|
+
|
1061
|
+
// Compute the receiver.
|
1062
|
+
Label call_to_object, use_global_receiver, push_receiver;
|
1063
|
+
__ ldr(r0, MemOperand(fp, kRecvOffset));
|
1064
|
+
__ tst(r0, Operand(kSmiTagMask));
|
1065
|
+
__ b(eq, &call_to_object);
|
1066
|
+
__ LoadRoot(r1, Heap::kNullValueRootIndex);
|
1067
|
+
__ cmp(r0, r1);
|
1068
|
+
__ b(eq, &use_global_receiver);
|
1069
|
+
__ LoadRoot(r1, Heap::kUndefinedValueRootIndex);
|
1070
|
+
__ cmp(r0, r1);
|
1071
|
+
__ b(eq, &use_global_receiver);
|
1072
|
+
|
1073
|
+
// Check if the receiver is already a JavaScript object.
|
1074
|
+
// r0: receiver
|
1075
|
+
__ CompareObjectType(r0, r1, r1, FIRST_JS_OBJECT_TYPE);
|
1076
|
+
__ b(lt, &call_to_object);
|
1077
|
+
__ cmp(r1, Operand(LAST_JS_OBJECT_TYPE));
|
1078
|
+
__ b(le, &push_receiver);
|
1079
|
+
|
1080
|
+
// Convert the receiver to a regular object.
|
1081
|
+
// r0: receiver
|
1082
|
+
__ bind(&call_to_object);
|
1083
|
+
__ push(r0);
|
1084
|
+
__ InvokeBuiltin(Builtins::TO_OBJECT, CALL_JS);
|
1085
|
+
__ b(&push_receiver);
|
1086
|
+
|
1087
|
+
// Use the current global receiver object as the receiver.
|
1088
|
+
__ bind(&use_global_receiver);
|
1089
|
+
const int kGlobalOffset =
|
1090
|
+
Context::kHeaderSize + Context::GLOBAL_INDEX * kPointerSize;
|
1091
|
+
__ ldr(r0, FieldMemOperand(cp, kGlobalOffset));
|
1092
|
+
__ ldr(r0, FieldMemOperand(r0, GlobalObject::kGlobalContextOffset));
|
1093
|
+
__ ldr(r0, FieldMemOperand(r0, kGlobalOffset));
|
1094
|
+
__ ldr(r0, FieldMemOperand(r0, GlobalObject::kGlobalReceiverOffset));
|
1095
|
+
|
1096
|
+
// Push the receiver.
|
1097
|
+
// r0: receiver
|
1098
|
+
__ bind(&push_receiver);
|
1099
|
+
__ push(r0);
|
1100
|
+
|
1101
|
+
// Copy all arguments from the array to the stack.
|
1102
|
+
Label entry, loop;
|
1103
|
+
__ ldr(r0, MemOperand(fp, kIndexOffset));
|
1104
|
+
__ b(&entry);
|
1105
|
+
|
1106
|
+
// Load the current argument from the arguments array and push it to the
|
1107
|
+
// stack.
|
1108
|
+
// r0: current argument index
|
1109
|
+
__ bind(&loop);
|
1110
|
+
__ ldr(r1, MemOperand(fp, kArgsOffset));
|
1111
|
+
__ push(r1);
|
1112
|
+
__ push(r0);
|
1113
|
+
|
1114
|
+
// Call the runtime to access the property in the arguments array.
|
1115
|
+
__ CallRuntime(Runtime::kGetProperty, 2);
|
1116
|
+
__ push(r0);
|
1117
|
+
|
1118
|
+
// Use inline caching to access the arguments.
|
1119
|
+
__ ldr(r0, MemOperand(fp, kIndexOffset));
|
1120
|
+
__ add(r0, r0, Operand(1 << kSmiTagSize));
|
1121
|
+
__ str(r0, MemOperand(fp, kIndexOffset));
|
1122
|
+
|
1123
|
+
// Test if the copy loop has finished copying all the elements from the
|
1124
|
+
// arguments object.
|
1125
|
+
__ bind(&entry);
|
1126
|
+
__ ldr(r1, MemOperand(fp, kLimitOffset));
|
1127
|
+
__ cmp(r0, r1);
|
1128
|
+
__ b(ne, &loop);
|
1129
|
+
|
1130
|
+
// Invoke the function.
|
1131
|
+
ParameterCount actual(r0);
|
1132
|
+
__ mov(r0, Operand(r0, ASR, kSmiTagSize));
|
1133
|
+
__ ldr(r1, MemOperand(fp, kFunctionOffset));
|
1134
|
+
__ InvokeFunction(r1, actual, CALL_FUNCTION);
|
1135
|
+
|
1136
|
+
// Tear down the internal frame and remove function, receiver and args.
|
1137
|
+
__ LeaveInternalFrame();
|
1138
|
+
__ add(sp, sp, Operand(3 * kPointerSize));
|
1139
|
+
__ Jump(lr);
|
1140
|
+
}
|
1141
|
+
|
1142
|
+
|
1143
|
+
static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) {
|
1144
|
+
__ mov(r0, Operand(r0, LSL, kSmiTagSize));
|
1145
|
+
__ mov(r4, Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR)));
|
1146
|
+
__ stm(db_w, sp, r0.bit() | r1.bit() | r4.bit() | fp.bit() | lr.bit());
|
1147
|
+
__ add(fp, sp, Operand(3 * kPointerSize));
|
1148
|
+
}
|
1149
|
+
|
1150
|
+
|
1151
|
+
static void LeaveArgumentsAdaptorFrame(MacroAssembler* masm) {
|
1152
|
+
// ----------- S t a t e -------------
|
1153
|
+
// -- r0 : result being passed through
|
1154
|
+
// -----------------------------------
|
1155
|
+
// Get the number of arguments passed (as a smi), tear down the frame and
|
1156
|
+
// then tear down the parameters.
|
1157
|
+
__ ldr(r1, MemOperand(fp, -3 * kPointerSize));
|
1158
|
+
__ mov(sp, fp);
|
1159
|
+
__ ldm(ia_w, sp, fp.bit() | lr.bit());
|
1160
|
+
__ add(sp, sp, Operand(r1, LSL, kPointerSizeLog2 - kSmiTagSize));
|
1161
|
+
__ add(sp, sp, Operand(kPointerSize)); // adjust for receiver
|
1162
|
+
}
|
1163
|
+
|
1164
|
+
|
1165
|
+
void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
|
1166
|
+
// ----------- S t a t e -------------
|
1167
|
+
// -- r0 : actual number of arguments
|
1168
|
+
// -- r1 : function (passed through to callee)
|
1169
|
+
// -- r2 : expected number of arguments
|
1170
|
+
// -- r3 : code entry to call
|
1171
|
+
// -----------------------------------
|
1172
|
+
|
1173
|
+
Label invoke, dont_adapt_arguments;
|
1174
|
+
|
1175
|
+
Label enough, too_few;
|
1176
|
+
__ cmp(r0, Operand(r2));
|
1177
|
+
__ b(lt, &too_few);
|
1178
|
+
__ cmp(r2, Operand(SharedFunctionInfo::kDontAdaptArgumentsSentinel));
|
1179
|
+
__ b(eq, &dont_adapt_arguments);
|
1180
|
+
|
1181
|
+
{ // Enough parameters: actual >= expected
|
1182
|
+
__ bind(&enough);
|
1183
|
+
EnterArgumentsAdaptorFrame(masm);
|
1184
|
+
|
1185
|
+
// Calculate copy start address into r0 and copy end address into r2.
|
1186
|
+
// r0: actual number of arguments as a smi
|
1187
|
+
// r1: function
|
1188
|
+
// r2: expected number of arguments
|
1189
|
+
// r3: code entry to call
|
1190
|
+
__ add(r0, fp, Operand(r0, LSL, kPointerSizeLog2 - kSmiTagSize));
|
1191
|
+
// adjust for return address and receiver
|
1192
|
+
__ add(r0, r0, Operand(2 * kPointerSize));
|
1193
|
+
__ sub(r2, r0, Operand(r2, LSL, kPointerSizeLog2));
|
1194
|
+
|
1195
|
+
// Copy the arguments (including the receiver) to the new stack frame.
|
1196
|
+
// r0: copy start address
|
1197
|
+
// r1: function
|
1198
|
+
// r2: copy end address
|
1199
|
+
// r3: code entry to call
|
1200
|
+
|
1201
|
+
Label copy;
|
1202
|
+
__ bind(©);
|
1203
|
+
__ ldr(ip, MemOperand(r0, 0));
|
1204
|
+
__ push(ip);
|
1205
|
+
__ cmp(r0, r2); // Compare before moving to next argument.
|
1206
|
+
__ sub(r0, r0, Operand(kPointerSize));
|
1207
|
+
__ b(ne, ©);
|
1208
|
+
|
1209
|
+
__ b(&invoke);
|
1210
|
+
}
|
1211
|
+
|
1212
|
+
{ // Too few parameters: Actual < expected
|
1213
|
+
__ bind(&too_few);
|
1214
|
+
EnterArgumentsAdaptorFrame(masm);
|
1215
|
+
|
1216
|
+
// Calculate copy start address into r0 and copy end address is fp.
|
1217
|
+
// r0: actual number of arguments as a smi
|
1218
|
+
// r1: function
|
1219
|
+
// r2: expected number of arguments
|
1220
|
+
// r3: code entry to call
|
1221
|
+
__ add(r0, fp, Operand(r0, LSL, kPointerSizeLog2 - kSmiTagSize));
|
1222
|
+
|
1223
|
+
// Copy the arguments (including the receiver) to the new stack frame.
|
1224
|
+
// r0: copy start address
|
1225
|
+
// r1: function
|
1226
|
+
// r2: expected number of arguments
|
1227
|
+
// r3: code entry to call
|
1228
|
+
Label copy;
|
1229
|
+
__ bind(©);
|
1230
|
+
// Adjust load for return address and receiver.
|
1231
|
+
__ ldr(ip, MemOperand(r0, 2 * kPointerSize));
|
1232
|
+
__ push(ip);
|
1233
|
+
__ cmp(r0, fp); // Compare before moving to next argument.
|
1234
|
+
__ sub(r0, r0, Operand(kPointerSize));
|
1235
|
+
__ b(ne, ©);
|
1236
|
+
|
1237
|
+
// Fill the remaining expected arguments with undefined.
|
1238
|
+
// r1: function
|
1239
|
+
// r2: expected number of arguments
|
1240
|
+
// r3: code entry to call
|
1241
|
+
__ LoadRoot(ip, Heap::kUndefinedValueRootIndex);
|
1242
|
+
__ sub(r2, fp, Operand(r2, LSL, kPointerSizeLog2));
|
1243
|
+
__ sub(r2, r2, Operand(4 * kPointerSize)); // Adjust for frame.
|
1244
|
+
|
1245
|
+
Label fill;
|
1246
|
+
__ bind(&fill);
|
1247
|
+
__ push(ip);
|
1248
|
+
__ cmp(sp, r2);
|
1249
|
+
__ b(ne, &fill);
|
1250
|
+
}
|
1251
|
+
|
1252
|
+
// Call the entry point.
|
1253
|
+
__ bind(&invoke);
|
1254
|
+
__ Call(r3);
|
1255
|
+
|
1256
|
+
// Exit frame and return.
|
1257
|
+
LeaveArgumentsAdaptorFrame(masm);
|
1258
|
+
__ Jump(lr);
|
1259
|
+
|
1260
|
+
|
1261
|
+
// -------------------------------------------
|
1262
|
+
// Dont adapt arguments.
|
1263
|
+
// -------------------------------------------
|
1264
|
+
__ bind(&dont_adapt_arguments);
|
1265
|
+
__ Jump(r3);
|
1266
|
+
}
|
1267
|
+
|
1268
|
+
|
1269
|
+
#undef __
|
1270
|
+
|
1271
|
+
} } // namespace v8::internal
|