therubyracer 0.4.7-x86-darwin-9
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 +1191 -0
- data/README.rdoc +157 -0
- data/Rakefile +49 -0
- data/docs/data_conversion.txt +18 -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 +1268 -0
@@ -0,0 +1,1821 @@
|
|
1
|
+
// Copyright (c) 1994-2006 Sun Microsystems Inc.
|
2
|
+
// All Rights Reserved.
|
3
|
+
//
|
4
|
+
// Redistribution and use in source and binary forms, with or without
|
5
|
+
// modification, are permitted provided that the following conditions
|
6
|
+
// are met:
|
7
|
+
//
|
8
|
+
// - Redistributions of source code must retain the above copyright notice,
|
9
|
+
// this list of conditions and the following disclaimer.
|
10
|
+
//
|
11
|
+
// - Redistribution in binary form must reproduce the above copyright
|
12
|
+
// notice, this list of conditions and the following disclaimer in the
|
13
|
+
// documentation and/or other materials provided with the
|
14
|
+
// distribution.
|
15
|
+
//
|
16
|
+
// - Neither the name of Sun Microsystems or the names of contributors may
|
17
|
+
// be used to endorse or promote products derived from this software without
|
18
|
+
// specific prior written permission.
|
19
|
+
//
|
20
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
21
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
22
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
23
|
+
// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
24
|
+
// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
25
|
+
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
26
|
+
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
27
|
+
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
28
|
+
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
29
|
+
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
30
|
+
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
31
|
+
// OF THE POSSIBILITY OF SUCH DAMAGE.
|
32
|
+
|
33
|
+
// The original source code covered by the above license above has been modified
|
34
|
+
// significantly by Google Inc.
|
35
|
+
// Copyright 2006-2008 the V8 project authors. All rights reserved.
|
36
|
+
|
37
|
+
#include "v8.h"
|
38
|
+
|
39
|
+
#include "arm/assembler-arm-inl.h"
|
40
|
+
#include "serialize.h"
|
41
|
+
|
42
|
+
namespace v8 {
|
43
|
+
namespace internal {
|
44
|
+
|
45
|
+
// Safe default is no features.
|
46
|
+
unsigned CpuFeatures::supported_ = 0;
|
47
|
+
unsigned CpuFeatures::enabled_ = 0;
|
48
|
+
unsigned CpuFeatures::found_by_runtime_probing_ = 0;
|
49
|
+
|
50
|
+
void CpuFeatures::Probe() {
|
51
|
+
// If the compiler is allowed to use vfp then we can use vfp too in our
|
52
|
+
// code generation.
|
53
|
+
#if !defined(__arm__)
|
54
|
+
// For the simulator=arm build, always use VFP since the arm simulator has
|
55
|
+
// VFP support.
|
56
|
+
supported_ |= 1u << VFP3;
|
57
|
+
#else
|
58
|
+
if (Serializer::enabled()) {
|
59
|
+
supported_ |= OS::CpuFeaturesImpliedByPlatform();
|
60
|
+
return; // No features if we might serialize.
|
61
|
+
}
|
62
|
+
|
63
|
+
if (OS::ArmCpuHasFeature(VFP3)) {
|
64
|
+
// This implementation also sets the VFP flags if
|
65
|
+
// runtime detection of VFP returns true.
|
66
|
+
supported_ |= 1u << VFP3;
|
67
|
+
found_by_runtime_probing_ |= 1u << VFP3;
|
68
|
+
}
|
69
|
+
#endif
|
70
|
+
}
|
71
|
+
|
72
|
+
|
73
|
+
// -----------------------------------------------------------------------------
|
74
|
+
// Implementation of Register and CRegister
|
75
|
+
|
76
|
+
Register no_reg = { -1 };
|
77
|
+
|
78
|
+
Register r0 = { 0 };
|
79
|
+
Register r1 = { 1 };
|
80
|
+
Register r2 = { 2 };
|
81
|
+
Register r3 = { 3 };
|
82
|
+
Register r4 = { 4 };
|
83
|
+
Register r5 = { 5 };
|
84
|
+
Register r6 = { 6 };
|
85
|
+
Register r7 = { 7 };
|
86
|
+
Register r8 = { 8 };
|
87
|
+
Register r9 = { 9 };
|
88
|
+
Register r10 = { 10 };
|
89
|
+
Register fp = { 11 };
|
90
|
+
Register ip = { 12 };
|
91
|
+
Register sp = { 13 };
|
92
|
+
Register lr = { 14 };
|
93
|
+
Register pc = { 15 };
|
94
|
+
|
95
|
+
|
96
|
+
CRegister no_creg = { -1 };
|
97
|
+
|
98
|
+
CRegister cr0 = { 0 };
|
99
|
+
CRegister cr1 = { 1 };
|
100
|
+
CRegister cr2 = { 2 };
|
101
|
+
CRegister cr3 = { 3 };
|
102
|
+
CRegister cr4 = { 4 };
|
103
|
+
CRegister cr5 = { 5 };
|
104
|
+
CRegister cr6 = { 6 };
|
105
|
+
CRegister cr7 = { 7 };
|
106
|
+
CRegister cr8 = { 8 };
|
107
|
+
CRegister cr9 = { 9 };
|
108
|
+
CRegister cr10 = { 10 };
|
109
|
+
CRegister cr11 = { 11 };
|
110
|
+
CRegister cr12 = { 12 };
|
111
|
+
CRegister cr13 = { 13 };
|
112
|
+
CRegister cr14 = { 14 };
|
113
|
+
CRegister cr15 = { 15 };
|
114
|
+
|
115
|
+
// Support for the VFP registers s0 to s31 (d0 to d15).
|
116
|
+
// Note that "sN:sM" is the same as "dN/2".
|
117
|
+
SwVfpRegister s0 = { 0 };
|
118
|
+
SwVfpRegister s1 = { 1 };
|
119
|
+
SwVfpRegister s2 = { 2 };
|
120
|
+
SwVfpRegister s3 = { 3 };
|
121
|
+
SwVfpRegister s4 = { 4 };
|
122
|
+
SwVfpRegister s5 = { 5 };
|
123
|
+
SwVfpRegister s6 = { 6 };
|
124
|
+
SwVfpRegister s7 = { 7 };
|
125
|
+
SwVfpRegister s8 = { 8 };
|
126
|
+
SwVfpRegister s9 = { 9 };
|
127
|
+
SwVfpRegister s10 = { 10 };
|
128
|
+
SwVfpRegister s11 = { 11 };
|
129
|
+
SwVfpRegister s12 = { 12 };
|
130
|
+
SwVfpRegister s13 = { 13 };
|
131
|
+
SwVfpRegister s14 = { 14 };
|
132
|
+
SwVfpRegister s15 = { 15 };
|
133
|
+
SwVfpRegister s16 = { 16 };
|
134
|
+
SwVfpRegister s17 = { 17 };
|
135
|
+
SwVfpRegister s18 = { 18 };
|
136
|
+
SwVfpRegister s19 = { 19 };
|
137
|
+
SwVfpRegister s20 = { 20 };
|
138
|
+
SwVfpRegister s21 = { 21 };
|
139
|
+
SwVfpRegister s22 = { 22 };
|
140
|
+
SwVfpRegister s23 = { 23 };
|
141
|
+
SwVfpRegister s24 = { 24 };
|
142
|
+
SwVfpRegister s25 = { 25 };
|
143
|
+
SwVfpRegister s26 = { 26 };
|
144
|
+
SwVfpRegister s27 = { 27 };
|
145
|
+
SwVfpRegister s28 = { 28 };
|
146
|
+
SwVfpRegister s29 = { 29 };
|
147
|
+
SwVfpRegister s30 = { 30 };
|
148
|
+
SwVfpRegister s31 = { 31 };
|
149
|
+
|
150
|
+
DwVfpRegister d0 = { 0 };
|
151
|
+
DwVfpRegister d1 = { 1 };
|
152
|
+
DwVfpRegister d2 = { 2 };
|
153
|
+
DwVfpRegister d3 = { 3 };
|
154
|
+
DwVfpRegister d4 = { 4 };
|
155
|
+
DwVfpRegister d5 = { 5 };
|
156
|
+
DwVfpRegister d6 = { 6 };
|
157
|
+
DwVfpRegister d7 = { 7 };
|
158
|
+
DwVfpRegister d8 = { 8 };
|
159
|
+
DwVfpRegister d9 = { 9 };
|
160
|
+
DwVfpRegister d10 = { 10 };
|
161
|
+
DwVfpRegister d11 = { 11 };
|
162
|
+
DwVfpRegister d12 = { 12 };
|
163
|
+
DwVfpRegister d13 = { 13 };
|
164
|
+
DwVfpRegister d14 = { 14 };
|
165
|
+
DwVfpRegister d15 = { 15 };
|
166
|
+
|
167
|
+
// -----------------------------------------------------------------------------
|
168
|
+
// Implementation of RelocInfo
|
169
|
+
|
170
|
+
const int RelocInfo::kApplyMask = 0;
|
171
|
+
|
172
|
+
|
173
|
+
void RelocInfo::PatchCode(byte* instructions, int instruction_count) {
|
174
|
+
// Patch the code at the current address with the supplied instructions.
|
175
|
+
Instr* pc = reinterpret_cast<Instr*>(pc_);
|
176
|
+
Instr* instr = reinterpret_cast<Instr*>(instructions);
|
177
|
+
for (int i = 0; i < instruction_count; i++) {
|
178
|
+
*(pc + i) = *(instr + i);
|
179
|
+
}
|
180
|
+
|
181
|
+
// Indicate that code has changed.
|
182
|
+
CPU::FlushICache(pc_, instruction_count * Assembler::kInstrSize);
|
183
|
+
}
|
184
|
+
|
185
|
+
|
186
|
+
// Patch the code at the current PC with a call to the target address.
|
187
|
+
// Additional guard instructions can be added if required.
|
188
|
+
void RelocInfo::PatchCodeWithCall(Address target, int guard_bytes) {
|
189
|
+
// Patch the code at the current address with a call to the target.
|
190
|
+
UNIMPLEMENTED();
|
191
|
+
}
|
192
|
+
|
193
|
+
|
194
|
+
// -----------------------------------------------------------------------------
|
195
|
+
// Implementation of Operand and MemOperand
|
196
|
+
// See assembler-arm-inl.h for inlined constructors
|
197
|
+
|
198
|
+
Operand::Operand(Handle<Object> handle) {
|
199
|
+
rm_ = no_reg;
|
200
|
+
// Verify all Objects referred by code are NOT in new space.
|
201
|
+
Object* obj = *handle;
|
202
|
+
ASSERT(!Heap::InNewSpace(obj));
|
203
|
+
if (obj->IsHeapObject()) {
|
204
|
+
imm32_ = reinterpret_cast<intptr_t>(handle.location());
|
205
|
+
rmode_ = RelocInfo::EMBEDDED_OBJECT;
|
206
|
+
} else {
|
207
|
+
// no relocation needed
|
208
|
+
imm32_ = reinterpret_cast<intptr_t>(obj);
|
209
|
+
rmode_ = RelocInfo::NONE;
|
210
|
+
}
|
211
|
+
}
|
212
|
+
|
213
|
+
|
214
|
+
Operand::Operand(Register rm, ShiftOp shift_op, int shift_imm) {
|
215
|
+
ASSERT(is_uint5(shift_imm));
|
216
|
+
ASSERT(shift_op != ROR || shift_imm != 0); // use RRX if you mean it
|
217
|
+
rm_ = rm;
|
218
|
+
rs_ = no_reg;
|
219
|
+
shift_op_ = shift_op;
|
220
|
+
shift_imm_ = shift_imm & 31;
|
221
|
+
if (shift_op == RRX) {
|
222
|
+
// encoded as ROR with shift_imm == 0
|
223
|
+
ASSERT(shift_imm == 0);
|
224
|
+
shift_op_ = ROR;
|
225
|
+
shift_imm_ = 0;
|
226
|
+
}
|
227
|
+
}
|
228
|
+
|
229
|
+
|
230
|
+
Operand::Operand(Register rm, ShiftOp shift_op, Register rs) {
|
231
|
+
ASSERT(shift_op != RRX);
|
232
|
+
rm_ = rm;
|
233
|
+
rs_ = no_reg;
|
234
|
+
shift_op_ = shift_op;
|
235
|
+
rs_ = rs;
|
236
|
+
}
|
237
|
+
|
238
|
+
|
239
|
+
MemOperand::MemOperand(Register rn, int32_t offset, AddrMode am) {
|
240
|
+
rn_ = rn;
|
241
|
+
rm_ = no_reg;
|
242
|
+
offset_ = offset;
|
243
|
+
am_ = am;
|
244
|
+
}
|
245
|
+
|
246
|
+
MemOperand::MemOperand(Register rn, Register rm, AddrMode am) {
|
247
|
+
rn_ = rn;
|
248
|
+
rm_ = rm;
|
249
|
+
shift_op_ = LSL;
|
250
|
+
shift_imm_ = 0;
|
251
|
+
am_ = am;
|
252
|
+
}
|
253
|
+
|
254
|
+
|
255
|
+
MemOperand::MemOperand(Register rn, Register rm,
|
256
|
+
ShiftOp shift_op, int shift_imm, AddrMode am) {
|
257
|
+
ASSERT(is_uint5(shift_imm));
|
258
|
+
rn_ = rn;
|
259
|
+
rm_ = rm;
|
260
|
+
shift_op_ = shift_op;
|
261
|
+
shift_imm_ = shift_imm & 31;
|
262
|
+
am_ = am;
|
263
|
+
}
|
264
|
+
|
265
|
+
|
266
|
+
// -----------------------------------------------------------------------------
|
267
|
+
// Implementation of Assembler
|
268
|
+
|
269
|
+
// Instruction encoding bits
|
270
|
+
enum {
|
271
|
+
H = 1 << 5, // halfword (or byte)
|
272
|
+
S6 = 1 << 6, // signed (or unsigned)
|
273
|
+
L = 1 << 20, // load (or store)
|
274
|
+
S = 1 << 20, // set condition code (or leave unchanged)
|
275
|
+
W = 1 << 21, // writeback base register (or leave unchanged)
|
276
|
+
A = 1 << 21, // accumulate in multiply instruction (or not)
|
277
|
+
B = 1 << 22, // unsigned byte (or word)
|
278
|
+
N = 1 << 22, // long (or short)
|
279
|
+
U = 1 << 23, // positive (or negative) offset/index
|
280
|
+
P = 1 << 24, // offset/pre-indexed addressing (or post-indexed addressing)
|
281
|
+
I = 1 << 25, // immediate shifter operand (or not)
|
282
|
+
|
283
|
+
B4 = 1 << 4,
|
284
|
+
B5 = 1 << 5,
|
285
|
+
B6 = 1 << 6,
|
286
|
+
B7 = 1 << 7,
|
287
|
+
B8 = 1 << 8,
|
288
|
+
B9 = 1 << 9,
|
289
|
+
B12 = 1 << 12,
|
290
|
+
B16 = 1 << 16,
|
291
|
+
B18 = 1 << 18,
|
292
|
+
B19 = 1 << 19,
|
293
|
+
B20 = 1 << 20,
|
294
|
+
B21 = 1 << 21,
|
295
|
+
B22 = 1 << 22,
|
296
|
+
B23 = 1 << 23,
|
297
|
+
B24 = 1 << 24,
|
298
|
+
B25 = 1 << 25,
|
299
|
+
B26 = 1 << 26,
|
300
|
+
B27 = 1 << 27,
|
301
|
+
|
302
|
+
// Instruction bit masks
|
303
|
+
RdMask = 15 << 12, // in str instruction
|
304
|
+
CondMask = 15 << 28,
|
305
|
+
CoprocessorMask = 15 << 8,
|
306
|
+
OpCodeMask = 15 << 21, // in data-processing instructions
|
307
|
+
Imm24Mask = (1 << 24) - 1,
|
308
|
+
Off12Mask = (1 << 12) - 1,
|
309
|
+
// Reserved condition
|
310
|
+
nv = 15 << 28
|
311
|
+
};
|
312
|
+
|
313
|
+
|
314
|
+
// add(sp, sp, 4) instruction (aka Pop())
|
315
|
+
static const Instr kPopInstruction =
|
316
|
+
al | 4 * B21 | 4 | LeaveCC | I | sp.code() * B16 | sp.code() * B12;
|
317
|
+
// str(r, MemOperand(sp, 4, NegPreIndex), al) instruction (aka push(r))
|
318
|
+
// register r is not encoded.
|
319
|
+
static const Instr kPushRegPattern =
|
320
|
+
al | B26 | 4 | NegPreIndex | sp.code() * B16;
|
321
|
+
// ldr(r, MemOperand(sp, 4, PostIndex), al) instruction (aka pop(r))
|
322
|
+
// register r is not encoded.
|
323
|
+
static const Instr kPopRegPattern =
|
324
|
+
al | B26 | L | 4 | PostIndex | sp.code() * B16;
|
325
|
+
// mov lr, pc
|
326
|
+
const Instr kMovLrPc = al | 13*B21 | pc.code() | lr.code() * B12;
|
327
|
+
// ldr pc, [pc, #XXX]
|
328
|
+
const Instr kLdrPCPattern = al | B26 | L | pc.code() * B16;
|
329
|
+
|
330
|
+
// spare_buffer_
|
331
|
+
static const int kMinimalBufferSize = 4*KB;
|
332
|
+
static byte* spare_buffer_ = NULL;
|
333
|
+
|
334
|
+
Assembler::Assembler(void* buffer, int buffer_size) {
|
335
|
+
if (buffer == NULL) {
|
336
|
+
// do our own buffer management
|
337
|
+
if (buffer_size <= kMinimalBufferSize) {
|
338
|
+
buffer_size = kMinimalBufferSize;
|
339
|
+
|
340
|
+
if (spare_buffer_ != NULL) {
|
341
|
+
buffer = spare_buffer_;
|
342
|
+
spare_buffer_ = NULL;
|
343
|
+
}
|
344
|
+
}
|
345
|
+
if (buffer == NULL) {
|
346
|
+
buffer_ = NewArray<byte>(buffer_size);
|
347
|
+
} else {
|
348
|
+
buffer_ = static_cast<byte*>(buffer);
|
349
|
+
}
|
350
|
+
buffer_size_ = buffer_size;
|
351
|
+
own_buffer_ = true;
|
352
|
+
|
353
|
+
} else {
|
354
|
+
// use externally provided buffer instead
|
355
|
+
ASSERT(buffer_size > 0);
|
356
|
+
buffer_ = static_cast<byte*>(buffer);
|
357
|
+
buffer_size_ = buffer_size;
|
358
|
+
own_buffer_ = false;
|
359
|
+
}
|
360
|
+
|
361
|
+
// setup buffer pointers
|
362
|
+
ASSERT(buffer_ != NULL);
|
363
|
+
pc_ = buffer_;
|
364
|
+
reloc_info_writer.Reposition(buffer_ + buffer_size, pc_);
|
365
|
+
num_prinfo_ = 0;
|
366
|
+
next_buffer_check_ = 0;
|
367
|
+
no_const_pool_before_ = 0;
|
368
|
+
last_const_pool_end_ = 0;
|
369
|
+
last_bound_pos_ = 0;
|
370
|
+
current_statement_position_ = RelocInfo::kNoPosition;
|
371
|
+
current_position_ = RelocInfo::kNoPosition;
|
372
|
+
written_statement_position_ = current_statement_position_;
|
373
|
+
written_position_ = current_position_;
|
374
|
+
}
|
375
|
+
|
376
|
+
|
377
|
+
Assembler::~Assembler() {
|
378
|
+
if (own_buffer_) {
|
379
|
+
if (spare_buffer_ == NULL && buffer_size_ == kMinimalBufferSize) {
|
380
|
+
spare_buffer_ = buffer_;
|
381
|
+
} else {
|
382
|
+
DeleteArray(buffer_);
|
383
|
+
}
|
384
|
+
}
|
385
|
+
}
|
386
|
+
|
387
|
+
|
388
|
+
void Assembler::GetCode(CodeDesc* desc) {
|
389
|
+
// emit constant pool if necessary
|
390
|
+
CheckConstPool(true, false);
|
391
|
+
ASSERT(num_prinfo_ == 0);
|
392
|
+
|
393
|
+
// setup desc
|
394
|
+
desc->buffer = buffer_;
|
395
|
+
desc->buffer_size = buffer_size_;
|
396
|
+
desc->instr_size = pc_offset();
|
397
|
+
desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos();
|
398
|
+
}
|
399
|
+
|
400
|
+
|
401
|
+
void Assembler::Align(int m) {
|
402
|
+
ASSERT(m >= 4 && IsPowerOf2(m));
|
403
|
+
while ((pc_offset() & (m - 1)) != 0) {
|
404
|
+
nop();
|
405
|
+
}
|
406
|
+
}
|
407
|
+
|
408
|
+
|
409
|
+
// Labels refer to positions in the (to be) generated code.
|
410
|
+
// There are bound, linked, and unused labels.
|
411
|
+
//
|
412
|
+
// Bound labels refer to known positions in the already
|
413
|
+
// generated code. pos() is the position the label refers to.
|
414
|
+
//
|
415
|
+
// Linked labels refer to unknown positions in the code
|
416
|
+
// to be generated; pos() is the position of the last
|
417
|
+
// instruction using the label.
|
418
|
+
|
419
|
+
|
420
|
+
// The link chain is terminated by a negative code position (must be aligned)
|
421
|
+
const int kEndOfChain = -4;
|
422
|
+
|
423
|
+
|
424
|
+
int Assembler::target_at(int pos) {
|
425
|
+
Instr instr = instr_at(pos);
|
426
|
+
if ((instr & ~Imm24Mask) == 0) {
|
427
|
+
// Emitted label constant, not part of a branch.
|
428
|
+
return instr - (Code::kHeaderSize - kHeapObjectTag);
|
429
|
+
}
|
430
|
+
ASSERT((instr & 7*B25) == 5*B25); // b, bl, or blx imm24
|
431
|
+
int imm26 = ((instr & Imm24Mask) << 8) >> 6;
|
432
|
+
if ((instr & CondMask) == nv && (instr & B24) != 0)
|
433
|
+
// blx uses bit 24 to encode bit 2 of imm26
|
434
|
+
imm26 += 2;
|
435
|
+
|
436
|
+
return pos + kPcLoadDelta + imm26;
|
437
|
+
}
|
438
|
+
|
439
|
+
|
440
|
+
void Assembler::target_at_put(int pos, int target_pos) {
|
441
|
+
Instr instr = instr_at(pos);
|
442
|
+
if ((instr & ~Imm24Mask) == 0) {
|
443
|
+
ASSERT(target_pos == kEndOfChain || target_pos >= 0);
|
444
|
+
// Emitted label constant, not part of a branch.
|
445
|
+
// Make label relative to Code* of generated Code object.
|
446
|
+
instr_at_put(pos, target_pos + (Code::kHeaderSize - kHeapObjectTag));
|
447
|
+
return;
|
448
|
+
}
|
449
|
+
int imm26 = target_pos - (pos + kPcLoadDelta);
|
450
|
+
ASSERT((instr & 7*B25) == 5*B25); // b, bl, or blx imm24
|
451
|
+
if ((instr & CondMask) == nv) {
|
452
|
+
// blx uses bit 24 to encode bit 2 of imm26
|
453
|
+
ASSERT((imm26 & 1) == 0);
|
454
|
+
instr = (instr & ~(B24 | Imm24Mask)) | ((imm26 & 2) >> 1)*B24;
|
455
|
+
} else {
|
456
|
+
ASSERT((imm26 & 3) == 0);
|
457
|
+
instr &= ~Imm24Mask;
|
458
|
+
}
|
459
|
+
int imm24 = imm26 >> 2;
|
460
|
+
ASSERT(is_int24(imm24));
|
461
|
+
instr_at_put(pos, instr | (imm24 & Imm24Mask));
|
462
|
+
}
|
463
|
+
|
464
|
+
|
465
|
+
void Assembler::print(Label* L) {
|
466
|
+
if (L->is_unused()) {
|
467
|
+
PrintF("unused label\n");
|
468
|
+
} else if (L->is_bound()) {
|
469
|
+
PrintF("bound label to %d\n", L->pos());
|
470
|
+
} else if (L->is_linked()) {
|
471
|
+
Label l = *L;
|
472
|
+
PrintF("unbound label");
|
473
|
+
while (l.is_linked()) {
|
474
|
+
PrintF("@ %d ", l.pos());
|
475
|
+
Instr instr = instr_at(l.pos());
|
476
|
+
if ((instr & ~Imm24Mask) == 0) {
|
477
|
+
PrintF("value\n");
|
478
|
+
} else {
|
479
|
+
ASSERT((instr & 7*B25) == 5*B25); // b, bl, or blx
|
480
|
+
int cond = instr & CondMask;
|
481
|
+
const char* b;
|
482
|
+
const char* c;
|
483
|
+
if (cond == nv) {
|
484
|
+
b = "blx";
|
485
|
+
c = "";
|
486
|
+
} else {
|
487
|
+
if ((instr & B24) != 0)
|
488
|
+
b = "bl";
|
489
|
+
else
|
490
|
+
b = "b";
|
491
|
+
|
492
|
+
switch (cond) {
|
493
|
+
case eq: c = "eq"; break;
|
494
|
+
case ne: c = "ne"; break;
|
495
|
+
case hs: c = "hs"; break;
|
496
|
+
case lo: c = "lo"; break;
|
497
|
+
case mi: c = "mi"; break;
|
498
|
+
case pl: c = "pl"; break;
|
499
|
+
case vs: c = "vs"; break;
|
500
|
+
case vc: c = "vc"; break;
|
501
|
+
case hi: c = "hi"; break;
|
502
|
+
case ls: c = "ls"; break;
|
503
|
+
case ge: c = "ge"; break;
|
504
|
+
case lt: c = "lt"; break;
|
505
|
+
case gt: c = "gt"; break;
|
506
|
+
case le: c = "le"; break;
|
507
|
+
case al: c = ""; break;
|
508
|
+
default:
|
509
|
+
c = "";
|
510
|
+
UNREACHABLE();
|
511
|
+
}
|
512
|
+
}
|
513
|
+
PrintF("%s%s\n", b, c);
|
514
|
+
}
|
515
|
+
next(&l);
|
516
|
+
}
|
517
|
+
} else {
|
518
|
+
PrintF("label in inconsistent state (pos = %d)\n", L->pos_);
|
519
|
+
}
|
520
|
+
}
|
521
|
+
|
522
|
+
|
523
|
+
void Assembler::bind_to(Label* L, int pos) {
|
524
|
+
ASSERT(0 <= pos && pos <= pc_offset()); // must have a valid binding position
|
525
|
+
while (L->is_linked()) {
|
526
|
+
int fixup_pos = L->pos();
|
527
|
+
next(L); // call next before overwriting link with target at fixup_pos
|
528
|
+
target_at_put(fixup_pos, pos);
|
529
|
+
}
|
530
|
+
L->bind_to(pos);
|
531
|
+
|
532
|
+
// Keep track of the last bound label so we don't eliminate any instructions
|
533
|
+
// before a bound label.
|
534
|
+
if (pos > last_bound_pos_)
|
535
|
+
last_bound_pos_ = pos;
|
536
|
+
}
|
537
|
+
|
538
|
+
|
539
|
+
void Assembler::link_to(Label* L, Label* appendix) {
|
540
|
+
if (appendix->is_linked()) {
|
541
|
+
if (L->is_linked()) {
|
542
|
+
// append appendix to L's list
|
543
|
+
int fixup_pos;
|
544
|
+
int link = L->pos();
|
545
|
+
do {
|
546
|
+
fixup_pos = link;
|
547
|
+
link = target_at(fixup_pos);
|
548
|
+
} while (link > 0);
|
549
|
+
ASSERT(link == kEndOfChain);
|
550
|
+
target_at_put(fixup_pos, appendix->pos());
|
551
|
+
} else {
|
552
|
+
// L is empty, simply use appendix
|
553
|
+
*L = *appendix;
|
554
|
+
}
|
555
|
+
}
|
556
|
+
appendix->Unuse(); // appendix should not be used anymore
|
557
|
+
}
|
558
|
+
|
559
|
+
|
560
|
+
void Assembler::bind(Label* L) {
|
561
|
+
ASSERT(!L->is_bound()); // label can only be bound once
|
562
|
+
bind_to(L, pc_offset());
|
563
|
+
}
|
564
|
+
|
565
|
+
|
566
|
+
void Assembler::next(Label* L) {
|
567
|
+
ASSERT(L->is_linked());
|
568
|
+
int link = target_at(L->pos());
|
569
|
+
if (link > 0) {
|
570
|
+
L->link_to(link);
|
571
|
+
} else {
|
572
|
+
ASSERT(link == kEndOfChain);
|
573
|
+
L->Unuse();
|
574
|
+
}
|
575
|
+
}
|
576
|
+
|
577
|
+
|
578
|
+
// Low-level code emission routines depending on the addressing mode
|
579
|
+
static bool fits_shifter(uint32_t imm32,
|
580
|
+
uint32_t* rotate_imm,
|
581
|
+
uint32_t* immed_8,
|
582
|
+
Instr* instr) {
|
583
|
+
// imm32 must be unsigned
|
584
|
+
for (int rot = 0; rot < 16; rot++) {
|
585
|
+
uint32_t imm8 = (imm32 << 2*rot) | (imm32 >> (32 - 2*rot));
|
586
|
+
if ((imm8 <= 0xff)) {
|
587
|
+
*rotate_imm = rot;
|
588
|
+
*immed_8 = imm8;
|
589
|
+
return true;
|
590
|
+
}
|
591
|
+
}
|
592
|
+
// if the opcode is mov or mvn and if ~imm32 fits, change the opcode
|
593
|
+
if (instr != NULL && (*instr & 0xd*B21) == 0xd*B21) {
|
594
|
+
if (fits_shifter(~imm32, rotate_imm, immed_8, NULL)) {
|
595
|
+
*instr ^= 0x2*B21;
|
596
|
+
return true;
|
597
|
+
}
|
598
|
+
}
|
599
|
+
return false;
|
600
|
+
}
|
601
|
+
|
602
|
+
|
603
|
+
// We have to use the temporary register for things that can be relocated even
|
604
|
+
// if they can be encoded in the ARM's 12 bits of immediate-offset instruction
|
605
|
+
// space. There is no guarantee that the relocated location can be similarly
|
606
|
+
// encoded.
|
607
|
+
static bool MustUseIp(RelocInfo::Mode rmode) {
|
608
|
+
if (rmode == RelocInfo::EXTERNAL_REFERENCE) {
|
609
|
+
#ifdef DEBUG
|
610
|
+
if (!Serializer::enabled()) {
|
611
|
+
Serializer::TooLateToEnableNow();
|
612
|
+
}
|
613
|
+
#endif
|
614
|
+
return Serializer::enabled();
|
615
|
+
} else if (rmode == RelocInfo::NONE) {
|
616
|
+
return false;
|
617
|
+
}
|
618
|
+
return true;
|
619
|
+
}
|
620
|
+
|
621
|
+
|
622
|
+
void Assembler::addrmod1(Instr instr,
|
623
|
+
Register rn,
|
624
|
+
Register rd,
|
625
|
+
const Operand& x) {
|
626
|
+
CheckBuffer();
|
627
|
+
ASSERT((instr & ~(CondMask | OpCodeMask | S)) == 0);
|
628
|
+
if (!x.rm_.is_valid()) {
|
629
|
+
// immediate
|
630
|
+
uint32_t rotate_imm;
|
631
|
+
uint32_t immed_8;
|
632
|
+
if (MustUseIp(x.rmode_) ||
|
633
|
+
!fits_shifter(x.imm32_, &rotate_imm, &immed_8, &instr)) {
|
634
|
+
// The immediate operand cannot be encoded as a shifter operand, so load
|
635
|
+
// it first to register ip and change the original instruction to use ip.
|
636
|
+
// However, if the original instruction is a 'mov rd, x' (not setting the
|
637
|
+
// condition code), then replace it with a 'ldr rd, [pc]'
|
638
|
+
RecordRelocInfo(x.rmode_, x.imm32_);
|
639
|
+
CHECK(!rn.is(ip)); // rn should never be ip, or will be trashed
|
640
|
+
Condition cond = static_cast<Condition>(instr & CondMask);
|
641
|
+
if ((instr & ~CondMask) == 13*B21) { // mov, S not set
|
642
|
+
ldr(rd, MemOperand(pc, 0), cond);
|
643
|
+
} else {
|
644
|
+
ldr(ip, MemOperand(pc, 0), cond);
|
645
|
+
addrmod1(instr, rn, rd, Operand(ip));
|
646
|
+
}
|
647
|
+
return;
|
648
|
+
}
|
649
|
+
instr |= I | rotate_imm*B8 | immed_8;
|
650
|
+
} else if (!x.rs_.is_valid()) {
|
651
|
+
// immediate shift
|
652
|
+
instr |= x.shift_imm_*B7 | x.shift_op_ | x.rm_.code();
|
653
|
+
} else {
|
654
|
+
// register shift
|
655
|
+
ASSERT(!rn.is(pc) && !rd.is(pc) && !x.rm_.is(pc) && !x.rs_.is(pc));
|
656
|
+
instr |= x.rs_.code()*B8 | x.shift_op_ | B4 | x.rm_.code();
|
657
|
+
}
|
658
|
+
emit(instr | rn.code()*B16 | rd.code()*B12);
|
659
|
+
if (rn.is(pc) || x.rm_.is(pc))
|
660
|
+
// block constant pool emission for one instruction after reading pc
|
661
|
+
BlockConstPoolBefore(pc_offset() + kInstrSize);
|
662
|
+
}
|
663
|
+
|
664
|
+
|
665
|
+
void Assembler::addrmod2(Instr instr, Register rd, const MemOperand& x) {
|
666
|
+
ASSERT((instr & ~(CondMask | B | L)) == B26);
|
667
|
+
int am = x.am_;
|
668
|
+
if (!x.rm_.is_valid()) {
|
669
|
+
// immediate offset
|
670
|
+
int offset_12 = x.offset_;
|
671
|
+
if (offset_12 < 0) {
|
672
|
+
offset_12 = -offset_12;
|
673
|
+
am ^= U;
|
674
|
+
}
|
675
|
+
if (!is_uint12(offset_12)) {
|
676
|
+
// immediate offset cannot be encoded, load it first to register ip
|
677
|
+
// rn (and rd in a load) should never be ip, or will be trashed
|
678
|
+
ASSERT(!x.rn_.is(ip) && ((instr & L) == L || !rd.is(ip)));
|
679
|
+
mov(ip, Operand(x.offset_), LeaveCC,
|
680
|
+
static_cast<Condition>(instr & CondMask));
|
681
|
+
addrmod2(instr, rd, MemOperand(x.rn_, ip, x.am_));
|
682
|
+
return;
|
683
|
+
}
|
684
|
+
ASSERT(offset_12 >= 0); // no masking needed
|
685
|
+
instr |= offset_12;
|
686
|
+
} else {
|
687
|
+
// register offset (shift_imm_ and shift_op_ are 0) or scaled
|
688
|
+
// register offset the constructors make sure than both shift_imm_
|
689
|
+
// and shift_op_ are initialized
|
690
|
+
ASSERT(!x.rm_.is(pc));
|
691
|
+
instr |= B25 | x.shift_imm_*B7 | x.shift_op_ | x.rm_.code();
|
692
|
+
}
|
693
|
+
ASSERT((am & (P|W)) == P || !x.rn_.is(pc)); // no pc base with writeback
|
694
|
+
emit(instr | am | x.rn_.code()*B16 | rd.code()*B12);
|
695
|
+
}
|
696
|
+
|
697
|
+
|
698
|
+
void Assembler::addrmod3(Instr instr, Register rd, const MemOperand& x) {
|
699
|
+
ASSERT((instr & ~(CondMask | L | S6 | H)) == (B4 | B7));
|
700
|
+
ASSERT(x.rn_.is_valid());
|
701
|
+
int am = x.am_;
|
702
|
+
if (!x.rm_.is_valid()) {
|
703
|
+
// immediate offset
|
704
|
+
int offset_8 = x.offset_;
|
705
|
+
if (offset_8 < 0) {
|
706
|
+
offset_8 = -offset_8;
|
707
|
+
am ^= U;
|
708
|
+
}
|
709
|
+
if (!is_uint8(offset_8)) {
|
710
|
+
// immediate offset cannot be encoded, load it first to register ip
|
711
|
+
// rn (and rd in a load) should never be ip, or will be trashed
|
712
|
+
ASSERT(!x.rn_.is(ip) && ((instr & L) == L || !rd.is(ip)));
|
713
|
+
mov(ip, Operand(x.offset_), LeaveCC,
|
714
|
+
static_cast<Condition>(instr & CondMask));
|
715
|
+
addrmod3(instr, rd, MemOperand(x.rn_, ip, x.am_));
|
716
|
+
return;
|
717
|
+
}
|
718
|
+
ASSERT(offset_8 >= 0); // no masking needed
|
719
|
+
instr |= B | (offset_8 >> 4)*B8 | (offset_8 & 0xf);
|
720
|
+
} else if (x.shift_imm_ != 0) {
|
721
|
+
// scaled register offset not supported, load index first
|
722
|
+
// rn (and rd in a load) should never be ip, or will be trashed
|
723
|
+
ASSERT(!x.rn_.is(ip) && ((instr & L) == L || !rd.is(ip)));
|
724
|
+
mov(ip, Operand(x.rm_, x.shift_op_, x.shift_imm_), LeaveCC,
|
725
|
+
static_cast<Condition>(instr & CondMask));
|
726
|
+
addrmod3(instr, rd, MemOperand(x.rn_, ip, x.am_));
|
727
|
+
return;
|
728
|
+
} else {
|
729
|
+
// register offset
|
730
|
+
ASSERT((am & (P|W)) == P || !x.rm_.is(pc)); // no pc index with writeback
|
731
|
+
instr |= x.rm_.code();
|
732
|
+
}
|
733
|
+
ASSERT((am & (P|W)) == P || !x.rn_.is(pc)); // no pc base with writeback
|
734
|
+
emit(instr | am | x.rn_.code()*B16 | rd.code()*B12);
|
735
|
+
}
|
736
|
+
|
737
|
+
|
738
|
+
void Assembler::addrmod4(Instr instr, Register rn, RegList rl) {
|
739
|
+
ASSERT((instr & ~(CondMask | P | U | W | L)) == B27);
|
740
|
+
ASSERT(rl != 0);
|
741
|
+
ASSERT(!rn.is(pc));
|
742
|
+
emit(instr | rn.code()*B16 | rl);
|
743
|
+
}
|
744
|
+
|
745
|
+
|
746
|
+
void Assembler::addrmod5(Instr instr, CRegister crd, const MemOperand& x) {
|
747
|
+
// unindexed addressing is not encoded by this function
|
748
|
+
ASSERT_EQ((B27 | B26),
|
749
|
+
(instr & ~(CondMask | CoprocessorMask | P | U | N | W | L)));
|
750
|
+
ASSERT(x.rn_.is_valid() && !x.rm_.is_valid());
|
751
|
+
int am = x.am_;
|
752
|
+
int offset_8 = x.offset_;
|
753
|
+
ASSERT((offset_8 & 3) == 0); // offset must be an aligned word offset
|
754
|
+
offset_8 >>= 2;
|
755
|
+
if (offset_8 < 0) {
|
756
|
+
offset_8 = -offset_8;
|
757
|
+
am ^= U;
|
758
|
+
}
|
759
|
+
ASSERT(is_uint8(offset_8)); // unsigned word offset must fit in a byte
|
760
|
+
ASSERT((am & (P|W)) == P || !x.rn_.is(pc)); // no pc base with writeback
|
761
|
+
|
762
|
+
// post-indexed addressing requires W == 1; different than in addrmod2/3
|
763
|
+
if ((am & P) == 0)
|
764
|
+
am |= W;
|
765
|
+
|
766
|
+
ASSERT(offset_8 >= 0); // no masking needed
|
767
|
+
emit(instr | am | x.rn_.code()*B16 | crd.code()*B12 | offset_8);
|
768
|
+
}
|
769
|
+
|
770
|
+
|
771
|
+
int Assembler::branch_offset(Label* L, bool jump_elimination_allowed) {
|
772
|
+
int target_pos;
|
773
|
+
if (L->is_bound()) {
|
774
|
+
target_pos = L->pos();
|
775
|
+
} else {
|
776
|
+
if (L->is_linked()) {
|
777
|
+
target_pos = L->pos(); // L's link
|
778
|
+
} else {
|
779
|
+
target_pos = kEndOfChain;
|
780
|
+
}
|
781
|
+
L->link_to(pc_offset());
|
782
|
+
}
|
783
|
+
|
784
|
+
// Block the emission of the constant pool, since the branch instruction must
|
785
|
+
// be emitted at the pc offset recorded by the label
|
786
|
+
BlockConstPoolBefore(pc_offset() + kInstrSize);
|
787
|
+
return target_pos - (pc_offset() + kPcLoadDelta);
|
788
|
+
}
|
789
|
+
|
790
|
+
|
791
|
+
void Assembler::label_at_put(Label* L, int at_offset) {
|
792
|
+
int target_pos;
|
793
|
+
if (L->is_bound()) {
|
794
|
+
target_pos = L->pos();
|
795
|
+
} else {
|
796
|
+
if (L->is_linked()) {
|
797
|
+
target_pos = L->pos(); // L's link
|
798
|
+
} else {
|
799
|
+
target_pos = kEndOfChain;
|
800
|
+
}
|
801
|
+
L->link_to(at_offset);
|
802
|
+
instr_at_put(at_offset, target_pos + (Code::kHeaderSize - kHeapObjectTag));
|
803
|
+
}
|
804
|
+
}
|
805
|
+
|
806
|
+
|
807
|
+
// Branch instructions
|
808
|
+
void Assembler::b(int branch_offset, Condition cond) {
|
809
|
+
ASSERT((branch_offset & 3) == 0);
|
810
|
+
int imm24 = branch_offset >> 2;
|
811
|
+
ASSERT(is_int24(imm24));
|
812
|
+
emit(cond | B27 | B25 | (imm24 & Imm24Mask));
|
813
|
+
|
814
|
+
if (cond == al)
|
815
|
+
// dead code is a good location to emit the constant pool
|
816
|
+
CheckConstPool(false, false);
|
817
|
+
}
|
818
|
+
|
819
|
+
|
820
|
+
void Assembler::bl(int branch_offset, Condition cond) {
|
821
|
+
ASSERT((branch_offset & 3) == 0);
|
822
|
+
int imm24 = branch_offset >> 2;
|
823
|
+
ASSERT(is_int24(imm24));
|
824
|
+
emit(cond | B27 | B25 | B24 | (imm24 & Imm24Mask));
|
825
|
+
}
|
826
|
+
|
827
|
+
|
828
|
+
void Assembler::blx(int branch_offset) { // v5 and above
|
829
|
+
WriteRecordedPositions();
|
830
|
+
ASSERT((branch_offset & 1) == 0);
|
831
|
+
int h = ((branch_offset & 2) >> 1)*B24;
|
832
|
+
int imm24 = branch_offset >> 2;
|
833
|
+
ASSERT(is_int24(imm24));
|
834
|
+
emit(15 << 28 | B27 | B25 | h | (imm24 & Imm24Mask));
|
835
|
+
}
|
836
|
+
|
837
|
+
|
838
|
+
void Assembler::blx(Register target, Condition cond) { // v5 and above
|
839
|
+
WriteRecordedPositions();
|
840
|
+
ASSERT(!target.is(pc));
|
841
|
+
emit(cond | B24 | B21 | 15*B16 | 15*B12 | 15*B8 | 3*B4 | target.code());
|
842
|
+
}
|
843
|
+
|
844
|
+
|
845
|
+
void Assembler::bx(Register target, Condition cond) { // v5 and above, plus v4t
|
846
|
+
WriteRecordedPositions();
|
847
|
+
ASSERT(!target.is(pc)); // use of pc is actually allowed, but discouraged
|
848
|
+
emit(cond | B24 | B21 | 15*B16 | 15*B12 | 15*B8 | B4 | target.code());
|
849
|
+
}
|
850
|
+
|
851
|
+
|
852
|
+
// Data-processing instructions
|
853
|
+
void Assembler::and_(Register dst, Register src1, const Operand& src2,
|
854
|
+
SBit s, Condition cond) {
|
855
|
+
addrmod1(cond | 0*B21 | s, src1, dst, src2);
|
856
|
+
}
|
857
|
+
|
858
|
+
|
859
|
+
void Assembler::eor(Register dst, Register src1, const Operand& src2,
|
860
|
+
SBit s, Condition cond) {
|
861
|
+
addrmod1(cond | 1*B21 | s, src1, dst, src2);
|
862
|
+
}
|
863
|
+
|
864
|
+
|
865
|
+
void Assembler::sub(Register dst, Register src1, const Operand& src2,
|
866
|
+
SBit s, Condition cond) {
|
867
|
+
addrmod1(cond | 2*B21 | s, src1, dst, src2);
|
868
|
+
}
|
869
|
+
|
870
|
+
|
871
|
+
void Assembler::rsb(Register dst, Register src1, const Operand& src2,
|
872
|
+
SBit s, Condition cond) {
|
873
|
+
addrmod1(cond | 3*B21 | s, src1, dst, src2);
|
874
|
+
}
|
875
|
+
|
876
|
+
|
877
|
+
void Assembler::add(Register dst, Register src1, const Operand& src2,
|
878
|
+
SBit s, Condition cond) {
|
879
|
+
addrmod1(cond | 4*B21 | s, src1, dst, src2);
|
880
|
+
|
881
|
+
// Eliminate pattern: push(r), pop()
|
882
|
+
// str(src, MemOperand(sp, 4, NegPreIndex), al);
|
883
|
+
// add(sp, sp, Operand(kPointerSize));
|
884
|
+
// Both instructions can be eliminated.
|
885
|
+
int pattern_size = 2 * kInstrSize;
|
886
|
+
if (FLAG_push_pop_elimination &&
|
887
|
+
last_bound_pos_ <= (pc_offset() - pattern_size) &&
|
888
|
+
reloc_info_writer.last_pc() <= (pc_ - pattern_size) &&
|
889
|
+
// pattern
|
890
|
+
instr_at(pc_ - 1 * kInstrSize) == kPopInstruction &&
|
891
|
+
(instr_at(pc_ - 2 * kInstrSize) & ~RdMask) == kPushRegPattern) {
|
892
|
+
pc_ -= 2 * kInstrSize;
|
893
|
+
if (FLAG_print_push_pop_elimination) {
|
894
|
+
PrintF("%x push(reg)/pop() eliminated\n", pc_offset());
|
895
|
+
}
|
896
|
+
}
|
897
|
+
}
|
898
|
+
|
899
|
+
|
900
|
+
void Assembler::adc(Register dst, Register src1, const Operand& src2,
|
901
|
+
SBit s, Condition cond) {
|
902
|
+
addrmod1(cond | 5*B21 | s, src1, dst, src2);
|
903
|
+
}
|
904
|
+
|
905
|
+
|
906
|
+
void Assembler::sbc(Register dst, Register src1, const Operand& src2,
|
907
|
+
SBit s, Condition cond) {
|
908
|
+
addrmod1(cond | 6*B21 | s, src1, dst, src2);
|
909
|
+
}
|
910
|
+
|
911
|
+
|
912
|
+
void Assembler::rsc(Register dst, Register src1, const Operand& src2,
|
913
|
+
SBit s, Condition cond) {
|
914
|
+
addrmod1(cond | 7*B21 | s, src1, dst, src2);
|
915
|
+
}
|
916
|
+
|
917
|
+
|
918
|
+
void Assembler::tst(Register src1, const Operand& src2, Condition cond) {
|
919
|
+
addrmod1(cond | 8*B21 | S, src1, r0, src2);
|
920
|
+
}
|
921
|
+
|
922
|
+
|
923
|
+
void Assembler::teq(Register src1, const Operand& src2, Condition cond) {
|
924
|
+
addrmod1(cond | 9*B21 | S, src1, r0, src2);
|
925
|
+
}
|
926
|
+
|
927
|
+
|
928
|
+
void Assembler::cmp(Register src1, const Operand& src2, Condition cond) {
|
929
|
+
addrmod1(cond | 10*B21 | S, src1, r0, src2);
|
930
|
+
}
|
931
|
+
|
932
|
+
|
933
|
+
void Assembler::cmn(Register src1, const Operand& src2, Condition cond) {
|
934
|
+
addrmod1(cond | 11*B21 | S, src1, r0, src2);
|
935
|
+
}
|
936
|
+
|
937
|
+
|
938
|
+
void Assembler::orr(Register dst, Register src1, const Operand& src2,
|
939
|
+
SBit s, Condition cond) {
|
940
|
+
addrmod1(cond | 12*B21 | s, src1, dst, src2);
|
941
|
+
}
|
942
|
+
|
943
|
+
|
944
|
+
void Assembler::mov(Register dst, const Operand& src, SBit s, Condition cond) {
|
945
|
+
if (dst.is(pc)) {
|
946
|
+
WriteRecordedPositions();
|
947
|
+
}
|
948
|
+
addrmod1(cond | 13*B21 | s, r0, dst, src);
|
949
|
+
}
|
950
|
+
|
951
|
+
|
952
|
+
void Assembler::bic(Register dst, Register src1, const Operand& src2,
|
953
|
+
SBit s, Condition cond) {
|
954
|
+
addrmod1(cond | 14*B21 | s, src1, dst, src2);
|
955
|
+
}
|
956
|
+
|
957
|
+
|
958
|
+
void Assembler::mvn(Register dst, const Operand& src, SBit s, Condition cond) {
|
959
|
+
addrmod1(cond | 15*B21 | s, r0, dst, src);
|
960
|
+
}
|
961
|
+
|
962
|
+
|
963
|
+
// Multiply instructions
|
964
|
+
void Assembler::mla(Register dst, Register src1, Register src2, Register srcA,
|
965
|
+
SBit s, Condition cond) {
|
966
|
+
ASSERT(!dst.is(pc) && !src1.is(pc) && !src2.is(pc) && !srcA.is(pc));
|
967
|
+
emit(cond | A | s | dst.code()*B16 | srcA.code()*B12 |
|
968
|
+
src2.code()*B8 | B7 | B4 | src1.code());
|
969
|
+
}
|
970
|
+
|
971
|
+
|
972
|
+
void Assembler::mul(Register dst, Register src1, Register src2,
|
973
|
+
SBit s, Condition cond) {
|
974
|
+
ASSERT(!dst.is(pc) && !src1.is(pc) && !src2.is(pc));
|
975
|
+
// dst goes in bits 16-19 for this instruction!
|
976
|
+
emit(cond | s | dst.code()*B16 | src2.code()*B8 | B7 | B4 | src1.code());
|
977
|
+
}
|
978
|
+
|
979
|
+
|
980
|
+
void Assembler::smlal(Register dstL,
|
981
|
+
Register dstH,
|
982
|
+
Register src1,
|
983
|
+
Register src2,
|
984
|
+
SBit s,
|
985
|
+
Condition cond) {
|
986
|
+
ASSERT(!dstL.is(pc) && !dstH.is(pc) && !src1.is(pc) && !src2.is(pc));
|
987
|
+
ASSERT(!dstL.is(dstH));
|
988
|
+
emit(cond | B23 | B22 | A | s | dstH.code()*B16 | dstL.code()*B12 |
|
989
|
+
src2.code()*B8 | B7 | B4 | src1.code());
|
990
|
+
}
|
991
|
+
|
992
|
+
|
993
|
+
void Assembler::smull(Register dstL,
|
994
|
+
Register dstH,
|
995
|
+
Register src1,
|
996
|
+
Register src2,
|
997
|
+
SBit s,
|
998
|
+
Condition cond) {
|
999
|
+
ASSERT(!dstL.is(pc) && !dstH.is(pc) && !src1.is(pc) && !src2.is(pc));
|
1000
|
+
ASSERT(!dstL.is(dstH));
|
1001
|
+
emit(cond | B23 | B22 | s | dstH.code()*B16 | dstL.code()*B12 |
|
1002
|
+
src2.code()*B8 | B7 | B4 | src1.code());
|
1003
|
+
}
|
1004
|
+
|
1005
|
+
|
1006
|
+
void Assembler::umlal(Register dstL,
|
1007
|
+
Register dstH,
|
1008
|
+
Register src1,
|
1009
|
+
Register src2,
|
1010
|
+
SBit s,
|
1011
|
+
Condition cond) {
|
1012
|
+
ASSERT(!dstL.is(pc) && !dstH.is(pc) && !src1.is(pc) && !src2.is(pc));
|
1013
|
+
ASSERT(!dstL.is(dstH));
|
1014
|
+
emit(cond | B23 | A | s | dstH.code()*B16 | dstL.code()*B12 |
|
1015
|
+
src2.code()*B8 | B7 | B4 | src1.code());
|
1016
|
+
}
|
1017
|
+
|
1018
|
+
|
1019
|
+
void Assembler::umull(Register dstL,
|
1020
|
+
Register dstH,
|
1021
|
+
Register src1,
|
1022
|
+
Register src2,
|
1023
|
+
SBit s,
|
1024
|
+
Condition cond) {
|
1025
|
+
ASSERT(!dstL.is(pc) && !dstH.is(pc) && !src1.is(pc) && !src2.is(pc));
|
1026
|
+
ASSERT(!dstL.is(dstH));
|
1027
|
+
emit(cond | B23 | s | dstH.code()*B16 | dstL.code()*B12 |
|
1028
|
+
src2.code()*B8 | B7 | B4 | src1.code());
|
1029
|
+
}
|
1030
|
+
|
1031
|
+
|
1032
|
+
// Miscellaneous arithmetic instructions
|
1033
|
+
void Assembler::clz(Register dst, Register src, Condition cond) {
|
1034
|
+
// v5 and above.
|
1035
|
+
ASSERT(!dst.is(pc) && !src.is(pc));
|
1036
|
+
emit(cond | B24 | B22 | B21 | 15*B16 | dst.code()*B12 |
|
1037
|
+
15*B8 | B4 | src.code());
|
1038
|
+
}
|
1039
|
+
|
1040
|
+
|
1041
|
+
// Status register access instructions
|
1042
|
+
void Assembler::mrs(Register dst, SRegister s, Condition cond) {
|
1043
|
+
ASSERT(!dst.is(pc));
|
1044
|
+
emit(cond | B24 | s | 15*B16 | dst.code()*B12);
|
1045
|
+
}
|
1046
|
+
|
1047
|
+
|
1048
|
+
void Assembler::msr(SRegisterFieldMask fields, const Operand& src,
|
1049
|
+
Condition cond) {
|
1050
|
+
ASSERT(fields >= B16 && fields < B20); // at least one field set
|
1051
|
+
Instr instr;
|
1052
|
+
if (!src.rm_.is_valid()) {
|
1053
|
+
// immediate
|
1054
|
+
uint32_t rotate_imm;
|
1055
|
+
uint32_t immed_8;
|
1056
|
+
if (MustUseIp(src.rmode_) ||
|
1057
|
+
!fits_shifter(src.imm32_, &rotate_imm, &immed_8, NULL)) {
|
1058
|
+
// immediate operand cannot be encoded, load it first to register ip
|
1059
|
+
RecordRelocInfo(src.rmode_, src.imm32_);
|
1060
|
+
ldr(ip, MemOperand(pc, 0), cond);
|
1061
|
+
msr(fields, Operand(ip), cond);
|
1062
|
+
return;
|
1063
|
+
}
|
1064
|
+
instr = I | rotate_imm*B8 | immed_8;
|
1065
|
+
} else {
|
1066
|
+
ASSERT(!src.rs_.is_valid() && src.shift_imm_ == 0); // only rm allowed
|
1067
|
+
instr = src.rm_.code();
|
1068
|
+
}
|
1069
|
+
emit(cond | instr | B24 | B21 | fields | 15*B12);
|
1070
|
+
}
|
1071
|
+
|
1072
|
+
|
1073
|
+
// Load/Store instructions
|
1074
|
+
void Assembler::ldr(Register dst, const MemOperand& src, Condition cond) {
|
1075
|
+
if (dst.is(pc)) {
|
1076
|
+
WriteRecordedPositions();
|
1077
|
+
}
|
1078
|
+
addrmod2(cond | B26 | L, dst, src);
|
1079
|
+
|
1080
|
+
// Eliminate pattern: push(r), pop(r)
|
1081
|
+
// str(r, MemOperand(sp, 4, NegPreIndex), al)
|
1082
|
+
// ldr(r, MemOperand(sp, 4, PostIndex), al)
|
1083
|
+
// Both instructions can be eliminated.
|
1084
|
+
int pattern_size = 2 * kInstrSize;
|
1085
|
+
if (FLAG_push_pop_elimination &&
|
1086
|
+
last_bound_pos_ <= (pc_offset() - pattern_size) &&
|
1087
|
+
reloc_info_writer.last_pc() <= (pc_ - pattern_size) &&
|
1088
|
+
// pattern
|
1089
|
+
instr_at(pc_ - 1 * kInstrSize) == (kPopRegPattern | dst.code() * B12) &&
|
1090
|
+
instr_at(pc_ - 2 * kInstrSize) == (kPushRegPattern | dst.code() * B12)) {
|
1091
|
+
pc_ -= 2 * kInstrSize;
|
1092
|
+
if (FLAG_print_push_pop_elimination) {
|
1093
|
+
PrintF("%x push/pop (same reg) eliminated\n", pc_offset());
|
1094
|
+
}
|
1095
|
+
}
|
1096
|
+
}
|
1097
|
+
|
1098
|
+
|
1099
|
+
void Assembler::str(Register src, const MemOperand& dst, Condition cond) {
|
1100
|
+
addrmod2(cond | B26, src, dst);
|
1101
|
+
|
1102
|
+
// Eliminate pattern: pop(), push(r)
|
1103
|
+
// add sp, sp, #4 LeaveCC, al; str r, [sp, #-4], al
|
1104
|
+
// -> str r, [sp, 0], al
|
1105
|
+
int pattern_size = 2 * kInstrSize;
|
1106
|
+
if (FLAG_push_pop_elimination &&
|
1107
|
+
last_bound_pos_ <= (pc_offset() - pattern_size) &&
|
1108
|
+
reloc_info_writer.last_pc() <= (pc_ - pattern_size) &&
|
1109
|
+
instr_at(pc_ - 1 * kInstrSize) == (kPushRegPattern | src.code() * B12) &&
|
1110
|
+
instr_at(pc_ - 2 * kInstrSize) == kPopInstruction) {
|
1111
|
+
pc_ -= 2 * kInstrSize;
|
1112
|
+
emit(al | B26 | 0 | Offset | sp.code() * B16 | src.code() * B12);
|
1113
|
+
if (FLAG_print_push_pop_elimination) {
|
1114
|
+
PrintF("%x pop()/push(reg) eliminated\n", pc_offset());
|
1115
|
+
}
|
1116
|
+
}
|
1117
|
+
}
|
1118
|
+
|
1119
|
+
|
1120
|
+
void Assembler::ldrb(Register dst, const MemOperand& src, Condition cond) {
|
1121
|
+
addrmod2(cond | B26 | B | L, dst, src);
|
1122
|
+
}
|
1123
|
+
|
1124
|
+
|
1125
|
+
void Assembler::strb(Register src, const MemOperand& dst, Condition cond) {
|
1126
|
+
addrmod2(cond | B26 | B, src, dst);
|
1127
|
+
}
|
1128
|
+
|
1129
|
+
|
1130
|
+
void Assembler::ldrh(Register dst, const MemOperand& src, Condition cond) {
|
1131
|
+
addrmod3(cond | L | B7 | H | B4, dst, src);
|
1132
|
+
}
|
1133
|
+
|
1134
|
+
|
1135
|
+
void Assembler::strh(Register src, const MemOperand& dst, Condition cond) {
|
1136
|
+
addrmod3(cond | B7 | H | B4, src, dst);
|
1137
|
+
}
|
1138
|
+
|
1139
|
+
|
1140
|
+
void Assembler::ldrsb(Register dst, const MemOperand& src, Condition cond) {
|
1141
|
+
addrmod3(cond | L | B7 | S6 | B4, dst, src);
|
1142
|
+
}
|
1143
|
+
|
1144
|
+
|
1145
|
+
void Assembler::ldrsh(Register dst, const MemOperand& src, Condition cond) {
|
1146
|
+
addrmod3(cond | L | B7 | S6 | H | B4, dst, src);
|
1147
|
+
}
|
1148
|
+
|
1149
|
+
|
1150
|
+
// Load/Store multiple instructions
|
1151
|
+
void Assembler::ldm(BlockAddrMode am,
|
1152
|
+
Register base,
|
1153
|
+
RegList dst,
|
1154
|
+
Condition cond) {
|
1155
|
+
// ABI stack constraint: ldmxx base, {..sp..} base != sp is not restartable
|
1156
|
+
ASSERT(base.is(sp) || (dst & sp.bit()) == 0);
|
1157
|
+
|
1158
|
+
addrmod4(cond | B27 | am | L, base, dst);
|
1159
|
+
|
1160
|
+
// emit the constant pool after a function return implemented by ldm ..{..pc}
|
1161
|
+
if (cond == al && (dst & pc.bit()) != 0) {
|
1162
|
+
// There is a slight chance that the ldm instruction was actually a call,
|
1163
|
+
// in which case it would be wrong to return into the constant pool; we
|
1164
|
+
// recognize this case by checking if the emission of the pool was blocked
|
1165
|
+
// at the pc of the ldm instruction by a mov lr, pc instruction; if this is
|
1166
|
+
// the case, we emit a jump over the pool.
|
1167
|
+
CheckConstPool(true, no_const_pool_before_ == pc_offset() - kInstrSize);
|
1168
|
+
}
|
1169
|
+
}
|
1170
|
+
|
1171
|
+
|
1172
|
+
void Assembler::stm(BlockAddrMode am,
|
1173
|
+
Register base,
|
1174
|
+
RegList src,
|
1175
|
+
Condition cond) {
|
1176
|
+
addrmod4(cond | B27 | am, base, src);
|
1177
|
+
}
|
1178
|
+
|
1179
|
+
|
1180
|
+
// Semaphore instructions
|
1181
|
+
void Assembler::swp(Register dst, Register src, Register base, Condition cond) {
|
1182
|
+
ASSERT(!dst.is(pc) && !src.is(pc) && !base.is(pc));
|
1183
|
+
ASSERT(!dst.is(base) && !src.is(base));
|
1184
|
+
emit(cond | P | base.code()*B16 | dst.code()*B12 |
|
1185
|
+
B7 | B4 | src.code());
|
1186
|
+
}
|
1187
|
+
|
1188
|
+
|
1189
|
+
void Assembler::swpb(Register dst,
|
1190
|
+
Register src,
|
1191
|
+
Register base,
|
1192
|
+
Condition cond) {
|
1193
|
+
ASSERT(!dst.is(pc) && !src.is(pc) && !base.is(pc));
|
1194
|
+
ASSERT(!dst.is(base) && !src.is(base));
|
1195
|
+
emit(cond | P | B | base.code()*B16 | dst.code()*B12 |
|
1196
|
+
B7 | B4 | src.code());
|
1197
|
+
}
|
1198
|
+
|
1199
|
+
|
1200
|
+
// Exception-generating instructions and debugging support
|
1201
|
+
void Assembler::stop(const char* msg) {
|
1202
|
+
#if !defined(__arm__)
|
1203
|
+
// The simulator handles these special instructions and stops execution.
|
1204
|
+
emit(15 << 28 | ((intptr_t) msg));
|
1205
|
+
#else
|
1206
|
+
// Just issue a simple break instruction for now. Alternatively we could use
|
1207
|
+
// the swi(0x9f0001) instruction on Linux.
|
1208
|
+
bkpt(0);
|
1209
|
+
#endif
|
1210
|
+
}
|
1211
|
+
|
1212
|
+
|
1213
|
+
void Assembler::bkpt(uint32_t imm16) { // v5 and above
|
1214
|
+
ASSERT(is_uint16(imm16));
|
1215
|
+
emit(al | B24 | B21 | (imm16 >> 4)*B8 | 7*B4 | (imm16 & 0xf));
|
1216
|
+
}
|
1217
|
+
|
1218
|
+
|
1219
|
+
void Assembler::swi(uint32_t imm24, Condition cond) {
|
1220
|
+
ASSERT(is_uint24(imm24));
|
1221
|
+
emit(cond | 15*B24 | imm24);
|
1222
|
+
}
|
1223
|
+
|
1224
|
+
|
1225
|
+
// Coprocessor instructions
|
1226
|
+
void Assembler::cdp(Coprocessor coproc,
|
1227
|
+
int opcode_1,
|
1228
|
+
CRegister crd,
|
1229
|
+
CRegister crn,
|
1230
|
+
CRegister crm,
|
1231
|
+
int opcode_2,
|
1232
|
+
Condition cond) {
|
1233
|
+
ASSERT(is_uint4(opcode_1) && is_uint3(opcode_2));
|
1234
|
+
emit(cond | B27 | B26 | B25 | (opcode_1 & 15)*B20 | crn.code()*B16 |
|
1235
|
+
crd.code()*B12 | coproc*B8 | (opcode_2 & 7)*B5 | crm.code());
|
1236
|
+
}
|
1237
|
+
|
1238
|
+
|
1239
|
+
void Assembler::cdp2(Coprocessor coproc,
|
1240
|
+
int opcode_1,
|
1241
|
+
CRegister crd,
|
1242
|
+
CRegister crn,
|
1243
|
+
CRegister crm,
|
1244
|
+
int opcode_2) { // v5 and above
|
1245
|
+
cdp(coproc, opcode_1, crd, crn, crm, opcode_2, static_cast<Condition>(nv));
|
1246
|
+
}
|
1247
|
+
|
1248
|
+
|
1249
|
+
void Assembler::mcr(Coprocessor coproc,
|
1250
|
+
int opcode_1,
|
1251
|
+
Register rd,
|
1252
|
+
CRegister crn,
|
1253
|
+
CRegister crm,
|
1254
|
+
int opcode_2,
|
1255
|
+
Condition cond) {
|
1256
|
+
ASSERT(is_uint3(opcode_1) && is_uint3(opcode_2));
|
1257
|
+
emit(cond | B27 | B26 | B25 | (opcode_1 & 7)*B21 | crn.code()*B16 |
|
1258
|
+
rd.code()*B12 | coproc*B8 | (opcode_2 & 7)*B5 | B4 | crm.code());
|
1259
|
+
}
|
1260
|
+
|
1261
|
+
|
1262
|
+
void Assembler::mcr2(Coprocessor coproc,
|
1263
|
+
int opcode_1,
|
1264
|
+
Register rd,
|
1265
|
+
CRegister crn,
|
1266
|
+
CRegister crm,
|
1267
|
+
int opcode_2) { // v5 and above
|
1268
|
+
mcr(coproc, opcode_1, rd, crn, crm, opcode_2, static_cast<Condition>(nv));
|
1269
|
+
}
|
1270
|
+
|
1271
|
+
|
1272
|
+
void Assembler::mrc(Coprocessor coproc,
|
1273
|
+
int opcode_1,
|
1274
|
+
Register rd,
|
1275
|
+
CRegister crn,
|
1276
|
+
CRegister crm,
|
1277
|
+
int opcode_2,
|
1278
|
+
Condition cond) {
|
1279
|
+
ASSERT(is_uint3(opcode_1) && is_uint3(opcode_2));
|
1280
|
+
emit(cond | B27 | B26 | B25 | (opcode_1 & 7)*B21 | L | crn.code()*B16 |
|
1281
|
+
rd.code()*B12 | coproc*B8 | (opcode_2 & 7)*B5 | B4 | crm.code());
|
1282
|
+
}
|
1283
|
+
|
1284
|
+
|
1285
|
+
void Assembler::mrc2(Coprocessor coproc,
|
1286
|
+
int opcode_1,
|
1287
|
+
Register rd,
|
1288
|
+
CRegister crn,
|
1289
|
+
CRegister crm,
|
1290
|
+
int opcode_2) { // v5 and above
|
1291
|
+
mrc(coproc, opcode_1, rd, crn, crm, opcode_2, static_cast<Condition>(nv));
|
1292
|
+
}
|
1293
|
+
|
1294
|
+
|
1295
|
+
void Assembler::ldc(Coprocessor coproc,
|
1296
|
+
CRegister crd,
|
1297
|
+
const MemOperand& src,
|
1298
|
+
LFlag l,
|
1299
|
+
Condition cond) {
|
1300
|
+
addrmod5(cond | B27 | B26 | l | L | coproc*B8, crd, src);
|
1301
|
+
}
|
1302
|
+
|
1303
|
+
|
1304
|
+
void Assembler::ldc(Coprocessor coproc,
|
1305
|
+
CRegister crd,
|
1306
|
+
Register rn,
|
1307
|
+
int option,
|
1308
|
+
LFlag l,
|
1309
|
+
Condition cond) {
|
1310
|
+
// unindexed addressing
|
1311
|
+
ASSERT(is_uint8(option));
|
1312
|
+
emit(cond | B27 | B26 | U | l | L | rn.code()*B16 | crd.code()*B12 |
|
1313
|
+
coproc*B8 | (option & 255));
|
1314
|
+
}
|
1315
|
+
|
1316
|
+
|
1317
|
+
void Assembler::ldc2(Coprocessor coproc,
|
1318
|
+
CRegister crd,
|
1319
|
+
const MemOperand& src,
|
1320
|
+
LFlag l) { // v5 and above
|
1321
|
+
ldc(coproc, crd, src, l, static_cast<Condition>(nv));
|
1322
|
+
}
|
1323
|
+
|
1324
|
+
|
1325
|
+
void Assembler::ldc2(Coprocessor coproc,
|
1326
|
+
CRegister crd,
|
1327
|
+
Register rn,
|
1328
|
+
int option,
|
1329
|
+
LFlag l) { // v5 and above
|
1330
|
+
ldc(coproc, crd, rn, option, l, static_cast<Condition>(nv));
|
1331
|
+
}
|
1332
|
+
|
1333
|
+
|
1334
|
+
void Assembler::stc(Coprocessor coproc,
|
1335
|
+
CRegister crd,
|
1336
|
+
const MemOperand& dst,
|
1337
|
+
LFlag l,
|
1338
|
+
Condition cond) {
|
1339
|
+
addrmod5(cond | B27 | B26 | l | coproc*B8, crd, dst);
|
1340
|
+
}
|
1341
|
+
|
1342
|
+
|
1343
|
+
void Assembler::stc(Coprocessor coproc,
|
1344
|
+
CRegister crd,
|
1345
|
+
Register rn,
|
1346
|
+
int option,
|
1347
|
+
LFlag l,
|
1348
|
+
Condition cond) {
|
1349
|
+
// unindexed addressing
|
1350
|
+
ASSERT(is_uint8(option));
|
1351
|
+
emit(cond | B27 | B26 | U | l | rn.code()*B16 | crd.code()*B12 |
|
1352
|
+
coproc*B8 | (option & 255));
|
1353
|
+
}
|
1354
|
+
|
1355
|
+
|
1356
|
+
void Assembler::stc2(Coprocessor
|
1357
|
+
coproc, CRegister crd,
|
1358
|
+
const MemOperand& dst,
|
1359
|
+
LFlag l) { // v5 and above
|
1360
|
+
stc(coproc, crd, dst, l, static_cast<Condition>(nv));
|
1361
|
+
}
|
1362
|
+
|
1363
|
+
|
1364
|
+
void Assembler::stc2(Coprocessor coproc,
|
1365
|
+
CRegister crd,
|
1366
|
+
Register rn,
|
1367
|
+
int option,
|
1368
|
+
LFlag l) { // v5 and above
|
1369
|
+
stc(coproc, crd, rn, option, l, static_cast<Condition>(nv));
|
1370
|
+
}
|
1371
|
+
|
1372
|
+
|
1373
|
+
// Support for VFP.
|
1374
|
+
void Assembler::vmov(const DwVfpRegister dst,
|
1375
|
+
const Register src1,
|
1376
|
+
const Register src2,
|
1377
|
+
const Condition cond) {
|
1378
|
+
// Dm = <Rt,Rt2>.
|
1379
|
+
// Instruction details available in ARM DDI 0406A, A8-646.
|
1380
|
+
// cond(31-28) | 1100(27-24)| 010(23-21) | op=0(20) | Rt2(19-16) |
|
1381
|
+
// Rt(15-12) | 1011(11-8) | 00(7-6) | M(5) | 1(4) | Vm
|
1382
|
+
ASSERT(CpuFeatures::IsEnabled(VFP3));
|
1383
|
+
ASSERT(!src1.is(pc) && !src2.is(pc));
|
1384
|
+
emit(cond | 0xC*B24 | B22 | src2.code()*B16 |
|
1385
|
+
src1.code()*B12 | 0xB*B8 | B4 | dst.code());
|
1386
|
+
}
|
1387
|
+
|
1388
|
+
|
1389
|
+
void Assembler::vmov(const Register dst1,
|
1390
|
+
const Register dst2,
|
1391
|
+
const DwVfpRegister src,
|
1392
|
+
const Condition cond) {
|
1393
|
+
// <Rt,Rt2> = Dm.
|
1394
|
+
// Instruction details available in ARM DDI 0406A, A8-646.
|
1395
|
+
// cond(31-28) | 1100(27-24)| 010(23-21) | op=1(20) | Rt2(19-16) |
|
1396
|
+
// Rt(15-12) | 1011(11-8) | 00(7-6) | M(5) | 1(4) | Vm
|
1397
|
+
ASSERT(CpuFeatures::IsEnabled(VFP3));
|
1398
|
+
ASSERT(!dst1.is(pc) && !dst2.is(pc));
|
1399
|
+
emit(cond | 0xC*B24 | B22 | B20 | dst2.code()*B16 |
|
1400
|
+
dst1.code()*B12 | 0xB*B8 | B4 | src.code());
|
1401
|
+
}
|
1402
|
+
|
1403
|
+
|
1404
|
+
void Assembler::vmov(const SwVfpRegister dst,
|
1405
|
+
const Register src,
|
1406
|
+
const Condition cond) {
|
1407
|
+
// Sn = Rt.
|
1408
|
+
// Instruction details available in ARM DDI 0406A, A8-642.
|
1409
|
+
// cond(31-28) | 1110(27-24)| 000(23-21) | op=0(20) | Vn(19-16) |
|
1410
|
+
// Rt(15-12) | 1010(11-8) | N(7)=0 | 00(6-5) | 1(4) | 0000(3-0)
|
1411
|
+
ASSERT(CpuFeatures::IsEnabled(VFP3));
|
1412
|
+
ASSERT(!src.is(pc));
|
1413
|
+
emit(cond | 0xE*B24 | (dst.code() >> 1)*B16 |
|
1414
|
+
src.code()*B12 | 0xA*B8 | (0x1 & dst.code())*B7 | B4);
|
1415
|
+
}
|
1416
|
+
|
1417
|
+
|
1418
|
+
void Assembler::vmov(const Register dst,
|
1419
|
+
const SwVfpRegister src,
|
1420
|
+
const Condition cond) {
|
1421
|
+
// Rt = Sn.
|
1422
|
+
// Instruction details available in ARM DDI 0406A, A8-642.
|
1423
|
+
// cond(31-28) | 1110(27-24)| 000(23-21) | op=1(20) | Vn(19-16) |
|
1424
|
+
// Rt(15-12) | 1010(11-8) | N(7)=0 | 00(6-5) | 1(4) | 0000(3-0)
|
1425
|
+
ASSERT(CpuFeatures::IsEnabled(VFP3));
|
1426
|
+
ASSERT(!dst.is(pc));
|
1427
|
+
emit(cond | 0xE*B24 | B20 | (src.code() >> 1)*B16 |
|
1428
|
+
dst.code()*B12 | 0xA*B8 | (0x1 & src.code())*B7 | B4);
|
1429
|
+
}
|
1430
|
+
|
1431
|
+
|
1432
|
+
void Assembler::vcvt(const DwVfpRegister dst,
|
1433
|
+
const SwVfpRegister src,
|
1434
|
+
const Condition cond) {
|
1435
|
+
// Dd = Sm (integer in Sm converted to IEEE 64-bit doubles in Dd).
|
1436
|
+
// Instruction details available in ARM DDI 0406A, A8-576.
|
1437
|
+
// cond(31-28) | 11101(27-23)| D=?(22) | 11(21-20) | 1(19) |opc2=000(18-16) |
|
1438
|
+
// Vd(15-12) | 101(11-9) | sz(8)=1 | op(7)=1 | 1(6) | M=?(5) | 0(4) | Vm(3-0)
|
1439
|
+
ASSERT(CpuFeatures::IsEnabled(VFP3));
|
1440
|
+
emit(cond | 0xE*B24 | B23 | 0x3*B20 | B19 |
|
1441
|
+
dst.code()*B12 | 0x5*B9 | B8 | B7 | B6 |
|
1442
|
+
(0x1 & src.code())*B5 | (src.code() >> 1));
|
1443
|
+
}
|
1444
|
+
|
1445
|
+
|
1446
|
+
void Assembler::vcvt(const SwVfpRegister dst,
|
1447
|
+
const DwVfpRegister src,
|
1448
|
+
const Condition cond) {
|
1449
|
+
// Sd = Dm (IEEE 64-bit doubles in Dm converted to 32 bit integer in Sd).
|
1450
|
+
// Instruction details available in ARM DDI 0406A, A8-576.
|
1451
|
+
// cond(31-28) | 11101(27-23)| D=?(22) | 11(21-20) | 1(19) | opc2=101(18-16)|
|
1452
|
+
// Vd(15-12) | 101(11-9) | sz(8)=1 | op(7)=? | 1(6) | M=?(5) | 0(4) | Vm(3-0)
|
1453
|
+
ASSERT(CpuFeatures::IsEnabled(VFP3));
|
1454
|
+
emit(cond | 0xE*B24 | B23 |(0x1 & dst.code())*B22 |
|
1455
|
+
0x3*B20 | B19 | 0x5*B16 | (dst.code() >> 1)*B12 |
|
1456
|
+
0x5*B9 | B8 | B7 | B6 | src.code());
|
1457
|
+
}
|
1458
|
+
|
1459
|
+
|
1460
|
+
void Assembler::vadd(const DwVfpRegister dst,
|
1461
|
+
const DwVfpRegister src1,
|
1462
|
+
const DwVfpRegister src2,
|
1463
|
+
const Condition cond) {
|
1464
|
+
// Dd = vadd(Dn, Dm) double precision floating point addition.
|
1465
|
+
// Dd = D:Vd; Dm=M:Vm; Dn=N:Vm.
|
1466
|
+
// Instruction details available in ARM DDI 0406A, A8-536.
|
1467
|
+
// cond(31-28) | 11100(27-23)| D=?(22) | 11(21-20) | Vn(19-16) |
|
1468
|
+
// Vd(15-12) | 101(11-9) | sz(8)=1 | N(7)=0 | 0(6) | M=?(5) | 0(4) | Vm(3-0)
|
1469
|
+
ASSERT(CpuFeatures::IsEnabled(VFP3));
|
1470
|
+
emit(cond | 0xE*B24 | 0x3*B20 | src1.code()*B16 |
|
1471
|
+
dst.code()*B12 | 0x5*B9 | B8 | src2.code());
|
1472
|
+
}
|
1473
|
+
|
1474
|
+
|
1475
|
+
void Assembler::vsub(const DwVfpRegister dst,
|
1476
|
+
const DwVfpRegister src1,
|
1477
|
+
const DwVfpRegister src2,
|
1478
|
+
const Condition cond) {
|
1479
|
+
// Dd = vsub(Dn, Dm) double precision floating point subtraction.
|
1480
|
+
// Dd = D:Vd; Dm=M:Vm; Dn=N:Vm.
|
1481
|
+
// Instruction details available in ARM DDI 0406A, A8-784.
|
1482
|
+
// cond(31-28) | 11100(27-23)| D=?(22) | 11(21-20) | Vn(19-16) |
|
1483
|
+
// Vd(15-12) | 101(11-9) | sz(8)=1 | N(7)=0 | 1(6) | M=?(5) | 0(4) | Vm(3-0)
|
1484
|
+
ASSERT(CpuFeatures::IsEnabled(VFP3));
|
1485
|
+
emit(cond | 0xE*B24 | 0x3*B20 | src1.code()*B16 |
|
1486
|
+
dst.code()*B12 | 0x5*B9 | B8 | B6 | src2.code());
|
1487
|
+
}
|
1488
|
+
|
1489
|
+
|
1490
|
+
void Assembler::vmul(const DwVfpRegister dst,
|
1491
|
+
const DwVfpRegister src1,
|
1492
|
+
const DwVfpRegister src2,
|
1493
|
+
const Condition cond) {
|
1494
|
+
// Dd = vmul(Dn, Dm) double precision floating point multiplication.
|
1495
|
+
// Dd = D:Vd; Dm=M:Vm; Dn=N:Vm.
|
1496
|
+
// Instruction details available in ARM DDI 0406A, A8-784.
|
1497
|
+
// cond(31-28) | 11100(27-23)| D=?(22) | 10(21-20) | Vn(19-16) |
|
1498
|
+
// Vd(15-12) | 101(11-9) | sz(8)=1 | N(7)=0 | 0(6) | M=?(5) | 0(4) | Vm(3-0)
|
1499
|
+
ASSERT(CpuFeatures::IsEnabled(VFP3));
|
1500
|
+
emit(cond | 0xE*B24 | 0x2*B20 | src1.code()*B16 |
|
1501
|
+
dst.code()*B12 | 0x5*B9 | B8 | src2.code());
|
1502
|
+
}
|
1503
|
+
|
1504
|
+
|
1505
|
+
void Assembler::vdiv(const DwVfpRegister dst,
|
1506
|
+
const DwVfpRegister src1,
|
1507
|
+
const DwVfpRegister src2,
|
1508
|
+
const Condition cond) {
|
1509
|
+
// Dd = vdiv(Dn, Dm) double precision floating point division.
|
1510
|
+
// Dd = D:Vd; Dm=M:Vm; Dn=N:Vm.
|
1511
|
+
// Instruction details available in ARM DDI 0406A, A8-584.
|
1512
|
+
// cond(31-28) | 11101(27-23)| D=?(22) | 00(21-20) | Vn(19-16) |
|
1513
|
+
// Vd(15-12) | 101(11-9) | sz(8)=1 | N(7)=? | 0(6) | M=?(5) | 0(4) | Vm(3-0)
|
1514
|
+
ASSERT(CpuFeatures::IsEnabled(VFP3));
|
1515
|
+
emit(cond | 0xE*B24 | B23 | src1.code()*B16 |
|
1516
|
+
dst.code()*B12 | 0x5*B9 | B8 | src2.code());
|
1517
|
+
}
|
1518
|
+
|
1519
|
+
|
1520
|
+
void Assembler::vcmp(const DwVfpRegister src1,
|
1521
|
+
const DwVfpRegister src2,
|
1522
|
+
const SBit s,
|
1523
|
+
const Condition cond) {
|
1524
|
+
// vcmp(Dd, Dm) double precision floating point comparison.
|
1525
|
+
// Instruction details available in ARM DDI 0406A, A8-570.
|
1526
|
+
// cond(31-28) | 11101 (27-23)| D=?(22) | 11 (21-20) | 0100 (19-16) |
|
1527
|
+
// Vd(15-12) | 101(11-9) | sz(8)=1 | E(7)=? | 1(6) | M(5)=? | 0(4) | Vm(3-0)
|
1528
|
+
ASSERT(CpuFeatures::IsEnabled(VFP3));
|
1529
|
+
emit(cond | 0xE*B24 |B23 | 0x3*B20 | B18 |
|
1530
|
+
src1.code()*B12 | 0x5*B9 | B8 | B6 | src2.code());
|
1531
|
+
}
|
1532
|
+
|
1533
|
+
|
1534
|
+
void Assembler::vmrs(Register dst, Condition cond) {
|
1535
|
+
// Instruction details available in ARM DDI 0406A, A8-652.
|
1536
|
+
// cond(31-28) | 1110 (27-24) | 1111(23-20)| 0001 (19-16) |
|
1537
|
+
// Rt(15-12) | 1010 (11-8) | 0(7) | 00 (6-5) | 1(4) | 0000(3-0)
|
1538
|
+
ASSERT(CpuFeatures::IsEnabled(VFP3));
|
1539
|
+
emit(cond | 0xE*B24 | 0xF*B20 | B16 |
|
1540
|
+
dst.code()*B12 | 0xA*B8 | B4);
|
1541
|
+
}
|
1542
|
+
|
1543
|
+
|
1544
|
+
// Pseudo instructions
|
1545
|
+
void Assembler::lea(Register dst,
|
1546
|
+
const MemOperand& x,
|
1547
|
+
SBit s,
|
1548
|
+
Condition cond) {
|
1549
|
+
int am = x.am_;
|
1550
|
+
if (!x.rm_.is_valid()) {
|
1551
|
+
// immediate offset
|
1552
|
+
if ((am & P) == 0) // post indexing
|
1553
|
+
mov(dst, Operand(x.rn_), s, cond);
|
1554
|
+
else if ((am & U) == 0) // negative indexing
|
1555
|
+
sub(dst, x.rn_, Operand(x.offset_), s, cond);
|
1556
|
+
else
|
1557
|
+
add(dst, x.rn_, Operand(x.offset_), s, cond);
|
1558
|
+
} else {
|
1559
|
+
// Register offset (shift_imm_ and shift_op_ are 0) or scaled
|
1560
|
+
// register offset the constructors make sure than both shift_imm_
|
1561
|
+
// and shift_op_ are initialized.
|
1562
|
+
ASSERT(!x.rm_.is(pc));
|
1563
|
+
if ((am & P) == 0) // post indexing
|
1564
|
+
mov(dst, Operand(x.rn_), s, cond);
|
1565
|
+
else if ((am & U) == 0) // negative indexing
|
1566
|
+
sub(dst, x.rn_, Operand(x.rm_, x.shift_op_, x.shift_imm_), s, cond);
|
1567
|
+
else
|
1568
|
+
add(dst, x.rn_, Operand(x.rm_, x.shift_op_, x.shift_imm_), s, cond);
|
1569
|
+
}
|
1570
|
+
}
|
1571
|
+
|
1572
|
+
|
1573
|
+
bool Assembler::ImmediateFitsAddrMode1Instruction(int32_t imm32) {
|
1574
|
+
uint32_t dummy1;
|
1575
|
+
uint32_t dummy2;
|
1576
|
+
return fits_shifter(imm32, &dummy1, &dummy2, NULL);
|
1577
|
+
}
|
1578
|
+
|
1579
|
+
|
1580
|
+
void Assembler::BlockConstPoolFor(int instructions) {
|
1581
|
+
BlockConstPoolBefore(pc_offset() + instructions * kInstrSize);
|
1582
|
+
}
|
1583
|
+
|
1584
|
+
|
1585
|
+
// Debugging
|
1586
|
+
void Assembler::RecordJSReturn() {
|
1587
|
+
WriteRecordedPositions();
|
1588
|
+
CheckBuffer();
|
1589
|
+
RecordRelocInfo(RelocInfo::JS_RETURN);
|
1590
|
+
}
|
1591
|
+
|
1592
|
+
|
1593
|
+
void Assembler::RecordComment(const char* msg) {
|
1594
|
+
if (FLAG_debug_code) {
|
1595
|
+
CheckBuffer();
|
1596
|
+
RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg));
|
1597
|
+
}
|
1598
|
+
}
|
1599
|
+
|
1600
|
+
|
1601
|
+
void Assembler::RecordPosition(int pos) {
|
1602
|
+
if (pos == RelocInfo::kNoPosition) return;
|
1603
|
+
ASSERT(pos >= 0);
|
1604
|
+
current_position_ = pos;
|
1605
|
+
}
|
1606
|
+
|
1607
|
+
|
1608
|
+
void Assembler::RecordStatementPosition(int pos) {
|
1609
|
+
if (pos == RelocInfo::kNoPosition) return;
|
1610
|
+
ASSERT(pos >= 0);
|
1611
|
+
current_statement_position_ = pos;
|
1612
|
+
}
|
1613
|
+
|
1614
|
+
|
1615
|
+
void Assembler::WriteRecordedPositions() {
|
1616
|
+
// Write the statement position if it is different from what was written last
|
1617
|
+
// time.
|
1618
|
+
if (current_statement_position_ != written_statement_position_) {
|
1619
|
+
CheckBuffer();
|
1620
|
+
RecordRelocInfo(RelocInfo::STATEMENT_POSITION, current_statement_position_);
|
1621
|
+
written_statement_position_ = current_statement_position_;
|
1622
|
+
}
|
1623
|
+
|
1624
|
+
// Write the position if it is different from what was written last time and
|
1625
|
+
// also different from the written statement position.
|
1626
|
+
if (current_position_ != written_position_ &&
|
1627
|
+
current_position_ != written_statement_position_) {
|
1628
|
+
CheckBuffer();
|
1629
|
+
RecordRelocInfo(RelocInfo::POSITION, current_position_);
|
1630
|
+
written_position_ = current_position_;
|
1631
|
+
}
|
1632
|
+
}
|
1633
|
+
|
1634
|
+
|
1635
|
+
void Assembler::GrowBuffer() {
|
1636
|
+
if (!own_buffer_) FATAL("external code buffer is too small");
|
1637
|
+
|
1638
|
+
// compute new buffer size
|
1639
|
+
CodeDesc desc; // the new buffer
|
1640
|
+
if (buffer_size_ < 4*KB) {
|
1641
|
+
desc.buffer_size = 4*KB;
|
1642
|
+
} else if (buffer_size_ < 1*MB) {
|
1643
|
+
desc.buffer_size = 2*buffer_size_;
|
1644
|
+
} else {
|
1645
|
+
desc.buffer_size = buffer_size_ + 1*MB;
|
1646
|
+
}
|
1647
|
+
CHECK_GT(desc.buffer_size, 0); // no overflow
|
1648
|
+
|
1649
|
+
// setup new buffer
|
1650
|
+
desc.buffer = NewArray<byte>(desc.buffer_size);
|
1651
|
+
|
1652
|
+
desc.instr_size = pc_offset();
|
1653
|
+
desc.reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos();
|
1654
|
+
|
1655
|
+
// copy the data
|
1656
|
+
int pc_delta = desc.buffer - buffer_;
|
1657
|
+
int rc_delta = (desc.buffer + desc.buffer_size) - (buffer_ + buffer_size_);
|
1658
|
+
memmove(desc.buffer, buffer_, desc.instr_size);
|
1659
|
+
memmove(reloc_info_writer.pos() + rc_delta,
|
1660
|
+
reloc_info_writer.pos(), desc.reloc_size);
|
1661
|
+
|
1662
|
+
// switch buffers
|
1663
|
+
DeleteArray(buffer_);
|
1664
|
+
buffer_ = desc.buffer;
|
1665
|
+
buffer_size_ = desc.buffer_size;
|
1666
|
+
pc_ += pc_delta;
|
1667
|
+
reloc_info_writer.Reposition(reloc_info_writer.pos() + rc_delta,
|
1668
|
+
reloc_info_writer.last_pc() + pc_delta);
|
1669
|
+
|
1670
|
+
// none of our relocation types are pc relative pointing outside the code
|
1671
|
+
// buffer nor pc absolute pointing inside the code buffer, so there is no need
|
1672
|
+
// to relocate any emitted relocation entries
|
1673
|
+
|
1674
|
+
// relocate pending relocation entries
|
1675
|
+
for (int i = 0; i < num_prinfo_; i++) {
|
1676
|
+
RelocInfo& rinfo = prinfo_[i];
|
1677
|
+
ASSERT(rinfo.rmode() != RelocInfo::COMMENT &&
|
1678
|
+
rinfo.rmode() != RelocInfo::POSITION);
|
1679
|
+
if (rinfo.rmode() != RelocInfo::JS_RETURN) {
|
1680
|
+
rinfo.set_pc(rinfo.pc() + pc_delta);
|
1681
|
+
}
|
1682
|
+
}
|
1683
|
+
}
|
1684
|
+
|
1685
|
+
|
1686
|
+
void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) {
|
1687
|
+
RelocInfo rinfo(pc_, rmode, data); // we do not try to reuse pool constants
|
1688
|
+
if (rmode >= RelocInfo::JS_RETURN && rmode <= RelocInfo::STATEMENT_POSITION) {
|
1689
|
+
// Adjust code for new modes
|
1690
|
+
ASSERT(RelocInfo::IsJSReturn(rmode)
|
1691
|
+
|| RelocInfo::IsComment(rmode)
|
1692
|
+
|| RelocInfo::IsPosition(rmode));
|
1693
|
+
// these modes do not need an entry in the constant pool
|
1694
|
+
} else {
|
1695
|
+
ASSERT(num_prinfo_ < kMaxNumPRInfo);
|
1696
|
+
prinfo_[num_prinfo_++] = rinfo;
|
1697
|
+
// Make sure the constant pool is not emitted in place of the next
|
1698
|
+
// instruction for which we just recorded relocation info
|
1699
|
+
BlockConstPoolBefore(pc_offset() + kInstrSize);
|
1700
|
+
}
|
1701
|
+
if (rinfo.rmode() != RelocInfo::NONE) {
|
1702
|
+
// Don't record external references unless the heap will be serialized.
|
1703
|
+
if (rmode == RelocInfo::EXTERNAL_REFERENCE) {
|
1704
|
+
#ifdef DEBUG
|
1705
|
+
if (!Serializer::enabled()) {
|
1706
|
+
Serializer::TooLateToEnableNow();
|
1707
|
+
}
|
1708
|
+
#endif
|
1709
|
+
if (!Serializer::enabled() && !FLAG_debug_code) {
|
1710
|
+
return;
|
1711
|
+
}
|
1712
|
+
}
|
1713
|
+
ASSERT(buffer_space() >= kMaxRelocSize); // too late to grow buffer here
|
1714
|
+
reloc_info_writer.Write(&rinfo);
|
1715
|
+
}
|
1716
|
+
}
|
1717
|
+
|
1718
|
+
|
1719
|
+
void Assembler::CheckConstPool(bool force_emit, bool require_jump) {
|
1720
|
+
// Calculate the offset of the next check. It will be overwritten
|
1721
|
+
// when a const pool is generated or when const pools are being
|
1722
|
+
// blocked for a specific range.
|
1723
|
+
next_buffer_check_ = pc_offset() + kCheckConstInterval;
|
1724
|
+
|
1725
|
+
// There is nothing to do if there are no pending relocation info entries
|
1726
|
+
if (num_prinfo_ == 0) return;
|
1727
|
+
|
1728
|
+
// We emit a constant pool at regular intervals of about kDistBetweenPools
|
1729
|
+
// or when requested by parameter force_emit (e.g. after each function).
|
1730
|
+
// We prefer not to emit a jump unless the max distance is reached or if we
|
1731
|
+
// are running low on slots, which can happen if a lot of constants are being
|
1732
|
+
// emitted (e.g. --debug-code and many static references).
|
1733
|
+
int dist = pc_offset() - last_const_pool_end_;
|
1734
|
+
if (!force_emit && dist < kMaxDistBetweenPools &&
|
1735
|
+
(require_jump || dist < kDistBetweenPools) &&
|
1736
|
+
// TODO(1236125): Cleanup the "magic" number below. We know that
|
1737
|
+
// the code generation will test every kCheckConstIntervalInst.
|
1738
|
+
// Thus we are safe as long as we generate less than 7 constant
|
1739
|
+
// entries per instruction.
|
1740
|
+
(num_prinfo_ < (kMaxNumPRInfo - (7 * kCheckConstIntervalInst)))) {
|
1741
|
+
return;
|
1742
|
+
}
|
1743
|
+
|
1744
|
+
// If we did not return by now, we need to emit the constant pool soon.
|
1745
|
+
|
1746
|
+
// However, some small sequences of instructions must not be broken up by the
|
1747
|
+
// insertion of a constant pool; such sequences are protected by setting
|
1748
|
+
// no_const_pool_before_, which is checked here. Also, recursive calls to
|
1749
|
+
// CheckConstPool are blocked by no_const_pool_before_.
|
1750
|
+
if (pc_offset() < no_const_pool_before_) {
|
1751
|
+
// Emission is currently blocked; make sure we try again as soon as possible
|
1752
|
+
next_buffer_check_ = no_const_pool_before_;
|
1753
|
+
|
1754
|
+
// Something is wrong if emission is forced and blocked at the same time
|
1755
|
+
ASSERT(!force_emit);
|
1756
|
+
return;
|
1757
|
+
}
|
1758
|
+
|
1759
|
+
int jump_instr = require_jump ? kInstrSize : 0;
|
1760
|
+
|
1761
|
+
// Check that the code buffer is large enough before emitting the constant
|
1762
|
+
// pool and relocation information (include the jump over the pool and the
|
1763
|
+
// constant pool marker).
|
1764
|
+
int max_needed_space =
|
1765
|
+
jump_instr + kInstrSize + num_prinfo_*(kInstrSize + kMaxRelocSize);
|
1766
|
+
while (buffer_space() <= (max_needed_space + kGap)) GrowBuffer();
|
1767
|
+
|
1768
|
+
// Block recursive calls to CheckConstPool
|
1769
|
+
BlockConstPoolBefore(pc_offset() + jump_instr + kInstrSize +
|
1770
|
+
num_prinfo_*kInstrSize);
|
1771
|
+
// Don't bother to check for the emit calls below.
|
1772
|
+
next_buffer_check_ = no_const_pool_before_;
|
1773
|
+
|
1774
|
+
// Emit jump over constant pool if necessary
|
1775
|
+
Label after_pool;
|
1776
|
+
if (require_jump) b(&after_pool);
|
1777
|
+
|
1778
|
+
RecordComment("[ Constant Pool");
|
1779
|
+
|
1780
|
+
// Put down constant pool marker
|
1781
|
+
// "Undefined instruction" as specified by A3.1 Instruction set encoding
|
1782
|
+
emit(0x03000000 | num_prinfo_);
|
1783
|
+
|
1784
|
+
// Emit constant pool entries
|
1785
|
+
for (int i = 0; i < num_prinfo_; i++) {
|
1786
|
+
RelocInfo& rinfo = prinfo_[i];
|
1787
|
+
ASSERT(rinfo.rmode() != RelocInfo::COMMENT &&
|
1788
|
+
rinfo.rmode() != RelocInfo::POSITION &&
|
1789
|
+
rinfo.rmode() != RelocInfo::STATEMENT_POSITION);
|
1790
|
+
Instr instr = instr_at(rinfo.pc());
|
1791
|
+
|
1792
|
+
// Instruction to patch must be a ldr/str [pc, #offset]
|
1793
|
+
// P and U set, B and W clear, Rn == pc, offset12 still 0
|
1794
|
+
ASSERT((instr & (7*B25 | P | U | B | W | 15*B16 | Off12Mask)) ==
|
1795
|
+
(2*B25 | P | U | pc.code()*B16));
|
1796
|
+
int delta = pc_ - rinfo.pc() - 8;
|
1797
|
+
ASSERT(delta >= -4); // instr could be ldr pc, [pc, #-4] followed by targ32
|
1798
|
+
if (delta < 0) {
|
1799
|
+
instr &= ~U;
|
1800
|
+
delta = -delta;
|
1801
|
+
}
|
1802
|
+
ASSERT(is_uint12(delta));
|
1803
|
+
instr_at_put(rinfo.pc(), instr + delta);
|
1804
|
+
emit(rinfo.data());
|
1805
|
+
}
|
1806
|
+
num_prinfo_ = 0;
|
1807
|
+
last_const_pool_end_ = pc_offset();
|
1808
|
+
|
1809
|
+
RecordComment("]");
|
1810
|
+
|
1811
|
+
if (after_pool.is_linked()) {
|
1812
|
+
bind(&after_pool);
|
1813
|
+
}
|
1814
|
+
|
1815
|
+
// Since a constant pool was just emitted, move the check offset forward by
|
1816
|
+
// the standard interval.
|
1817
|
+
next_buffer_check_ = pc_offset() + kCheckConstInterval;
|
1818
|
+
}
|
1819
|
+
|
1820
|
+
|
1821
|
+
} } // namespace v8::internal
|