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,236 @@
|
|
1
|
+
// Copyright 2006-2008 the V8 project authors. All rights reserved.
|
2
|
+
// Redistribution and use in source and binary forms, with or without
|
3
|
+
// modification, are permitted provided that the following conditions are
|
4
|
+
// met:
|
5
|
+
//
|
6
|
+
// * Redistributions of source code must retain the above copyright
|
7
|
+
// notice, this list of conditions and the following disclaimer.
|
8
|
+
// * Redistributions in binary form must reproduce the above
|
9
|
+
// copyright notice, this list of conditions and the following
|
10
|
+
// disclaimer in the documentation and/or other materials provided
|
11
|
+
// with the distribution.
|
12
|
+
// * Neither the name of Google Inc. nor the names of its
|
13
|
+
// contributors may be used to endorse or promote products derived
|
14
|
+
// from this software without specific prior written permission.
|
15
|
+
//
|
16
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
|
28
|
+
#ifndef V8_SCOPEINFO_H_
|
29
|
+
#define V8_SCOPEINFO_H_
|
30
|
+
|
31
|
+
#include "variables.h"
|
32
|
+
|
33
|
+
namespace v8 {
|
34
|
+
namespace internal {
|
35
|
+
|
36
|
+
// Scope information represents information about a functions's
|
37
|
+
// scopes (currently only one, because we don't do any inlining)
|
38
|
+
// and the allocation of the scope's variables. Scope information
|
39
|
+
// is stored in a compressed form with Code objects and is used
|
40
|
+
// at runtime (stack dumps, deoptimization, etc.).
|
41
|
+
//
|
42
|
+
// Historical note: In other VMs built by this team, ScopeInfo was
|
43
|
+
// usually called DebugInfo since the information was used (among
|
44
|
+
// other things) for on-demand debugging (Self, Smalltalk). However,
|
45
|
+
// DebugInfo seems misleading, since this information is primarily used
|
46
|
+
// in debugging-unrelated contexts.
|
47
|
+
|
48
|
+
// Forward defined as
|
49
|
+
// template <class Allocator = FreeStoreAllocationPolicy> class ScopeInfo;
|
50
|
+
template<class Allocator>
|
51
|
+
class ScopeInfo BASE_EMBEDDED {
|
52
|
+
public:
|
53
|
+
// Create a ScopeInfo instance from a scope.
|
54
|
+
explicit ScopeInfo(Scope* scope);
|
55
|
+
|
56
|
+
// Create a ScopeInfo instance from a Code object.
|
57
|
+
explicit ScopeInfo(Code* code);
|
58
|
+
|
59
|
+
// Write the ScopeInfo data into a Code object, and returns the
|
60
|
+
// amount of space that was needed. If no Code object is provided
|
61
|
+
// (NULL handle), Serialize() only returns the amount of space needed.
|
62
|
+
//
|
63
|
+
// This operations requires that the Code object has the correct amount
|
64
|
+
// of space for the ScopeInfo data; otherwise the operation fails (fatal
|
65
|
+
// error). Any existing scope info in the Code object is simply overwritten.
|
66
|
+
int Serialize(Code* code);
|
67
|
+
|
68
|
+
// Garbage collection support for scope info embedded in Code objects.
|
69
|
+
// This code is in ScopeInfo because only here we should have to know
|
70
|
+
// about the encoding.
|
71
|
+
static void IterateScopeInfo(Code* code, ObjectVisitor* v);
|
72
|
+
|
73
|
+
|
74
|
+
// --------------------------------------------------------------------------
|
75
|
+
// Lookup
|
76
|
+
|
77
|
+
Handle<String> function_name() const { return function_name_; }
|
78
|
+
|
79
|
+
Handle<String> parameter_name(int i) const { return parameters_[i]; }
|
80
|
+
int number_of_parameters() const { return parameters_.length(); }
|
81
|
+
|
82
|
+
Handle<String> stack_slot_name(int i) const { return stack_slots_[i]; }
|
83
|
+
int number_of_stack_slots() const { return stack_slots_.length(); }
|
84
|
+
|
85
|
+
Handle<String> context_slot_name(int i) const {
|
86
|
+
return context_slots_[i - Context::MIN_CONTEXT_SLOTS];
|
87
|
+
}
|
88
|
+
int number_of_context_slots() const {
|
89
|
+
int l = context_slots_.length();
|
90
|
+
return l == 0 ? 0 : l + Context::MIN_CONTEXT_SLOTS;
|
91
|
+
}
|
92
|
+
|
93
|
+
Handle<String> LocalName(int i) const;
|
94
|
+
int NumberOfLocals() const;
|
95
|
+
|
96
|
+
// --------------------------------------------------------------------------
|
97
|
+
// The following functions provide quick access to scope info details
|
98
|
+
// for runtime routines w/o the need to explicitly create a ScopeInfo
|
99
|
+
// object.
|
100
|
+
//
|
101
|
+
// ScopeInfo is the only class which should have to know about the
|
102
|
+
// encoding of it's information in a Code object, which is why these
|
103
|
+
// functions are in this class.
|
104
|
+
|
105
|
+
// Does this scope call eval.
|
106
|
+
static bool CallsEval(Code* code);
|
107
|
+
|
108
|
+
// Return the number of stack slots for code.
|
109
|
+
static int NumberOfStackSlots(Code* code);
|
110
|
+
|
111
|
+
// Return the number of context slots for code.
|
112
|
+
static int NumberOfContextSlots(Code* code);
|
113
|
+
|
114
|
+
// Lookup support for scope info embedded in Code objects. Returns
|
115
|
+
// the stack slot index for a given slot name if the slot is
|
116
|
+
// present; otherwise returns a value < 0. The name must be a symbol
|
117
|
+
// (canonicalized).
|
118
|
+
static int StackSlotIndex(Code* code, String* name);
|
119
|
+
|
120
|
+
// Lookup support for scope info embedded in Code objects. Returns the
|
121
|
+
// context slot index for a given slot name if the slot is present; otherwise
|
122
|
+
// returns a value < 0. The name must be a symbol (canonicalized).
|
123
|
+
// If the slot is present and mode != NULL, sets *mode to the corresponding
|
124
|
+
// mode for that variable.
|
125
|
+
static int ContextSlotIndex(Code* code, String* name, Variable::Mode* mode);
|
126
|
+
|
127
|
+
// Lookup support for scope info embedded in Code objects. Returns the
|
128
|
+
// parameter index for a given parameter name if the parameter is present;
|
129
|
+
// otherwise returns a value < 0. The name must be a symbol (canonicalized).
|
130
|
+
static int ParameterIndex(Code* code, String* name);
|
131
|
+
|
132
|
+
// Lookup support for scope info embedded in Code objects. Returns the
|
133
|
+
// function context slot index if the function name is present (named
|
134
|
+
// function expressions, only), otherwise returns a value < 0. The name
|
135
|
+
// must be a symbol (canonicalized).
|
136
|
+
static int FunctionContextSlotIndex(Code* code, String* name);
|
137
|
+
|
138
|
+
// --------------------------------------------------------------------------
|
139
|
+
// Debugging support
|
140
|
+
|
141
|
+
#ifdef DEBUG
|
142
|
+
void Print();
|
143
|
+
#endif
|
144
|
+
|
145
|
+
private:
|
146
|
+
Handle<String> function_name_;
|
147
|
+
bool calls_eval_;
|
148
|
+
List<Handle<String>, Allocator > parameters_;
|
149
|
+
List<Handle<String>, Allocator > stack_slots_;
|
150
|
+
List<Handle<String>, Allocator > context_slots_;
|
151
|
+
List<Variable::Mode, Allocator > context_modes_;
|
152
|
+
};
|
153
|
+
|
154
|
+
class ZoneScopeInfo: public ScopeInfo<ZoneListAllocationPolicy> {
|
155
|
+
public:
|
156
|
+
// Create a ZoneScopeInfo instance from a scope.
|
157
|
+
explicit ZoneScopeInfo(Scope* scope)
|
158
|
+
: ScopeInfo<ZoneListAllocationPolicy>(scope) {}
|
159
|
+
|
160
|
+
// Create a ZoneScopeInfo instance from a Code object.
|
161
|
+
explicit ZoneScopeInfo(Code* code)
|
162
|
+
: ScopeInfo<ZoneListAllocationPolicy>(code) {}
|
163
|
+
};
|
164
|
+
|
165
|
+
|
166
|
+
// Cache for mapping (code, property name) into context slot index.
|
167
|
+
// The cache contains both positive and negative results.
|
168
|
+
// Slot index equals -1 means the property is absent.
|
169
|
+
// Cleared at startup and prior to mark sweep collection.
|
170
|
+
class ContextSlotCache {
|
171
|
+
public:
|
172
|
+
// Lookup context slot index for (code, name).
|
173
|
+
// If absent, kNotFound is returned.
|
174
|
+
static int Lookup(Code* code,
|
175
|
+
String* name,
|
176
|
+
Variable::Mode* mode);
|
177
|
+
|
178
|
+
// Update an element in the cache.
|
179
|
+
static void Update(Code* code,
|
180
|
+
String* name,
|
181
|
+
Variable::Mode mode,
|
182
|
+
int slot_index);
|
183
|
+
|
184
|
+
// Clear the cache.
|
185
|
+
static void Clear();
|
186
|
+
|
187
|
+
static const int kNotFound = -2;
|
188
|
+
private:
|
189
|
+
inline static int Hash(Code* code, String* name);
|
190
|
+
|
191
|
+
#ifdef DEBUG
|
192
|
+
static void ValidateEntry(Code* code,
|
193
|
+
String* name,
|
194
|
+
Variable::Mode mode,
|
195
|
+
int slot_index);
|
196
|
+
#endif
|
197
|
+
|
198
|
+
static const int kLength = 256;
|
199
|
+
struct Key {
|
200
|
+
Code* code;
|
201
|
+
String* name;
|
202
|
+
};
|
203
|
+
|
204
|
+
struct Value {
|
205
|
+
Value(Variable::Mode mode, int index) {
|
206
|
+
ASSERT(ModeField::is_valid(mode));
|
207
|
+
ASSERT(IndexField::is_valid(index));
|
208
|
+
value_ = ModeField::encode(mode) | IndexField::encode(index);
|
209
|
+
ASSERT(mode == this->mode());
|
210
|
+
ASSERT(index == this->index());
|
211
|
+
}
|
212
|
+
|
213
|
+
inline Value(uint32_t value) : value_(value) {}
|
214
|
+
|
215
|
+
uint32_t raw() { return value_; }
|
216
|
+
|
217
|
+
Variable::Mode mode() { return ModeField::decode(value_); }
|
218
|
+
|
219
|
+
int index() { return IndexField::decode(value_); }
|
220
|
+
|
221
|
+
// Bit fields in value_ (type, shift, size). Must be public so the
|
222
|
+
// constants can be embedded in generated code.
|
223
|
+
class ModeField: public BitField<Variable::Mode, 0, 3> {};
|
224
|
+
class IndexField: public BitField<int, 3, 32-3> {};
|
225
|
+
private:
|
226
|
+
uint32_t value_;
|
227
|
+
};
|
228
|
+
|
229
|
+
static Key keys_[kLength];
|
230
|
+
static uint32_t values_[kLength];
|
231
|
+
};
|
232
|
+
|
233
|
+
|
234
|
+
} } // namespace v8::internal
|
235
|
+
|
236
|
+
#endif // V8_SCOPEINFO_H_
|
@@ -0,0 +1,963 @@
|
|
1
|
+
// Copyright 2006-2008 the V8 project authors. All rights reserved.
|
2
|
+
// Redistribution and use in source and binary forms, with or without
|
3
|
+
// modification, are permitted provided that the following conditions are
|
4
|
+
// met:
|
5
|
+
//
|
6
|
+
// * Redistributions of source code must retain the above copyright
|
7
|
+
// notice, this list of conditions and the following disclaimer.
|
8
|
+
// * Redistributions in binary form must reproduce the above
|
9
|
+
// copyright notice, this list of conditions and the following
|
10
|
+
// disclaimer in the documentation and/or other materials provided
|
11
|
+
// with the distribution.
|
12
|
+
// * Neither the name of Google Inc. nor the names of its
|
13
|
+
// contributors may be used to endorse or promote products derived
|
14
|
+
// from this software without specific prior written permission.
|
15
|
+
//
|
16
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
|
28
|
+
#include "v8.h"
|
29
|
+
|
30
|
+
#include "prettyprinter.h"
|
31
|
+
#include "scopeinfo.h"
|
32
|
+
#include "scopes.h"
|
33
|
+
|
34
|
+
namespace v8 {
|
35
|
+
namespace internal {
|
36
|
+
|
37
|
+
// ----------------------------------------------------------------------------
|
38
|
+
// A Zone allocator for use with LocalsMap.
|
39
|
+
|
40
|
+
class ZoneAllocator: public Allocator {
|
41
|
+
public:
|
42
|
+
/* nothing to do */
|
43
|
+
virtual ~ZoneAllocator() {}
|
44
|
+
|
45
|
+
virtual void* New(size_t size) { return Zone::New(static_cast<int>(size)); }
|
46
|
+
|
47
|
+
/* ignored - Zone is freed in one fell swoop */
|
48
|
+
virtual void Delete(void* p) {}
|
49
|
+
};
|
50
|
+
|
51
|
+
|
52
|
+
static ZoneAllocator LocalsMapAllocator;
|
53
|
+
|
54
|
+
|
55
|
+
// ----------------------------------------------------------------------------
|
56
|
+
// Implementation of LocalsMap
|
57
|
+
//
|
58
|
+
// Note: We are storing the handle locations as key values in the hash map.
|
59
|
+
// When inserting a new variable via Declare(), we rely on the fact that
|
60
|
+
// the handle location remains alive for the duration of that variable
|
61
|
+
// use. Because a Variable holding a handle with the same location exists
|
62
|
+
// this is ensured.
|
63
|
+
|
64
|
+
static bool Match(void* key1, void* key2) {
|
65
|
+
String* name1 = *reinterpret_cast<String**>(key1);
|
66
|
+
String* name2 = *reinterpret_cast<String**>(key2);
|
67
|
+
ASSERT(name1->IsSymbol());
|
68
|
+
ASSERT(name2->IsSymbol());
|
69
|
+
return name1 == name2;
|
70
|
+
}
|
71
|
+
|
72
|
+
|
73
|
+
// Dummy constructor
|
74
|
+
VariableMap::VariableMap(bool gotta_love_static_overloading) : HashMap() {}
|
75
|
+
|
76
|
+
VariableMap::VariableMap() : HashMap(Match, &LocalsMapAllocator, 8) {}
|
77
|
+
VariableMap::~VariableMap() {}
|
78
|
+
|
79
|
+
|
80
|
+
Variable* VariableMap::Declare(Scope* scope,
|
81
|
+
Handle<String> name,
|
82
|
+
Variable::Mode mode,
|
83
|
+
bool is_valid_lhs,
|
84
|
+
Variable::Kind kind) {
|
85
|
+
HashMap::Entry* p = HashMap::Lookup(name.location(), name->Hash(), true);
|
86
|
+
if (p->value == NULL) {
|
87
|
+
// The variable has not been declared yet -> insert it.
|
88
|
+
ASSERT(p->key == name.location());
|
89
|
+
p->value = new Variable(scope, name, mode, is_valid_lhs, kind);
|
90
|
+
}
|
91
|
+
return reinterpret_cast<Variable*>(p->value);
|
92
|
+
}
|
93
|
+
|
94
|
+
|
95
|
+
Variable* VariableMap::Lookup(Handle<String> name) {
|
96
|
+
HashMap::Entry* p = HashMap::Lookup(name.location(), name->Hash(), false);
|
97
|
+
if (p != NULL) {
|
98
|
+
ASSERT(*reinterpret_cast<String**>(p->key) == *name);
|
99
|
+
ASSERT(p->value != NULL);
|
100
|
+
return reinterpret_cast<Variable*>(p->value);
|
101
|
+
}
|
102
|
+
return NULL;
|
103
|
+
}
|
104
|
+
|
105
|
+
|
106
|
+
// ----------------------------------------------------------------------------
|
107
|
+
// Implementation of Scope
|
108
|
+
|
109
|
+
|
110
|
+
// Dummy constructor
|
111
|
+
Scope::Scope(Type type)
|
112
|
+
: outer_scope_(NULL),
|
113
|
+
inner_scopes_(0),
|
114
|
+
type_(type),
|
115
|
+
scope_name_(Factory::empty_symbol()),
|
116
|
+
variables_(false),
|
117
|
+
temps_(0),
|
118
|
+
params_(0),
|
119
|
+
dynamics_(NULL),
|
120
|
+
unresolved_(0),
|
121
|
+
decls_(0),
|
122
|
+
receiver_(NULL),
|
123
|
+
function_(NULL),
|
124
|
+
arguments_(NULL),
|
125
|
+
arguments_shadow_(NULL),
|
126
|
+
illegal_redecl_(NULL),
|
127
|
+
scope_inside_with_(false),
|
128
|
+
scope_contains_with_(false),
|
129
|
+
scope_calls_eval_(false),
|
130
|
+
outer_scope_calls_eval_(false),
|
131
|
+
inner_scope_calls_eval_(false),
|
132
|
+
outer_scope_is_eval_scope_(false),
|
133
|
+
force_eager_compilation_(false),
|
134
|
+
num_stack_slots_(0),
|
135
|
+
num_heap_slots_(0) {
|
136
|
+
}
|
137
|
+
|
138
|
+
|
139
|
+
Scope::Scope(Scope* outer_scope, Type type)
|
140
|
+
: outer_scope_(outer_scope),
|
141
|
+
inner_scopes_(4),
|
142
|
+
type_(type),
|
143
|
+
scope_name_(Factory::empty_symbol()),
|
144
|
+
temps_(4),
|
145
|
+
params_(4),
|
146
|
+
dynamics_(NULL),
|
147
|
+
unresolved_(16),
|
148
|
+
decls_(4),
|
149
|
+
receiver_(NULL),
|
150
|
+
function_(NULL),
|
151
|
+
arguments_(NULL),
|
152
|
+
arguments_shadow_(NULL),
|
153
|
+
illegal_redecl_(NULL),
|
154
|
+
scope_inside_with_(false),
|
155
|
+
scope_contains_with_(false),
|
156
|
+
scope_calls_eval_(false),
|
157
|
+
outer_scope_calls_eval_(false),
|
158
|
+
inner_scope_calls_eval_(false),
|
159
|
+
outer_scope_is_eval_scope_(false),
|
160
|
+
force_eager_compilation_(false),
|
161
|
+
num_stack_slots_(0),
|
162
|
+
num_heap_slots_(0) {
|
163
|
+
// At some point we might want to provide outer scopes to
|
164
|
+
// eval scopes (by walking the stack and reading the scope info).
|
165
|
+
// In that case, the ASSERT below needs to be adjusted.
|
166
|
+
ASSERT((type == GLOBAL_SCOPE || type == EVAL_SCOPE) == (outer_scope == NULL));
|
167
|
+
ASSERT(!HasIllegalRedeclaration());
|
168
|
+
}
|
169
|
+
|
170
|
+
|
171
|
+
void Scope::Initialize(bool inside_with) {
|
172
|
+
// Add this scope as a new inner scope of the outer scope.
|
173
|
+
if (outer_scope_ != NULL) {
|
174
|
+
outer_scope_->inner_scopes_.Add(this);
|
175
|
+
scope_inside_with_ = outer_scope_->scope_inside_with_ || inside_with;
|
176
|
+
} else {
|
177
|
+
scope_inside_with_ = inside_with;
|
178
|
+
}
|
179
|
+
|
180
|
+
// Declare convenience variables.
|
181
|
+
// Declare and allocate receiver (even for the global scope, and even
|
182
|
+
// if naccesses_ == 0).
|
183
|
+
// NOTE: When loading parameters in the global scope, we must take
|
184
|
+
// care not to access them as properties of the global object, but
|
185
|
+
// instead load them directly from the stack. Currently, the only
|
186
|
+
// such parameter is 'this' which is passed on the stack when
|
187
|
+
// invoking scripts
|
188
|
+
Variable* var =
|
189
|
+
variables_.Declare(this, Factory::this_symbol(), Variable::VAR,
|
190
|
+
false, Variable::THIS);
|
191
|
+
var->rewrite_ = new Slot(var, Slot::PARAMETER, -1);
|
192
|
+
receiver_ = var;
|
193
|
+
|
194
|
+
if (is_function_scope()) {
|
195
|
+
// Declare 'arguments' variable which exists in all functions.
|
196
|
+
// Note that it might never be accessed, in which case it won't be
|
197
|
+
// allocated during variable allocation.
|
198
|
+
variables_.Declare(this, Factory::arguments_symbol(), Variable::VAR,
|
199
|
+
true, Variable::ARGUMENTS);
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
Variable* Scope::LocalLookup(Handle<String> name) {
|
206
|
+
return variables_.Lookup(name);
|
207
|
+
}
|
208
|
+
|
209
|
+
|
210
|
+
Variable* Scope::Lookup(Handle<String> name) {
|
211
|
+
for (Scope* scope = this;
|
212
|
+
scope != NULL;
|
213
|
+
scope = scope->outer_scope()) {
|
214
|
+
Variable* var = scope->LocalLookup(name);
|
215
|
+
if (var != NULL) return var;
|
216
|
+
}
|
217
|
+
return NULL;
|
218
|
+
}
|
219
|
+
|
220
|
+
|
221
|
+
Variable* Scope::DeclareFunctionVar(Handle<String> name) {
|
222
|
+
ASSERT(is_function_scope() && function_ == NULL);
|
223
|
+
function_ = new Variable(this, name, Variable::CONST, true, Variable::NORMAL);
|
224
|
+
return function_;
|
225
|
+
}
|
226
|
+
|
227
|
+
|
228
|
+
Variable* Scope::DeclareLocal(Handle<String> name, Variable::Mode mode) {
|
229
|
+
// DYNAMIC variables are introduces during variable allocation,
|
230
|
+
// INTERNAL variables are allocated explicitly, and TEMPORARY
|
231
|
+
// variables are allocated via NewTemporary().
|
232
|
+
ASSERT(mode == Variable::VAR || mode == Variable::CONST);
|
233
|
+
return variables_.Declare(this, name, mode, true, Variable::NORMAL);
|
234
|
+
}
|
235
|
+
|
236
|
+
|
237
|
+
Variable* Scope::DeclareGlobal(Handle<String> name) {
|
238
|
+
ASSERT(is_global_scope());
|
239
|
+
return variables_.Declare(this, name, Variable::DYNAMIC_GLOBAL, true,
|
240
|
+
Variable::NORMAL);
|
241
|
+
}
|
242
|
+
|
243
|
+
|
244
|
+
void Scope::AddParameter(Variable* var) {
|
245
|
+
ASSERT(is_function_scope());
|
246
|
+
ASSERT(LocalLookup(var->name()) == var);
|
247
|
+
params_.Add(var);
|
248
|
+
}
|
249
|
+
|
250
|
+
|
251
|
+
VariableProxy* Scope::NewUnresolved(Handle<String> name, bool inside_with) {
|
252
|
+
// Note that we must not share the unresolved variables with
|
253
|
+
// the same name because they may be removed selectively via
|
254
|
+
// RemoveUnresolved().
|
255
|
+
VariableProxy* proxy = new VariableProxy(name, false, inside_with);
|
256
|
+
unresolved_.Add(proxy);
|
257
|
+
return proxy;
|
258
|
+
}
|
259
|
+
|
260
|
+
|
261
|
+
void Scope::RemoveUnresolved(VariableProxy* var) {
|
262
|
+
// Most likely (always?) any variable we want to remove
|
263
|
+
// was just added before, so we search backwards.
|
264
|
+
for (int i = unresolved_.length(); i-- > 0;) {
|
265
|
+
if (unresolved_[i] == var) {
|
266
|
+
unresolved_.Remove(i);
|
267
|
+
return;
|
268
|
+
}
|
269
|
+
}
|
270
|
+
}
|
271
|
+
|
272
|
+
|
273
|
+
VariableProxy* Scope::NewTemporary(Handle<String> name) {
|
274
|
+
Variable* var = new Variable(this, name, Variable::TEMPORARY, true,
|
275
|
+
Variable::NORMAL);
|
276
|
+
VariableProxy* tmp = new VariableProxy(name, false, false);
|
277
|
+
tmp->BindTo(var);
|
278
|
+
temps_.Add(var);
|
279
|
+
return tmp;
|
280
|
+
}
|
281
|
+
|
282
|
+
|
283
|
+
void Scope::AddDeclaration(Declaration* declaration) {
|
284
|
+
decls_.Add(declaration);
|
285
|
+
}
|
286
|
+
|
287
|
+
|
288
|
+
void Scope::SetIllegalRedeclaration(Expression* expression) {
|
289
|
+
// Only set the illegal redeclaration expression the
|
290
|
+
// first time the function is called.
|
291
|
+
if (!HasIllegalRedeclaration()) {
|
292
|
+
illegal_redecl_ = expression;
|
293
|
+
}
|
294
|
+
ASSERT(HasIllegalRedeclaration());
|
295
|
+
}
|
296
|
+
|
297
|
+
|
298
|
+
void Scope::VisitIllegalRedeclaration(AstVisitor* visitor) {
|
299
|
+
ASSERT(HasIllegalRedeclaration());
|
300
|
+
illegal_redecl_->Accept(visitor);
|
301
|
+
}
|
302
|
+
|
303
|
+
|
304
|
+
template<class Allocator>
|
305
|
+
void Scope::CollectUsedVariables(List<Variable*, Allocator>* locals) {
|
306
|
+
// Collect variables in this scope.
|
307
|
+
// Note that the function_ variable - if present - is not
|
308
|
+
// collected here but handled separately in ScopeInfo
|
309
|
+
// which is the current user of this function).
|
310
|
+
for (int i = 0; i < temps_.length(); i++) {
|
311
|
+
Variable* var = temps_[i];
|
312
|
+
if (var->var_uses()->is_used()) {
|
313
|
+
locals->Add(var);
|
314
|
+
}
|
315
|
+
}
|
316
|
+
for (VariableMap::Entry* p = variables_.Start();
|
317
|
+
p != NULL;
|
318
|
+
p = variables_.Next(p)) {
|
319
|
+
Variable* var = reinterpret_cast<Variable*>(p->value);
|
320
|
+
if (var->var_uses()->is_used()) {
|
321
|
+
locals->Add(var);
|
322
|
+
}
|
323
|
+
}
|
324
|
+
}
|
325
|
+
|
326
|
+
|
327
|
+
// Make sure the method gets instantiated by the template system.
|
328
|
+
template void Scope::CollectUsedVariables(
|
329
|
+
List<Variable*, FreeStoreAllocationPolicy>* locals);
|
330
|
+
template void Scope::CollectUsedVariables(
|
331
|
+
List<Variable*, PreallocatedStorage>* locals);
|
332
|
+
template void Scope::CollectUsedVariables(
|
333
|
+
List<Variable*, ZoneListAllocationPolicy>* locals);
|
334
|
+
|
335
|
+
|
336
|
+
void Scope::AllocateVariables(Handle<Context> context) {
|
337
|
+
ASSERT(outer_scope_ == NULL); // eval or global scopes only
|
338
|
+
|
339
|
+
// 1) Propagate scope information.
|
340
|
+
// If we are in an eval scope, we may have other outer scopes about
|
341
|
+
// which we don't know anything at this point. Thus we must be conservative
|
342
|
+
// and assume they may invoke eval themselves. Eventually we could capture
|
343
|
+
// this information in the ScopeInfo and then use it here (by traversing
|
344
|
+
// the call chain stack, at compile time).
|
345
|
+
bool eval_scope = is_eval_scope();
|
346
|
+
PropagateScopeInfo(eval_scope, eval_scope);
|
347
|
+
|
348
|
+
// 2) Resolve variables.
|
349
|
+
Scope* global_scope = NULL;
|
350
|
+
if (is_global_scope()) global_scope = this;
|
351
|
+
ResolveVariablesRecursively(global_scope, context);
|
352
|
+
|
353
|
+
// 3) Allocate variables.
|
354
|
+
AllocateVariablesRecursively();
|
355
|
+
}
|
356
|
+
|
357
|
+
|
358
|
+
bool Scope::AllowsLazyCompilation() const {
|
359
|
+
return !force_eager_compilation_ && HasTrivialOuterContext();
|
360
|
+
}
|
361
|
+
|
362
|
+
|
363
|
+
bool Scope::HasTrivialContext() const {
|
364
|
+
// A function scope has a trivial context if it always is the global
|
365
|
+
// context. We iteratively scan out the context chain to see if
|
366
|
+
// there is anything that makes this scope non-trivial; otherwise we
|
367
|
+
// return true.
|
368
|
+
for (const Scope* scope = this; scope != NULL; scope = scope->outer_scope_) {
|
369
|
+
if (scope->is_eval_scope()) return false;
|
370
|
+
if (scope->scope_inside_with_) return false;
|
371
|
+
if (scope->num_heap_slots_ > 0) return false;
|
372
|
+
}
|
373
|
+
return true;
|
374
|
+
}
|
375
|
+
|
376
|
+
|
377
|
+
bool Scope::HasTrivialOuterContext() const {
|
378
|
+
Scope* outer = outer_scope_;
|
379
|
+
if (outer == NULL) return true;
|
380
|
+
// Note that the outer context may be trivial in general, but the current
|
381
|
+
// scope may be inside a 'with' statement in which case the outer context
|
382
|
+
// for this scope is not trivial.
|
383
|
+
return !scope_inside_with_ && outer->HasTrivialContext();
|
384
|
+
}
|
385
|
+
|
386
|
+
|
387
|
+
int Scope::ContextChainLength(Scope* scope) {
|
388
|
+
int n = 0;
|
389
|
+
for (Scope* s = this; s != scope; s = s->outer_scope_) {
|
390
|
+
ASSERT(s != NULL); // scope must be in the scope chain
|
391
|
+
if (s->num_heap_slots() > 0) n++;
|
392
|
+
}
|
393
|
+
return n;
|
394
|
+
}
|
395
|
+
|
396
|
+
|
397
|
+
#ifdef DEBUG
|
398
|
+
static const char* Header(Scope::Type type) {
|
399
|
+
switch (type) {
|
400
|
+
case Scope::EVAL_SCOPE: return "eval";
|
401
|
+
case Scope::FUNCTION_SCOPE: return "function";
|
402
|
+
case Scope::GLOBAL_SCOPE: return "global";
|
403
|
+
}
|
404
|
+
UNREACHABLE();
|
405
|
+
return NULL;
|
406
|
+
}
|
407
|
+
|
408
|
+
|
409
|
+
static void Indent(int n, const char* str) {
|
410
|
+
PrintF("%*s%s", n, "", str);
|
411
|
+
}
|
412
|
+
|
413
|
+
|
414
|
+
static void PrintName(Handle<String> name) {
|
415
|
+
SmartPointer<char> s = name->ToCString(DISALLOW_NULLS);
|
416
|
+
PrintF("%s", *s);
|
417
|
+
}
|
418
|
+
|
419
|
+
|
420
|
+
static void PrintVar(PrettyPrinter* printer, int indent, Variable* var) {
|
421
|
+
if (var->var_uses()->is_used() || var->rewrite() != NULL) {
|
422
|
+
Indent(indent, Variable::Mode2String(var->mode()));
|
423
|
+
PrintF(" ");
|
424
|
+
PrintName(var->name());
|
425
|
+
PrintF("; // ");
|
426
|
+
if (var->rewrite() != NULL) PrintF("%s, ", printer->Print(var->rewrite()));
|
427
|
+
if (var->is_accessed_from_inner_scope()) PrintF("inner scope access, ");
|
428
|
+
PrintF("var ");
|
429
|
+
var->var_uses()->Print();
|
430
|
+
PrintF(", obj ");
|
431
|
+
var->obj_uses()->Print();
|
432
|
+
PrintF("\n");
|
433
|
+
}
|
434
|
+
}
|
435
|
+
|
436
|
+
|
437
|
+
static void PrintMap(PrettyPrinter* printer, int indent, VariableMap* map) {
|
438
|
+
for (VariableMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) {
|
439
|
+
Variable* var = reinterpret_cast<Variable*>(p->value);
|
440
|
+
PrintVar(printer, indent, var);
|
441
|
+
}
|
442
|
+
}
|
443
|
+
|
444
|
+
|
445
|
+
void Scope::Print(int n) {
|
446
|
+
int n0 = (n > 0 ? n : 0);
|
447
|
+
int n1 = n0 + 2; // indentation
|
448
|
+
|
449
|
+
// Print header.
|
450
|
+
Indent(n0, Header(type_));
|
451
|
+
if (scope_name_->length() > 0) {
|
452
|
+
PrintF(" ");
|
453
|
+
PrintName(scope_name_);
|
454
|
+
}
|
455
|
+
|
456
|
+
// Print parameters, if any.
|
457
|
+
if (is_function_scope()) {
|
458
|
+
PrintF(" (");
|
459
|
+
for (int i = 0; i < params_.length(); i++) {
|
460
|
+
if (i > 0) PrintF(", ");
|
461
|
+
PrintName(params_[i]->name());
|
462
|
+
}
|
463
|
+
PrintF(")");
|
464
|
+
}
|
465
|
+
|
466
|
+
PrintF(" {\n");
|
467
|
+
|
468
|
+
// Function name, if any (named function literals, only).
|
469
|
+
if (function_ != NULL) {
|
470
|
+
Indent(n1, "// (local) function name: ");
|
471
|
+
PrintName(function_->name());
|
472
|
+
PrintF("\n");
|
473
|
+
}
|
474
|
+
|
475
|
+
// Scope info.
|
476
|
+
if (HasTrivialOuterContext()) {
|
477
|
+
Indent(n1, "// scope has trivial outer context\n");
|
478
|
+
}
|
479
|
+
if (scope_inside_with_) Indent(n1, "// scope inside 'with'\n");
|
480
|
+
if (scope_contains_with_) Indent(n1, "// scope contains 'with'\n");
|
481
|
+
if (scope_calls_eval_) Indent(n1, "// scope calls 'eval'\n");
|
482
|
+
if (outer_scope_calls_eval_) Indent(n1, "// outer scope calls 'eval'\n");
|
483
|
+
if (inner_scope_calls_eval_) Indent(n1, "// inner scope calls 'eval'\n");
|
484
|
+
if (outer_scope_is_eval_scope_) {
|
485
|
+
Indent(n1, "// outer scope is 'eval' scope\n");
|
486
|
+
}
|
487
|
+
if (num_stack_slots_ > 0) { Indent(n1, "// ");
|
488
|
+
PrintF("%d stack slots\n", num_stack_slots_); }
|
489
|
+
if (num_heap_slots_ > 0) { Indent(n1, "// ");
|
490
|
+
PrintF("%d heap slots\n", num_heap_slots_); }
|
491
|
+
|
492
|
+
// Print locals.
|
493
|
+
PrettyPrinter printer;
|
494
|
+
Indent(n1, "// function var\n");
|
495
|
+
if (function_ != NULL) {
|
496
|
+
PrintVar(&printer, n1, function_);
|
497
|
+
}
|
498
|
+
|
499
|
+
Indent(n1, "// temporary vars\n");
|
500
|
+
for (int i = 0; i < temps_.length(); i++) {
|
501
|
+
PrintVar(&printer, n1, temps_[i]);
|
502
|
+
}
|
503
|
+
|
504
|
+
Indent(n1, "// local vars\n");
|
505
|
+
PrintMap(&printer, n1, &variables_);
|
506
|
+
|
507
|
+
Indent(n1, "// dynamic vars\n");
|
508
|
+
if (dynamics_ != NULL) {
|
509
|
+
PrintMap(&printer, n1, dynamics_->GetMap(Variable::DYNAMIC));
|
510
|
+
PrintMap(&printer, n1, dynamics_->GetMap(Variable::DYNAMIC_LOCAL));
|
511
|
+
PrintMap(&printer, n1, dynamics_->GetMap(Variable::DYNAMIC_GLOBAL));
|
512
|
+
}
|
513
|
+
|
514
|
+
// Print inner scopes (disable by providing negative n).
|
515
|
+
if (n >= 0) {
|
516
|
+
for (int i = 0; i < inner_scopes_.length(); i++) {
|
517
|
+
PrintF("\n");
|
518
|
+
inner_scopes_[i]->Print(n1);
|
519
|
+
}
|
520
|
+
}
|
521
|
+
|
522
|
+
Indent(n0, "}\n");
|
523
|
+
}
|
524
|
+
#endif // DEBUG
|
525
|
+
|
526
|
+
|
527
|
+
Variable* Scope::NonLocal(Handle<String> name, Variable::Mode mode) {
|
528
|
+
if (dynamics_ == NULL) dynamics_ = new DynamicScopePart();
|
529
|
+
VariableMap* map = dynamics_->GetMap(mode);
|
530
|
+
Variable* var = map->Lookup(name);
|
531
|
+
if (var == NULL) {
|
532
|
+
// Declare a new non-local.
|
533
|
+
var = map->Declare(NULL, name, mode, true, Variable::NORMAL);
|
534
|
+
// Allocate it by giving it a dynamic lookup.
|
535
|
+
var->rewrite_ = new Slot(var, Slot::LOOKUP, -1);
|
536
|
+
}
|
537
|
+
return var;
|
538
|
+
}
|
539
|
+
|
540
|
+
|
541
|
+
// Lookup a variable starting with this scope. The result is either
|
542
|
+
// the statically resolved variable belonging to an outer scope, or
|
543
|
+
// NULL. It may be NULL because a) we couldn't find a variable, or b)
|
544
|
+
// because the variable is just a guess (and may be shadowed by
|
545
|
+
// another variable that is introduced dynamically via an 'eval' call
|
546
|
+
// or a 'with' statement).
|
547
|
+
Variable* Scope::LookupRecursive(Handle<String> name,
|
548
|
+
bool inner_lookup,
|
549
|
+
Variable** invalidated_local) {
|
550
|
+
// If we find a variable, but the current scope calls 'eval', the found
|
551
|
+
// variable may not be the correct one (the 'eval' may introduce a
|
552
|
+
// property with the same name). In that case, remember that the variable
|
553
|
+
// found is just a guess.
|
554
|
+
bool guess = scope_calls_eval_;
|
555
|
+
|
556
|
+
// Try to find the variable in this scope.
|
557
|
+
Variable* var = LocalLookup(name);
|
558
|
+
|
559
|
+
if (var != NULL) {
|
560
|
+
// We found a variable. If this is not an inner lookup, we are done.
|
561
|
+
// (Even if there is an 'eval' in this scope which introduces the
|
562
|
+
// same variable again, the resulting variable remains the same.
|
563
|
+
// Note that enclosing 'with' statements are handled at the call site.)
|
564
|
+
if (!inner_lookup)
|
565
|
+
return var;
|
566
|
+
|
567
|
+
} else {
|
568
|
+
// We did not find a variable locally. Check against the function variable,
|
569
|
+
// if any. We can do this for all scopes, since the function variable is
|
570
|
+
// only present - if at all - for function scopes.
|
571
|
+
//
|
572
|
+
// This lookup corresponds to a lookup in the "intermediate" scope sitting
|
573
|
+
// between this scope and the outer scope. (ECMA-262, 3rd., requires that
|
574
|
+
// the name of named function literal is kept in an intermediate scope
|
575
|
+
// in between this scope and the next outer scope.)
|
576
|
+
if (function_ != NULL && function_->name().is_identical_to(name)) {
|
577
|
+
var = function_;
|
578
|
+
|
579
|
+
} else if (outer_scope_ != NULL) {
|
580
|
+
var = outer_scope_->LookupRecursive(name, true, invalidated_local);
|
581
|
+
// We may have found a variable in an outer scope. However, if
|
582
|
+
// the current scope is inside a 'with', the actual variable may
|
583
|
+
// be a property introduced via the 'with' statement. Then, the
|
584
|
+
// variable we may have found is just a guess.
|
585
|
+
if (scope_inside_with_)
|
586
|
+
guess = true;
|
587
|
+
}
|
588
|
+
|
589
|
+
// If we did not find a variable, we are done.
|
590
|
+
if (var == NULL)
|
591
|
+
return NULL;
|
592
|
+
}
|
593
|
+
|
594
|
+
ASSERT(var != NULL);
|
595
|
+
|
596
|
+
// If this is a lookup from an inner scope, mark the variable.
|
597
|
+
if (inner_lookup)
|
598
|
+
var->is_accessed_from_inner_scope_ = true;
|
599
|
+
|
600
|
+
// If the variable we have found is just a guess, invalidate the
|
601
|
+
// result. If the found variable is local, record that fact so we
|
602
|
+
// can generate fast code to get it if it is not shadowed by eval.
|
603
|
+
if (guess) {
|
604
|
+
if (!var->is_global()) *invalidated_local = var;
|
605
|
+
var = NULL;
|
606
|
+
}
|
607
|
+
|
608
|
+
return var;
|
609
|
+
}
|
610
|
+
|
611
|
+
|
612
|
+
void Scope::ResolveVariable(Scope* global_scope,
|
613
|
+
Handle<Context> context,
|
614
|
+
VariableProxy* proxy) {
|
615
|
+
ASSERT(global_scope == NULL || global_scope->is_global_scope());
|
616
|
+
|
617
|
+
// If the proxy is already resolved there's nothing to do
|
618
|
+
// (functions and consts may be resolved by the parser).
|
619
|
+
if (proxy->var() != NULL) return;
|
620
|
+
|
621
|
+
// Otherwise, try to resolve the variable.
|
622
|
+
Variable* invalidated_local = NULL;
|
623
|
+
Variable* var = LookupRecursive(proxy->name(), false, &invalidated_local);
|
624
|
+
|
625
|
+
if (proxy->inside_with()) {
|
626
|
+
// If we are inside a local 'with' statement, all bets are off
|
627
|
+
// and we cannot resolve the proxy to a local variable even if
|
628
|
+
// we found an outer matching variable.
|
629
|
+
// Note that we must do a lookup anyway, because if we find one,
|
630
|
+
// we must mark that variable as potentially accessed from this
|
631
|
+
// inner scope (the property may not be in the 'with' object).
|
632
|
+
var = NonLocal(proxy->name(), Variable::DYNAMIC);
|
633
|
+
|
634
|
+
} else {
|
635
|
+
// We are not inside a local 'with' statement.
|
636
|
+
|
637
|
+
if (var == NULL) {
|
638
|
+
// We did not find the variable. We have a global variable
|
639
|
+
// if we are in the global scope (we know already that we
|
640
|
+
// are outside a 'with' statement) or if there is no way
|
641
|
+
// that the variable might be introduced dynamically (through
|
642
|
+
// a local or outer eval() call, or an outer 'with' statement),
|
643
|
+
// or we don't know about the outer scope (because we are
|
644
|
+
// in an eval scope).
|
645
|
+
if (is_global_scope() ||
|
646
|
+
!(scope_inside_with_ || outer_scope_is_eval_scope_ ||
|
647
|
+
scope_calls_eval_ || outer_scope_calls_eval_)) {
|
648
|
+
// We must have a global variable.
|
649
|
+
ASSERT(global_scope != NULL);
|
650
|
+
var = global_scope->DeclareGlobal(proxy->name());
|
651
|
+
|
652
|
+
} else if (scope_inside_with_) {
|
653
|
+
// If we are inside a with statement we give up and look up
|
654
|
+
// the variable at runtime.
|
655
|
+
var = NonLocal(proxy->name(), Variable::DYNAMIC);
|
656
|
+
|
657
|
+
} else if (invalidated_local != NULL) {
|
658
|
+
// No with statements are involved and we found a local
|
659
|
+
// variable that might be shadowed by eval introduced
|
660
|
+
// variables.
|
661
|
+
var = NonLocal(proxy->name(), Variable::DYNAMIC_LOCAL);
|
662
|
+
var->set_local_if_not_shadowed(invalidated_local);
|
663
|
+
|
664
|
+
} else if (outer_scope_is_eval_scope_) {
|
665
|
+
// No with statements and we did not find a local and the code
|
666
|
+
// is executed with a call to eval. The context contains
|
667
|
+
// scope information that we can use to determine if the
|
668
|
+
// variable is global if it is not shadowed by eval-introduced
|
669
|
+
// variables.
|
670
|
+
if (context->GlobalIfNotShadowedByEval(proxy->name())) {
|
671
|
+
var = NonLocal(proxy->name(), Variable::DYNAMIC_GLOBAL);
|
672
|
+
|
673
|
+
} else {
|
674
|
+
var = NonLocal(proxy->name(), Variable::DYNAMIC);
|
675
|
+
}
|
676
|
+
|
677
|
+
} else {
|
678
|
+
// No with statements and we did not find a local and the code
|
679
|
+
// is not executed with a call to eval. We know that this
|
680
|
+
// variable is global unless it is shadowed by eval-introduced
|
681
|
+
// variables.
|
682
|
+
var = NonLocal(proxy->name(), Variable::DYNAMIC_GLOBAL);
|
683
|
+
}
|
684
|
+
}
|
685
|
+
}
|
686
|
+
|
687
|
+
proxy->BindTo(var);
|
688
|
+
}
|
689
|
+
|
690
|
+
|
691
|
+
void Scope::ResolveVariablesRecursively(Scope* global_scope,
|
692
|
+
Handle<Context> context) {
|
693
|
+
ASSERT(global_scope == NULL || global_scope->is_global_scope());
|
694
|
+
|
695
|
+
// Resolve unresolved variables for this scope.
|
696
|
+
for (int i = 0; i < unresolved_.length(); i++) {
|
697
|
+
ResolveVariable(global_scope, context, unresolved_[i]);
|
698
|
+
}
|
699
|
+
|
700
|
+
// Resolve unresolved variables for inner scopes.
|
701
|
+
for (int i = 0; i < inner_scopes_.length(); i++) {
|
702
|
+
inner_scopes_[i]->ResolveVariablesRecursively(global_scope, context);
|
703
|
+
}
|
704
|
+
}
|
705
|
+
|
706
|
+
|
707
|
+
bool Scope::PropagateScopeInfo(bool outer_scope_calls_eval,
|
708
|
+
bool outer_scope_is_eval_scope) {
|
709
|
+
if (outer_scope_calls_eval) {
|
710
|
+
outer_scope_calls_eval_ = true;
|
711
|
+
}
|
712
|
+
|
713
|
+
if (outer_scope_is_eval_scope) {
|
714
|
+
outer_scope_is_eval_scope_ = true;
|
715
|
+
}
|
716
|
+
|
717
|
+
bool calls_eval = scope_calls_eval_ || outer_scope_calls_eval_;
|
718
|
+
bool is_eval = is_eval_scope() || outer_scope_is_eval_scope_;
|
719
|
+
for (int i = 0; i < inner_scopes_.length(); i++) {
|
720
|
+
Scope* inner_scope = inner_scopes_[i];
|
721
|
+
if (inner_scope->PropagateScopeInfo(calls_eval, is_eval)) {
|
722
|
+
inner_scope_calls_eval_ = true;
|
723
|
+
}
|
724
|
+
if (inner_scope->force_eager_compilation_) {
|
725
|
+
force_eager_compilation_ = true;
|
726
|
+
}
|
727
|
+
}
|
728
|
+
|
729
|
+
return scope_calls_eval_ || inner_scope_calls_eval_;
|
730
|
+
}
|
731
|
+
|
732
|
+
|
733
|
+
bool Scope::MustAllocate(Variable* var) {
|
734
|
+
// Give var a read/write use if there is a chance it might be accessed
|
735
|
+
// via an eval() call. This is only possible if the variable has a
|
736
|
+
// visible name.
|
737
|
+
if ((var->is_this() || var->name()->length() > 0) &&
|
738
|
+
(var->is_accessed_from_inner_scope_ ||
|
739
|
+
scope_calls_eval_ || inner_scope_calls_eval_ ||
|
740
|
+
scope_contains_with_)) {
|
741
|
+
var->var_uses()->RecordAccess(1);
|
742
|
+
}
|
743
|
+
// Global variables do not need to be allocated.
|
744
|
+
return !var->is_global() && var->var_uses()->is_used();
|
745
|
+
}
|
746
|
+
|
747
|
+
|
748
|
+
bool Scope::MustAllocateInContext(Variable* var) {
|
749
|
+
// If var is accessed from an inner scope, or if there is a
|
750
|
+
// possibility that it might be accessed from the current or an inner
|
751
|
+
// scope (through an eval() call), it must be allocated in the
|
752
|
+
// context. Exception: temporary variables are not allocated in the
|
753
|
+
// context.
|
754
|
+
return
|
755
|
+
var->mode() != Variable::TEMPORARY &&
|
756
|
+
(var->is_accessed_from_inner_scope_ ||
|
757
|
+
scope_calls_eval_ || inner_scope_calls_eval_ ||
|
758
|
+
scope_contains_with_ || var->is_global());
|
759
|
+
}
|
760
|
+
|
761
|
+
|
762
|
+
bool Scope::HasArgumentsParameter() {
|
763
|
+
for (int i = 0; i < params_.length(); i++) {
|
764
|
+
if (params_[i]->name().is_identical_to(Factory::arguments_symbol()))
|
765
|
+
return true;
|
766
|
+
}
|
767
|
+
return false;
|
768
|
+
}
|
769
|
+
|
770
|
+
|
771
|
+
void Scope::AllocateStackSlot(Variable* var) {
|
772
|
+
var->rewrite_ = new Slot(var, Slot::LOCAL, num_stack_slots_++);
|
773
|
+
}
|
774
|
+
|
775
|
+
|
776
|
+
void Scope::AllocateHeapSlot(Variable* var) {
|
777
|
+
var->rewrite_ = new Slot(var, Slot::CONTEXT, num_heap_slots_++);
|
778
|
+
}
|
779
|
+
|
780
|
+
|
781
|
+
void Scope::AllocateParameterLocals() {
|
782
|
+
ASSERT(is_function_scope());
|
783
|
+
Variable* arguments = LocalLookup(Factory::arguments_symbol());
|
784
|
+
ASSERT(arguments != NULL); // functions have 'arguments' declared implicitly
|
785
|
+
if (MustAllocate(arguments) && !HasArgumentsParameter()) {
|
786
|
+
// 'arguments' is used. Unless there is also a parameter called
|
787
|
+
// 'arguments', we must be conservative and access all parameters via
|
788
|
+
// the arguments object: The i'th parameter is rewritten into
|
789
|
+
// '.arguments[i]' (*). If we have a parameter named 'arguments', a
|
790
|
+
// (new) value is always assigned to it via the function
|
791
|
+
// invocation. Then 'arguments' denotes that specific parameter value
|
792
|
+
// and cannot be used to access the parameters, which is why we don't
|
793
|
+
// need to rewrite in that case.
|
794
|
+
//
|
795
|
+
// (*) Instead of having a parameter called 'arguments', we may have an
|
796
|
+
// assignment to 'arguments' in the function body, at some arbitrary
|
797
|
+
// point in time (possibly through an 'eval()' call!). After that
|
798
|
+
// assignment any re-write of parameters would be invalid (was bug
|
799
|
+
// 881452). Thus, we introduce a shadow '.arguments'
|
800
|
+
// variable which also points to the arguments object. For rewrites we
|
801
|
+
// use '.arguments' which remains valid even if we assign to
|
802
|
+
// 'arguments'. To summarize: If we need to rewrite, we allocate an
|
803
|
+
// 'arguments' object dynamically upon function invocation. The compiler
|
804
|
+
// introduces 2 local variables 'arguments' and '.arguments', both of
|
805
|
+
// which originally point to the arguments object that was
|
806
|
+
// allocated. All parameters are rewritten into property accesses via
|
807
|
+
// the '.arguments' variable. Thus, any changes to properties of
|
808
|
+
// 'arguments' are reflected in the variables and vice versa. If the
|
809
|
+
// 'arguments' variable is changed, '.arguments' still points to the
|
810
|
+
// correct arguments object and the rewrites still work.
|
811
|
+
|
812
|
+
// We are using 'arguments'. Tell the code generator that is needs to
|
813
|
+
// allocate the arguments object by setting 'arguments_'.
|
814
|
+
arguments_ = new VariableProxy(Factory::arguments_symbol(), false, false);
|
815
|
+
arguments_->BindTo(arguments);
|
816
|
+
|
817
|
+
// We also need the '.arguments' shadow variable. Declare it and create
|
818
|
+
// and bind the corresponding proxy. It's ok to declare it only now
|
819
|
+
// because it's a local variable that is allocated after the parameters
|
820
|
+
// have been allocated.
|
821
|
+
//
|
822
|
+
// Note: This is "almost" at temporary variable but we cannot use
|
823
|
+
// NewTemporary() because the mode needs to be INTERNAL since this
|
824
|
+
// variable may be allocated in the heap-allocated context (temporaries
|
825
|
+
// are never allocated in the context).
|
826
|
+
Variable* arguments_shadow =
|
827
|
+
new Variable(this, Factory::arguments_shadow_symbol(),
|
828
|
+
Variable::INTERNAL, true, Variable::ARGUMENTS);
|
829
|
+
arguments_shadow_ =
|
830
|
+
new VariableProxy(Factory::arguments_shadow_symbol(), false, false);
|
831
|
+
arguments_shadow_->BindTo(arguments_shadow);
|
832
|
+
temps_.Add(arguments_shadow);
|
833
|
+
|
834
|
+
// Allocate the parameters by rewriting them into '.arguments[i]' accesses.
|
835
|
+
for (int i = 0; i < params_.length(); i++) {
|
836
|
+
Variable* var = params_[i];
|
837
|
+
ASSERT(var->scope() == this);
|
838
|
+
if (MustAllocate(var)) {
|
839
|
+
if (MustAllocateInContext(var)) {
|
840
|
+
// It is ok to set this only now, because arguments is a local
|
841
|
+
// variable that is allocated after the parameters have been
|
842
|
+
// allocated.
|
843
|
+
arguments_shadow->is_accessed_from_inner_scope_ = true;
|
844
|
+
}
|
845
|
+
var->rewrite_ =
|
846
|
+
new Property(arguments_shadow_,
|
847
|
+
new Literal(Handle<Object>(Smi::FromInt(i))),
|
848
|
+
RelocInfo::kNoPosition,
|
849
|
+
Property::SYNTHETIC);
|
850
|
+
arguments_shadow->var_uses()->RecordUses(var->var_uses());
|
851
|
+
}
|
852
|
+
}
|
853
|
+
|
854
|
+
} else {
|
855
|
+
// The arguments object is not used, so we can access parameters directly.
|
856
|
+
// The same parameter may occur multiple times in the parameters_ list.
|
857
|
+
// If it does, and if it is not copied into the context object, it must
|
858
|
+
// receive the highest parameter index for that parameter; thus iteration
|
859
|
+
// order is relevant!
|
860
|
+
for (int i = 0; i < params_.length(); i++) {
|
861
|
+
Variable* var = params_[i];
|
862
|
+
ASSERT(var->scope() == this);
|
863
|
+
if (MustAllocate(var)) {
|
864
|
+
if (MustAllocateInContext(var)) {
|
865
|
+
ASSERT(var->rewrite_ == NULL ||
|
866
|
+
(var->slot() != NULL && var->slot()->type() == Slot::CONTEXT));
|
867
|
+
if (var->rewrite_ == NULL) {
|
868
|
+
// Only set the heap allocation if the parameter has not
|
869
|
+
// been allocated yet.
|
870
|
+
AllocateHeapSlot(var);
|
871
|
+
}
|
872
|
+
} else {
|
873
|
+
ASSERT(var->rewrite_ == NULL ||
|
874
|
+
(var->slot() != NULL &&
|
875
|
+
var->slot()->type() == Slot::PARAMETER));
|
876
|
+
// Set the parameter index always, even if the parameter
|
877
|
+
// was seen before! (We need to access the actual parameter
|
878
|
+
// supplied for the last occurrence of a multiply declared
|
879
|
+
// parameter.)
|
880
|
+
var->rewrite_ = new Slot(var, Slot::PARAMETER, i);
|
881
|
+
}
|
882
|
+
}
|
883
|
+
}
|
884
|
+
}
|
885
|
+
}
|
886
|
+
|
887
|
+
|
888
|
+
void Scope::AllocateNonParameterLocal(Variable* var) {
|
889
|
+
ASSERT(var->scope() == this);
|
890
|
+
ASSERT(var->rewrite_ == NULL ||
|
891
|
+
(!var->IsVariable(Factory::result_symbol())) ||
|
892
|
+
(var->slot() == NULL || var->slot()->type() != Slot::LOCAL));
|
893
|
+
if (var->rewrite_ == NULL && MustAllocate(var)) {
|
894
|
+
if (MustAllocateInContext(var)) {
|
895
|
+
AllocateHeapSlot(var);
|
896
|
+
} else {
|
897
|
+
AllocateStackSlot(var);
|
898
|
+
}
|
899
|
+
}
|
900
|
+
}
|
901
|
+
|
902
|
+
|
903
|
+
void Scope::AllocateNonParameterLocals() {
|
904
|
+
// All variables that have no rewrite yet are non-parameter locals.
|
905
|
+
for (int i = 0; i < temps_.length(); i++) {
|
906
|
+
AllocateNonParameterLocal(temps_[i]);
|
907
|
+
}
|
908
|
+
|
909
|
+
for (VariableMap::Entry* p = variables_.Start();
|
910
|
+
p != NULL;
|
911
|
+
p = variables_.Next(p)) {
|
912
|
+
Variable* var = reinterpret_cast<Variable*>(p->value);
|
913
|
+
AllocateNonParameterLocal(var);
|
914
|
+
}
|
915
|
+
|
916
|
+
// For now, function_ must be allocated at the very end. If it gets
|
917
|
+
// allocated in the context, it must be the last slot in the context,
|
918
|
+
// because of the current ScopeInfo implementation (see
|
919
|
+
// ScopeInfo::ScopeInfo(FunctionScope* scope) constructor).
|
920
|
+
if (function_ != NULL) {
|
921
|
+
AllocateNonParameterLocal(function_);
|
922
|
+
}
|
923
|
+
}
|
924
|
+
|
925
|
+
|
926
|
+
void Scope::AllocateVariablesRecursively() {
|
927
|
+
// The number of slots required for variables.
|
928
|
+
num_stack_slots_ = 0;
|
929
|
+
num_heap_slots_ = Context::MIN_CONTEXT_SLOTS;
|
930
|
+
|
931
|
+
// Allocate variables for inner scopes.
|
932
|
+
for (int i = 0; i < inner_scopes_.length(); i++) {
|
933
|
+
inner_scopes_[i]->AllocateVariablesRecursively();
|
934
|
+
}
|
935
|
+
|
936
|
+
// Allocate variables for this scope.
|
937
|
+
// Parameters must be allocated first, if any.
|
938
|
+
if (is_function_scope()) AllocateParameterLocals();
|
939
|
+
AllocateNonParameterLocals();
|
940
|
+
|
941
|
+
// Allocate context if necessary.
|
942
|
+
bool must_have_local_context = false;
|
943
|
+
if (scope_calls_eval_ || scope_contains_with_) {
|
944
|
+
// The context for the eval() call or 'with' statement in this scope.
|
945
|
+
// Unless we are in the global or an eval scope, we need a local
|
946
|
+
// context even if we didn't statically allocate any locals in it,
|
947
|
+
// and the compiler will access the context variable. If we are
|
948
|
+
// not in an inner scope, the scope is provided from the outside.
|
949
|
+
must_have_local_context = is_function_scope();
|
950
|
+
}
|
951
|
+
|
952
|
+
// If we didn't allocate any locals in the local context, then we only
|
953
|
+
// need the minimal number of slots if we must have a local context.
|
954
|
+
if (num_heap_slots_ == Context::MIN_CONTEXT_SLOTS &&
|
955
|
+
!must_have_local_context) {
|
956
|
+
num_heap_slots_ = 0;
|
957
|
+
}
|
958
|
+
|
959
|
+
// Allocation done.
|
960
|
+
ASSERT(num_heap_slots_ == 0 || num_heap_slots_ >= Context::MIN_CONTEXT_SLOTS);
|
961
|
+
}
|
962
|
+
|
963
|
+
} } // namespace v8::internal
|