therubyracer-heroku 0.8.1.pre2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +13 -0
- data/.gitmodules +3 -0
- data/.rspec +1 -0
- data/Changelog.md +165 -0
- data/Gemfile +1 -0
- data/README.md +155 -0
- data/Rakefile +34 -0
- data/bin/therubyracer +13 -0
- data/bin/v8 +8 -0
- data/ext/v8/extconf.rb +25 -0
- data/ext/v8/rr.cpp +175 -0
- data/ext/v8/rr.h +36 -0
- data/ext/v8/upstream/2.3.3/.gitignore +26 -0
- data/ext/v8/upstream/2.3.3/AUTHORS +31 -0
- data/ext/v8/upstream/2.3.3/ChangeLog +1916 -0
- data/ext/v8/upstream/2.3.3/LICENSE +55 -0
- data/ext/v8/upstream/2.3.3/SConstruct +1154 -0
- data/ext/v8/upstream/2.3.3/include/v8-debug.h +381 -0
- data/ext/v8/upstream/2.3.3/include/v8-profiler.h +353 -0
- data/ext/v8/upstream/2.3.3/include/v8.h +3616 -0
- data/ext/v8/upstream/2.3.3/src/SConscript +330 -0
- data/ext/v8/upstream/2.3.3/src/accessors.cc +661 -0
- data/ext/v8/upstream/2.3.3/src/accessors.h +114 -0
- data/ext/v8/upstream/2.3.3/src/allocation.cc +198 -0
- data/ext/v8/upstream/2.3.3/src/allocation.h +169 -0
- data/ext/v8/upstream/2.3.3/src/api.cc +4795 -0
- data/ext/v8/upstream/2.3.3/src/api.h +485 -0
- data/ext/v8/upstream/2.3.3/src/apinatives.js +110 -0
- data/ext/v8/upstream/2.3.3/src/apiutils.h +69 -0
- data/ext/v8/upstream/2.3.3/src/arguments.h +96 -0
- data/ext/v8/upstream/2.3.3/src/arm/assembler-arm-inl.h +305 -0
- data/ext/v8/upstream/2.3.3/src/arm/assembler-arm.cc +2580 -0
- data/ext/v8/upstream/2.3.3/src/arm/assembler-arm.h +1275 -0
- data/ext/v8/upstream/2.3.3/src/arm/builtins-arm.cc +1320 -0
- data/ext/v8/upstream/2.3.3/src/arm/codegen-arm-inl.h +48 -0
- data/ext/v8/upstream/2.3.3/src/arm/codegen-arm.cc +11398 -0
- data/ext/v8/upstream/2.3.3/src/arm/codegen-arm.h +1102 -0
- data/ext/v8/upstream/2.3.3/src/arm/constants-arm.cc +154 -0
- data/ext/v8/upstream/2.3.3/src/arm/constants-arm.h +388 -0
- data/ext/v8/upstream/2.3.3/src/arm/cpu-arm.cc +142 -0
- data/ext/v8/upstream/2.3.3/src/arm/debug-arm.cc +309 -0
- data/ext/v8/upstream/2.3.3/src/arm/disasm-arm.cc +1459 -0
- data/ext/v8/upstream/2.3.3/src/arm/fast-codegen-arm.cc +241 -0
- data/ext/v8/upstream/2.3.3/src/arm/frames-arm.cc +123 -0
- data/ext/v8/upstream/2.3.3/src/arm/frames-arm.h +162 -0
- data/ext/v8/upstream/2.3.3/src/arm/full-codegen-arm.cc +3178 -0
- data/ext/v8/upstream/2.3.3/src/arm/ic-arm.cc +2258 -0
- data/ext/v8/upstream/2.3.3/src/arm/jump-target-arm.cc +164 -0
- data/ext/v8/upstream/2.3.3/src/arm/macro-assembler-arm.cc +1892 -0
- data/ext/v8/upstream/2.3.3/src/arm/macro-assembler-arm.h +727 -0
- data/ext/v8/upstream/2.3.3/src/arm/regexp-macro-assembler-arm.cc +1261 -0
- data/ext/v8/upstream/2.3.3/src/arm/regexp-macro-assembler-arm.h +266 -0
- data/ext/v8/upstream/2.3.3/src/arm/register-allocator-arm-inl.h +100 -0
- data/ext/v8/upstream/2.3.3/src/arm/register-allocator-arm.cc +63 -0
- data/ext/v8/upstream/2.3.3/src/arm/register-allocator-arm.h +44 -0
- data/ext/v8/upstream/2.3.3/src/arm/simulator-arm.cc +2822 -0
- data/ext/v8/upstream/2.3.3/src/arm/simulator-arm.h +361 -0
- data/ext/v8/upstream/2.3.3/src/arm/stub-cache-arm.cc +2387 -0
- data/ext/v8/upstream/2.3.3/src/arm/virtual-frame-arm-inl.h +59 -0
- data/ext/v8/upstream/2.3.3/src/arm/virtual-frame-arm.cc +834 -0
- data/ext/v8/upstream/2.3.3/src/arm/virtual-frame-arm.h +519 -0
- data/ext/v8/upstream/2.3.3/src/array.js +1127 -0
- data/ext/v8/upstream/2.3.3/src/assembler.cc +801 -0
- data/ext/v8/upstream/2.3.3/src/assembler.h +573 -0
- data/ext/v8/upstream/2.3.3/src/ast-inl.h +81 -0
- data/ext/v8/upstream/2.3.3/src/ast.cc +1152 -0
- data/ext/v8/upstream/2.3.3/src/ast.h +2106 -0
- data/ext/v8/upstream/2.3.3/src/bootstrapper.cc +1819 -0
- data/ext/v8/upstream/2.3.3/src/bootstrapper.h +118 -0
- data/ext/v8/upstream/2.3.3/src/builtins.cc +1529 -0
- data/ext/v8/upstream/2.3.3/src/builtins.h +263 -0
- data/ext/v8/upstream/2.3.3/src/bytecodes-irregexp.h +104 -0
- data/ext/v8/upstream/2.3.3/src/cached-powers.h +119 -0
- data/ext/v8/upstream/2.3.3/src/char-predicates-inl.h +86 -0
- data/ext/v8/upstream/2.3.3/src/char-predicates.h +65 -0
- data/ext/v8/upstream/2.3.3/src/checks.cc +100 -0
- data/ext/v8/upstream/2.3.3/src/checks.h +310 -0
- data/ext/v8/upstream/2.3.3/src/circular-queue-inl.h +53 -0
- data/ext/v8/upstream/2.3.3/src/circular-queue.cc +121 -0
- data/ext/v8/upstream/2.3.3/src/circular-queue.h +103 -0
- data/ext/v8/upstream/2.3.3/src/code-stubs.cc +177 -0
- data/ext/v8/upstream/2.3.3/src/code-stubs.h +177 -0
- data/ext/v8/upstream/2.3.3/src/code.h +68 -0
- data/ext/v8/upstream/2.3.3/src/codegen-inl.h +60 -0
- data/ext/v8/upstream/2.3.3/src/codegen.cc +516 -0
- data/ext/v8/upstream/2.3.3/src/codegen.h +897 -0
- data/ext/v8/upstream/2.3.3/src/compilation-cache.cc +562 -0
- data/ext/v8/upstream/2.3.3/src/compilation-cache.h +102 -0
- data/ext/v8/upstream/2.3.3/src/compiler.cc +654 -0
- data/ext/v8/upstream/2.3.3/src/compiler.h +299 -0
- data/ext/v8/upstream/2.3.3/src/contexts.cc +256 -0
- data/ext/v8/upstream/2.3.3/src/contexts.h +342 -0
- data/ext/v8/upstream/2.3.3/src/conversions-inl.h +110 -0
- data/ext/v8/upstream/2.3.3/src/conversions.cc +1119 -0
- data/ext/v8/upstream/2.3.3/src/conversions.h +123 -0
- data/ext/v8/upstream/2.3.3/src/counters.cc +78 -0
- data/ext/v8/upstream/2.3.3/src/counters.h +239 -0
- data/ext/v8/upstream/2.3.3/src/cpu-profiler-inl.h +100 -0
- data/ext/v8/upstream/2.3.3/src/cpu-profiler.cc +538 -0
- data/ext/v8/upstream/2.3.3/src/cpu-profiler.h +285 -0
- data/ext/v8/upstream/2.3.3/src/cpu.h +65 -0
- data/ext/v8/upstream/2.3.3/src/d8-debug.cc +356 -0
- data/ext/v8/upstream/2.3.3/src/d8-debug.h +155 -0
- data/ext/v8/upstream/2.3.3/src/d8-posix.cc +693 -0
- data/ext/v8/upstream/2.3.3/src/d8-readline.cc +128 -0
- data/ext/v8/upstream/2.3.3/src/d8-windows.cc +42 -0
- data/ext/v8/upstream/2.3.3/src/d8.cc +783 -0
- data/ext/v8/upstream/2.3.3/src/d8.h +227 -0
- data/ext/v8/upstream/2.3.3/src/d8.js +1683 -0
- data/ext/v8/upstream/2.3.3/src/data-flow.cc +758 -0
- data/ext/v8/upstream/2.3.3/src/data-flow.h +278 -0
- data/ext/v8/upstream/2.3.3/src/date.js +1059 -0
- data/ext/v8/upstream/2.3.3/src/dateparser-inl.h +123 -0
- data/ext/v8/upstream/2.3.3/src/dateparser.cc +178 -0
- data/ext/v8/upstream/2.3.3/src/dateparser.h +244 -0
- data/ext/v8/upstream/2.3.3/src/debug-agent.cc +427 -0
- data/ext/v8/upstream/2.3.3/src/debug-agent.h +129 -0
- data/ext/v8/upstream/2.3.3/src/debug-debugger.js +2227 -0
- data/ext/v8/upstream/2.3.3/src/debug.cc +3005 -0
- data/ext/v8/upstream/2.3.3/src/debug.h +993 -0
- data/ext/v8/upstream/2.3.3/src/disasm.h +77 -0
- data/ext/v8/upstream/2.3.3/src/disassembler.cc +312 -0
- data/ext/v8/upstream/2.3.3/src/disassembler.h +56 -0
- data/ext/v8/upstream/2.3.3/src/diy-fp.cc +58 -0
- data/ext/v8/upstream/2.3.3/src/diy-fp.h +117 -0
- data/ext/v8/upstream/2.3.3/src/double.h +169 -0
- data/ext/v8/upstream/2.3.3/src/dtoa-config.c +92 -0
- data/ext/v8/upstream/2.3.3/src/dtoa.cc +77 -0
- data/ext/v8/upstream/2.3.3/src/dtoa.h +81 -0
- data/ext/v8/upstream/2.3.3/src/execution.cc +809 -0
- data/ext/v8/upstream/2.3.3/src/execution.h +336 -0
- data/ext/v8/upstream/2.3.3/src/factory.cc +1003 -0
- data/ext/v8/upstream/2.3.3/src/factory.h +410 -0
- data/ext/v8/upstream/2.3.3/src/fast-codegen.cc +746 -0
- data/ext/v8/upstream/2.3.3/src/fast-codegen.h +161 -0
- data/ext/v8/upstream/2.3.3/src/fast-dtoa.cc +505 -0
- data/ext/v8/upstream/2.3.3/src/fast-dtoa.h +58 -0
- data/ext/v8/upstream/2.3.3/src/fixed-dtoa.cc +405 -0
- data/ext/v8/upstream/2.3.3/src/fixed-dtoa.h +55 -0
- data/ext/v8/upstream/2.3.3/src/flag-definitions.h +455 -0
- data/ext/v8/upstream/2.3.3/src/flags.cc +551 -0
- data/ext/v8/upstream/2.3.3/src/flags.h +81 -0
- data/ext/v8/upstream/2.3.3/src/flow-graph.cc +763 -0
- data/ext/v8/upstream/2.3.3/src/flow-graph.h +180 -0
- data/ext/v8/upstream/2.3.3/src/frame-element.cc +42 -0
- data/ext/v8/upstream/2.3.3/src/frame-element.h +273 -0
- data/ext/v8/upstream/2.3.3/src/frames-inl.h +217 -0
- data/ext/v8/upstream/2.3.3/src/frames.cc +826 -0
- data/ext/v8/upstream/2.3.3/src/frames.h +682 -0
- data/ext/v8/upstream/2.3.3/src/full-codegen.cc +1443 -0
- data/ext/v8/upstream/2.3.3/src/full-codegen.h +548 -0
- data/ext/v8/upstream/2.3.3/src/func-name-inferrer.cc +76 -0
- data/ext/v8/upstream/2.3.3/src/func-name-inferrer.h +135 -0
- data/ext/v8/upstream/2.3.3/src/global-handles.cc +520 -0
- data/ext/v8/upstream/2.3.3/src/global-handles.h +180 -0
- data/ext/v8/upstream/2.3.3/src/globals.h +669 -0
- data/ext/v8/upstream/2.3.3/src/handles-inl.h +76 -0
- data/ext/v8/upstream/2.3.3/src/handles.cc +825 -0
- data/ext/v8/upstream/2.3.3/src/handles.h +393 -0
- data/ext/v8/upstream/2.3.3/src/hashmap.cc +226 -0
- data/ext/v8/upstream/2.3.3/src/hashmap.h +120 -0
- data/ext/v8/upstream/2.3.3/src/heap-inl.h +493 -0
- data/ext/v8/upstream/2.3.3/src/heap-profiler.cc +779 -0
- data/ext/v8/upstream/2.3.3/src/heap-profiler.h +323 -0
- data/ext/v8/upstream/2.3.3/src/heap.cc +4994 -0
- data/ext/v8/upstream/2.3.3/src/heap.h +1984 -0
- data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32-inl.h +360 -0
- data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32.cc +2600 -0
- data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32.h +969 -0
- data/ext/v8/upstream/2.3.3/src/ia32/builtins-ia32.cc +1261 -0
- data/ext/v8/upstream/2.3.3/src/ia32/codegen-ia32-inl.h +46 -0
- data/ext/v8/upstream/2.3.3/src/ia32/codegen-ia32.cc +13968 -0
- data/ext/v8/upstream/2.3.3/src/ia32/codegen-ia32.h +1097 -0
- data/ext/v8/upstream/2.3.3/src/ia32/cpu-ia32.cc +83 -0
- data/ext/v8/upstream/2.3.3/src/ia32/debug-ia32.cc +309 -0
- data/ext/v8/upstream/2.3.3/src/ia32/disasm-ia32.cc +1471 -0
- data/ext/v8/upstream/2.3.3/src/ia32/fast-codegen-ia32.cc +954 -0
- data/ext/v8/upstream/2.3.3/src/ia32/fast-codegen-ia32.h +155 -0
- data/ext/v8/upstream/2.3.3/src/ia32/frames-ia32.cc +115 -0
- data/ext/v8/upstream/2.3.3/src/ia32/frames-ia32.h +135 -0
- data/ext/v8/upstream/2.3.3/src/ia32/full-codegen-ia32.cc +3281 -0
- data/ext/v8/upstream/2.3.3/src/ia32/ic-ia32.cc +1966 -0
- data/ext/v8/upstream/2.3.3/src/ia32/jump-target-ia32.cc +437 -0
- data/ext/v8/upstream/2.3.3/src/ia32/macro-assembler-ia32.cc +1610 -0
- data/ext/v8/upstream/2.3.3/src/ia32/macro-assembler-ia32.h +610 -0
- data/ext/v8/upstream/2.3.3/src/ia32/regexp-macro-assembler-ia32.cc +1247 -0
- data/ext/v8/upstream/2.3.3/src/ia32/regexp-macro-assembler-ia32.h +214 -0
- data/ext/v8/upstream/2.3.3/src/ia32/register-allocator-ia32-inl.h +82 -0
- data/ext/v8/upstream/2.3.3/src/ia32/register-allocator-ia32.cc +157 -0
- data/ext/v8/upstream/2.3.3/src/ia32/register-allocator-ia32.h +43 -0
- data/ext/v8/upstream/2.3.3/src/ia32/simulator-ia32.cc +30 -0
- data/ext/v8/upstream/2.3.3/src/ia32/simulator-ia32.h +62 -0
- data/ext/v8/upstream/2.3.3/src/ia32/stub-cache-ia32.cc +2750 -0
- data/ext/v8/upstream/2.3.3/src/ia32/virtual-frame-ia32.cc +1334 -0
- data/ext/v8/upstream/2.3.3/src/ia32/virtual-frame-ia32.h +627 -0
- data/ext/v8/upstream/2.3.3/src/ic-inl.h +120 -0
- data/ext/v8/upstream/2.3.3/src/ic.cc +1827 -0
- data/ext/v8/upstream/2.3.3/src/ic.h +515 -0
- data/ext/v8/upstream/2.3.3/src/interpreter-irregexp.cc +646 -0
- data/ext/v8/upstream/2.3.3/src/interpreter-irregexp.h +48 -0
- data/ext/v8/upstream/2.3.3/src/json.js +268 -0
- data/ext/v8/upstream/2.3.3/src/jsregexp.cc +5283 -0
- data/ext/v8/upstream/2.3.3/src/jsregexp.h +1463 -0
- data/ext/v8/upstream/2.3.3/src/jump-target-heavy-inl.h +51 -0
- data/ext/v8/upstream/2.3.3/src/jump-target-heavy.cc +429 -0
- data/ext/v8/upstream/2.3.3/src/jump-target-heavy.h +244 -0
- data/ext/v8/upstream/2.3.3/src/jump-target-inl.h +48 -0
- data/ext/v8/upstream/2.3.3/src/jump-target-light-inl.h +56 -0
- data/ext/v8/upstream/2.3.3/src/jump-target-light.cc +110 -0
- data/ext/v8/upstream/2.3.3/src/jump-target-light.h +192 -0
- data/ext/v8/upstream/2.3.3/src/jump-target.cc +91 -0
- data/ext/v8/upstream/2.3.3/src/jump-target.h +90 -0
- data/ext/v8/upstream/2.3.3/src/list-inl.h +166 -0
- data/ext/v8/upstream/2.3.3/src/list.h +159 -0
- data/ext/v8/upstream/2.3.3/src/liveedit-debugger.js +1057 -0
- data/ext/v8/upstream/2.3.3/src/liveedit.cc +1480 -0
- data/ext/v8/upstream/2.3.3/src/liveedit.h +170 -0
- data/ext/v8/upstream/2.3.3/src/log-inl.h +59 -0
- data/ext/v8/upstream/2.3.3/src/log-utils.cc +497 -0
- data/ext/v8/upstream/2.3.3/src/log-utils.h +289 -0
- data/ext/v8/upstream/2.3.3/src/log.cc +1561 -0
- data/ext/v8/upstream/2.3.3/src/log.h +384 -0
- data/ext/v8/upstream/2.3.3/src/macro-assembler.h +86 -0
- data/ext/v8/upstream/2.3.3/src/macros.py +177 -0
- data/ext/v8/upstream/2.3.3/src/mark-compact.cc +2330 -0
- data/ext/v8/upstream/2.3.3/src/mark-compact.h +451 -0
- data/ext/v8/upstream/2.3.3/src/math.js +264 -0
- data/ext/v8/upstream/2.3.3/src/memory.h +74 -0
- data/ext/v8/upstream/2.3.3/src/messages.cc +183 -0
- data/ext/v8/upstream/2.3.3/src/messages.h +113 -0
- data/ext/v8/upstream/2.3.3/src/messages.js +982 -0
- data/ext/v8/upstream/2.3.3/src/mips/assembler-mips-inl.h +215 -0
- data/ext/v8/upstream/2.3.3/src/mips/assembler-mips.cc +1219 -0
- data/ext/v8/upstream/2.3.3/src/mips/assembler-mips.h +668 -0
- data/ext/v8/upstream/2.3.3/src/mips/builtins-mips.cc +205 -0
- data/ext/v8/upstream/2.3.3/src/mips/codegen-mips-inl.h +70 -0
- data/ext/v8/upstream/2.3.3/src/mips/codegen-mips.cc +1437 -0
- data/ext/v8/upstream/2.3.3/src/mips/codegen-mips.h +434 -0
- data/ext/v8/upstream/2.3.3/src/mips/constants-mips.cc +328 -0
- data/ext/v8/upstream/2.3.3/src/mips/constants-mips.h +525 -0
- data/ext/v8/upstream/2.3.3/src/mips/cpu-mips.cc +73 -0
- data/ext/v8/upstream/2.3.3/src/mips/debug-mips.cc +131 -0
- data/ext/v8/upstream/2.3.3/src/mips/disasm-mips.cc +787 -0
- data/ext/v8/upstream/2.3.3/src/mips/fast-codegen-mips.cc +77 -0
- data/ext/v8/upstream/2.3.3/src/mips/frames-mips.cc +102 -0
- data/ext/v8/upstream/2.3.3/src/mips/frames-mips.h +164 -0
- data/ext/v8/upstream/2.3.3/src/mips/full-codegen-mips.cc +277 -0
- data/ext/v8/upstream/2.3.3/src/mips/ic-mips.cc +220 -0
- data/ext/v8/upstream/2.3.3/src/mips/jump-target-mips.cc +175 -0
- data/ext/v8/upstream/2.3.3/src/mips/macro-assembler-mips.cc +1326 -0
- data/ext/v8/upstream/2.3.3/src/mips/macro-assembler-mips.h +461 -0
- data/ext/v8/upstream/2.3.3/src/mips/register-allocator-mips-inl.h +137 -0
- data/ext/v8/upstream/2.3.3/src/mips/register-allocator-mips.cc +63 -0
- data/ext/v8/upstream/2.3.3/src/mips/register-allocator-mips.h +46 -0
- data/ext/v8/upstream/2.3.3/src/mips/simulator-mips.cc +1651 -0
- data/ext/v8/upstream/2.3.3/src/mips/simulator-mips.h +311 -0
- data/ext/v8/upstream/2.3.3/src/mips/stub-cache-mips.cc +403 -0
- data/ext/v8/upstream/2.3.3/src/mips/virtual-frame-mips.cc +319 -0
- data/ext/v8/upstream/2.3.3/src/mips/virtual-frame-mips.h +548 -0
- data/ext/v8/upstream/2.3.3/src/mirror-debugger.js +2380 -0
- data/ext/v8/upstream/2.3.3/src/mksnapshot.cc +256 -0
- data/ext/v8/upstream/2.3.3/src/natives.h +63 -0
- data/ext/v8/upstream/2.3.3/src/objects-debug.cc +1366 -0
- data/ext/v8/upstream/2.3.3/src/objects-inl.h +3333 -0
- data/ext/v8/upstream/2.3.3/src/objects.cc +8820 -0
- data/ext/v8/upstream/2.3.3/src/objects.h +5373 -0
- data/ext/v8/upstream/2.3.3/src/oprofile-agent.cc +108 -0
- data/ext/v8/upstream/2.3.3/src/oprofile-agent.h +77 -0
- data/ext/v8/upstream/2.3.3/src/parser.cc +5207 -0
- data/ext/v8/upstream/2.3.3/src/parser.h +197 -0
- data/ext/v8/upstream/2.3.3/src/platform-freebsd.cc +667 -0
- data/ext/v8/upstream/2.3.3/src/platform-linux.cc +862 -0
- data/ext/v8/upstream/2.3.3/src/platform-macos.cc +665 -0
- data/ext/v8/upstream/2.3.3/src/platform-nullos.cc +454 -0
- data/ext/v8/upstream/2.3.3/src/platform-openbsd.cc +622 -0
- data/ext/v8/upstream/2.3.3/src/platform-posix.cc +362 -0
- data/ext/v8/upstream/2.3.3/src/platform-solaris.cc +653 -0
- data/ext/v8/upstream/2.3.3/src/platform-win32.cc +1911 -0
- data/ext/v8/upstream/2.3.3/src/platform.h +577 -0
- data/ext/v8/upstream/2.3.3/src/powers-ten.h +2461 -0
- data/ext/v8/upstream/2.3.3/src/prettyprinter.cc +1531 -0
- data/ext/v8/upstream/2.3.3/src/prettyprinter.h +221 -0
- data/ext/v8/upstream/2.3.3/src/profile-generator-inl.h +148 -0
- data/ext/v8/upstream/2.3.3/src/profile-generator.cc +1830 -0
- data/ext/v8/upstream/2.3.3/src/profile-generator.h +853 -0
- data/ext/v8/upstream/2.3.3/src/property.cc +96 -0
- data/ext/v8/upstream/2.3.3/src/property.h +315 -0
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-irregexp-inl.h +78 -0
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-irregexp.cc +464 -0
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-irregexp.h +141 -0
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-tracer.cc +356 -0
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-tracer.h +103 -0
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler.cc +261 -0
- data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler.h +228 -0
- data/ext/v8/upstream/2.3.3/src/regexp-stack.cc +103 -0
- data/ext/v8/upstream/2.3.3/src/regexp-stack.h +123 -0
- data/ext/v8/upstream/2.3.3/src/regexp.js +549 -0
- data/ext/v8/upstream/2.3.3/src/register-allocator-inl.h +141 -0
- data/ext/v8/upstream/2.3.3/src/register-allocator.cc +104 -0
- data/ext/v8/upstream/2.3.3/src/register-allocator.h +320 -0
- data/ext/v8/upstream/2.3.3/src/rewriter.cc +1038 -0
- data/ext/v8/upstream/2.3.3/src/rewriter.h +54 -0
- data/ext/v8/upstream/2.3.3/src/runtime.cc +10599 -0
- data/ext/v8/upstream/2.3.3/src/runtime.h +459 -0
- data/ext/v8/upstream/2.3.3/src/runtime.js +629 -0
- data/ext/v8/upstream/2.3.3/src/scanner.cc +1346 -0
- data/ext/v8/upstream/2.3.3/src/scanner.h +503 -0
- data/ext/v8/upstream/2.3.3/src/scopeinfo.cc +637 -0
- data/ext/v8/upstream/2.3.3/src/scopeinfo.h +233 -0
- data/ext/v8/upstream/2.3.3/src/scopes.cc +962 -0
- data/ext/v8/upstream/2.3.3/src/scopes.h +400 -0
- data/ext/v8/upstream/2.3.3/src/serialize.cc +1461 -0
- data/ext/v8/upstream/2.3.3/src/serialize.h +581 -0
- data/ext/v8/upstream/2.3.3/src/shell.h +55 -0
- data/ext/v8/upstream/2.3.3/src/simulator.h +43 -0
- data/ext/v8/upstream/2.3.3/src/smart-pointer.h +109 -0
- data/ext/v8/upstream/2.3.3/src/snapshot-common.cc +82 -0
- data/ext/v8/upstream/2.3.3/src/snapshot-empty.cc +50 -0
- data/ext/v8/upstream/2.3.3/src/snapshot.h +71 -0
- data/ext/v8/upstream/2.3.3/src/spaces-inl.h +483 -0
- data/ext/v8/upstream/2.3.3/src/spaces.cc +2901 -0
- data/ext/v8/upstream/2.3.3/src/spaces.h +2197 -0
- data/ext/v8/upstream/2.3.3/src/splay-tree-inl.h +310 -0
- data/ext/v8/upstream/2.3.3/src/splay-tree.h +203 -0
- data/ext/v8/upstream/2.3.3/src/string-stream.cc +584 -0
- data/ext/v8/upstream/2.3.3/src/string-stream.h +189 -0
- data/ext/v8/upstream/2.3.3/src/string.js +1006 -0
- data/ext/v8/upstream/2.3.3/src/stub-cache.cc +1379 -0
- data/ext/v8/upstream/2.3.3/src/stub-cache.h +756 -0
- data/ext/v8/upstream/2.3.3/src/third_party/dtoa/COPYING +15 -0
- data/ext/v8/upstream/2.3.3/src/third_party/dtoa/dtoa.c +3334 -0
- data/ext/v8/upstream/2.3.3/src/third_party/valgrind/valgrind.h +3925 -0
- data/ext/v8/upstream/2.3.3/src/token.cc +56 -0
- data/ext/v8/upstream/2.3.3/src/token.h +270 -0
- data/ext/v8/upstream/2.3.3/src/top.cc +1067 -0
- data/ext/v8/upstream/2.3.3/src/top.h +463 -0
- data/ext/v8/upstream/2.3.3/src/type-info.cc +53 -0
- data/ext/v8/upstream/2.3.3/src/type-info.h +244 -0
- data/ext/v8/upstream/2.3.3/src/unbound-queue-inl.h +95 -0
- data/ext/v8/upstream/2.3.3/src/unbound-queue.h +67 -0
- data/ext/v8/upstream/2.3.3/src/unicode-inl.h +238 -0
- data/ext/v8/upstream/2.3.3/src/unicode.cc +749 -0
- data/ext/v8/upstream/2.3.3/src/unicode.h +279 -0
- data/ext/v8/upstream/2.3.3/src/uri.js +415 -0
- data/ext/v8/upstream/2.3.3/src/utils.cc +285 -0
- data/ext/v8/upstream/2.3.3/src/utils.h +745 -0
- data/ext/v8/upstream/2.3.3/src/v8-counters.cc +55 -0
- data/ext/v8/upstream/2.3.3/src/v8-counters.h +250 -0
- data/ext/v8/upstream/2.3.3/src/v8.cc +228 -0
- data/ext/v8/upstream/2.3.3/src/v8.h +121 -0
- data/ext/v8/upstream/2.3.3/src/v8dll-main.cc +39 -0
- data/ext/v8/upstream/2.3.3/src/v8natives.js +1188 -0
- data/ext/v8/upstream/2.3.3/src/v8threads.cc +461 -0
- data/ext/v8/upstream/2.3.3/src/v8threads.h +159 -0
- data/ext/v8/upstream/2.3.3/src/variables.cc +119 -0
- data/ext/v8/upstream/2.3.3/src/variables.h +205 -0
- data/ext/v8/upstream/2.3.3/src/version.cc +88 -0
- data/ext/v8/upstream/2.3.3/src/version.h +64 -0
- data/ext/v8/upstream/2.3.3/src/virtual-frame-heavy-inl.h +192 -0
- data/ext/v8/upstream/2.3.3/src/virtual-frame-heavy.cc +312 -0
- data/ext/v8/upstream/2.3.3/src/virtual-frame-inl.h +39 -0
- data/ext/v8/upstream/2.3.3/src/virtual-frame-light-inl.h +170 -0
- data/ext/v8/upstream/2.3.3/src/virtual-frame-light.cc +52 -0
- data/ext/v8/upstream/2.3.3/src/virtual-frame.cc +49 -0
- data/ext/v8/upstream/2.3.3/src/virtual-frame.h +46 -0
- data/ext/v8/upstream/2.3.3/src/vm-state-inl.h +137 -0
- data/ext/v8/upstream/2.3.3/src/vm-state.cc +39 -0
- data/ext/v8/upstream/2.3.3/src/vm-state.h +77 -0
- data/ext/v8/upstream/2.3.3/src/x64/assembler-x64-inl.h +400 -0
- data/ext/v8/upstream/2.3.3/src/x64/assembler-x64.cc +2963 -0
- data/ext/v8/upstream/2.3.3/src/x64/assembler-x64.h +1438 -0
- data/ext/v8/upstream/2.3.3/src/x64/builtins-x64.cc +1296 -0
- data/ext/v8/upstream/2.3.3/src/x64/codegen-x64-inl.h +46 -0
- data/ext/v8/upstream/2.3.3/src/x64/codegen-x64.cc +12491 -0
- data/ext/v8/upstream/2.3.3/src/x64/codegen-x64.h +1090 -0
- data/ext/v8/upstream/2.3.3/src/x64/cpu-x64.cc +83 -0
- data/ext/v8/upstream/2.3.3/src/x64/debug-x64.cc +267 -0
- data/ext/v8/upstream/2.3.3/src/x64/disasm-x64.cc +1696 -0
- data/ext/v8/upstream/2.3.3/src/x64/fast-codegen-x64.cc +250 -0
- data/ext/v8/upstream/2.3.3/src/x64/frames-x64.cc +113 -0
- data/ext/v8/upstream/2.3.3/src/x64/frames-x64.h +125 -0
- data/ext/v8/upstream/2.3.3/src/x64/full-codegen-x64.cc +3270 -0
- data/ext/v8/upstream/2.3.3/src/x64/ic-x64.cc +1907 -0
- data/ext/v8/upstream/2.3.3/src/x64/jump-target-x64.cc +437 -0
- data/ext/v8/upstream/2.3.3/src/x64/macro-assembler-x64.cc +2793 -0
- data/ext/v8/upstream/2.3.3/src/x64/macro-assembler-x64.h +916 -0
- data/ext/v8/upstream/2.3.3/src/x64/regexp-macro-assembler-x64.cc +1374 -0
- data/ext/v8/upstream/2.3.3/src/x64/regexp-macro-assembler-x64.h +277 -0
- data/ext/v8/upstream/2.3.3/src/x64/register-allocator-x64-inl.h +87 -0
- data/ext/v8/upstream/2.3.3/src/x64/register-allocator-x64.cc +91 -0
- data/ext/v8/upstream/2.3.3/src/x64/register-allocator-x64.h +43 -0
- data/ext/v8/upstream/2.3.3/src/x64/simulator-x64.cc +27 -0
- data/ext/v8/upstream/2.3.3/src/x64/simulator-x64.h +63 -0
- data/ext/v8/upstream/2.3.3/src/x64/stub-cache-x64.cc +2560 -0
- data/ext/v8/upstream/2.3.3/src/x64/virtual-frame-x64.cc +1264 -0
- data/ext/v8/upstream/2.3.3/src/x64/virtual-frame-x64.h +590 -0
- data/ext/v8/upstream/2.3.3/src/zone-inl.h +82 -0
- data/ext/v8/upstream/2.3.3/src/zone.cc +194 -0
- data/ext/v8/upstream/2.3.3/src/zone.h +221 -0
- data/ext/v8/upstream/2.3.3/tools/codemap.js +270 -0
- data/ext/v8/upstream/2.3.3/tools/consarray.js +93 -0
- data/ext/v8/upstream/2.3.3/tools/csvparser.js +83 -0
- data/ext/v8/upstream/2.3.3/tools/gc-nvp-trace-processor.py +317 -0
- data/ext/v8/upstream/2.3.3/tools/generate-ten-powers.scm +286 -0
- data/ext/v8/upstream/2.3.3/tools/gyp/v8.gyp +749 -0
- data/ext/v8/upstream/2.3.3/tools/js2c.py +380 -0
- data/ext/v8/upstream/2.3.3/tools/jsmin.py +280 -0
- data/ext/v8/upstream/2.3.3/tools/linux-tick-processor +33 -0
- data/ext/v8/upstream/2.3.3/tools/linux-tick-processor.py +78 -0
- data/ext/v8/upstream/2.3.3/tools/logreader.js +338 -0
- data/ext/v8/upstream/2.3.3/tools/mac-nm +18 -0
- data/ext/v8/upstream/2.3.3/tools/mac-tick-processor +6 -0
- data/ext/v8/upstream/2.3.3/tools/oprofile/annotate +7 -0
- data/ext/v8/upstream/2.3.3/tools/oprofile/common +19 -0
- data/ext/v8/upstream/2.3.3/tools/oprofile/dump +7 -0
- data/ext/v8/upstream/2.3.3/tools/oprofile/report +7 -0
- data/ext/v8/upstream/2.3.3/tools/oprofile/reset +7 -0
- data/ext/v8/upstream/2.3.3/tools/oprofile/run +14 -0
- data/ext/v8/upstream/2.3.3/tools/oprofile/shutdown +7 -0
- data/ext/v8/upstream/2.3.3/tools/oprofile/start +7 -0
- data/ext/v8/upstream/2.3.3/tools/presubmit.py +299 -0
- data/ext/v8/upstream/2.3.3/tools/process-heap-prof.py +120 -0
- data/ext/v8/upstream/2.3.3/tools/profile.js +691 -0
- data/ext/v8/upstream/2.3.3/tools/profile_view.js +224 -0
- data/ext/v8/upstream/2.3.3/tools/run-valgrind.py +77 -0
- data/ext/v8/upstream/2.3.3/tools/splaytree.js +322 -0
- data/ext/v8/upstream/2.3.3/tools/splaytree.py +226 -0
- data/ext/v8/upstream/2.3.3/tools/stats-viewer.py +468 -0
- data/ext/v8/upstream/2.3.3/tools/tickprocessor-driver.js +59 -0
- data/ext/v8/upstream/2.3.3/tools/tickprocessor.js +862 -0
- data/ext/v8/upstream/2.3.3/tools/tickprocessor.py +571 -0
- data/ext/v8/upstream/2.3.3/tools/utils.py +88 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/README.txt +71 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/arm.vsprops +14 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/common.vsprops +34 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/d8.vcproj +193 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/d8_arm.vcproj +193 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/d8_x64.vcproj +209 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/d8js2c.cmd +6 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/debug.vsprops +17 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/ia32.vsprops +17 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/js2c.cmd +6 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/release.vsprops +24 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8.sln +101 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8.vcproj +227 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_arm.sln +74 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_arm.vcproj +227 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base.vcproj +1143 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base_arm.vcproj +1115 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base_x64.vcproj +1096 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_cctest.vcproj +265 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_cctest_arm.vcproj +249 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_cctest_x64.vcproj +257 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_mksnapshot.vcproj +145 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_mksnapshot_x64.vcproj +145 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_process_sample.vcproj +145 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_process_sample_arm.vcproj +145 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_process_sample_x64.vcproj +161 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample.vcproj +145 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample_arm.vcproj +145 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample_x64.vcproj +161 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_snapshot.vcproj +142 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_snapshot_cc.vcproj +92 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_snapshot_cc_x64.vcproj +92 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_snapshot_x64.vcproj +142 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_x64.sln +101 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_x64.vcproj +227 -0
- data/ext/v8/upstream/2.3.3/tools/visual_studio/x64.vsprops +17 -0
- data/ext/v8/upstream/2.3.3/tools/windows-tick-processor.bat +29 -0
- data/ext/v8/upstream/2.3.3/tools/windows-tick-processor.py +137 -0
- data/ext/v8/upstream/Makefile +38 -0
- data/ext/v8/upstream/build/scons/CHANGES.txt +5183 -0
- data/ext/v8/upstream/build/scons/LICENSE.txt +20 -0
- data/ext/v8/upstream/build/scons/MANIFEST +202 -0
- data/ext/v8/upstream/build/scons/PKG-INFO +13 -0
- data/ext/v8/upstream/build/scons/README.txt +273 -0
- data/ext/v8/upstream/build/scons/RELEASE.txt +1040 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Action.py +1256 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Builder.py +868 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/CacheDir.py +217 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Conftest.py +794 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Debug.py +237 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Defaults.py +485 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Environment.py +2327 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Errors.py +207 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Executor.py +636 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Job.py +435 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Memoize.py +292 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Node/Alias.py +153 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Node/FS.py +3220 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Node/Python.py +128 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Node/__init__.py +1341 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Options/BoolOption.py +50 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Options/EnumOption.py +50 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Options/ListOption.py +50 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Options/PackageOption.py +50 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Options/PathOption.py +76 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Options/__init__.py +74 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/PathList.py +232 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/__init__.py +236 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/aix.py +70 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/cygwin.py +55 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/darwin.py +46 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/hpux.py +46 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/irix.py +44 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/os2.py +58 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/posix.py +264 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/sunos.py +50 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/win32.py +386 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/SConf.py +1038 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/SConsign.py +381 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Scanner/C.py +132 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Scanner/D.py +74 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Scanner/Dir.py +111 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Scanner/Fortran.py +320 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Scanner/IDL.py +48 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Scanner/LaTeX.py +378 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Scanner/Prog.py +103 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Scanner/RC.py +55 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Scanner/__init__.py +415 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Script/Interactive.py +386 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Script/Main.py +1360 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Script/SConsOptions.py +944 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Script/SConscript.py +642 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Script/__init__.py +414 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Sig.py +63 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Subst.py +911 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Taskmaster.py +1030 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/386asm.py +61 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/BitKeeper.py +65 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/CVS.py +73 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/FortranCommon.py +247 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/JavaCommon.py +324 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/MSCommon/__init__.py +56 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/MSCommon/arch.py +61 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/MSCommon/common.py +210 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/MSCommon/netframework.py +84 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/MSCommon/sdk.py +321 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/MSCommon/vc.py +367 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/MSCommon/vs.py +497 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/Perforce.py +104 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/PharLapCommon.py +138 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/RCS.py +64 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/SCCS.py +64 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/Subversion.py +71 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/__init__.py +675 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/aixc++.py +82 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/aixcc.py +74 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/aixf77.py +80 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/aixlink.py +76 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/applelink.py +71 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/ar.py +63 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/as.py +78 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/bcc32.py +82 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/c++.py +99 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/cc.py +114 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/cvf.py +58 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/default.py +50 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/dmd.py +224 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/dvi.py +64 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/dvipdf.py +125 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/dvips.py +94 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/f77.py +62 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/f90.py +62 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/f95.py +63 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/filesystem.py +98 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/fortran.py +63 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/g++.py +90 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/g77.py +73 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/gas.py +53 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/gcc.py +80 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/gfortran.py +64 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/gnulink.py +63 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/gs.py +81 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/hpc++.py +85 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/hpcc.py +53 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/hplink.py +77 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/icc.py +59 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/icl.py +52 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/ifl.py +72 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/ifort.py +90 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/ilink.py +59 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/ilink32.py +60 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/install.py +229 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/intelc.py +490 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/ipkg.py +71 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/jar.py +110 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/javac.py +234 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/javah.py +138 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/latex.py +79 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/lex.py +99 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/link.py +121 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/linkloc.py +112 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/m4.py +63 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/masm.py +77 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/midl.py +90 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/mingw.py +159 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/mslib.py +64 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/mslink.py +266 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/mssdk.py +50 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/msvc.py +269 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/msvs.py +1439 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/mwcc.py +208 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/mwld.py +107 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/nasm.py +72 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/__init__.py +314 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/ipk.py +185 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/msi.py +526 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/rpm.py +367 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/src_tarbz2.py +43 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/src_targz.py +43 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/src_zip.py +43 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/tarbz2.py +44 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/targz.py +44 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/zip.py +44 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/pdf.py +78 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/pdflatex.py +83 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/pdftex.py +108 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/qt.py +336 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/rmic.py +121 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/rpcgen.py +70 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/rpm.py +132 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sgiar.py +68 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sgic++.py +58 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sgicc.py +53 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sgilink.py +63 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sunar.py +67 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sunc++.py +142 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/suncc.py +58 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sunf77.py +63 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sunf90.py +64 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sunf95.py +64 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sunlink.py +77 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/swig.py +186 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/tar.py +73 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/tex.py +805 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/textfile.py +175 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/tlib.py +53 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/wix.py +100 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/yacc.py +131 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/zip.py +100 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Util.py +1645 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Variables/BoolVariable.py +91 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Variables/EnumVariable.py +107 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Variables/ListVariable.py +139 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Variables/PackageVariable.py +109 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Variables/PathVariable.py +147 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Variables/__init__.py +317 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/Warnings.py +228 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/__init__.py +49 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/compat/__init__.py +302 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/compat/_scons_UserString.py +98 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/compat/_scons_hashlib.py +91 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/compat/_scons_itertools.py +124 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/compat/_scons_optparse.py +1725 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/compat/_scons_sets.py +583 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/compat/_scons_sets15.py +176 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/compat/_scons_shlex.py +325 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/compat/_scons_subprocess.py +1296 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/compat/_scons_textwrap.py +382 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/compat/builtins.py +187 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/cpp.py +598 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/dblite.py +248 -0
- data/ext/v8/upstream/build/scons/build/lib/SCons/exitfuncs.py +77 -0
- data/ext/v8/upstream/build/scons/build/scripts/scons +184 -0
- data/ext/v8/upstream/build/scons/build/scripts/scons-time +1529 -0
- data/ext/v8/upstream/build/scons/build/scripts/scons.bat +31 -0
- data/ext/v8/upstream/build/scons/build/scripts/sconsign +508 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Action.py +1256 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Builder.py +868 -0
- data/ext/v8/upstream/build/scons/engine/SCons/CacheDir.py +217 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Conftest.py +794 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Debug.py +237 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Defaults.py +485 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Environment.py +2327 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Errors.py +207 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Executor.py +636 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Job.py +435 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Memoize.py +292 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Node/Alias.py +153 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Node/FS.py +3220 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Node/Python.py +128 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Node/__init__.py +1341 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Options/BoolOption.py +50 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Options/EnumOption.py +50 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Options/ListOption.py +50 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Options/PackageOption.py +50 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Options/PathOption.py +76 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Options/__init__.py +74 -0
- data/ext/v8/upstream/build/scons/engine/SCons/PathList.py +232 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Platform/__init__.py +236 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Platform/aix.py +70 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Platform/cygwin.py +55 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Platform/darwin.py +46 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Platform/hpux.py +46 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Platform/irix.py +44 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Platform/os2.py +58 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Platform/posix.py +264 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Platform/sunos.py +50 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Platform/win32.py +386 -0
- data/ext/v8/upstream/build/scons/engine/SCons/SConf.py +1038 -0
- data/ext/v8/upstream/build/scons/engine/SCons/SConsign.py +381 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Scanner/C.py +132 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Scanner/D.py +74 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Scanner/Dir.py +111 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Scanner/Fortran.py +320 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Scanner/IDL.py +48 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Scanner/LaTeX.py +378 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Scanner/Prog.py +103 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Scanner/RC.py +55 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Scanner/__init__.py +415 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Script/Interactive.py +386 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Script/Main.py +1360 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Script/SConsOptions.py +944 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Script/SConscript.py +642 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Script/__init__.py +414 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Sig.py +63 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Subst.py +911 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Taskmaster.py +1030 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/386asm.py +61 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/BitKeeper.py +65 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/CVS.py +73 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/FortranCommon.py +247 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/JavaCommon.py +324 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/MSCommon/__init__.py +56 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/MSCommon/arch.py +61 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/MSCommon/common.py +210 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/MSCommon/netframework.py +84 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/MSCommon/sdk.py +321 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/MSCommon/vc.py +367 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/MSCommon/vs.py +497 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/Perforce.py +104 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/PharLapCommon.py +138 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/RCS.py +64 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/SCCS.py +64 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/Subversion.py +71 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/__init__.py +675 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/aixc++.py +82 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/aixcc.py +74 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/aixf77.py +80 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/aixlink.py +76 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/applelink.py +71 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/ar.py +63 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/as.py +78 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/bcc32.py +82 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/c++.py +99 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/cc.py +114 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/cvf.py +58 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/default.py +50 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/dmd.py +224 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/dvi.py +64 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/dvipdf.py +125 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/dvips.py +94 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/f77.py +62 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/f90.py +62 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/f95.py +63 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/filesystem.py +98 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/fortran.py +63 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/g++.py +90 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/g77.py +73 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/gas.py +53 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/gcc.py +80 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/gfortran.py +64 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/gnulink.py +63 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/gs.py +81 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/hpc++.py +85 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/hpcc.py +53 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/hplink.py +77 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/icc.py +59 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/icl.py +52 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/ifl.py +72 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/ifort.py +90 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/ilink.py +59 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/ilink32.py +60 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/install.py +229 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/intelc.py +490 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/ipkg.py +71 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/jar.py +110 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/javac.py +234 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/javah.py +138 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/latex.py +79 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/lex.py +99 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/link.py +121 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/linkloc.py +112 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/m4.py +63 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/masm.py +77 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/midl.py +90 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/mingw.py +159 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/mslib.py +64 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/mslink.py +266 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/mssdk.py +50 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/msvc.py +269 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/msvs.py +1439 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/mwcc.py +208 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/mwld.py +107 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/nasm.py +72 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/__init__.py +314 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/ipk.py +185 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/msi.py +526 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/rpm.py +367 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/src_tarbz2.py +43 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/src_targz.py +43 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/src_zip.py +43 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/tarbz2.py +44 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/targz.py +44 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/zip.py +44 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/pdf.py +78 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/pdflatex.py +83 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/pdftex.py +108 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/qt.py +336 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/rmic.py +121 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/rpcgen.py +70 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/rpm.py +132 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/sgiar.py +68 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/sgic++.py +58 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/sgicc.py +53 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/sgilink.py +63 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/sunar.py +67 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/sunc++.py +142 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/suncc.py +58 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/sunf77.py +63 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/sunf90.py +64 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/sunf95.py +64 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/sunlink.py +77 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/swig.py +186 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/tar.py +73 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/tex.py +805 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/textfile.py +175 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/tlib.py +53 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/wix.py +100 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/yacc.py +131 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Tool/zip.py +100 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Util.py +1645 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Variables/BoolVariable.py +91 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Variables/EnumVariable.py +107 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Variables/ListVariable.py +139 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Variables/PackageVariable.py +109 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Variables/PathVariable.py +147 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Variables/__init__.py +317 -0
- data/ext/v8/upstream/build/scons/engine/SCons/Warnings.py +228 -0
- data/ext/v8/upstream/build/scons/engine/SCons/__init__.py +49 -0
- data/ext/v8/upstream/build/scons/engine/SCons/compat/__init__.py +302 -0
- data/ext/v8/upstream/build/scons/engine/SCons/compat/_scons_UserString.py +98 -0
- data/ext/v8/upstream/build/scons/engine/SCons/compat/_scons_hashlib.py +91 -0
- data/ext/v8/upstream/build/scons/engine/SCons/compat/_scons_itertools.py +124 -0
- data/ext/v8/upstream/build/scons/engine/SCons/compat/_scons_optparse.py +1725 -0
- data/ext/v8/upstream/build/scons/engine/SCons/compat/_scons_sets.py +583 -0
- data/ext/v8/upstream/build/scons/engine/SCons/compat/_scons_sets15.py +176 -0
- data/ext/v8/upstream/build/scons/engine/SCons/compat/_scons_shlex.py +325 -0
- data/ext/v8/upstream/build/scons/engine/SCons/compat/_scons_subprocess.py +1296 -0
- data/ext/v8/upstream/build/scons/engine/SCons/compat/_scons_textwrap.py +382 -0
- data/ext/v8/upstream/build/scons/engine/SCons/compat/builtins.py +187 -0
- data/ext/v8/upstream/build/scons/engine/SCons/cpp.py +598 -0
- data/ext/v8/upstream/build/scons/engine/SCons/dblite.py +248 -0
- data/ext/v8/upstream/build/scons/engine/SCons/exitfuncs.py +77 -0
- data/ext/v8/upstream/build/scons/install/bin/scons +184 -0
- data/ext/v8/upstream/build/scons/install/bin/scons-1.2.0.d20100117 +184 -0
- data/ext/v8/upstream/build/scons/install/bin/scons-time +1529 -0
- data/ext/v8/upstream/build/scons/install/bin/scons-time-1.2.0.d20100117 +1529 -0
- data/ext/v8/upstream/build/scons/install/bin/sconsign +508 -0
- data/ext/v8/upstream/build/scons/install/bin/sconsign-1.2.0.d20100117 +508 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Action.py +1256 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Action.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Builder.py +868 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Builder.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/CacheDir.py +217 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/CacheDir.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Conftest.py +794 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Conftest.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Debug.py +237 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Debug.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Defaults.py +485 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Defaults.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Environment.py +2327 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Environment.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Errors.py +207 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Errors.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Executor.py +636 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Executor.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Job.py +435 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Job.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Memoize.py +292 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Memoize.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Node/Alias.py +153 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Node/Alias.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Node/FS.py +3220 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Node/FS.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Node/Python.py +128 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Node/Python.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Node/__init__.py +1341 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Node/__init__.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/BoolOption.py +50 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/BoolOption.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/EnumOption.py +50 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/EnumOption.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/ListOption.py +50 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/ListOption.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/PackageOption.py +50 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/PackageOption.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/PathOption.py +76 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/PathOption.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/__init__.py +74 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/__init__.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/PathList.py +232 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/PathList.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/__init__.py +236 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/__init__.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/aix.py +70 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/aix.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/cygwin.py +55 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/cygwin.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/darwin.py +46 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/darwin.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/hpux.py +46 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/hpux.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/irix.py +44 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/irix.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/os2.py +58 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/os2.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/posix.py +264 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/posix.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/sunos.py +50 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/sunos.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/win32.py +386 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/win32.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/SConf.py +1038 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/SConf.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/SConsign.py +381 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/SConsign.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/C.py +132 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/C.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/D.py +74 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/D.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/Dir.py +111 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/Dir.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/Fortran.py +320 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/Fortran.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/IDL.py +48 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/IDL.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/LaTeX.py +378 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/LaTeX.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/Prog.py +103 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/Prog.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/RC.py +55 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/RC.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/__init__.py +415 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/__init__.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/Interactive.py +386 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/Interactive.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/Main.py +1360 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/Main.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/SConsOptions.py +944 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/SConsOptions.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/SConscript.py +642 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/SConscript.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/__init__.py +414 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/__init__.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Sig.py +63 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Sig.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Subst.py +911 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Subst.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Taskmaster.py +1030 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Taskmaster.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/386asm.py +61 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/386asm.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/BitKeeper.py +65 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/BitKeeper.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/CVS.py +73 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/CVS.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/FortranCommon.py +247 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/FortranCommon.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/JavaCommon.py +324 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/JavaCommon.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/__init__.py +56 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/__init__.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/arch.py +61 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/arch.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/common.py +210 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/common.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/netframework.py +84 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/netframework.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/sdk.py +321 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/sdk.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/vc.py +367 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/vc.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/vs.py +497 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/vs.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/Perforce.py +104 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/Perforce.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/PharLapCommon.py +138 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/PharLapCommon.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/RCS.py +64 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/RCS.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/SCCS.py +64 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/SCCS.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/Subversion.py +71 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/Subversion.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/__init__.py +675 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/__init__.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/aixc++.py +82 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/aixc++.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/aixcc.py +74 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/aixcc.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/aixf77.py +80 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/aixf77.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/aixlink.py +76 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/aixlink.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/applelink.py +71 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/applelink.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ar.py +63 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ar.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/as.py +78 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/as.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/bcc32.py +82 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/bcc32.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/c++.py +99 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/c++.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/cc.py +114 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/cc.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/cvf.py +58 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/cvf.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/default.py +50 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/default.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/dmd.py +224 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/dmd.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/dvi.py +64 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/dvi.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/dvipdf.py +125 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/dvipdf.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/dvips.py +94 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/dvips.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/f77.py +62 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/f77.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/f90.py +62 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/f90.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/f95.py +63 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/f95.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/filesystem.py +98 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/filesystem.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/fortran.py +63 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/fortran.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/g++.py +90 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/g++.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/g77.py +73 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/g77.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gas.py +53 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gas.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gcc.py +80 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gcc.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gfortran.py +64 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gfortran.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gnulink.py +63 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gnulink.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gs.py +81 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gs.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/hpc++.py +85 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/hpc++.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/hpcc.py +53 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/hpcc.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/hplink.py +77 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/hplink.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/icc.py +59 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/icc.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/icl.py +52 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/icl.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ifl.py +72 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ifl.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ifort.py +90 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ifort.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ilink.py +59 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ilink.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ilink32.py +60 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ilink32.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/install.py +229 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/install.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/intelc.py +490 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/intelc.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ipkg.py +71 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ipkg.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/jar.py +110 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/jar.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/javac.py +234 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/javac.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/javah.py +138 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/javah.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/latex.py +79 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/latex.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/lex.py +99 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/lex.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/link.py +121 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/link.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/linkloc.py +112 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/linkloc.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/m4.py +63 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/m4.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/masm.py +77 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/masm.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/midl.py +90 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/midl.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mingw.py +159 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mingw.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mslib.py +64 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mslib.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mslink.py +266 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mslink.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mssdk.py +50 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mssdk.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/msvc.py +269 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/msvc.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/msvs.py +1439 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/msvs.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mwcc.py +208 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mwcc.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mwld.py +107 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mwld.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/nasm.py +72 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/nasm.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/__init__.py +314 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/__init__.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/ipk.py +185 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/ipk.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/msi.py +526 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/msi.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/rpm.py +367 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/rpm.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/src_tarbz2.py +43 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/src_tarbz2.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/src_targz.py +43 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/src_targz.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/src_zip.py +43 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/src_zip.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/tarbz2.py +44 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/tarbz2.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/targz.py +44 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/targz.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/zip.py +44 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/zip.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/pdf.py +78 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/pdf.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/pdflatex.py +83 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/pdflatex.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/pdftex.py +108 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/pdftex.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/qt.py +336 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/qt.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/rmic.py +121 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/rmic.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/rpcgen.py +70 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/rpcgen.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/rpm.py +132 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/rpm.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sgiar.py +68 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sgiar.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sgic++.py +58 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sgic++.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sgicc.py +53 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sgicc.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sgilink.py +63 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sgilink.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunar.py +67 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunar.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunc++.py +142 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunc++.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/suncc.py +58 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/suncc.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunf77.py +63 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunf77.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunf90.py +64 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunf90.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunf95.py +64 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunf95.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunlink.py +77 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunlink.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/swig.py +186 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/swig.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/tar.py +73 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/tar.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/tex.py +805 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/tex.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/textfile.py +175 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/textfile.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/tlib.py +53 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/tlib.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/wix.py +100 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/wix.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/yacc.py +131 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/yacc.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/zip.py +100 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/zip.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Util.py +1645 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Util.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/BoolVariable.py +91 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/BoolVariable.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/EnumVariable.py +107 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/EnumVariable.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.py +139 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/PackageVariable.py +109 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/PackageVariable.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/PathVariable.py +147 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/PathVariable.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/__init__.py +317 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/__init__.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Warnings.py +228 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/__init__.py +49 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/__init__.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/__init__.py +302 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/__init__.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_UserString.py +98 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_UserString.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_hashlib.py +91 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_hashlib.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_itertools.py +124 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_itertools.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_optparse.py +1725 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_optparse.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_sets.py +583 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_sets.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_sets15.py +176 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_sets15.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_shlex.py +325 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_shlex.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_subprocess.py +1296 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_subprocess.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_textwrap.py +382 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_textwrap.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/builtins.py +187 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/builtins.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/cpp.py +598 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/cpp.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/dblite.py +248 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/dblite.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/exitfuncs.py +77 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/exitfuncs.pyc +0 -0
- data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/scons-1.2.0.d20100117.egg-info +13 -0
- data/ext/v8/upstream/build/scons/install/man/man1/scons-time.1 +1017 -0
- data/ext/v8/upstream/build/scons/install/man/man1/scons.1 +15179 -0
- data/ext/v8/upstream/build/scons/install/man/man1/sconsign.1 +208 -0
- data/ext/v8/upstream/build/scons/os_spawnv_fix.diff +83 -0
- data/ext/v8/upstream/build/scons/scons-time.1 +1017 -0
- data/ext/v8/upstream/build/scons/scons.1 +15179 -0
- data/ext/v8/upstream/build/scons/sconsign.1 +208 -0
- data/ext/v8/upstream/build/scons/script/scons +184 -0
- data/ext/v8/upstream/build/scons/script/scons-time +1529 -0
- data/ext/v8/upstream/build/scons/script/scons.bat +31 -0
- data/ext/v8/upstream/build/scons/script/sconsign +508 -0
- data/ext/v8/upstream/build/scons/setup.cfg +6 -0
- data/ext/v8/upstream/build/scons/setup.py +427 -0
- data/ext/v8/upstream/build/v8/.gitignore +26 -0
- data/ext/v8/upstream/build/v8/AUTHORS +31 -0
- data/ext/v8/upstream/build/v8/ChangeLog +1916 -0
- data/ext/v8/upstream/build/v8/LICENSE +55 -0
- data/ext/v8/upstream/build/v8/SConstruct +1158 -0
- data/ext/v8/upstream/build/v8/SConstruct.orig +1154 -0
- data/ext/v8/upstream/build/v8/include/v8-debug.h +381 -0
- data/ext/v8/upstream/build/v8/include/v8-profiler.h +353 -0
- data/ext/v8/upstream/build/v8/include/v8.h +3616 -0
- data/ext/v8/upstream/build/v8/src/SConscript +330 -0
- data/ext/v8/upstream/build/v8/src/accessors.cc +661 -0
- data/ext/v8/upstream/build/v8/src/accessors.h +114 -0
- data/ext/v8/upstream/build/v8/src/allocation.cc +198 -0
- data/ext/v8/upstream/build/v8/src/allocation.h +169 -0
- data/ext/v8/upstream/build/v8/src/api.cc +4795 -0
- data/ext/v8/upstream/build/v8/src/api.h +485 -0
- data/ext/v8/upstream/build/v8/src/apinatives.js +110 -0
- data/ext/v8/upstream/build/v8/src/apiutils.h +69 -0
- data/ext/v8/upstream/build/v8/src/arguments.h +96 -0
- data/ext/v8/upstream/build/v8/src/arm/assembler-arm-inl.h +305 -0
- data/ext/v8/upstream/build/v8/src/arm/assembler-arm.cc +2580 -0
- data/ext/v8/upstream/build/v8/src/arm/assembler-arm.h +1275 -0
- data/ext/v8/upstream/build/v8/src/arm/builtins-arm.cc +1320 -0
- data/ext/v8/upstream/build/v8/src/arm/codegen-arm-inl.h +48 -0
- data/ext/v8/upstream/build/v8/src/arm/codegen-arm.cc +11398 -0
- data/ext/v8/upstream/build/v8/src/arm/codegen-arm.h +1102 -0
- data/ext/v8/upstream/build/v8/src/arm/constants-arm.cc +154 -0
- data/ext/v8/upstream/build/v8/src/arm/constants-arm.h +388 -0
- data/ext/v8/upstream/build/v8/src/arm/cpu-arm.cc +142 -0
- data/ext/v8/upstream/build/v8/src/arm/debug-arm.cc +309 -0
- data/ext/v8/upstream/build/v8/src/arm/disasm-arm.cc +1459 -0
- data/ext/v8/upstream/build/v8/src/arm/fast-codegen-arm.cc +241 -0
- data/ext/v8/upstream/build/v8/src/arm/frames-arm.cc +123 -0
- data/ext/v8/upstream/build/v8/src/arm/frames-arm.h +162 -0
- data/ext/v8/upstream/build/v8/src/arm/full-codegen-arm.cc +3178 -0
- data/ext/v8/upstream/build/v8/src/arm/ic-arm.cc +2258 -0
- data/ext/v8/upstream/build/v8/src/arm/jump-target-arm.cc +164 -0
- data/ext/v8/upstream/build/v8/src/arm/macro-assembler-arm.cc +1892 -0
- data/ext/v8/upstream/build/v8/src/arm/macro-assembler-arm.h +727 -0
- data/ext/v8/upstream/build/v8/src/arm/regexp-macro-assembler-arm.cc +1261 -0
- data/ext/v8/upstream/build/v8/src/arm/regexp-macro-assembler-arm.h +266 -0
- data/ext/v8/upstream/build/v8/src/arm/register-allocator-arm-inl.h +100 -0
- data/ext/v8/upstream/build/v8/src/arm/register-allocator-arm.cc +63 -0
- data/ext/v8/upstream/build/v8/src/arm/register-allocator-arm.h +44 -0
- data/ext/v8/upstream/build/v8/src/arm/simulator-arm.cc +2822 -0
- data/ext/v8/upstream/build/v8/src/arm/simulator-arm.h +361 -0
- data/ext/v8/upstream/build/v8/src/arm/stub-cache-arm.cc +2387 -0
- data/ext/v8/upstream/build/v8/src/arm/virtual-frame-arm-inl.h +59 -0
- data/ext/v8/upstream/build/v8/src/arm/virtual-frame-arm.cc +834 -0
- data/ext/v8/upstream/build/v8/src/arm/virtual-frame-arm.h +519 -0
- data/ext/v8/upstream/build/v8/src/array.js +1127 -0
- data/ext/v8/upstream/build/v8/src/assembler.cc +801 -0
- data/ext/v8/upstream/build/v8/src/assembler.h +573 -0
- data/ext/v8/upstream/build/v8/src/ast-inl.h +81 -0
- data/ext/v8/upstream/build/v8/src/ast.cc +1152 -0
- data/ext/v8/upstream/build/v8/src/ast.h +2106 -0
- data/ext/v8/upstream/build/v8/src/bootstrapper.cc +1819 -0
- data/ext/v8/upstream/build/v8/src/bootstrapper.h +118 -0
- data/ext/v8/upstream/build/v8/src/builtins.cc +1529 -0
- data/ext/v8/upstream/build/v8/src/builtins.h +263 -0
- data/ext/v8/upstream/build/v8/src/bytecodes-irregexp.h +104 -0
- data/ext/v8/upstream/build/v8/src/cached-powers.h +119 -0
- data/ext/v8/upstream/build/v8/src/char-predicates-inl.h +86 -0
- data/ext/v8/upstream/build/v8/src/char-predicates.h +65 -0
- data/ext/v8/upstream/build/v8/src/checks.cc +100 -0
- data/ext/v8/upstream/build/v8/src/checks.h +310 -0
- data/ext/v8/upstream/build/v8/src/circular-queue-inl.h +53 -0
- data/ext/v8/upstream/build/v8/src/circular-queue.cc +121 -0
- data/ext/v8/upstream/build/v8/src/circular-queue.h +103 -0
- data/ext/v8/upstream/build/v8/src/code-stubs.cc +177 -0
- data/ext/v8/upstream/build/v8/src/code-stubs.h +177 -0
- data/ext/v8/upstream/build/v8/src/code.h +68 -0
- data/ext/v8/upstream/build/v8/src/codegen-inl.h +60 -0
- data/ext/v8/upstream/build/v8/src/codegen.cc +516 -0
- data/ext/v8/upstream/build/v8/src/codegen.h +897 -0
- data/ext/v8/upstream/build/v8/src/compilation-cache.cc +562 -0
- data/ext/v8/upstream/build/v8/src/compilation-cache.h +102 -0
- data/ext/v8/upstream/build/v8/src/compiler.cc +654 -0
- data/ext/v8/upstream/build/v8/src/compiler.h +299 -0
- data/ext/v8/upstream/build/v8/src/contexts.cc +256 -0
- data/ext/v8/upstream/build/v8/src/contexts.h +342 -0
- data/ext/v8/upstream/build/v8/src/conversions-inl.h +110 -0
- data/ext/v8/upstream/build/v8/src/conversions.cc +1119 -0
- data/ext/v8/upstream/build/v8/src/conversions.h +123 -0
- data/ext/v8/upstream/build/v8/src/counters.cc +78 -0
- data/ext/v8/upstream/build/v8/src/counters.h +239 -0
- data/ext/v8/upstream/build/v8/src/cpu-profiler-inl.h +100 -0
- data/ext/v8/upstream/build/v8/src/cpu-profiler.cc +538 -0
- data/ext/v8/upstream/build/v8/src/cpu-profiler.h +285 -0
- data/ext/v8/upstream/build/v8/src/cpu.h +65 -0
- data/ext/v8/upstream/build/v8/src/d8-debug.cc +356 -0
- data/ext/v8/upstream/build/v8/src/d8-debug.h +155 -0
- data/ext/v8/upstream/build/v8/src/d8-posix.cc +693 -0
- data/ext/v8/upstream/build/v8/src/d8-readline.cc +128 -0
- data/ext/v8/upstream/build/v8/src/d8-windows.cc +42 -0
- data/ext/v8/upstream/build/v8/src/d8.cc +783 -0
- data/ext/v8/upstream/build/v8/src/d8.h +227 -0
- data/ext/v8/upstream/build/v8/src/d8.js +1683 -0
- data/ext/v8/upstream/build/v8/src/data-flow.cc +758 -0
- data/ext/v8/upstream/build/v8/src/data-flow.h +278 -0
- data/ext/v8/upstream/build/v8/src/date.js +1059 -0
- data/ext/v8/upstream/build/v8/src/dateparser-inl.h +123 -0
- data/ext/v8/upstream/build/v8/src/dateparser.cc +178 -0
- data/ext/v8/upstream/build/v8/src/dateparser.h +244 -0
- data/ext/v8/upstream/build/v8/src/debug-agent.cc +427 -0
- data/ext/v8/upstream/build/v8/src/debug-agent.h +129 -0
- data/ext/v8/upstream/build/v8/src/debug-debugger.js +2227 -0
- data/ext/v8/upstream/build/v8/src/debug.cc +3005 -0
- data/ext/v8/upstream/build/v8/src/debug.h +993 -0
- data/ext/v8/upstream/build/v8/src/disasm.h +77 -0
- data/ext/v8/upstream/build/v8/src/disassembler.cc +312 -0
- data/ext/v8/upstream/build/v8/src/disassembler.h +56 -0
- data/ext/v8/upstream/build/v8/src/diy-fp.cc +58 -0
- data/ext/v8/upstream/build/v8/src/diy-fp.h +117 -0
- data/ext/v8/upstream/build/v8/src/double.h +169 -0
- data/ext/v8/upstream/build/v8/src/dtoa-config.c +92 -0
- data/ext/v8/upstream/build/v8/src/dtoa.cc +77 -0
- data/ext/v8/upstream/build/v8/src/dtoa.h +81 -0
- data/ext/v8/upstream/build/v8/src/execution.cc +809 -0
- data/ext/v8/upstream/build/v8/src/execution.h +336 -0
- data/ext/v8/upstream/build/v8/src/factory.cc +1003 -0
- data/ext/v8/upstream/build/v8/src/factory.h +410 -0
- data/ext/v8/upstream/build/v8/src/fast-codegen.cc +746 -0
- data/ext/v8/upstream/build/v8/src/fast-codegen.h +161 -0
- data/ext/v8/upstream/build/v8/src/fast-dtoa.cc +505 -0
- data/ext/v8/upstream/build/v8/src/fast-dtoa.h +58 -0
- data/ext/v8/upstream/build/v8/src/fixed-dtoa.cc +405 -0
- data/ext/v8/upstream/build/v8/src/fixed-dtoa.h +55 -0
- data/ext/v8/upstream/build/v8/src/flag-definitions.h +455 -0
- data/ext/v8/upstream/build/v8/src/flags.cc +551 -0
- data/ext/v8/upstream/build/v8/src/flags.h +81 -0
- data/ext/v8/upstream/build/v8/src/flow-graph.cc +763 -0
- data/ext/v8/upstream/build/v8/src/flow-graph.h +180 -0
- data/ext/v8/upstream/build/v8/src/frame-element.cc +42 -0
- data/ext/v8/upstream/build/v8/src/frame-element.h +273 -0
- data/ext/v8/upstream/build/v8/src/frames-inl.h +217 -0
- data/ext/v8/upstream/build/v8/src/frames.cc +826 -0
- data/ext/v8/upstream/build/v8/src/frames.h +682 -0
- data/ext/v8/upstream/build/v8/src/full-codegen.cc +1443 -0
- data/ext/v8/upstream/build/v8/src/full-codegen.h +548 -0
- data/ext/v8/upstream/build/v8/src/func-name-inferrer.cc +76 -0
- data/ext/v8/upstream/build/v8/src/func-name-inferrer.h +135 -0
- data/ext/v8/upstream/build/v8/src/global-handles.cc +520 -0
- data/ext/v8/upstream/build/v8/src/global-handles.h +180 -0
- data/ext/v8/upstream/build/v8/src/globals.h +669 -0
- data/ext/v8/upstream/build/v8/src/handles-inl.h +76 -0
- data/ext/v8/upstream/build/v8/src/handles.cc +825 -0
- data/ext/v8/upstream/build/v8/src/handles.h +393 -0
- data/ext/v8/upstream/build/v8/src/hashmap.cc +226 -0
- data/ext/v8/upstream/build/v8/src/hashmap.h +120 -0
- data/ext/v8/upstream/build/v8/src/heap-inl.h +493 -0
- data/ext/v8/upstream/build/v8/src/heap-profiler.cc +779 -0
- data/ext/v8/upstream/build/v8/src/heap-profiler.h +323 -0
- data/ext/v8/upstream/build/v8/src/heap.cc +4994 -0
- data/ext/v8/upstream/build/v8/src/heap.h +1984 -0
- data/ext/v8/upstream/build/v8/src/ia32/assembler-ia32-inl.h +360 -0
- data/ext/v8/upstream/build/v8/src/ia32/assembler-ia32.cc +2600 -0
- data/ext/v8/upstream/build/v8/src/ia32/assembler-ia32.h +969 -0
- data/ext/v8/upstream/build/v8/src/ia32/builtins-ia32.cc +1261 -0
- data/ext/v8/upstream/build/v8/src/ia32/codegen-ia32-inl.h +46 -0
- data/ext/v8/upstream/build/v8/src/ia32/codegen-ia32.cc +13968 -0
- data/ext/v8/upstream/build/v8/src/ia32/codegen-ia32.h +1097 -0
- data/ext/v8/upstream/build/v8/src/ia32/cpu-ia32.cc +83 -0
- data/ext/v8/upstream/build/v8/src/ia32/debug-ia32.cc +309 -0
- data/ext/v8/upstream/build/v8/src/ia32/disasm-ia32.cc +1471 -0
- data/ext/v8/upstream/build/v8/src/ia32/fast-codegen-ia32.cc +954 -0
- data/ext/v8/upstream/build/v8/src/ia32/fast-codegen-ia32.h +155 -0
- data/ext/v8/upstream/build/v8/src/ia32/frames-ia32.cc +115 -0
- data/ext/v8/upstream/build/v8/src/ia32/frames-ia32.h +135 -0
- data/ext/v8/upstream/build/v8/src/ia32/full-codegen-ia32.cc +3281 -0
- data/ext/v8/upstream/build/v8/src/ia32/ic-ia32.cc +1966 -0
- data/ext/v8/upstream/build/v8/src/ia32/jump-target-ia32.cc +437 -0
- data/ext/v8/upstream/build/v8/src/ia32/macro-assembler-ia32.cc +1610 -0
- data/ext/v8/upstream/build/v8/src/ia32/macro-assembler-ia32.h +610 -0
- data/ext/v8/upstream/build/v8/src/ia32/regexp-macro-assembler-ia32.cc +1247 -0
- data/ext/v8/upstream/build/v8/src/ia32/regexp-macro-assembler-ia32.h +214 -0
- data/ext/v8/upstream/build/v8/src/ia32/register-allocator-ia32-inl.h +82 -0
- data/ext/v8/upstream/build/v8/src/ia32/register-allocator-ia32.cc +157 -0
- data/ext/v8/upstream/build/v8/src/ia32/register-allocator-ia32.h +43 -0
- data/ext/v8/upstream/build/v8/src/ia32/simulator-ia32.cc +30 -0
- data/ext/v8/upstream/build/v8/src/ia32/simulator-ia32.h +62 -0
- data/ext/v8/upstream/build/v8/src/ia32/stub-cache-ia32.cc +2750 -0
- data/ext/v8/upstream/build/v8/src/ia32/virtual-frame-ia32.cc +1334 -0
- data/ext/v8/upstream/build/v8/src/ia32/virtual-frame-ia32.h +627 -0
- data/ext/v8/upstream/build/v8/src/ic-inl.h +120 -0
- data/ext/v8/upstream/build/v8/src/ic.cc +1827 -0
- data/ext/v8/upstream/build/v8/src/ic.h +515 -0
- data/ext/v8/upstream/build/v8/src/interpreter-irregexp.cc +646 -0
- data/ext/v8/upstream/build/v8/src/interpreter-irregexp.h +48 -0
- data/ext/v8/upstream/build/v8/src/json.js +268 -0
- data/ext/v8/upstream/build/v8/src/jsregexp.cc +5283 -0
- data/ext/v8/upstream/build/v8/src/jsregexp.h +1463 -0
- data/ext/v8/upstream/build/v8/src/jump-target-heavy-inl.h +51 -0
- data/ext/v8/upstream/build/v8/src/jump-target-heavy.cc +429 -0
- data/ext/v8/upstream/build/v8/src/jump-target-heavy.h +244 -0
- data/ext/v8/upstream/build/v8/src/jump-target-inl.h +48 -0
- data/ext/v8/upstream/build/v8/src/jump-target-light-inl.h +56 -0
- data/ext/v8/upstream/build/v8/src/jump-target-light.cc +110 -0
- data/ext/v8/upstream/build/v8/src/jump-target-light.h +192 -0
- data/ext/v8/upstream/build/v8/src/jump-target.cc +91 -0
- data/ext/v8/upstream/build/v8/src/jump-target.h +90 -0
- data/ext/v8/upstream/build/v8/src/list-inl.h +166 -0
- data/ext/v8/upstream/build/v8/src/list.h +159 -0
- data/ext/v8/upstream/build/v8/src/liveedit-debugger.js +1057 -0
- data/ext/v8/upstream/build/v8/src/liveedit.cc +1480 -0
- data/ext/v8/upstream/build/v8/src/liveedit.h +170 -0
- data/ext/v8/upstream/build/v8/src/log-inl.h +59 -0
- data/ext/v8/upstream/build/v8/src/log-utils.cc +497 -0
- data/ext/v8/upstream/build/v8/src/log-utils.h +289 -0
- data/ext/v8/upstream/build/v8/src/log.cc +1561 -0
- data/ext/v8/upstream/build/v8/src/log.h +384 -0
- data/ext/v8/upstream/build/v8/src/macro-assembler.h +86 -0
- data/ext/v8/upstream/build/v8/src/macros.py +177 -0
- data/ext/v8/upstream/build/v8/src/mark-compact.cc +2330 -0
- data/ext/v8/upstream/build/v8/src/mark-compact.h +451 -0
- data/ext/v8/upstream/build/v8/src/math.js +264 -0
- data/ext/v8/upstream/build/v8/src/memory.h +74 -0
- data/ext/v8/upstream/build/v8/src/messages.cc +183 -0
- data/ext/v8/upstream/build/v8/src/messages.h +113 -0
- data/ext/v8/upstream/build/v8/src/messages.js +982 -0
- data/ext/v8/upstream/build/v8/src/mips/assembler-mips-inl.h +215 -0
- data/ext/v8/upstream/build/v8/src/mips/assembler-mips.cc +1219 -0
- data/ext/v8/upstream/build/v8/src/mips/assembler-mips.h +668 -0
- data/ext/v8/upstream/build/v8/src/mips/builtins-mips.cc +205 -0
- data/ext/v8/upstream/build/v8/src/mips/codegen-mips-inl.h +70 -0
- data/ext/v8/upstream/build/v8/src/mips/codegen-mips.cc +1437 -0
- data/ext/v8/upstream/build/v8/src/mips/codegen-mips.h +434 -0
- data/ext/v8/upstream/build/v8/src/mips/constants-mips.cc +328 -0
- data/ext/v8/upstream/build/v8/src/mips/constants-mips.h +525 -0
- data/ext/v8/upstream/build/v8/src/mips/cpu-mips.cc +73 -0
- data/ext/v8/upstream/build/v8/src/mips/debug-mips.cc +131 -0
- data/ext/v8/upstream/build/v8/src/mips/disasm-mips.cc +787 -0
- data/ext/v8/upstream/build/v8/src/mips/fast-codegen-mips.cc +77 -0
- data/ext/v8/upstream/build/v8/src/mips/frames-mips.cc +102 -0
- data/ext/v8/upstream/build/v8/src/mips/frames-mips.h +164 -0
- data/ext/v8/upstream/build/v8/src/mips/full-codegen-mips.cc +277 -0
- data/ext/v8/upstream/build/v8/src/mips/ic-mips.cc +220 -0
- data/ext/v8/upstream/build/v8/src/mips/jump-target-mips.cc +175 -0
- data/ext/v8/upstream/build/v8/src/mips/macro-assembler-mips.cc +1326 -0
- data/ext/v8/upstream/build/v8/src/mips/macro-assembler-mips.h +461 -0
- data/ext/v8/upstream/build/v8/src/mips/register-allocator-mips-inl.h +137 -0
- data/ext/v8/upstream/build/v8/src/mips/register-allocator-mips.cc +63 -0
- data/ext/v8/upstream/build/v8/src/mips/register-allocator-mips.h +46 -0
- data/ext/v8/upstream/build/v8/src/mips/simulator-mips.cc +1651 -0
- data/ext/v8/upstream/build/v8/src/mips/simulator-mips.h +311 -0
- data/ext/v8/upstream/build/v8/src/mips/stub-cache-mips.cc +403 -0
- data/ext/v8/upstream/build/v8/src/mips/virtual-frame-mips.cc +319 -0
- data/ext/v8/upstream/build/v8/src/mips/virtual-frame-mips.h +548 -0
- data/ext/v8/upstream/build/v8/src/mirror-debugger.js +2380 -0
- data/ext/v8/upstream/build/v8/src/mksnapshot.cc +256 -0
- data/ext/v8/upstream/build/v8/src/natives.h +63 -0
- data/ext/v8/upstream/build/v8/src/objects-debug.cc +1366 -0
- data/ext/v8/upstream/build/v8/src/objects-inl.h +3333 -0
- data/ext/v8/upstream/build/v8/src/objects.cc +8820 -0
- data/ext/v8/upstream/build/v8/src/objects.h +5373 -0
- data/ext/v8/upstream/build/v8/src/oprofile-agent.cc +108 -0
- data/ext/v8/upstream/build/v8/src/oprofile-agent.h +77 -0
- data/ext/v8/upstream/build/v8/src/parser.cc +5207 -0
- data/ext/v8/upstream/build/v8/src/parser.h +197 -0
- data/ext/v8/upstream/build/v8/src/platform-freebsd.cc +667 -0
- data/ext/v8/upstream/build/v8/src/platform-linux.cc +862 -0
- data/ext/v8/upstream/build/v8/src/platform-macos.cc +665 -0
- data/ext/v8/upstream/build/v8/src/platform-nullos.cc +454 -0
- data/ext/v8/upstream/build/v8/src/platform-openbsd.cc +622 -0
- data/ext/v8/upstream/build/v8/src/platform-posix.cc +362 -0
- data/ext/v8/upstream/build/v8/src/platform-solaris.cc +653 -0
- data/ext/v8/upstream/build/v8/src/platform-win32.cc +1911 -0
- data/ext/v8/upstream/build/v8/src/platform.h +577 -0
- data/ext/v8/upstream/build/v8/src/powers-ten.h +2461 -0
- data/ext/v8/upstream/build/v8/src/prettyprinter.cc +1531 -0
- data/ext/v8/upstream/build/v8/src/prettyprinter.h +221 -0
- data/ext/v8/upstream/build/v8/src/profile-generator-inl.h +148 -0
- data/ext/v8/upstream/build/v8/src/profile-generator.cc +1830 -0
- data/ext/v8/upstream/build/v8/src/profile-generator.h +853 -0
- data/ext/v8/upstream/build/v8/src/property.cc +96 -0
- data/ext/v8/upstream/build/v8/src/property.h +315 -0
- data/ext/v8/upstream/build/v8/src/regexp-macro-assembler-irregexp-inl.h +78 -0
- data/ext/v8/upstream/build/v8/src/regexp-macro-assembler-irregexp.cc +464 -0
- data/ext/v8/upstream/build/v8/src/regexp-macro-assembler-irregexp.h +141 -0
- data/ext/v8/upstream/build/v8/src/regexp-macro-assembler-tracer.cc +356 -0
- data/ext/v8/upstream/build/v8/src/regexp-macro-assembler-tracer.h +103 -0
- data/ext/v8/upstream/build/v8/src/regexp-macro-assembler.cc +261 -0
- data/ext/v8/upstream/build/v8/src/regexp-macro-assembler.h +228 -0
- data/ext/v8/upstream/build/v8/src/regexp-stack.cc +103 -0
- data/ext/v8/upstream/build/v8/src/regexp-stack.h +123 -0
- data/ext/v8/upstream/build/v8/src/regexp.js +549 -0
- data/ext/v8/upstream/build/v8/src/register-allocator-inl.h +141 -0
- data/ext/v8/upstream/build/v8/src/register-allocator.cc +104 -0
- data/ext/v8/upstream/build/v8/src/register-allocator.h +320 -0
- data/ext/v8/upstream/build/v8/src/rewriter.cc +1038 -0
- data/ext/v8/upstream/build/v8/src/rewriter.h +54 -0
- data/ext/v8/upstream/build/v8/src/runtime.cc +10599 -0
- data/ext/v8/upstream/build/v8/src/runtime.h +459 -0
- data/ext/v8/upstream/build/v8/src/runtime.js +629 -0
- data/ext/v8/upstream/build/v8/src/scanner.cc +1346 -0
- data/ext/v8/upstream/build/v8/src/scanner.h +503 -0
- data/ext/v8/upstream/build/v8/src/scopeinfo.cc +637 -0
- data/ext/v8/upstream/build/v8/src/scopeinfo.h +233 -0
- data/ext/v8/upstream/build/v8/src/scopes.cc +962 -0
- data/ext/v8/upstream/build/v8/src/scopes.h +400 -0
- data/ext/v8/upstream/build/v8/src/serialize.cc +1461 -0
- data/ext/v8/upstream/build/v8/src/serialize.h +581 -0
- data/ext/v8/upstream/build/v8/src/shell.h +55 -0
- data/ext/v8/upstream/build/v8/src/simulator.h +43 -0
- data/ext/v8/upstream/build/v8/src/smart-pointer.h +109 -0
- data/ext/v8/upstream/build/v8/src/snapshot-common.cc +82 -0
- data/ext/v8/upstream/build/v8/src/snapshot-empty.cc +50 -0
- data/ext/v8/upstream/build/v8/src/snapshot.h +71 -0
- data/ext/v8/upstream/build/v8/src/spaces-inl.h +483 -0
- data/ext/v8/upstream/build/v8/src/spaces.cc +2901 -0
- data/ext/v8/upstream/build/v8/src/spaces.h +2197 -0
- data/ext/v8/upstream/build/v8/src/splay-tree-inl.h +310 -0
- data/ext/v8/upstream/build/v8/src/splay-tree.h +203 -0
- data/ext/v8/upstream/build/v8/src/string-stream.cc +584 -0
- data/ext/v8/upstream/build/v8/src/string-stream.h +189 -0
- data/ext/v8/upstream/build/v8/src/string.js +1006 -0
- data/ext/v8/upstream/build/v8/src/stub-cache.cc +1379 -0
- data/ext/v8/upstream/build/v8/src/stub-cache.h +756 -0
- data/ext/v8/upstream/build/v8/src/third_party/dtoa/COPYING +15 -0
- data/ext/v8/upstream/build/v8/src/third_party/dtoa/dtoa.c +3334 -0
- data/ext/v8/upstream/build/v8/src/third_party/valgrind/valgrind.h +3925 -0
- data/ext/v8/upstream/build/v8/src/token.cc +56 -0
- data/ext/v8/upstream/build/v8/src/token.h +270 -0
- data/ext/v8/upstream/build/v8/src/top.cc +1067 -0
- data/ext/v8/upstream/build/v8/src/top.h +463 -0
- data/ext/v8/upstream/build/v8/src/type-info.cc +53 -0
- data/ext/v8/upstream/build/v8/src/type-info.h +244 -0
- data/ext/v8/upstream/build/v8/src/unbound-queue-inl.h +95 -0
- data/ext/v8/upstream/build/v8/src/unbound-queue.h +67 -0
- data/ext/v8/upstream/build/v8/src/unicode-inl.h +238 -0
- data/ext/v8/upstream/build/v8/src/unicode.cc +749 -0
- data/ext/v8/upstream/build/v8/src/unicode.h +279 -0
- data/ext/v8/upstream/build/v8/src/uri.js +415 -0
- data/ext/v8/upstream/build/v8/src/utils.cc +285 -0
- data/ext/v8/upstream/build/v8/src/utils.h +745 -0
- data/ext/v8/upstream/build/v8/src/v8-counters.cc +55 -0
- data/ext/v8/upstream/build/v8/src/v8-counters.h +250 -0
- data/ext/v8/upstream/build/v8/src/v8.cc +228 -0
- data/ext/v8/upstream/build/v8/src/v8.h +121 -0
- data/ext/v8/upstream/build/v8/src/v8dll-main.cc +39 -0
- data/ext/v8/upstream/build/v8/src/v8natives.js +1188 -0
- data/ext/v8/upstream/build/v8/src/v8threads.cc +461 -0
- data/ext/v8/upstream/build/v8/src/v8threads.h +159 -0
- data/ext/v8/upstream/build/v8/src/variables.cc +119 -0
- data/ext/v8/upstream/build/v8/src/variables.h +205 -0
- data/ext/v8/upstream/build/v8/src/version.cc +88 -0
- data/ext/v8/upstream/build/v8/src/version.h +64 -0
- data/ext/v8/upstream/build/v8/src/virtual-frame-heavy-inl.h +192 -0
- data/ext/v8/upstream/build/v8/src/virtual-frame-heavy.cc +312 -0
- data/ext/v8/upstream/build/v8/src/virtual-frame-inl.h +39 -0
- data/ext/v8/upstream/build/v8/src/virtual-frame-light-inl.h +170 -0
- data/ext/v8/upstream/build/v8/src/virtual-frame-light.cc +52 -0
- data/ext/v8/upstream/build/v8/src/virtual-frame.cc +49 -0
- data/ext/v8/upstream/build/v8/src/virtual-frame.h +46 -0
- data/ext/v8/upstream/build/v8/src/vm-state-inl.h +137 -0
- data/ext/v8/upstream/build/v8/src/vm-state.cc +39 -0
- data/ext/v8/upstream/build/v8/src/vm-state.h +77 -0
- data/ext/v8/upstream/build/v8/src/x64/assembler-x64-inl.h +400 -0
- data/ext/v8/upstream/build/v8/src/x64/assembler-x64.cc +2963 -0
- data/ext/v8/upstream/build/v8/src/x64/assembler-x64.h +1438 -0
- data/ext/v8/upstream/build/v8/src/x64/builtins-x64.cc +1296 -0
- data/ext/v8/upstream/build/v8/src/x64/codegen-x64-inl.h +46 -0
- data/ext/v8/upstream/build/v8/src/x64/codegen-x64.cc +12491 -0
- data/ext/v8/upstream/build/v8/src/x64/codegen-x64.h +1090 -0
- data/ext/v8/upstream/build/v8/src/x64/cpu-x64.cc +83 -0
- data/ext/v8/upstream/build/v8/src/x64/debug-x64.cc +267 -0
- data/ext/v8/upstream/build/v8/src/x64/disasm-x64.cc +1696 -0
- data/ext/v8/upstream/build/v8/src/x64/fast-codegen-x64.cc +250 -0
- data/ext/v8/upstream/build/v8/src/x64/frames-x64.cc +113 -0
- data/ext/v8/upstream/build/v8/src/x64/frames-x64.h +125 -0
- data/ext/v8/upstream/build/v8/src/x64/full-codegen-x64.cc +3270 -0
- data/ext/v8/upstream/build/v8/src/x64/ic-x64.cc +1907 -0
- data/ext/v8/upstream/build/v8/src/x64/jump-target-x64.cc +437 -0
- data/ext/v8/upstream/build/v8/src/x64/macro-assembler-x64.cc +2793 -0
- data/ext/v8/upstream/build/v8/src/x64/macro-assembler-x64.h +916 -0
- data/ext/v8/upstream/build/v8/src/x64/regexp-macro-assembler-x64.cc +1374 -0
- data/ext/v8/upstream/build/v8/src/x64/regexp-macro-assembler-x64.h +277 -0
- data/ext/v8/upstream/build/v8/src/x64/register-allocator-x64-inl.h +87 -0
- data/ext/v8/upstream/build/v8/src/x64/register-allocator-x64.cc +91 -0
- data/ext/v8/upstream/build/v8/src/x64/register-allocator-x64.h +43 -0
- data/ext/v8/upstream/build/v8/src/x64/simulator-x64.cc +27 -0
- data/ext/v8/upstream/build/v8/src/x64/simulator-x64.h +63 -0
- data/ext/v8/upstream/build/v8/src/x64/stub-cache-x64.cc +2560 -0
- data/ext/v8/upstream/build/v8/src/x64/virtual-frame-x64.cc +1264 -0
- data/ext/v8/upstream/build/v8/src/x64/virtual-frame-x64.h +590 -0
- data/ext/v8/upstream/build/v8/src/zone-inl.h +82 -0
- data/ext/v8/upstream/build/v8/src/zone.cc +194 -0
- data/ext/v8/upstream/build/v8/src/zone.h +221 -0
- data/ext/v8/upstream/build/v8/tools/codemap.js +270 -0
- data/ext/v8/upstream/build/v8/tools/consarray.js +93 -0
- data/ext/v8/upstream/build/v8/tools/csvparser.js +83 -0
- data/ext/v8/upstream/build/v8/tools/gc-nvp-trace-processor.py +317 -0
- data/ext/v8/upstream/build/v8/tools/generate-ten-powers.scm +286 -0
- data/ext/v8/upstream/build/v8/tools/gyp/v8.gyp +749 -0
- data/ext/v8/upstream/build/v8/tools/js2c.py +380 -0
- data/ext/v8/upstream/build/v8/tools/jsmin.py +280 -0
- data/ext/v8/upstream/build/v8/tools/linux-tick-processor +33 -0
- data/ext/v8/upstream/build/v8/tools/linux-tick-processor.py +78 -0
- data/ext/v8/upstream/build/v8/tools/logreader.js +338 -0
- data/ext/v8/upstream/build/v8/tools/mac-nm +18 -0
- data/ext/v8/upstream/build/v8/tools/mac-tick-processor +6 -0
- data/ext/v8/upstream/build/v8/tools/oprofile/annotate +7 -0
- data/ext/v8/upstream/build/v8/tools/oprofile/common +19 -0
- data/ext/v8/upstream/build/v8/tools/oprofile/dump +7 -0
- data/ext/v8/upstream/build/v8/tools/oprofile/report +7 -0
- data/ext/v8/upstream/build/v8/tools/oprofile/reset +7 -0
- data/ext/v8/upstream/build/v8/tools/oprofile/run +14 -0
- data/ext/v8/upstream/build/v8/tools/oprofile/shutdown +7 -0
- data/ext/v8/upstream/build/v8/tools/oprofile/start +7 -0
- data/ext/v8/upstream/build/v8/tools/presubmit.py +299 -0
- data/ext/v8/upstream/build/v8/tools/process-heap-prof.py +120 -0
- data/ext/v8/upstream/build/v8/tools/profile.js +691 -0
- data/ext/v8/upstream/build/v8/tools/profile_view.js +224 -0
- data/ext/v8/upstream/build/v8/tools/run-valgrind.py +77 -0
- data/ext/v8/upstream/build/v8/tools/splaytree.js +322 -0
- data/ext/v8/upstream/build/v8/tools/splaytree.py +226 -0
- data/ext/v8/upstream/build/v8/tools/stats-viewer.py +468 -0
- data/ext/v8/upstream/build/v8/tools/tickprocessor-driver.js +59 -0
- data/ext/v8/upstream/build/v8/tools/tickprocessor.js +862 -0
- data/ext/v8/upstream/build/v8/tools/tickprocessor.py +571 -0
- data/ext/v8/upstream/build/v8/tools/utils.py +88 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/README.txt +71 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/arm.vsprops +14 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/common.vsprops +34 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/d8.vcproj +193 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/d8_arm.vcproj +193 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/d8_x64.vcproj +209 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/d8js2c.cmd +6 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/debug.vsprops +17 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/ia32.vsprops +17 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/js2c.cmd +6 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/release.vsprops +24 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8.sln +101 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8.vcproj +227 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_arm.sln +74 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_arm.vcproj +227 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_base.vcproj +1143 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_base_arm.vcproj +1115 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_base_x64.vcproj +1096 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_cctest.vcproj +265 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_cctest_arm.vcproj +249 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_cctest_x64.vcproj +257 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_mksnapshot.vcproj +145 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_mksnapshot_x64.vcproj +145 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_process_sample.vcproj +145 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_process_sample_arm.vcproj +145 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_process_sample_x64.vcproj +161 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_shell_sample.vcproj +145 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_shell_sample_arm.vcproj +145 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_shell_sample_x64.vcproj +161 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_snapshot.vcproj +142 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_snapshot_cc.vcproj +92 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_snapshot_cc_x64.vcproj +92 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_snapshot_x64.vcproj +142 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_x64.sln +101 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/v8_x64.vcproj +227 -0
- data/ext/v8/upstream/build/v8/tools/visual_studio/x64.vsprops +17 -0
- data/ext/v8/upstream/build/v8/tools/windows-tick-processor.bat +29 -0
- data/ext/v8/upstream/build/v8/tools/windows-tick-processor.py +137 -0
- data/ext/v8/upstream/detect_cpu.rb +27 -0
- data/ext/v8/upstream/fpic-on-linux-amd64.patch +13 -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 +41 -0
- data/ext/v8/v8_array.cpp +50 -0
- data/ext/v8/v8_array.h +8 -0
- data/ext/v8/v8_callbacks.cpp +121 -0
- data/ext/v8/v8_callbacks.h +8 -0
- data/ext/v8/v8_cxt.cpp +92 -0
- data/ext/v8/v8_cxt.h +6 -0
- data/ext/v8/v8_date.cpp +35 -0
- data/ext/v8/v8_date.h +6 -0
- data/ext/v8/v8_exception.cpp +128 -0
- data/ext/v8/v8_exception.h +11 -0
- data/ext/v8/v8_external.cpp +57 -0
- data/ext/v8/v8_external.h +9 -0
- data/ext/v8/v8_func.cpp +66 -0
- data/ext/v8/v8_func.h +12 -0
- data/ext/v8/v8_locker.cpp +41 -0
- data/ext/v8/v8_locker.h +6 -0
- data/ext/v8/v8_msg.cpp +68 -0
- data/ext/v8/v8_msg.h +10 -0
- data/ext/v8/v8_obj.cpp +96 -0
- data/ext/v8/v8_obj.h +11 -0
- data/ext/v8/v8_ref.cpp +37 -0
- data/ext/v8/v8_ref.h +28 -0
- data/ext/v8/v8_script.cpp +36 -0
- data/ext/v8/v8_script.h +8 -0
- data/ext/v8/v8_str.cpp +52 -0
- data/ext/v8/v8_str.h +9 -0
- data/ext/v8/v8_template.cpp +329 -0
- data/ext/v8/v8_template.h +8 -0
- data/ext/v8/v8_try_catch.cpp +99 -0
- data/ext/v8/v8_try_catch.h +5 -0
- data/ext/v8/v8_value.cpp +167 -0
- data/ext/v8/v8_value.h +10 -0
- data/lib/v8.rb +16 -0
- data/lib/v8/access.rb +87 -0
- data/lib/v8/array.rb +17 -0
- data/lib/v8/cli.rb +131 -0
- data/lib/v8/context.rb +88 -0
- data/lib/v8/error.rb +129 -0
- data/lib/v8/function.rb +28 -0
- data/lib/v8/object.rb +69 -0
- data/lib/v8/portal.rb +327 -0
- data/lib/v8/portal/functions.rb +45 -0
- data/lib/v8/tap.rb +9 -0
- data/lib/v8/version.rb +3 -0
- data/spec/ext/cxt_spec.rb +12 -0
- data/spec/ext/func_spec.rb +49 -0
- data/spec/ext/try_catch_spec.rb +32 -0
- data/spec/redjs_helper.rb +3 -0
- data/spec/spec_helper.rb +8 -0
- data/spec/v8/error_spec.rb +131 -0
- data/therubyracer-heroku.gemspec +24 -0
- metadata +2061 -0
@@ -0,0 +1,221 @@
|
|
1
|
+
// Copyright 2006-2008 the V8 project authors. All rights reserved.
|
2
|
+
// Redistribution and use in source and binary forms, with or without
|
3
|
+
// modification, are permitted provided that the following conditions are
|
4
|
+
// met:
|
5
|
+
//
|
6
|
+
// * Redistributions of source code must retain the above copyright
|
7
|
+
// notice, this list of conditions and the following disclaimer.
|
8
|
+
// * Redistributions in binary form must reproduce the above
|
9
|
+
// copyright notice, this list of conditions and the following
|
10
|
+
// disclaimer in the documentation and/or other materials provided
|
11
|
+
// with the distribution.
|
12
|
+
// * Neither the name of Google Inc. nor the names of its
|
13
|
+
// contributors may be used to endorse or promote products derived
|
14
|
+
// from this software without specific prior written permission.
|
15
|
+
//
|
16
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
|
28
|
+
#ifndef V8_PRETTYPRINTER_H_
|
29
|
+
#define V8_PRETTYPRINTER_H_
|
30
|
+
|
31
|
+
#include "ast.h"
|
32
|
+
|
33
|
+
namespace v8 {
|
34
|
+
namespace internal {
|
35
|
+
|
36
|
+
#ifdef DEBUG
|
37
|
+
|
38
|
+
class PrettyPrinter: public AstVisitor {
|
39
|
+
public:
|
40
|
+
PrettyPrinter();
|
41
|
+
virtual ~PrettyPrinter();
|
42
|
+
|
43
|
+
// The following routines print a node into a string.
|
44
|
+
// The result string is alive as long as the PrettyPrinter is alive.
|
45
|
+
const char* Print(AstNode* node);
|
46
|
+
const char* PrintExpression(FunctionLiteral* program);
|
47
|
+
const char* PrintProgram(FunctionLiteral* program);
|
48
|
+
|
49
|
+
void Print(const char* format, ...);
|
50
|
+
|
51
|
+
// Print a node to stdout.
|
52
|
+
static void PrintOut(AstNode* node);
|
53
|
+
|
54
|
+
// Individual nodes
|
55
|
+
#define DECLARE_VISIT(type) virtual void Visit##type(type* node);
|
56
|
+
AST_NODE_LIST(DECLARE_VISIT)
|
57
|
+
#undef DECLARE_VISIT
|
58
|
+
|
59
|
+
private:
|
60
|
+
char* output_; // output string buffer
|
61
|
+
int size_; // output_ size
|
62
|
+
int pos_; // current printing position
|
63
|
+
|
64
|
+
protected:
|
65
|
+
void Init();
|
66
|
+
const char* Output() const { return output_; }
|
67
|
+
|
68
|
+
virtual void PrintStatements(ZoneList<Statement*>* statements);
|
69
|
+
void PrintLabels(ZoneStringList* labels);
|
70
|
+
virtual void PrintArguments(ZoneList<Expression*>* arguments);
|
71
|
+
void PrintLiteral(Handle<Object> value, bool quote);
|
72
|
+
void PrintParameters(Scope* scope);
|
73
|
+
void PrintDeclarations(ZoneList<Declaration*>* declarations);
|
74
|
+
void PrintFunctionLiteral(FunctionLiteral* function);
|
75
|
+
void PrintCaseClause(CaseClause* clause);
|
76
|
+
};
|
77
|
+
|
78
|
+
|
79
|
+
// Prints the AST structure
|
80
|
+
class AstPrinter: public PrettyPrinter {
|
81
|
+
public:
|
82
|
+
AstPrinter();
|
83
|
+
virtual ~AstPrinter();
|
84
|
+
|
85
|
+
const char* PrintProgram(FunctionLiteral* program);
|
86
|
+
|
87
|
+
// Individual nodes
|
88
|
+
#define DECLARE_VISIT(type) virtual void Visit##type(type* node);
|
89
|
+
AST_NODE_LIST(DECLARE_VISIT)
|
90
|
+
#undef DECLARE_VISIT
|
91
|
+
private:
|
92
|
+
friend class IndentedScope;
|
93
|
+
void PrintIndented(const char* txt);
|
94
|
+
void PrintIndentedVisit(const char* s, AstNode* node);
|
95
|
+
|
96
|
+
void PrintStatements(ZoneList<Statement*>* statements);
|
97
|
+
void PrintDeclarations(ZoneList<Declaration*>* declarations);
|
98
|
+
void PrintParameters(Scope* scope);
|
99
|
+
void PrintArguments(ZoneList<Expression*>* arguments);
|
100
|
+
void PrintCaseClause(CaseClause* clause);
|
101
|
+
void PrintLiteralIndented(const char* info, Handle<Object> value, bool quote);
|
102
|
+
void PrintLiteralWithModeIndented(const char* info,
|
103
|
+
Variable* var,
|
104
|
+
Handle<Object> value,
|
105
|
+
StaticType* type,
|
106
|
+
int num,
|
107
|
+
bool is_primitive);
|
108
|
+
void PrintLabelsIndented(const char* info, ZoneStringList* labels);
|
109
|
+
|
110
|
+
void inc_indent() { indent_++; }
|
111
|
+
void dec_indent() { indent_--; }
|
112
|
+
|
113
|
+
static int indent_;
|
114
|
+
};
|
115
|
+
|
116
|
+
|
117
|
+
// Forward declaration of helper classes.
|
118
|
+
class TagScope;
|
119
|
+
class AttributesScope;
|
120
|
+
|
121
|
+
// Build a C string containing a JSON representation of a function's
|
122
|
+
// AST. The representation is based on JsonML (www.jsonml.org).
|
123
|
+
class JsonAstBuilder: public PrettyPrinter {
|
124
|
+
public:
|
125
|
+
JsonAstBuilder()
|
126
|
+
: indent_(0), top_tag_scope_(NULL), attributes_scope_(NULL) {
|
127
|
+
}
|
128
|
+
virtual ~JsonAstBuilder() {}
|
129
|
+
|
130
|
+
// Controls the indentation of subsequent lines of a tag body after
|
131
|
+
// the first line.
|
132
|
+
static const int kTagIndentSize = 2;
|
133
|
+
|
134
|
+
// Controls the indentation of subsequent lines of an attributes
|
135
|
+
// blocks's body after the first line.
|
136
|
+
static const int kAttributesIndentSize = 1;
|
137
|
+
|
138
|
+
// Construct a JSON representation of a function literal.
|
139
|
+
const char* BuildProgram(FunctionLiteral* program);
|
140
|
+
|
141
|
+
// Print text indented by the current indentation level.
|
142
|
+
void PrintIndented(const char* text) { Print("%*s%s", indent_, "", text); }
|
143
|
+
|
144
|
+
// Change the indentation level.
|
145
|
+
void increase_indent(int amount) { indent_ += amount; }
|
146
|
+
void decrease_indent(int amount) { indent_ -= amount; }
|
147
|
+
|
148
|
+
// The builder maintains a stack of opened AST node constructors.
|
149
|
+
// Each node constructor corresponds to a JsonML tag.
|
150
|
+
TagScope* tag() { return top_tag_scope_; }
|
151
|
+
void set_tag(TagScope* scope) { top_tag_scope_ = scope; }
|
152
|
+
|
153
|
+
// The builder maintains a pointer to the currently opened attributes
|
154
|
+
// of current AST node or NULL if the attributes are not opened.
|
155
|
+
AttributesScope* attributes() { return attributes_scope_; }
|
156
|
+
void set_attributes(AttributesScope* scope) { attributes_scope_ = scope; }
|
157
|
+
|
158
|
+
// Add an attribute to the currently opened attributes.
|
159
|
+
void AddAttribute(const char* name, Handle<String> value);
|
160
|
+
void AddAttribute(const char* name, const char* value);
|
161
|
+
void AddAttribute(const char* name, int value);
|
162
|
+
void AddAttribute(const char* name, bool value);
|
163
|
+
|
164
|
+
// AST node visit functions.
|
165
|
+
#define DECLARE_VISIT(type) virtual void Visit##type(type* node);
|
166
|
+
AST_NODE_LIST(DECLARE_VISIT)
|
167
|
+
#undef DECLARE_VISIT
|
168
|
+
|
169
|
+
private:
|
170
|
+
int indent_;
|
171
|
+
TagScope* top_tag_scope_;
|
172
|
+
AttributesScope* attributes_scope_;
|
173
|
+
|
174
|
+
// Utility function used by AddAttribute implementations.
|
175
|
+
void AddAttributePrefix(const char* name);
|
176
|
+
};
|
177
|
+
|
178
|
+
|
179
|
+
// The JSON AST builder keeps a stack of open element tags (AST node
|
180
|
+
// constructors from the current iteration point to the root of the
|
181
|
+
// AST). TagScope is a helper class to manage the opening and closing
|
182
|
+
// of tags, the indentation of their bodies, and comma separating their
|
183
|
+
// contents.
|
184
|
+
class TagScope BASE_EMBEDDED {
|
185
|
+
public:
|
186
|
+
TagScope(JsonAstBuilder* builder, const char* name);
|
187
|
+
~TagScope();
|
188
|
+
|
189
|
+
void use() { has_body_ = true; }
|
190
|
+
|
191
|
+
private:
|
192
|
+
JsonAstBuilder* builder_;
|
193
|
+
TagScope* next_;
|
194
|
+
bool has_body_;
|
195
|
+
};
|
196
|
+
|
197
|
+
|
198
|
+
// AttributesScope is a helper class to manage the opening and closing
|
199
|
+
// of attribute blocks, the indentation of their bodies, and comma
|
200
|
+
// separating their contents. JsonAstBuilder::AddAttribute adds an
|
201
|
+
// attribute to the currently open AttributesScope. They cannot be
|
202
|
+
// nested so the builder keeps an optional single scope rather than a
|
203
|
+
// stack.
|
204
|
+
class AttributesScope BASE_EMBEDDED {
|
205
|
+
public:
|
206
|
+
explicit AttributesScope(JsonAstBuilder* builder);
|
207
|
+
~AttributesScope();
|
208
|
+
|
209
|
+
bool is_used() { return attribute_count_ > 0; }
|
210
|
+
void use() { ++attribute_count_; }
|
211
|
+
|
212
|
+
private:
|
213
|
+
JsonAstBuilder* builder_;
|
214
|
+
int attribute_count_;
|
215
|
+
};
|
216
|
+
|
217
|
+
#endif // DEBUG
|
218
|
+
|
219
|
+
} } // namespace v8::internal
|
220
|
+
|
221
|
+
#endif // V8_PRETTYPRINTER_H_
|
@@ -0,0 +1,148 @@
|
|
1
|
+
// Copyright 2010 the V8 project authors. All rights reserved.
|
2
|
+
// Redistribution and use in source and binary forms, with or without
|
3
|
+
// modification, are permitted provided that the following conditions are
|
4
|
+
// met:
|
5
|
+
//
|
6
|
+
// * Redistributions of source code must retain the above copyright
|
7
|
+
// notice, this list of conditions and the following disclaimer.
|
8
|
+
// * Redistributions in binary form must reproduce the above
|
9
|
+
// copyright notice, this list of conditions and the following
|
10
|
+
// disclaimer in the documentation and/or other materials provided
|
11
|
+
// with the distribution.
|
12
|
+
// * Neither the name of Google Inc. nor the names of its
|
13
|
+
// contributors may be used to endorse or promote products derived
|
14
|
+
// from this software without specific prior written permission.
|
15
|
+
//
|
16
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
|
28
|
+
#ifndef V8_PROFILE_GENERATOR_INL_H_
|
29
|
+
#define V8_PROFILE_GENERATOR_INL_H_
|
30
|
+
|
31
|
+
#ifdef ENABLE_LOGGING_AND_PROFILING
|
32
|
+
|
33
|
+
#include "profile-generator.h"
|
34
|
+
|
35
|
+
namespace v8 {
|
36
|
+
namespace internal {
|
37
|
+
|
38
|
+
CodeEntry::CodeEntry(int security_token_id)
|
39
|
+
: call_uid_(0),
|
40
|
+
tag_(Logger::FUNCTION_TAG),
|
41
|
+
name_prefix_(kEmptyNamePrefix),
|
42
|
+
name_(""),
|
43
|
+
resource_name_(""),
|
44
|
+
line_number_(0),
|
45
|
+
security_token_id_(security_token_id) {
|
46
|
+
}
|
47
|
+
|
48
|
+
|
49
|
+
CodeEntry::CodeEntry(Logger::LogEventsAndTags tag,
|
50
|
+
const char* name_prefix,
|
51
|
+
const char* name,
|
52
|
+
const char* resource_name,
|
53
|
+
int line_number,
|
54
|
+
int security_token_id)
|
55
|
+
: call_uid_(next_call_uid_++),
|
56
|
+
tag_(tag),
|
57
|
+
name_prefix_(name_prefix),
|
58
|
+
name_(name),
|
59
|
+
resource_name_(resource_name),
|
60
|
+
line_number_(line_number),
|
61
|
+
security_token_id_(security_token_id) {
|
62
|
+
}
|
63
|
+
|
64
|
+
|
65
|
+
bool CodeEntry::is_js_function_tag(Logger::LogEventsAndTags tag) {
|
66
|
+
return tag == Logger::FUNCTION_TAG
|
67
|
+
|| tag == Logger::LAZY_COMPILE_TAG
|
68
|
+
|| tag == Logger::SCRIPT_TAG
|
69
|
+
|| tag == Logger::NATIVE_FUNCTION_TAG
|
70
|
+
|| tag == Logger::NATIVE_LAZY_COMPILE_TAG
|
71
|
+
|| tag == Logger::NATIVE_SCRIPT_TAG;
|
72
|
+
}
|
73
|
+
|
74
|
+
|
75
|
+
ProfileNode::ProfileNode(ProfileTree* tree, CodeEntry* entry)
|
76
|
+
: tree_(tree),
|
77
|
+
entry_(entry),
|
78
|
+
total_ticks_(0),
|
79
|
+
self_ticks_(0),
|
80
|
+
children_(CodeEntriesMatch) {
|
81
|
+
}
|
82
|
+
|
83
|
+
|
84
|
+
void CodeMap::AddCode(Address addr, CodeEntry* entry, unsigned size) {
|
85
|
+
CodeTree::Locator locator;
|
86
|
+
tree_.Insert(addr, &locator);
|
87
|
+
locator.set_value(CodeEntryInfo(entry, size));
|
88
|
+
}
|
89
|
+
|
90
|
+
|
91
|
+
void CodeMap::MoveCode(Address from, Address to) {
|
92
|
+
tree_.Move(from, to);
|
93
|
+
}
|
94
|
+
|
95
|
+
void CodeMap::DeleteCode(Address addr) {
|
96
|
+
tree_.Remove(addr);
|
97
|
+
}
|
98
|
+
|
99
|
+
|
100
|
+
bool CpuProfilesCollection::is_last_profile() {
|
101
|
+
// Called from VM thread, and only it can mutate the list,
|
102
|
+
// so no locking is needed here.
|
103
|
+
return current_profiles_.length() == 1;
|
104
|
+
}
|
105
|
+
|
106
|
+
|
107
|
+
const char* CpuProfilesCollection::GetFunctionName(String* name) {
|
108
|
+
return GetFunctionName(GetName(name));
|
109
|
+
}
|
110
|
+
|
111
|
+
|
112
|
+
const char* CpuProfilesCollection::GetFunctionName(const char* name) {
|
113
|
+
return strlen(name) > 0 ? name : ProfileGenerator::kAnonymousFunctionName;
|
114
|
+
}
|
115
|
+
|
116
|
+
|
117
|
+
CodeEntry* ProfileGenerator::EntryForVMState(StateTag tag) {
|
118
|
+
switch (tag) {
|
119
|
+
case GC:
|
120
|
+
return gc_entry_;
|
121
|
+
case JS:
|
122
|
+
case COMPILER:
|
123
|
+
// DOM events handlers are reported as OTHER / EXTERNAL entries.
|
124
|
+
// To avoid confusing people, let's put all these entries into
|
125
|
+
// one bucket.
|
126
|
+
case OTHER:
|
127
|
+
case EXTERNAL:
|
128
|
+
return program_entry_;
|
129
|
+
default: return NULL;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
|
134
|
+
template<class Visitor>
|
135
|
+
void HeapEntriesMap::Apply(Visitor* visitor) {
|
136
|
+
for (HashMap::Entry* p = entries_.Start();
|
137
|
+
p != NULL;
|
138
|
+
p = entries_.Next(p)) {
|
139
|
+
if (!IsAlias(p->value))
|
140
|
+
visitor->Apply(reinterpret_cast<HeapEntry*>(p->value));
|
141
|
+
}
|
142
|
+
}
|
143
|
+
|
144
|
+
} } // namespace v8::internal
|
145
|
+
|
146
|
+
#endif // ENABLE_LOGGING_AND_PROFILING
|
147
|
+
|
148
|
+
#endif // V8_PROFILE_GENERATOR_INL_H_
|
@@ -0,0 +1,1830 @@
|
|
1
|
+
// Copyright 2010 the V8 project authors. All rights reserved.
|
2
|
+
// Redistribution and use in source and binary forms, with or without
|
3
|
+
// modification, are permitted provided that the following conditions are
|
4
|
+
// met:
|
5
|
+
//
|
6
|
+
// * Redistributions of source code must retain the above copyright
|
7
|
+
// notice, this list of conditions and the following disclaimer.
|
8
|
+
// * Redistributions in binary form must reproduce the above
|
9
|
+
// copyright notice, this list of conditions and the following
|
10
|
+
// disclaimer in the documentation and/or other materials provided
|
11
|
+
// with the distribution.
|
12
|
+
// * Neither the name of Google Inc. nor the names of its
|
13
|
+
// contributors may be used to endorse or promote products derived
|
14
|
+
// from this software without specific prior written permission.
|
15
|
+
//
|
16
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
|
28
|
+
#ifdef ENABLE_LOGGING_AND_PROFILING
|
29
|
+
|
30
|
+
#include "v8.h"
|
31
|
+
#include "global-handles.h"
|
32
|
+
#include "scopeinfo.h"
|
33
|
+
#include "top.h"
|
34
|
+
#include "zone-inl.h"
|
35
|
+
|
36
|
+
#include "profile-generator-inl.h"
|
37
|
+
|
38
|
+
namespace v8 {
|
39
|
+
namespace internal {
|
40
|
+
|
41
|
+
|
42
|
+
TokenEnumerator::TokenEnumerator()
|
43
|
+
: token_locations_(4),
|
44
|
+
token_removed_(4) {
|
45
|
+
}
|
46
|
+
|
47
|
+
|
48
|
+
TokenEnumerator::~TokenEnumerator() {
|
49
|
+
for (int i = 0; i < token_locations_.length(); ++i) {
|
50
|
+
if (!token_removed_[i]) {
|
51
|
+
GlobalHandles::ClearWeakness(token_locations_[i]);
|
52
|
+
GlobalHandles::Destroy(token_locations_[i]);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
|
58
|
+
int TokenEnumerator::GetTokenId(Object* token) {
|
59
|
+
if (token == NULL) return TokenEnumerator::kNoSecurityToken;
|
60
|
+
for (int i = 0; i < token_locations_.length(); ++i) {
|
61
|
+
if (*token_locations_[i] == token && !token_removed_[i]) return i;
|
62
|
+
}
|
63
|
+
Handle<Object> handle = GlobalHandles::Create(token);
|
64
|
+
// handle.location() points to a memory cell holding a pointer
|
65
|
+
// to a token object in the V8's heap.
|
66
|
+
GlobalHandles::MakeWeak(handle.location(), this, TokenRemovedCallback);
|
67
|
+
token_locations_.Add(handle.location());
|
68
|
+
token_removed_.Add(false);
|
69
|
+
return token_locations_.length() - 1;
|
70
|
+
}
|
71
|
+
|
72
|
+
|
73
|
+
void TokenEnumerator::TokenRemovedCallback(v8::Persistent<v8::Value> handle,
|
74
|
+
void* parameter) {
|
75
|
+
reinterpret_cast<TokenEnumerator*>(parameter)->TokenRemoved(
|
76
|
+
Utils::OpenHandle(*handle).location());
|
77
|
+
handle.Dispose();
|
78
|
+
}
|
79
|
+
|
80
|
+
|
81
|
+
void TokenEnumerator::TokenRemoved(Object** token_location) {
|
82
|
+
for (int i = 0; i < token_locations_.length(); ++i) {
|
83
|
+
if (token_locations_[i] == token_location && !token_removed_[i]) {
|
84
|
+
token_removed_[i] = true;
|
85
|
+
return;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
|
91
|
+
StringsStorage::StringsStorage()
|
92
|
+
: names_(StringsMatch) {
|
93
|
+
}
|
94
|
+
|
95
|
+
|
96
|
+
StringsStorage::~StringsStorage() {
|
97
|
+
for (HashMap::Entry* p = names_.Start();
|
98
|
+
p != NULL;
|
99
|
+
p = names_.Next(p)) {
|
100
|
+
DeleteArray(reinterpret_cast<const char*>(p->value));
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
|
105
|
+
const char* StringsStorage::GetName(String* name) {
|
106
|
+
if (name->IsString()) {
|
107
|
+
char* c_name =
|
108
|
+
name->ToCString(DISALLOW_NULLS, ROBUST_STRING_TRAVERSAL).Detach();
|
109
|
+
HashMap::Entry* cache_entry = names_.Lookup(c_name, name->Hash(), true);
|
110
|
+
if (cache_entry->value == NULL) {
|
111
|
+
// New entry added.
|
112
|
+
cache_entry->value = c_name;
|
113
|
+
} else {
|
114
|
+
DeleteArray(c_name);
|
115
|
+
}
|
116
|
+
return reinterpret_cast<const char*>(cache_entry->value);
|
117
|
+
}
|
118
|
+
return "";
|
119
|
+
}
|
120
|
+
|
121
|
+
|
122
|
+
const char* CodeEntry::kEmptyNamePrefix = "";
|
123
|
+
unsigned CodeEntry::next_call_uid_ = 1;
|
124
|
+
|
125
|
+
|
126
|
+
void CodeEntry::CopyData(const CodeEntry& source) {
|
127
|
+
call_uid_ = source.call_uid_;
|
128
|
+
tag_ = source.tag_;
|
129
|
+
name_prefix_ = source.name_prefix_;
|
130
|
+
name_ = source.name_;
|
131
|
+
resource_name_ = source.resource_name_;
|
132
|
+
line_number_ = source.line_number_;
|
133
|
+
}
|
134
|
+
|
135
|
+
|
136
|
+
ProfileNode* ProfileNode::FindChild(CodeEntry* entry) {
|
137
|
+
HashMap::Entry* map_entry =
|
138
|
+
children_.Lookup(entry, CodeEntryHash(entry), false);
|
139
|
+
return map_entry != NULL ?
|
140
|
+
reinterpret_cast<ProfileNode*>(map_entry->value) : NULL;
|
141
|
+
}
|
142
|
+
|
143
|
+
|
144
|
+
ProfileNode* ProfileNode::FindOrAddChild(CodeEntry* entry) {
|
145
|
+
HashMap::Entry* map_entry =
|
146
|
+
children_.Lookup(entry, CodeEntryHash(entry), true);
|
147
|
+
if (map_entry->value == NULL) {
|
148
|
+
// New node added.
|
149
|
+
ProfileNode* new_node = new ProfileNode(tree_, entry);
|
150
|
+
map_entry->value = new_node;
|
151
|
+
children_list_.Add(new_node);
|
152
|
+
}
|
153
|
+
return reinterpret_cast<ProfileNode*>(map_entry->value);
|
154
|
+
}
|
155
|
+
|
156
|
+
|
157
|
+
double ProfileNode::GetSelfMillis() const {
|
158
|
+
return tree_->TicksToMillis(self_ticks_);
|
159
|
+
}
|
160
|
+
|
161
|
+
|
162
|
+
double ProfileNode::GetTotalMillis() const {
|
163
|
+
return tree_->TicksToMillis(total_ticks_);
|
164
|
+
}
|
165
|
+
|
166
|
+
|
167
|
+
void ProfileNode::Print(int indent) {
|
168
|
+
OS::Print("%5u %5u %*c %s%s [%d]",
|
169
|
+
total_ticks_, self_ticks_,
|
170
|
+
indent, ' ',
|
171
|
+
entry_->name_prefix(),
|
172
|
+
entry_->name(),
|
173
|
+
entry_->security_token_id());
|
174
|
+
if (entry_->resource_name()[0] != '\0')
|
175
|
+
OS::Print(" %s:%d", entry_->resource_name(), entry_->line_number());
|
176
|
+
OS::Print("\n");
|
177
|
+
for (HashMap::Entry* p = children_.Start();
|
178
|
+
p != NULL;
|
179
|
+
p = children_.Next(p)) {
|
180
|
+
reinterpret_cast<ProfileNode*>(p->value)->Print(indent + 2);
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
|
185
|
+
class DeleteNodesCallback {
|
186
|
+
public:
|
187
|
+
void BeforeTraversingChild(ProfileNode*, ProfileNode*) { }
|
188
|
+
|
189
|
+
void AfterAllChildrenTraversed(ProfileNode* node) {
|
190
|
+
delete node;
|
191
|
+
}
|
192
|
+
|
193
|
+
void AfterChildTraversed(ProfileNode*, ProfileNode*) { }
|
194
|
+
};
|
195
|
+
|
196
|
+
|
197
|
+
ProfileTree::ProfileTree()
|
198
|
+
: root_entry_(Logger::FUNCTION_TAG,
|
199
|
+
"",
|
200
|
+
"(root)",
|
201
|
+
"",
|
202
|
+
0,
|
203
|
+
TokenEnumerator::kNoSecurityToken),
|
204
|
+
root_(new ProfileNode(this, &root_entry_)) {
|
205
|
+
}
|
206
|
+
|
207
|
+
|
208
|
+
ProfileTree::~ProfileTree() {
|
209
|
+
DeleteNodesCallback cb;
|
210
|
+
TraverseDepthFirst(&cb);
|
211
|
+
}
|
212
|
+
|
213
|
+
|
214
|
+
void ProfileTree::AddPathFromEnd(const Vector<CodeEntry*>& path) {
|
215
|
+
ProfileNode* node = root_;
|
216
|
+
for (CodeEntry** entry = path.start() + path.length() - 1;
|
217
|
+
entry != path.start() - 1;
|
218
|
+
--entry) {
|
219
|
+
if (*entry != NULL) {
|
220
|
+
node = node->FindOrAddChild(*entry);
|
221
|
+
}
|
222
|
+
}
|
223
|
+
node->IncrementSelfTicks();
|
224
|
+
}
|
225
|
+
|
226
|
+
|
227
|
+
void ProfileTree::AddPathFromStart(const Vector<CodeEntry*>& path) {
|
228
|
+
ProfileNode* node = root_;
|
229
|
+
for (CodeEntry** entry = path.start();
|
230
|
+
entry != path.start() + path.length();
|
231
|
+
++entry) {
|
232
|
+
if (*entry != NULL) {
|
233
|
+
node = node->FindOrAddChild(*entry);
|
234
|
+
}
|
235
|
+
}
|
236
|
+
node->IncrementSelfTicks();
|
237
|
+
}
|
238
|
+
|
239
|
+
|
240
|
+
struct NodesPair {
|
241
|
+
NodesPair(ProfileNode* src, ProfileNode* dst)
|
242
|
+
: src(src), dst(dst) { }
|
243
|
+
ProfileNode* src;
|
244
|
+
ProfileNode* dst;
|
245
|
+
};
|
246
|
+
|
247
|
+
|
248
|
+
class FilteredCloneCallback {
|
249
|
+
public:
|
250
|
+
explicit FilteredCloneCallback(ProfileNode* dst_root, int security_token_id)
|
251
|
+
: stack_(10),
|
252
|
+
security_token_id_(security_token_id) {
|
253
|
+
stack_.Add(NodesPair(NULL, dst_root));
|
254
|
+
}
|
255
|
+
|
256
|
+
void BeforeTraversingChild(ProfileNode* parent, ProfileNode* child) {
|
257
|
+
if (IsTokenAcceptable(child->entry()->security_token_id(),
|
258
|
+
parent->entry()->security_token_id())) {
|
259
|
+
ProfileNode* clone = stack_.last().dst->FindOrAddChild(child->entry());
|
260
|
+
clone->IncreaseSelfTicks(child->self_ticks());
|
261
|
+
stack_.Add(NodesPair(child, clone));
|
262
|
+
} else {
|
263
|
+
// Attribute ticks to parent node.
|
264
|
+
stack_.last().dst->IncreaseSelfTicks(child->self_ticks());
|
265
|
+
}
|
266
|
+
}
|
267
|
+
|
268
|
+
void AfterAllChildrenTraversed(ProfileNode* parent) { }
|
269
|
+
|
270
|
+
void AfterChildTraversed(ProfileNode*, ProfileNode* child) {
|
271
|
+
if (stack_.last().src == child) {
|
272
|
+
stack_.RemoveLast();
|
273
|
+
}
|
274
|
+
}
|
275
|
+
|
276
|
+
private:
|
277
|
+
bool IsTokenAcceptable(int token, int parent_token) {
|
278
|
+
if (token == TokenEnumerator::kNoSecurityToken
|
279
|
+
|| token == security_token_id_) return true;
|
280
|
+
if (token == TokenEnumerator::kInheritsSecurityToken) {
|
281
|
+
ASSERT(parent_token != TokenEnumerator::kInheritsSecurityToken);
|
282
|
+
return parent_token == TokenEnumerator::kNoSecurityToken
|
283
|
+
|| parent_token == security_token_id_;
|
284
|
+
}
|
285
|
+
return false;
|
286
|
+
}
|
287
|
+
|
288
|
+
List<NodesPair> stack_;
|
289
|
+
int security_token_id_;
|
290
|
+
};
|
291
|
+
|
292
|
+
void ProfileTree::FilteredClone(ProfileTree* src, int security_token_id) {
|
293
|
+
ms_to_ticks_scale_ = src->ms_to_ticks_scale_;
|
294
|
+
FilteredCloneCallback cb(root_, security_token_id);
|
295
|
+
src->TraverseDepthFirst(&cb);
|
296
|
+
CalculateTotalTicks();
|
297
|
+
}
|
298
|
+
|
299
|
+
|
300
|
+
void ProfileTree::SetTickRatePerMs(double ticks_per_ms) {
|
301
|
+
ms_to_ticks_scale_ = ticks_per_ms > 0 ? 1.0 / ticks_per_ms : 1.0;
|
302
|
+
}
|
303
|
+
|
304
|
+
|
305
|
+
class Position {
|
306
|
+
public:
|
307
|
+
explicit Position(ProfileNode* node)
|
308
|
+
: node(node), child_idx_(0) { }
|
309
|
+
INLINE(ProfileNode* current_child()) {
|
310
|
+
return node->children()->at(child_idx_);
|
311
|
+
}
|
312
|
+
INLINE(bool has_current_child()) {
|
313
|
+
return child_idx_ < node->children()->length();
|
314
|
+
}
|
315
|
+
INLINE(void next_child()) { ++child_idx_; }
|
316
|
+
|
317
|
+
ProfileNode* node;
|
318
|
+
private:
|
319
|
+
int child_idx_;
|
320
|
+
};
|
321
|
+
|
322
|
+
|
323
|
+
// Non-recursive implementation of a depth-first post-order tree traversal.
|
324
|
+
template <typename Callback>
|
325
|
+
void ProfileTree::TraverseDepthFirst(Callback* callback) {
|
326
|
+
List<Position> stack(10);
|
327
|
+
stack.Add(Position(root_));
|
328
|
+
while (stack.length() > 0) {
|
329
|
+
Position& current = stack.last();
|
330
|
+
if (current.has_current_child()) {
|
331
|
+
callback->BeforeTraversingChild(current.node, current.current_child());
|
332
|
+
stack.Add(Position(current.current_child()));
|
333
|
+
} else {
|
334
|
+
callback->AfterAllChildrenTraversed(current.node);
|
335
|
+
if (stack.length() > 1) {
|
336
|
+
Position& parent = stack[stack.length() - 2];
|
337
|
+
callback->AfterChildTraversed(parent.node, current.node);
|
338
|
+
parent.next_child();
|
339
|
+
}
|
340
|
+
// Remove child from the stack.
|
341
|
+
stack.RemoveLast();
|
342
|
+
}
|
343
|
+
}
|
344
|
+
}
|
345
|
+
|
346
|
+
|
347
|
+
class CalculateTotalTicksCallback {
|
348
|
+
public:
|
349
|
+
void BeforeTraversingChild(ProfileNode*, ProfileNode*) { }
|
350
|
+
|
351
|
+
void AfterAllChildrenTraversed(ProfileNode* node) {
|
352
|
+
node->IncreaseTotalTicks(node->self_ticks());
|
353
|
+
}
|
354
|
+
|
355
|
+
void AfterChildTraversed(ProfileNode* parent, ProfileNode* child) {
|
356
|
+
parent->IncreaseTotalTicks(child->total_ticks());
|
357
|
+
}
|
358
|
+
};
|
359
|
+
|
360
|
+
|
361
|
+
void ProfileTree::CalculateTotalTicks() {
|
362
|
+
CalculateTotalTicksCallback cb;
|
363
|
+
TraverseDepthFirst(&cb);
|
364
|
+
}
|
365
|
+
|
366
|
+
|
367
|
+
void ProfileTree::ShortPrint() {
|
368
|
+
OS::Print("root: %u %u %.2fms %.2fms\n",
|
369
|
+
root_->total_ticks(), root_->self_ticks(),
|
370
|
+
root_->GetTotalMillis(), root_->GetSelfMillis());
|
371
|
+
}
|
372
|
+
|
373
|
+
|
374
|
+
void CpuProfile::AddPath(const Vector<CodeEntry*>& path) {
|
375
|
+
top_down_.AddPathFromEnd(path);
|
376
|
+
bottom_up_.AddPathFromStart(path);
|
377
|
+
}
|
378
|
+
|
379
|
+
|
380
|
+
void CpuProfile::CalculateTotalTicks() {
|
381
|
+
top_down_.CalculateTotalTicks();
|
382
|
+
bottom_up_.CalculateTotalTicks();
|
383
|
+
}
|
384
|
+
|
385
|
+
|
386
|
+
void CpuProfile::SetActualSamplingRate(double actual_sampling_rate) {
|
387
|
+
top_down_.SetTickRatePerMs(actual_sampling_rate);
|
388
|
+
bottom_up_.SetTickRatePerMs(actual_sampling_rate);
|
389
|
+
}
|
390
|
+
|
391
|
+
|
392
|
+
CpuProfile* CpuProfile::FilteredClone(int security_token_id) {
|
393
|
+
ASSERT(security_token_id != TokenEnumerator::kNoSecurityToken);
|
394
|
+
CpuProfile* clone = new CpuProfile(title_, uid_);
|
395
|
+
clone->top_down_.FilteredClone(&top_down_, security_token_id);
|
396
|
+
clone->bottom_up_.FilteredClone(&bottom_up_, security_token_id);
|
397
|
+
return clone;
|
398
|
+
}
|
399
|
+
|
400
|
+
|
401
|
+
void CpuProfile::ShortPrint() {
|
402
|
+
OS::Print("top down ");
|
403
|
+
top_down_.ShortPrint();
|
404
|
+
OS::Print("bottom up ");
|
405
|
+
bottom_up_.ShortPrint();
|
406
|
+
}
|
407
|
+
|
408
|
+
|
409
|
+
void CpuProfile::Print() {
|
410
|
+
OS::Print("[Top down]:\n");
|
411
|
+
top_down_.Print();
|
412
|
+
OS::Print("[Bottom up]:\n");
|
413
|
+
bottom_up_.Print();
|
414
|
+
}
|
415
|
+
|
416
|
+
|
417
|
+
const CodeMap::CodeTreeConfig::Key CodeMap::CodeTreeConfig::kNoKey = NULL;
|
418
|
+
const CodeMap::CodeTreeConfig::Value CodeMap::CodeTreeConfig::kNoValue =
|
419
|
+
CodeMap::CodeEntryInfo(NULL, 0);
|
420
|
+
|
421
|
+
|
422
|
+
void CodeMap::AddAlias(Address start, CodeEntry* entry, Address code_start) {
|
423
|
+
CodeTree::Locator locator;
|
424
|
+
if (tree_.Find(code_start, &locator)) {
|
425
|
+
const CodeEntryInfo& code_info = locator.value();
|
426
|
+
entry->CopyData(*code_info.entry);
|
427
|
+
tree_.Insert(start, &locator);
|
428
|
+
locator.set_value(CodeEntryInfo(entry, code_info.size));
|
429
|
+
}
|
430
|
+
}
|
431
|
+
|
432
|
+
|
433
|
+
CodeEntry* CodeMap::FindEntry(Address addr) {
|
434
|
+
CodeTree::Locator locator;
|
435
|
+
if (tree_.FindGreatestLessThan(addr, &locator)) {
|
436
|
+
// locator.key() <= addr. Need to check that addr is within entry.
|
437
|
+
const CodeEntryInfo& entry = locator.value();
|
438
|
+
if (addr < (locator.key() + entry.size))
|
439
|
+
return entry.entry;
|
440
|
+
}
|
441
|
+
return NULL;
|
442
|
+
}
|
443
|
+
|
444
|
+
|
445
|
+
void CodeMap::CodeTreePrinter::Call(
|
446
|
+
const Address& key, const CodeMap::CodeEntryInfo& value) {
|
447
|
+
OS::Print("%p %5d %s\n", key, value.size, value.entry->name());
|
448
|
+
}
|
449
|
+
|
450
|
+
|
451
|
+
void CodeMap::Print() {
|
452
|
+
CodeTreePrinter printer;
|
453
|
+
tree_.ForEach(&printer);
|
454
|
+
}
|
455
|
+
|
456
|
+
|
457
|
+
CpuProfilesCollection::CpuProfilesCollection()
|
458
|
+
: profiles_uids_(UidsMatch),
|
459
|
+
current_profiles_semaphore_(OS::CreateSemaphore(1)) {
|
460
|
+
// Create list of unabridged profiles.
|
461
|
+
profiles_by_token_.Add(new List<CpuProfile*>());
|
462
|
+
}
|
463
|
+
|
464
|
+
|
465
|
+
static void DeleteArgsCountName(char** name_ptr) {
|
466
|
+
DeleteArray(*name_ptr);
|
467
|
+
}
|
468
|
+
|
469
|
+
|
470
|
+
static void DeleteCodeEntry(CodeEntry** entry_ptr) {
|
471
|
+
delete *entry_ptr;
|
472
|
+
}
|
473
|
+
|
474
|
+
static void DeleteCpuProfile(CpuProfile** profile_ptr) {
|
475
|
+
delete *profile_ptr;
|
476
|
+
}
|
477
|
+
|
478
|
+
static void DeleteProfilesList(List<CpuProfile*>** list_ptr) {
|
479
|
+
(*list_ptr)->Iterate(DeleteCpuProfile);
|
480
|
+
delete *list_ptr;
|
481
|
+
}
|
482
|
+
|
483
|
+
CpuProfilesCollection::~CpuProfilesCollection() {
|
484
|
+
delete current_profiles_semaphore_;
|
485
|
+
current_profiles_.Iterate(DeleteCpuProfile);
|
486
|
+
profiles_by_token_.Iterate(DeleteProfilesList);
|
487
|
+
code_entries_.Iterate(DeleteCodeEntry);
|
488
|
+
args_count_names_.Iterate(DeleteArgsCountName);
|
489
|
+
}
|
490
|
+
|
491
|
+
|
492
|
+
bool CpuProfilesCollection::StartProfiling(const char* title, unsigned uid) {
|
493
|
+
ASSERT(uid > 0);
|
494
|
+
current_profiles_semaphore_->Wait();
|
495
|
+
for (int i = 0; i < current_profiles_.length(); ++i) {
|
496
|
+
if (strcmp(current_profiles_[i]->title(), title) == 0) {
|
497
|
+
// Ignore attempts to start profile with the same title.
|
498
|
+
current_profiles_semaphore_->Signal();
|
499
|
+
return false;
|
500
|
+
}
|
501
|
+
}
|
502
|
+
current_profiles_.Add(new CpuProfile(title, uid));
|
503
|
+
current_profiles_semaphore_->Signal();
|
504
|
+
return true;
|
505
|
+
}
|
506
|
+
|
507
|
+
|
508
|
+
bool CpuProfilesCollection::StartProfiling(String* title, unsigned uid) {
|
509
|
+
return StartProfiling(GetName(title), uid);
|
510
|
+
}
|
511
|
+
|
512
|
+
|
513
|
+
CpuProfile* CpuProfilesCollection::StopProfiling(int security_token_id,
|
514
|
+
const char* title,
|
515
|
+
double actual_sampling_rate) {
|
516
|
+
const int title_len = StrLength(title);
|
517
|
+
CpuProfile* profile = NULL;
|
518
|
+
current_profiles_semaphore_->Wait();
|
519
|
+
for (int i = current_profiles_.length() - 1; i >= 0; --i) {
|
520
|
+
if (title_len == 0 || strcmp(current_profiles_[i]->title(), title) == 0) {
|
521
|
+
profile = current_profiles_.Remove(i);
|
522
|
+
break;
|
523
|
+
}
|
524
|
+
}
|
525
|
+
current_profiles_semaphore_->Signal();
|
526
|
+
|
527
|
+
if (profile != NULL) {
|
528
|
+
profile->CalculateTotalTicks();
|
529
|
+
profile->SetActualSamplingRate(actual_sampling_rate);
|
530
|
+
List<CpuProfile*>* unabridged_list =
|
531
|
+
profiles_by_token_[TokenToIndex(TokenEnumerator::kNoSecurityToken)];
|
532
|
+
unabridged_list->Add(profile);
|
533
|
+
HashMap::Entry* entry =
|
534
|
+
profiles_uids_.Lookup(reinterpret_cast<void*>(profile->uid()),
|
535
|
+
static_cast<uint32_t>(profile->uid()),
|
536
|
+
true);
|
537
|
+
ASSERT(entry->value == NULL);
|
538
|
+
entry->value = reinterpret_cast<void*>(unabridged_list->length() - 1);
|
539
|
+
return GetProfile(security_token_id, profile->uid());
|
540
|
+
}
|
541
|
+
return NULL;
|
542
|
+
}
|
543
|
+
|
544
|
+
|
545
|
+
CpuProfile* CpuProfilesCollection::StopProfiling(int security_token_id,
|
546
|
+
String* title,
|
547
|
+
double actual_sampling_rate) {
|
548
|
+
return StopProfiling(security_token_id, GetName(title), actual_sampling_rate);
|
549
|
+
}
|
550
|
+
|
551
|
+
|
552
|
+
CpuProfile* CpuProfilesCollection::GetProfile(int security_token_id,
|
553
|
+
unsigned uid) {
|
554
|
+
HashMap::Entry* entry = profiles_uids_.Lookup(reinterpret_cast<void*>(uid),
|
555
|
+
static_cast<uint32_t>(uid),
|
556
|
+
false);
|
557
|
+
int index;
|
558
|
+
if (entry != NULL) {
|
559
|
+
index = static_cast<int>(reinterpret_cast<intptr_t>(entry->value));
|
560
|
+
} else {
|
561
|
+
return NULL;
|
562
|
+
}
|
563
|
+
List<CpuProfile*>* unabridged_list =
|
564
|
+
profiles_by_token_[TokenToIndex(TokenEnumerator::kNoSecurityToken)];
|
565
|
+
if (security_token_id == TokenEnumerator::kNoSecurityToken) {
|
566
|
+
return unabridged_list->at(index);
|
567
|
+
}
|
568
|
+
List<CpuProfile*>* list = GetProfilesList(security_token_id);
|
569
|
+
if (list->at(index) == NULL) {
|
570
|
+
list->at(index) =
|
571
|
+
unabridged_list->at(index)->FilteredClone(security_token_id);
|
572
|
+
}
|
573
|
+
return list->at(index);
|
574
|
+
}
|
575
|
+
|
576
|
+
|
577
|
+
int CpuProfilesCollection::TokenToIndex(int security_token_id) {
|
578
|
+
ASSERT(TokenEnumerator::kNoSecurityToken == -1);
|
579
|
+
return security_token_id + 1; // kNoSecurityToken -> 0, 0 -> 1, ...
|
580
|
+
}
|
581
|
+
|
582
|
+
|
583
|
+
List<CpuProfile*>* CpuProfilesCollection::GetProfilesList(
|
584
|
+
int security_token_id) {
|
585
|
+
const int index = TokenToIndex(security_token_id);
|
586
|
+
const int lists_to_add = index - profiles_by_token_.length() + 1;
|
587
|
+
if (lists_to_add > 0) profiles_by_token_.AddBlock(NULL, lists_to_add);
|
588
|
+
List<CpuProfile*>* unabridged_list =
|
589
|
+
profiles_by_token_[TokenToIndex(TokenEnumerator::kNoSecurityToken)];
|
590
|
+
const int current_count = unabridged_list->length();
|
591
|
+
if (profiles_by_token_[index] == NULL) {
|
592
|
+
profiles_by_token_[index] = new List<CpuProfile*>(current_count);
|
593
|
+
}
|
594
|
+
List<CpuProfile*>* list = profiles_by_token_[index];
|
595
|
+
const int profiles_to_add = current_count - list->length();
|
596
|
+
if (profiles_to_add > 0) list->AddBlock(NULL, profiles_to_add);
|
597
|
+
return list;
|
598
|
+
}
|
599
|
+
|
600
|
+
|
601
|
+
List<CpuProfile*>* CpuProfilesCollection::Profiles(int security_token_id) {
|
602
|
+
List<CpuProfile*>* unabridged_list =
|
603
|
+
profiles_by_token_[TokenToIndex(TokenEnumerator::kNoSecurityToken)];
|
604
|
+
if (security_token_id == TokenEnumerator::kNoSecurityToken) {
|
605
|
+
return unabridged_list;
|
606
|
+
}
|
607
|
+
List<CpuProfile*>* list = GetProfilesList(security_token_id);
|
608
|
+
const int current_count = unabridged_list->length();
|
609
|
+
for (int i = 0; i < current_count; ++i) {
|
610
|
+
if (list->at(i) == NULL) {
|
611
|
+
list->at(i) = unabridged_list->at(i)->FilteredClone(security_token_id);
|
612
|
+
}
|
613
|
+
}
|
614
|
+
return list;
|
615
|
+
}
|
616
|
+
|
617
|
+
|
618
|
+
CodeEntry* CpuProfilesCollection::NewCodeEntry(Logger::LogEventsAndTags tag,
|
619
|
+
String* name,
|
620
|
+
String* resource_name,
|
621
|
+
int line_number) {
|
622
|
+
CodeEntry* entry = new CodeEntry(tag,
|
623
|
+
CodeEntry::kEmptyNamePrefix,
|
624
|
+
GetFunctionName(name),
|
625
|
+
GetName(resource_name),
|
626
|
+
line_number,
|
627
|
+
TokenEnumerator::kNoSecurityToken);
|
628
|
+
code_entries_.Add(entry);
|
629
|
+
return entry;
|
630
|
+
}
|
631
|
+
|
632
|
+
|
633
|
+
CodeEntry* CpuProfilesCollection::NewCodeEntry(Logger::LogEventsAndTags tag,
|
634
|
+
const char* name) {
|
635
|
+
CodeEntry* entry = new CodeEntry(tag,
|
636
|
+
CodeEntry::kEmptyNamePrefix,
|
637
|
+
GetFunctionName(name),
|
638
|
+
"",
|
639
|
+
v8::CpuProfileNode::kNoLineNumberInfo,
|
640
|
+
TokenEnumerator::kNoSecurityToken);
|
641
|
+
code_entries_.Add(entry);
|
642
|
+
return entry;
|
643
|
+
}
|
644
|
+
|
645
|
+
|
646
|
+
CodeEntry* CpuProfilesCollection::NewCodeEntry(Logger::LogEventsAndTags tag,
|
647
|
+
const char* name_prefix,
|
648
|
+
String* name) {
|
649
|
+
CodeEntry* entry = new CodeEntry(tag,
|
650
|
+
name_prefix,
|
651
|
+
GetName(name),
|
652
|
+
"",
|
653
|
+
v8::CpuProfileNode::kNoLineNumberInfo,
|
654
|
+
TokenEnumerator::kInheritsSecurityToken);
|
655
|
+
code_entries_.Add(entry);
|
656
|
+
return entry;
|
657
|
+
}
|
658
|
+
|
659
|
+
|
660
|
+
CodeEntry* CpuProfilesCollection::NewCodeEntry(Logger::LogEventsAndTags tag,
|
661
|
+
int args_count) {
|
662
|
+
CodeEntry* entry = new CodeEntry(tag,
|
663
|
+
"args_count: ",
|
664
|
+
GetName(args_count),
|
665
|
+
"",
|
666
|
+
v8::CpuProfileNode::kNoLineNumberInfo,
|
667
|
+
TokenEnumerator::kInheritsSecurityToken);
|
668
|
+
code_entries_.Add(entry);
|
669
|
+
return entry;
|
670
|
+
}
|
671
|
+
|
672
|
+
|
673
|
+
CodeEntry* CpuProfilesCollection::NewCodeEntry(int security_token_id) {
|
674
|
+
CodeEntry* entry = new CodeEntry(security_token_id);
|
675
|
+
code_entries_.Add(entry);
|
676
|
+
return entry;
|
677
|
+
}
|
678
|
+
|
679
|
+
|
680
|
+
const char* CpuProfilesCollection::GetName(int args_count) {
|
681
|
+
ASSERT(args_count >= 0);
|
682
|
+
if (args_count_names_.length() <= args_count) {
|
683
|
+
args_count_names_.AddBlock(
|
684
|
+
NULL, args_count - args_count_names_.length() + 1);
|
685
|
+
}
|
686
|
+
if (args_count_names_[args_count] == NULL) {
|
687
|
+
const int kMaximumNameLength = 32;
|
688
|
+
char* name = NewArray<char>(kMaximumNameLength);
|
689
|
+
OS::SNPrintF(Vector<char>(name, kMaximumNameLength), "%d", args_count);
|
690
|
+
args_count_names_[args_count] = name;
|
691
|
+
}
|
692
|
+
return args_count_names_[args_count];
|
693
|
+
}
|
694
|
+
|
695
|
+
|
696
|
+
void CpuProfilesCollection::AddPathToCurrentProfiles(
|
697
|
+
const Vector<CodeEntry*>& path) {
|
698
|
+
// As starting / stopping profiles is rare relatively to this
|
699
|
+
// method, we don't bother minimizing the duration of lock holding,
|
700
|
+
// e.g. copying contents of the list to a local vector.
|
701
|
+
current_profiles_semaphore_->Wait();
|
702
|
+
for (int i = 0; i < current_profiles_.length(); ++i) {
|
703
|
+
current_profiles_[i]->AddPath(path);
|
704
|
+
}
|
705
|
+
current_profiles_semaphore_->Signal();
|
706
|
+
}
|
707
|
+
|
708
|
+
|
709
|
+
void SampleRateCalculator::Tick() {
|
710
|
+
if (--wall_time_query_countdown_ == 0)
|
711
|
+
UpdateMeasurements(OS::TimeCurrentMillis());
|
712
|
+
}
|
713
|
+
|
714
|
+
|
715
|
+
void SampleRateCalculator::UpdateMeasurements(double current_time) {
|
716
|
+
if (measurements_count_++ != 0) {
|
717
|
+
const double measured_ticks_per_ms =
|
718
|
+
(kWallTimeQueryIntervalMs * ticks_per_ms_) /
|
719
|
+
(current_time - last_wall_time_);
|
720
|
+
// Update the average value.
|
721
|
+
ticks_per_ms_ +=
|
722
|
+
(measured_ticks_per_ms - ticks_per_ms_) / measurements_count_;
|
723
|
+
// Update the externally accessible result.
|
724
|
+
result_ = static_cast<AtomicWord>(ticks_per_ms_ * kResultScale);
|
725
|
+
}
|
726
|
+
last_wall_time_ = current_time;
|
727
|
+
wall_time_query_countdown_ =
|
728
|
+
static_cast<unsigned>(kWallTimeQueryIntervalMs * ticks_per_ms_);
|
729
|
+
}
|
730
|
+
|
731
|
+
|
732
|
+
const char* ProfileGenerator::kAnonymousFunctionName = "(anonymous function)";
|
733
|
+
const char* ProfileGenerator::kProgramEntryName = "(program)";
|
734
|
+
const char* ProfileGenerator::kGarbageCollectorEntryName =
|
735
|
+
"(garbage collector)";
|
736
|
+
|
737
|
+
|
738
|
+
ProfileGenerator::ProfileGenerator(CpuProfilesCollection* profiles)
|
739
|
+
: profiles_(profiles),
|
740
|
+
program_entry_(
|
741
|
+
profiles->NewCodeEntry(Logger::FUNCTION_TAG, kProgramEntryName)),
|
742
|
+
gc_entry_(
|
743
|
+
profiles->NewCodeEntry(Logger::BUILTIN_TAG,
|
744
|
+
kGarbageCollectorEntryName)) {
|
745
|
+
}
|
746
|
+
|
747
|
+
|
748
|
+
void ProfileGenerator::RecordTickSample(const TickSample& sample) {
|
749
|
+
// Allocate space for stack frames + pc + function + vm-state.
|
750
|
+
ScopedVector<CodeEntry*> entries(sample.frames_count + 3);
|
751
|
+
// As actual number of decoded code entries may vary, initialize
|
752
|
+
// entries vector with NULL values.
|
753
|
+
CodeEntry** entry = entries.start();
|
754
|
+
memset(entry, 0, entries.length() * sizeof(*entry));
|
755
|
+
if (sample.pc != NULL) {
|
756
|
+
*entry++ = code_map_.FindEntry(sample.pc);
|
757
|
+
|
758
|
+
if (sample.function != NULL) {
|
759
|
+
*entry = code_map_.FindEntry(sample.function);
|
760
|
+
if (*entry != NULL && !(*entry)->is_js_function()) {
|
761
|
+
*entry = NULL;
|
762
|
+
} else {
|
763
|
+
CodeEntry* pc_entry = *entries.start();
|
764
|
+
if (pc_entry == NULL) {
|
765
|
+
*entry = NULL;
|
766
|
+
} else if (pc_entry->is_js_function()) {
|
767
|
+
// Use function entry in favor of pc entry, as function
|
768
|
+
// entry has security token.
|
769
|
+
*entries.start() = NULL;
|
770
|
+
}
|
771
|
+
}
|
772
|
+
entry++;
|
773
|
+
}
|
774
|
+
|
775
|
+
for (const Address *stack_pos = sample.stack,
|
776
|
+
*stack_end = stack_pos + sample.frames_count;
|
777
|
+
stack_pos != stack_end;
|
778
|
+
++stack_pos) {
|
779
|
+
*entry++ = code_map_.FindEntry(*stack_pos);
|
780
|
+
}
|
781
|
+
}
|
782
|
+
|
783
|
+
if (FLAG_prof_browser_mode) {
|
784
|
+
bool no_symbolized_entries = true;
|
785
|
+
for (CodeEntry** e = entries.start(); e != entry; ++e) {
|
786
|
+
if (*e != NULL) {
|
787
|
+
no_symbolized_entries = false;
|
788
|
+
break;
|
789
|
+
}
|
790
|
+
}
|
791
|
+
// If no frames were symbolized, put the VM state entry in.
|
792
|
+
if (no_symbolized_entries) {
|
793
|
+
*entry++ = EntryForVMState(sample.state);
|
794
|
+
}
|
795
|
+
}
|
796
|
+
|
797
|
+
profiles_->AddPathToCurrentProfiles(entries);
|
798
|
+
}
|
799
|
+
|
800
|
+
|
801
|
+
HeapGraphEdge::HeapGraphEdge(Type type,
|
802
|
+
const char* name,
|
803
|
+
HeapEntry* from,
|
804
|
+
HeapEntry* to)
|
805
|
+
: type_(type), name_(name), from_(from), to_(to) {
|
806
|
+
ASSERT(type_ == CONTEXT_VARIABLE || type_ == PROPERTY || type_ == INTERNAL);
|
807
|
+
}
|
808
|
+
|
809
|
+
|
810
|
+
HeapGraphEdge::HeapGraphEdge(int index,
|
811
|
+
HeapEntry* from,
|
812
|
+
HeapEntry* to)
|
813
|
+
: type_(ELEMENT), index_(index), from_(from), to_(to) {
|
814
|
+
}
|
815
|
+
|
816
|
+
|
817
|
+
static void DeleteHeapGraphEdge(HeapGraphEdge** edge_ptr) {
|
818
|
+
delete *edge_ptr;
|
819
|
+
}
|
820
|
+
|
821
|
+
|
822
|
+
static void DeleteHeapGraphPath(HeapGraphPath** path_ptr) {
|
823
|
+
delete *path_ptr;
|
824
|
+
}
|
825
|
+
|
826
|
+
|
827
|
+
HeapEntry::~HeapEntry() {
|
828
|
+
children_.Iterate(DeleteHeapGraphEdge);
|
829
|
+
retaining_paths_.Iterate(DeleteHeapGraphPath);
|
830
|
+
}
|
831
|
+
|
832
|
+
|
833
|
+
void HeapEntry::AddEdge(HeapGraphEdge* edge) {
|
834
|
+
children_.Add(edge);
|
835
|
+
edge->to()->retainers_.Add(edge);
|
836
|
+
}
|
837
|
+
|
838
|
+
|
839
|
+
void HeapEntry::SetClosureReference(const char* name, HeapEntry* entry) {
|
840
|
+
AddEdge(
|
841
|
+
new HeapGraphEdge(HeapGraphEdge::CONTEXT_VARIABLE, name, this, entry));
|
842
|
+
}
|
843
|
+
|
844
|
+
|
845
|
+
void HeapEntry::SetElementReference(int index, HeapEntry* entry) {
|
846
|
+
AddEdge(new HeapGraphEdge(index, this, entry));
|
847
|
+
}
|
848
|
+
|
849
|
+
|
850
|
+
void HeapEntry::SetInternalReference(const char* name, HeapEntry* entry) {
|
851
|
+
AddEdge(new HeapGraphEdge(HeapGraphEdge::INTERNAL, name, this, entry));
|
852
|
+
}
|
853
|
+
|
854
|
+
|
855
|
+
void HeapEntry::SetPropertyReference(const char* name, HeapEntry* entry) {
|
856
|
+
AddEdge(new HeapGraphEdge(HeapGraphEdge::PROPERTY, name, this, entry));
|
857
|
+
}
|
858
|
+
|
859
|
+
|
860
|
+
void HeapEntry::SetAutoIndexReference(HeapEntry* entry) {
|
861
|
+
SetElementReference(next_auto_index_++, entry);
|
862
|
+
}
|
863
|
+
|
864
|
+
|
865
|
+
void HeapEntry::SetUnidirAutoIndexReference(HeapEntry* entry) {
|
866
|
+
children_.Add(new HeapGraphEdge(next_auto_index_++, this, entry));
|
867
|
+
}
|
868
|
+
|
869
|
+
|
870
|
+
int HeapEntry::TotalSize() {
|
871
|
+
return total_size_ != kUnknownSize ? total_size_ : CalculateTotalSize();
|
872
|
+
}
|
873
|
+
|
874
|
+
|
875
|
+
int HeapEntry::NonSharedTotalSize() {
|
876
|
+
return non_shared_total_size_ != kUnknownSize ?
|
877
|
+
non_shared_total_size_ : CalculateNonSharedTotalSize();
|
878
|
+
}
|
879
|
+
|
880
|
+
|
881
|
+
template<class Visitor>
|
882
|
+
void HeapEntry::ApplyAndPaintAllReachable(Visitor* visitor) {
|
883
|
+
List<HeapEntry*> list(10);
|
884
|
+
list.Add(this);
|
885
|
+
this->PaintReachable();
|
886
|
+
visitor->Apply(this);
|
887
|
+
while (!list.is_empty()) {
|
888
|
+
HeapEntry* entry = list.RemoveLast();
|
889
|
+
const int children_count = entry->children_.length();
|
890
|
+
for (int i = 0; i < children_count; ++i) {
|
891
|
+
HeapEntry* child = entry->children_[i]->to();
|
892
|
+
if (!child->painted_reachable()) {
|
893
|
+
list.Add(child);
|
894
|
+
child->PaintReachable();
|
895
|
+
visitor->Apply(child);
|
896
|
+
}
|
897
|
+
}
|
898
|
+
}
|
899
|
+
}
|
900
|
+
|
901
|
+
|
902
|
+
class NullClass {
|
903
|
+
public:
|
904
|
+
void Apply(HeapEntry* entry) { }
|
905
|
+
};
|
906
|
+
|
907
|
+
void HeapEntry::PaintAllReachable() {
|
908
|
+
NullClass null;
|
909
|
+
ApplyAndPaintAllReachable(&null);
|
910
|
+
}
|
911
|
+
|
912
|
+
|
913
|
+
class TotalSizeCalculator {
|
914
|
+
public:
|
915
|
+
TotalSizeCalculator()
|
916
|
+
: total_size_(0) {
|
917
|
+
}
|
918
|
+
|
919
|
+
int total_size() const { return total_size_; }
|
920
|
+
|
921
|
+
void Apply(HeapEntry* entry) {
|
922
|
+
total_size_ += entry->self_size();
|
923
|
+
}
|
924
|
+
|
925
|
+
private:
|
926
|
+
int total_size_;
|
927
|
+
};
|
928
|
+
|
929
|
+
int HeapEntry::CalculateTotalSize() {
|
930
|
+
snapshot_->ClearPaint();
|
931
|
+
TotalSizeCalculator calc;
|
932
|
+
ApplyAndPaintAllReachable(&calc);
|
933
|
+
total_size_ = calc.total_size();
|
934
|
+
return total_size_;
|
935
|
+
}
|
936
|
+
|
937
|
+
|
938
|
+
class NonSharedSizeCalculator {
|
939
|
+
public:
|
940
|
+
NonSharedSizeCalculator()
|
941
|
+
: non_shared_total_size_(0) {
|
942
|
+
}
|
943
|
+
|
944
|
+
int non_shared_total_size() const { return non_shared_total_size_; }
|
945
|
+
|
946
|
+
void Apply(HeapEntry* entry) {
|
947
|
+
if (entry->painted_reachable()) {
|
948
|
+
non_shared_total_size_ += entry->self_size();
|
949
|
+
}
|
950
|
+
}
|
951
|
+
|
952
|
+
private:
|
953
|
+
int non_shared_total_size_;
|
954
|
+
};
|
955
|
+
|
956
|
+
int HeapEntry::CalculateNonSharedTotalSize() {
|
957
|
+
// To calculate non-shared total size, first we paint all reachable
|
958
|
+
// nodes in one color, then we paint all nodes reachable from other
|
959
|
+
// nodes with a different color. Then we consider only nodes painted
|
960
|
+
// with the first color for calculating the total size.
|
961
|
+
snapshot_->ClearPaint();
|
962
|
+
PaintAllReachable();
|
963
|
+
|
964
|
+
List<HeapEntry*> list(10);
|
965
|
+
if (this != snapshot_->root()) {
|
966
|
+
list.Add(snapshot_->root());
|
967
|
+
snapshot_->root()->PaintReachableFromOthers();
|
968
|
+
}
|
969
|
+
while (!list.is_empty()) {
|
970
|
+
HeapEntry* entry = list.RemoveLast();
|
971
|
+
const int children_count = entry->children_.length();
|
972
|
+
for (int i = 0; i < children_count; ++i) {
|
973
|
+
HeapEntry* child = entry->children_[i]->to();
|
974
|
+
if (child != this && child->not_painted_reachable_from_others()) {
|
975
|
+
list.Add(child);
|
976
|
+
child->PaintReachableFromOthers();
|
977
|
+
}
|
978
|
+
}
|
979
|
+
}
|
980
|
+
|
981
|
+
NonSharedSizeCalculator calculator;
|
982
|
+
snapshot_->IterateEntries(&calculator);
|
983
|
+
non_shared_total_size_ = calculator.non_shared_total_size();
|
984
|
+
return non_shared_total_size_;
|
985
|
+
}
|
986
|
+
|
987
|
+
|
988
|
+
class CachedHeapGraphPath {
|
989
|
+
public:
|
990
|
+
CachedHeapGraphPath()
|
991
|
+
: nodes_(NodesMatch) { }
|
992
|
+
CachedHeapGraphPath(const CachedHeapGraphPath& src)
|
993
|
+
: nodes_(NodesMatch, &HashMap::DefaultAllocator, src.nodes_.capacity()),
|
994
|
+
path_(src.path_.length() + 1) {
|
995
|
+
for (HashMap::Entry* p = src.nodes_.Start();
|
996
|
+
p != NULL;
|
997
|
+
p = src.nodes_.Next(p)) {
|
998
|
+
nodes_.Lookup(p->key, p->hash, true);
|
999
|
+
}
|
1000
|
+
path_.AddAll(src.path_);
|
1001
|
+
}
|
1002
|
+
void Add(HeapGraphEdge* edge) {
|
1003
|
+
nodes_.Lookup(edge->to(), Hash(edge->to()), true);
|
1004
|
+
path_.Add(edge);
|
1005
|
+
}
|
1006
|
+
bool ContainsNode(HeapEntry* node) {
|
1007
|
+
return nodes_.Lookup(node, Hash(node), false) != NULL;
|
1008
|
+
}
|
1009
|
+
const List<HeapGraphEdge*>* path() const { return &path_; }
|
1010
|
+
|
1011
|
+
private:
|
1012
|
+
static uint32_t Hash(HeapEntry* entry) {
|
1013
|
+
return static_cast<uint32_t>(reinterpret_cast<intptr_t>(entry));
|
1014
|
+
}
|
1015
|
+
static bool NodesMatch(void* key1, void* key2) { return key1 == key2; }
|
1016
|
+
|
1017
|
+
HashMap nodes_;
|
1018
|
+
List<HeapGraphEdge*> path_;
|
1019
|
+
};
|
1020
|
+
|
1021
|
+
|
1022
|
+
const List<HeapGraphPath*>* HeapEntry::GetRetainingPaths() {
|
1023
|
+
if (retaining_paths_.length() == 0 && retainers_.length() != 0) {
|
1024
|
+
CachedHeapGraphPath path;
|
1025
|
+
FindRetainingPaths(this, &path);
|
1026
|
+
}
|
1027
|
+
return &retaining_paths_;
|
1028
|
+
}
|
1029
|
+
|
1030
|
+
|
1031
|
+
void HeapEntry::FindRetainingPaths(HeapEntry* node,
|
1032
|
+
CachedHeapGraphPath* prev_path) {
|
1033
|
+
for (int i = 0; i < node->retainers_.length(); ++i) {
|
1034
|
+
HeapGraphEdge* ret_edge = node->retainers_[i];
|
1035
|
+
if (prev_path->ContainsNode(ret_edge->from())) continue;
|
1036
|
+
if (ret_edge->from() != snapshot_->root()) {
|
1037
|
+
CachedHeapGraphPath path(*prev_path);
|
1038
|
+
path.Add(ret_edge);
|
1039
|
+
FindRetainingPaths(ret_edge->from(), &path);
|
1040
|
+
} else {
|
1041
|
+
HeapGraphPath* ret_path = new HeapGraphPath(*prev_path->path());
|
1042
|
+
ret_path->Set(0, ret_edge);
|
1043
|
+
retaining_paths_.Add(ret_path);
|
1044
|
+
}
|
1045
|
+
}
|
1046
|
+
}
|
1047
|
+
|
1048
|
+
|
1049
|
+
static void RemoveEdge(List<HeapGraphEdge*>* list, HeapGraphEdge* edge) {
|
1050
|
+
for (int i = 0; i < list->length(); ) {
|
1051
|
+
if (list->at(i) == edge) {
|
1052
|
+
list->Remove(i);
|
1053
|
+
return;
|
1054
|
+
} else {
|
1055
|
+
++i;
|
1056
|
+
}
|
1057
|
+
}
|
1058
|
+
UNREACHABLE();
|
1059
|
+
}
|
1060
|
+
|
1061
|
+
|
1062
|
+
void HeapEntry::RemoveChild(HeapGraphEdge* edge) {
|
1063
|
+
RemoveEdge(&children_, edge);
|
1064
|
+
delete edge;
|
1065
|
+
}
|
1066
|
+
|
1067
|
+
|
1068
|
+
void HeapEntry::RemoveRetainer(HeapGraphEdge* edge) {
|
1069
|
+
RemoveEdge(&retainers_, edge);
|
1070
|
+
}
|
1071
|
+
|
1072
|
+
|
1073
|
+
void HeapEntry::CutEdges() {
|
1074
|
+
for (int i = 0; i < children_.length(); ++i) {
|
1075
|
+
HeapGraphEdge* edge = children_[i];
|
1076
|
+
edge->to()->RemoveRetainer(edge);
|
1077
|
+
}
|
1078
|
+
children_.Iterate(DeleteHeapGraphEdge);
|
1079
|
+
children_.Clear();
|
1080
|
+
|
1081
|
+
for (int i = 0; i < retainers_.length(); ++i) {
|
1082
|
+
HeapGraphEdge* edge = retainers_[i];
|
1083
|
+
edge->from()->RemoveChild(edge);
|
1084
|
+
}
|
1085
|
+
retainers_.Clear();
|
1086
|
+
}
|
1087
|
+
|
1088
|
+
|
1089
|
+
void HeapEntry::Print(int max_depth, int indent) {
|
1090
|
+
OS::Print("%6d %6d %6d [%ld] ",
|
1091
|
+
self_size_, TotalSize(), NonSharedTotalSize(), id_);
|
1092
|
+
if (type_ != STRING) {
|
1093
|
+
OS::Print("%s %.40s\n", TypeAsString(), name_);
|
1094
|
+
} else {
|
1095
|
+
OS::Print("\"");
|
1096
|
+
const char* c = name_;
|
1097
|
+
while (*c && (c - name_) <= 40) {
|
1098
|
+
if (*c != '\n')
|
1099
|
+
OS::Print("%c", *c);
|
1100
|
+
else
|
1101
|
+
OS::Print("\\n");
|
1102
|
+
++c;
|
1103
|
+
}
|
1104
|
+
OS::Print("\"\n");
|
1105
|
+
}
|
1106
|
+
if (--max_depth == 0) return;
|
1107
|
+
const int children_count = children_.length();
|
1108
|
+
for (int i = 0; i < children_count; ++i) {
|
1109
|
+
HeapGraphEdge* edge = children_[i];
|
1110
|
+
switch (edge->type()) {
|
1111
|
+
case HeapGraphEdge::CONTEXT_VARIABLE:
|
1112
|
+
OS::Print(" %*c #%s: ", indent, ' ', edge->name());
|
1113
|
+
break;
|
1114
|
+
case HeapGraphEdge::ELEMENT:
|
1115
|
+
OS::Print(" %*c %d: ", indent, ' ', edge->index());
|
1116
|
+
break;
|
1117
|
+
case HeapGraphEdge::INTERNAL:
|
1118
|
+
OS::Print(" %*c $%s: ", indent, ' ', edge->name());
|
1119
|
+
break;
|
1120
|
+
case HeapGraphEdge::PROPERTY:
|
1121
|
+
OS::Print(" %*c %s: ", indent, ' ', edge->name());
|
1122
|
+
break;
|
1123
|
+
default:
|
1124
|
+
OS::Print("!!! unknown edge type: %d ", edge->type());
|
1125
|
+
}
|
1126
|
+
edge->to()->Print(max_depth, indent + 2);
|
1127
|
+
}
|
1128
|
+
}
|
1129
|
+
|
1130
|
+
|
1131
|
+
const char* HeapEntry::TypeAsString() {
|
1132
|
+
switch (type_) {
|
1133
|
+
case INTERNAL: return "/internal/";
|
1134
|
+
case OBJECT: return "/object/";
|
1135
|
+
case CLOSURE: return "/closure/";
|
1136
|
+
case STRING: return "/string/";
|
1137
|
+
case CODE: return "/code/";
|
1138
|
+
case ARRAY: return "/array/";
|
1139
|
+
default: return "???";
|
1140
|
+
}
|
1141
|
+
}
|
1142
|
+
|
1143
|
+
|
1144
|
+
HeapGraphPath::HeapGraphPath(const List<HeapGraphEdge*>& path)
|
1145
|
+
: path_(path.length() + 1) {
|
1146
|
+
Add(NULL);
|
1147
|
+
for (int i = path.length() - 1; i >= 0; --i) {
|
1148
|
+
Add(path[i]);
|
1149
|
+
}
|
1150
|
+
}
|
1151
|
+
|
1152
|
+
|
1153
|
+
void HeapGraphPath::Print() {
|
1154
|
+
path_[0]->from()->Print(1, 0);
|
1155
|
+
for (int i = 0; i < path_.length(); ++i) {
|
1156
|
+
OS::Print(" -> ");
|
1157
|
+
HeapGraphEdge* edge = path_[i];
|
1158
|
+
switch (edge->type()) {
|
1159
|
+
case HeapGraphEdge::CONTEXT_VARIABLE:
|
1160
|
+
OS::Print("[#%s] ", edge->name());
|
1161
|
+
break;
|
1162
|
+
case HeapGraphEdge::ELEMENT:
|
1163
|
+
OS::Print("[%d] ", edge->index());
|
1164
|
+
break;
|
1165
|
+
case HeapGraphEdge::INTERNAL:
|
1166
|
+
OS::Print("[$%s] ", edge->name());
|
1167
|
+
break;
|
1168
|
+
case HeapGraphEdge::PROPERTY:
|
1169
|
+
OS::Print("[%s] ", edge->name());
|
1170
|
+
break;
|
1171
|
+
default:
|
1172
|
+
OS::Print("!!! unknown edge type: %d ", edge->type());
|
1173
|
+
}
|
1174
|
+
edge->to()->Print(1, 0);
|
1175
|
+
}
|
1176
|
+
OS::Print("\n");
|
1177
|
+
}
|
1178
|
+
|
1179
|
+
|
1180
|
+
class IndexedReferencesExtractor : public ObjectVisitor {
|
1181
|
+
public:
|
1182
|
+
IndexedReferencesExtractor(HeapSnapshot* snapshot, HeapEntry* parent)
|
1183
|
+
: snapshot_(snapshot),
|
1184
|
+
parent_(parent) {
|
1185
|
+
}
|
1186
|
+
|
1187
|
+
void VisitPointer(Object** o) {
|
1188
|
+
if (!(*o)->IsHeapObject()) return;
|
1189
|
+
HeapEntry* entry = snapshot_->GetEntry(HeapObject::cast(*o));
|
1190
|
+
if (entry != NULL) {
|
1191
|
+
parent_->SetAutoIndexReference(entry);
|
1192
|
+
}
|
1193
|
+
}
|
1194
|
+
|
1195
|
+
void VisitPointers(Object** start, Object** end) {
|
1196
|
+
for (Object** p = start; p < end; p++) VisitPointer(p);
|
1197
|
+
}
|
1198
|
+
|
1199
|
+
private:
|
1200
|
+
HeapSnapshot* snapshot_;
|
1201
|
+
HeapEntry* parent_;
|
1202
|
+
};
|
1203
|
+
|
1204
|
+
|
1205
|
+
HeapEntriesMap::HeapEntriesMap()
|
1206
|
+
: entries_(HeapObjectsMatch) {
|
1207
|
+
}
|
1208
|
+
|
1209
|
+
|
1210
|
+
HeapEntriesMap::~HeapEntriesMap() {
|
1211
|
+
for (HashMap::Entry* p = entries_.Start();
|
1212
|
+
p != NULL;
|
1213
|
+
p = entries_.Next(p)) {
|
1214
|
+
if (!IsAlias(p->value)) delete reinterpret_cast<HeapEntry*>(p->value);
|
1215
|
+
}
|
1216
|
+
}
|
1217
|
+
|
1218
|
+
|
1219
|
+
void HeapEntriesMap::Alias(HeapObject* object, HeapEntry* entry) {
|
1220
|
+
HashMap::Entry* cache_entry = entries_.Lookup(object, Hash(object), true);
|
1221
|
+
if (cache_entry->value == NULL)
|
1222
|
+
cache_entry->value = reinterpret_cast<void*>(
|
1223
|
+
reinterpret_cast<intptr_t>(entry) | kAliasTag);
|
1224
|
+
}
|
1225
|
+
|
1226
|
+
|
1227
|
+
void HeapEntriesMap::Apply(void (HeapEntry::*Func)(void)) {
|
1228
|
+
for (HashMap::Entry* p = entries_.Start();
|
1229
|
+
p != NULL;
|
1230
|
+
p = entries_.Next(p)) {
|
1231
|
+
if (!IsAlias(p->value)) (reinterpret_cast<HeapEntry*>(p->value)->*Func)();
|
1232
|
+
}
|
1233
|
+
}
|
1234
|
+
|
1235
|
+
|
1236
|
+
HeapEntry* HeapEntriesMap::Map(HeapObject* object) {
|
1237
|
+
HashMap::Entry* cache_entry = entries_.Lookup(object, Hash(object), false);
|
1238
|
+
return cache_entry != NULL ?
|
1239
|
+
reinterpret_cast<HeapEntry*>(
|
1240
|
+
reinterpret_cast<intptr_t>(cache_entry->value) & (~kAliasTag)) : NULL;
|
1241
|
+
}
|
1242
|
+
|
1243
|
+
|
1244
|
+
void HeapEntriesMap::Pair(HeapObject* object, HeapEntry* entry) {
|
1245
|
+
HashMap::Entry* cache_entry = entries_.Lookup(object, Hash(object), true);
|
1246
|
+
ASSERT(cache_entry->value == NULL);
|
1247
|
+
cache_entry->value = entry;
|
1248
|
+
}
|
1249
|
+
|
1250
|
+
|
1251
|
+
HeapSnapshot::HeapSnapshot(HeapSnapshotsCollection* collection,
|
1252
|
+
const char* title,
|
1253
|
+
unsigned uid)
|
1254
|
+
: collection_(collection),
|
1255
|
+
title_(title),
|
1256
|
+
uid_(uid),
|
1257
|
+
root_(this),
|
1258
|
+
sorted_entries_(NULL) {
|
1259
|
+
}
|
1260
|
+
|
1261
|
+
|
1262
|
+
HeapSnapshot::~HeapSnapshot() {
|
1263
|
+
delete sorted_entries_;
|
1264
|
+
}
|
1265
|
+
|
1266
|
+
|
1267
|
+
void HeapSnapshot::ClearPaint() {
|
1268
|
+
root_.ClearPaint();
|
1269
|
+
entries_.Apply(&HeapEntry::ClearPaint);
|
1270
|
+
}
|
1271
|
+
|
1272
|
+
|
1273
|
+
HeapEntry* HeapSnapshot::GetEntry(Object* obj) {
|
1274
|
+
if (!obj->IsHeapObject()) return NULL;
|
1275
|
+
HeapObject* object = HeapObject::cast(obj);
|
1276
|
+
|
1277
|
+
{
|
1278
|
+
HeapEntry* existing = FindEntry(object);
|
1279
|
+
if (existing != NULL) return existing;
|
1280
|
+
}
|
1281
|
+
|
1282
|
+
// Add new entry.
|
1283
|
+
if (object->IsJSFunction()) {
|
1284
|
+
JSFunction* func = JSFunction::cast(object);
|
1285
|
+
SharedFunctionInfo* shared = func->shared();
|
1286
|
+
String* name = String::cast(shared->name())->length() > 0 ?
|
1287
|
+
String::cast(shared->name()) : shared->inferred_name();
|
1288
|
+
return AddEntry(object, HeapEntry::CLOSURE, collection_->GetName(name));
|
1289
|
+
} else if (object->IsJSObject()) {
|
1290
|
+
return AddEntry(object,
|
1291
|
+
HeapEntry::OBJECT,
|
1292
|
+
collection_->GetName(
|
1293
|
+
JSObject::cast(object)->constructor_name()));
|
1294
|
+
} else if (object->IsJSGlobalPropertyCell()) {
|
1295
|
+
HeapEntry* value = GetEntry(JSGlobalPropertyCell::cast(object)->value());
|
1296
|
+
// If GPC references an object that we have interest in, add the object.
|
1297
|
+
// We don't store HeapEntries for GPCs. Instead, we make our hash map
|
1298
|
+
// to point to object's HeapEntry by GPCs address.
|
1299
|
+
if (value != NULL) AddEntryAlias(object, value);
|
1300
|
+
return value;
|
1301
|
+
} else if (object->IsString()) {
|
1302
|
+
return AddEntry(object,
|
1303
|
+
HeapEntry::STRING,
|
1304
|
+
collection_->GetName(String::cast(object)));
|
1305
|
+
} else if (object->IsCode()) {
|
1306
|
+
return AddEntry(object, HeapEntry::CODE);
|
1307
|
+
} else if (object->IsSharedFunctionInfo()) {
|
1308
|
+
SharedFunctionInfo* shared = SharedFunctionInfo::cast(object);
|
1309
|
+
String* name = String::cast(shared->name())->length() > 0 ?
|
1310
|
+
String::cast(shared->name()) : shared->inferred_name();
|
1311
|
+
return AddEntry(object, HeapEntry::CODE, collection_->GetName(name));
|
1312
|
+
} else if (object->IsScript()) {
|
1313
|
+
Script* script = Script::cast(object);
|
1314
|
+
return AddEntry(object,
|
1315
|
+
HeapEntry::CODE,
|
1316
|
+
script->name()->IsString() ?
|
1317
|
+
collection_->GetName(String::cast(script->name())) : "");
|
1318
|
+
} else if (object->IsFixedArray()) {
|
1319
|
+
return AddEntry(object, HeapEntry::ARRAY);
|
1320
|
+
}
|
1321
|
+
// No interest in this object.
|
1322
|
+
return NULL;
|
1323
|
+
}
|
1324
|
+
|
1325
|
+
|
1326
|
+
void HeapSnapshot::SetClosureReference(HeapEntry* parent,
|
1327
|
+
String* reference_name,
|
1328
|
+
Object* child) {
|
1329
|
+
HeapEntry* child_entry = GetEntry(child);
|
1330
|
+
if (child_entry != NULL) {
|
1331
|
+
parent->SetClosureReference(
|
1332
|
+
collection_->GetName(reference_name), child_entry);
|
1333
|
+
}
|
1334
|
+
}
|
1335
|
+
|
1336
|
+
|
1337
|
+
void HeapSnapshot::SetElementReference(HeapEntry* parent,
|
1338
|
+
int index,
|
1339
|
+
Object* child) {
|
1340
|
+
HeapEntry* child_entry = GetEntry(child);
|
1341
|
+
if (child_entry != NULL) {
|
1342
|
+
parent->SetElementReference(index, child_entry);
|
1343
|
+
}
|
1344
|
+
}
|
1345
|
+
|
1346
|
+
|
1347
|
+
void HeapSnapshot::SetInternalReference(HeapEntry* parent,
|
1348
|
+
const char* reference_name,
|
1349
|
+
Object* child) {
|
1350
|
+
HeapEntry* child_entry = GetEntry(child);
|
1351
|
+
if (child_entry != NULL) {
|
1352
|
+
parent->SetInternalReference(reference_name, child_entry);
|
1353
|
+
}
|
1354
|
+
}
|
1355
|
+
|
1356
|
+
|
1357
|
+
void HeapSnapshot::SetPropertyReference(HeapEntry* parent,
|
1358
|
+
String* reference_name,
|
1359
|
+
Object* child) {
|
1360
|
+
HeapEntry* child_entry = GetEntry(child);
|
1361
|
+
if (child_entry != NULL) {
|
1362
|
+
parent->SetPropertyReference(
|
1363
|
+
collection_->GetName(reference_name), child_entry);
|
1364
|
+
}
|
1365
|
+
}
|
1366
|
+
|
1367
|
+
|
1368
|
+
HeapEntry* HeapSnapshot::AddEntry(HeapObject* object,
|
1369
|
+
HeapEntry::Type type,
|
1370
|
+
const char* name) {
|
1371
|
+
HeapEntry* entry = new HeapEntry(this,
|
1372
|
+
type,
|
1373
|
+
name,
|
1374
|
+
collection_->GetObjectId(object->address()),
|
1375
|
+
GetObjectSize(object),
|
1376
|
+
GetObjectSecurityToken(object));
|
1377
|
+
entries_.Pair(object, entry);
|
1378
|
+
|
1379
|
+
// Detect, if this is a JS global object of the current context, and
|
1380
|
+
// add it to snapshot's roots. There can be several JS global objects
|
1381
|
+
// in a context.
|
1382
|
+
if (object->IsJSGlobalProxy()) {
|
1383
|
+
int global_security_token = GetGlobalSecurityToken();
|
1384
|
+
int object_security_token =
|
1385
|
+
collection_->token_enumerator()->GetTokenId(
|
1386
|
+
Context::cast(
|
1387
|
+
JSGlobalProxy::cast(object)->context())->security_token());
|
1388
|
+
if (object_security_token == TokenEnumerator::kNoSecurityToken
|
1389
|
+
|| object_security_token == global_security_token) {
|
1390
|
+
HeapEntry* global_object_entry =
|
1391
|
+
GetEntry(HeapObject::cast(object->map()->prototype()));
|
1392
|
+
ASSERT(global_object_entry != NULL);
|
1393
|
+
root_.SetAutoIndexReference(global_object_entry);
|
1394
|
+
}
|
1395
|
+
}
|
1396
|
+
|
1397
|
+
return entry;
|
1398
|
+
}
|
1399
|
+
|
1400
|
+
|
1401
|
+
class EdgesCutter {
|
1402
|
+
public:
|
1403
|
+
explicit EdgesCutter(int global_security_token)
|
1404
|
+
: global_security_token_(global_security_token) {
|
1405
|
+
}
|
1406
|
+
|
1407
|
+
void Apply(HeapEntry* entry) {
|
1408
|
+
if (entry->security_token_id() != TokenEnumerator::kNoSecurityToken
|
1409
|
+
&& entry->security_token_id() != global_security_token_) {
|
1410
|
+
entry->CutEdges();
|
1411
|
+
}
|
1412
|
+
}
|
1413
|
+
|
1414
|
+
private:
|
1415
|
+
const int global_security_token_;
|
1416
|
+
};
|
1417
|
+
|
1418
|
+
void HeapSnapshot::CutObjectsFromForeignSecurityContexts() {
|
1419
|
+
EdgesCutter cutter(GetGlobalSecurityToken());
|
1420
|
+
entries_.Apply(&cutter);
|
1421
|
+
}
|
1422
|
+
|
1423
|
+
|
1424
|
+
int HeapSnapshot::GetGlobalSecurityToken() {
|
1425
|
+
return collection_->token_enumerator()->GetTokenId(
|
1426
|
+
Top::context()->global()->global_context()->security_token());
|
1427
|
+
}
|
1428
|
+
|
1429
|
+
|
1430
|
+
int HeapSnapshot::GetObjectSize(HeapObject* obj) {
|
1431
|
+
return obj->IsJSObject() ?
|
1432
|
+
CalculateNetworkSize(JSObject::cast(obj)) : obj->Size();
|
1433
|
+
}
|
1434
|
+
|
1435
|
+
|
1436
|
+
int HeapSnapshot::GetObjectSecurityToken(HeapObject* obj) {
|
1437
|
+
if (obj->IsGlobalContext()) {
|
1438
|
+
return collection_->token_enumerator()->GetTokenId(
|
1439
|
+
Context::cast(obj)->security_token());
|
1440
|
+
} else {
|
1441
|
+
return TokenEnumerator::kNoSecurityToken;
|
1442
|
+
}
|
1443
|
+
}
|
1444
|
+
|
1445
|
+
|
1446
|
+
int HeapSnapshot::CalculateNetworkSize(JSObject* obj) {
|
1447
|
+
int size = obj->Size();
|
1448
|
+
// If 'properties' and 'elements' are non-empty (thus, non-shared),
|
1449
|
+
// take their size into account.
|
1450
|
+
if (FixedArray::cast(obj->properties())->length() != 0) {
|
1451
|
+
size += obj->properties()->Size();
|
1452
|
+
}
|
1453
|
+
if (FixedArray::cast(obj->elements())->length() != 0) {
|
1454
|
+
size += obj->elements()->Size();
|
1455
|
+
}
|
1456
|
+
// For functions, also account non-empty context and literals sizes.
|
1457
|
+
if (obj->IsJSFunction()) {
|
1458
|
+
JSFunction* f = JSFunction::cast(obj);
|
1459
|
+
if (f->unchecked_context()->IsContext()) {
|
1460
|
+
size += f->context()->Size();
|
1461
|
+
}
|
1462
|
+
if (f->literals()->length() != 0) {
|
1463
|
+
size += f->literals()->Size();
|
1464
|
+
}
|
1465
|
+
}
|
1466
|
+
return size;
|
1467
|
+
}
|
1468
|
+
|
1469
|
+
|
1470
|
+
class EntriesCollector {
|
1471
|
+
public:
|
1472
|
+
explicit EntriesCollector(List<HeapEntry*>* list) : list_(list) { }
|
1473
|
+
void Apply(HeapEntry* entry) {
|
1474
|
+
list_->Add(entry);
|
1475
|
+
}
|
1476
|
+
private:
|
1477
|
+
List<HeapEntry*>* list_;
|
1478
|
+
};
|
1479
|
+
|
1480
|
+
template<class T>
|
1481
|
+
static int SortByIds(const T* entry1_ptr,
|
1482
|
+
const T* entry2_ptr) {
|
1483
|
+
if ((*entry1_ptr)->id() == (*entry2_ptr)->id()) return 0;
|
1484
|
+
return (*entry1_ptr)->id() < (*entry2_ptr)->id() ? -1 : 1;
|
1485
|
+
}
|
1486
|
+
|
1487
|
+
List<HeapEntry*>* HeapSnapshot::GetSortedEntriesList() {
|
1488
|
+
if (sorted_entries_ != NULL) return sorted_entries_;
|
1489
|
+
sorted_entries_ = new List<HeapEntry*>(entries_.capacity());
|
1490
|
+
EntriesCollector collector(sorted_entries_);
|
1491
|
+
entries_.Apply(&collector);
|
1492
|
+
sorted_entries_->Sort(SortByIds);
|
1493
|
+
return sorted_entries_;
|
1494
|
+
}
|
1495
|
+
|
1496
|
+
|
1497
|
+
HeapSnapshotsDiff* HeapSnapshot::CompareWith(HeapSnapshot* snapshot) {
|
1498
|
+
return collection_->CompareSnapshots(this, snapshot);
|
1499
|
+
}
|
1500
|
+
|
1501
|
+
|
1502
|
+
void HeapSnapshot::Print(int max_depth) {
|
1503
|
+
root_.Print(max_depth, 0);
|
1504
|
+
}
|
1505
|
+
|
1506
|
+
|
1507
|
+
HeapObjectsMap::HeapObjectsMap()
|
1508
|
+
: initial_fill_mode_(true),
|
1509
|
+
next_id_(1),
|
1510
|
+
entries_map_(AddressesMatch),
|
1511
|
+
entries_(new List<EntryInfo>()) { }
|
1512
|
+
|
1513
|
+
|
1514
|
+
HeapObjectsMap::~HeapObjectsMap() {
|
1515
|
+
delete entries_;
|
1516
|
+
}
|
1517
|
+
|
1518
|
+
|
1519
|
+
void HeapObjectsMap::SnapshotGenerationFinished() {
|
1520
|
+
initial_fill_mode_ = false;
|
1521
|
+
RemoveDeadEntries();
|
1522
|
+
}
|
1523
|
+
|
1524
|
+
|
1525
|
+
uint64_t HeapObjectsMap::FindObject(Address addr) {
|
1526
|
+
if (!initial_fill_mode_) {
|
1527
|
+
uint64_t existing = FindEntry(addr);
|
1528
|
+
if (existing != 0) return existing;
|
1529
|
+
}
|
1530
|
+
uint64_t id = next_id_++;
|
1531
|
+
AddEntry(addr, id);
|
1532
|
+
return id;
|
1533
|
+
}
|
1534
|
+
|
1535
|
+
|
1536
|
+
void HeapObjectsMap::MoveObject(Address from, Address to) {
|
1537
|
+
if (from == to) return;
|
1538
|
+
HashMap::Entry* entry = entries_map_.Lookup(from, AddressHash(from), false);
|
1539
|
+
if (entry != NULL) {
|
1540
|
+
void* value = entry->value;
|
1541
|
+
entries_map_.Remove(from, AddressHash(from));
|
1542
|
+
entry = entries_map_.Lookup(to, AddressHash(to), true);
|
1543
|
+
// We can have an entry at the new location, it is OK, as GC can overwrite
|
1544
|
+
// dead objects with alive objects being moved.
|
1545
|
+
entry->value = value;
|
1546
|
+
}
|
1547
|
+
}
|
1548
|
+
|
1549
|
+
|
1550
|
+
void HeapObjectsMap::AddEntry(Address addr, uint64_t id) {
|
1551
|
+
HashMap::Entry* entry = entries_map_.Lookup(addr, AddressHash(addr), true);
|
1552
|
+
ASSERT(entry->value == NULL);
|
1553
|
+
entry->value = reinterpret_cast<void*>(entries_->length());
|
1554
|
+
entries_->Add(EntryInfo(id));
|
1555
|
+
}
|
1556
|
+
|
1557
|
+
|
1558
|
+
uint64_t HeapObjectsMap::FindEntry(Address addr) {
|
1559
|
+
HashMap::Entry* entry = entries_map_.Lookup(addr, AddressHash(addr), false);
|
1560
|
+
if (entry != NULL) {
|
1561
|
+
int entry_index =
|
1562
|
+
static_cast<int>(reinterpret_cast<intptr_t>(entry->value));
|
1563
|
+
EntryInfo& entry_info = entries_->at(entry_index);
|
1564
|
+
entry_info.accessed = true;
|
1565
|
+
return entry_info.id;
|
1566
|
+
} else {
|
1567
|
+
return 0;
|
1568
|
+
}
|
1569
|
+
}
|
1570
|
+
|
1571
|
+
|
1572
|
+
void HeapObjectsMap::RemoveDeadEntries() {
|
1573
|
+
List<EntryInfo>* new_entries = new List<EntryInfo>();
|
1574
|
+
for (HashMap::Entry* entry = entries_map_.Start();
|
1575
|
+
entry != NULL;
|
1576
|
+
entry = entries_map_.Next(entry)) {
|
1577
|
+
int entry_index =
|
1578
|
+
static_cast<int>(reinterpret_cast<intptr_t>(entry->value));
|
1579
|
+
EntryInfo& entry_info = entries_->at(entry_index);
|
1580
|
+
if (entry_info.accessed) {
|
1581
|
+
entry->value = reinterpret_cast<void*>(new_entries->length());
|
1582
|
+
new_entries->Add(EntryInfo(entry_info.id, false));
|
1583
|
+
}
|
1584
|
+
}
|
1585
|
+
delete entries_;
|
1586
|
+
entries_ = new_entries;
|
1587
|
+
}
|
1588
|
+
|
1589
|
+
|
1590
|
+
HeapSnapshotsCollection::HeapSnapshotsCollection()
|
1591
|
+
: is_tracking_objects_(false),
|
1592
|
+
snapshots_uids_(HeapSnapshotsMatch),
|
1593
|
+
token_enumerator_(new TokenEnumerator()) {
|
1594
|
+
}
|
1595
|
+
|
1596
|
+
|
1597
|
+
static void DeleteHeapSnapshot(HeapSnapshot** snapshot_ptr) {
|
1598
|
+
delete *snapshot_ptr;
|
1599
|
+
}
|
1600
|
+
|
1601
|
+
|
1602
|
+
HeapSnapshotsCollection::~HeapSnapshotsCollection() {
|
1603
|
+
delete token_enumerator_;
|
1604
|
+
snapshots_.Iterate(DeleteHeapSnapshot);
|
1605
|
+
}
|
1606
|
+
|
1607
|
+
|
1608
|
+
HeapSnapshot* HeapSnapshotsCollection::NewSnapshot(const char* name,
|
1609
|
+
unsigned uid) {
|
1610
|
+
is_tracking_objects_ = true; // Start watching for heap objects moves.
|
1611
|
+
HeapSnapshot* snapshot = new HeapSnapshot(this, name, uid);
|
1612
|
+
snapshots_.Add(snapshot);
|
1613
|
+
HashMap::Entry* entry =
|
1614
|
+
snapshots_uids_.Lookup(reinterpret_cast<void*>(snapshot->uid()),
|
1615
|
+
static_cast<uint32_t>(snapshot->uid()),
|
1616
|
+
true);
|
1617
|
+
ASSERT(entry->value == NULL);
|
1618
|
+
entry->value = snapshot;
|
1619
|
+
return snapshot;
|
1620
|
+
}
|
1621
|
+
|
1622
|
+
|
1623
|
+
HeapSnapshot* HeapSnapshotsCollection::GetSnapshot(unsigned uid) {
|
1624
|
+
HashMap::Entry* entry = snapshots_uids_.Lookup(reinterpret_cast<void*>(uid),
|
1625
|
+
static_cast<uint32_t>(uid),
|
1626
|
+
false);
|
1627
|
+
return entry != NULL ? reinterpret_cast<HeapSnapshot*>(entry->value) : NULL;
|
1628
|
+
}
|
1629
|
+
|
1630
|
+
|
1631
|
+
HeapSnapshotsDiff* HeapSnapshotsCollection::CompareSnapshots(
|
1632
|
+
HeapSnapshot* snapshot1,
|
1633
|
+
HeapSnapshot* snapshot2) {
|
1634
|
+
return comparator_.Compare(snapshot1, snapshot2);
|
1635
|
+
}
|
1636
|
+
|
1637
|
+
|
1638
|
+
HeapSnapshotGenerator::HeapSnapshotGenerator(HeapSnapshot* snapshot)
|
1639
|
+
: snapshot_(snapshot) {
|
1640
|
+
}
|
1641
|
+
|
1642
|
+
|
1643
|
+
void HeapSnapshotGenerator::GenerateSnapshot() {
|
1644
|
+
AssertNoAllocation no_alloc;
|
1645
|
+
|
1646
|
+
// Iterate heap contents.
|
1647
|
+
HeapIterator iterator;
|
1648
|
+
for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) {
|
1649
|
+
ExtractReferences(obj);
|
1650
|
+
}
|
1651
|
+
|
1652
|
+
snapshot_->CutObjectsFromForeignSecurityContexts();
|
1653
|
+
}
|
1654
|
+
|
1655
|
+
|
1656
|
+
void HeapSnapshotGenerator::ExtractReferences(HeapObject* obj) {
|
1657
|
+
HeapEntry* entry = snapshot_->GetEntry(obj);
|
1658
|
+
if (entry == NULL) return;
|
1659
|
+
if (entry->visited()) return;
|
1660
|
+
|
1661
|
+
if (obj->IsJSObject()) {
|
1662
|
+
JSObject* js_obj = JSObject::cast(obj);
|
1663
|
+
ExtractClosureReferences(js_obj, entry);
|
1664
|
+
ExtractPropertyReferences(js_obj, entry);
|
1665
|
+
ExtractElementReferences(js_obj, entry);
|
1666
|
+
snapshot_->SetPropertyReference(
|
1667
|
+
entry, Heap::prototype_symbol(), js_obj->map()->prototype());
|
1668
|
+
} else if (obj->IsJSGlobalPropertyCell()) {
|
1669
|
+
JSGlobalPropertyCell* cell = JSGlobalPropertyCell::cast(obj);
|
1670
|
+
snapshot_->SetElementReference(entry, 0, cell->value());
|
1671
|
+
} else if (obj->IsString()) {
|
1672
|
+
if (obj->IsConsString()) {
|
1673
|
+
ConsString* cs = ConsString::cast(obj);
|
1674
|
+
snapshot_->SetElementReference(entry, 0, cs->first());
|
1675
|
+
snapshot_->SetElementReference(entry, 1, cs->second());
|
1676
|
+
}
|
1677
|
+
} else if (obj->IsCode() || obj->IsSharedFunctionInfo() || obj->IsScript()) {
|
1678
|
+
IndexedReferencesExtractor refs_extractor(snapshot_, entry);
|
1679
|
+
obj->Iterate(&refs_extractor);
|
1680
|
+
} else if (obj->IsFixedArray()) {
|
1681
|
+
IndexedReferencesExtractor refs_extractor(snapshot_, entry);
|
1682
|
+
obj->Iterate(&refs_extractor);
|
1683
|
+
}
|
1684
|
+
entry->MarkAsVisited();
|
1685
|
+
}
|
1686
|
+
|
1687
|
+
|
1688
|
+
void HeapSnapshotGenerator::ExtractClosureReferences(JSObject* js_obj,
|
1689
|
+
HeapEntry* entry) {
|
1690
|
+
if (js_obj->IsJSFunction()) {
|
1691
|
+
HandleScope hs;
|
1692
|
+
JSFunction* func = JSFunction::cast(js_obj);
|
1693
|
+
Context* context = func->context();
|
1694
|
+
ZoneScope zscope(DELETE_ON_EXIT);
|
1695
|
+
SerializedScopeInfo* serialized_scope_info =
|
1696
|
+
context->closure()->shared()->scope_info();
|
1697
|
+
ScopeInfo<ZoneListAllocationPolicy> zone_scope_info(serialized_scope_info);
|
1698
|
+
int locals_number = zone_scope_info.NumberOfLocals();
|
1699
|
+
for (int i = 0; i < locals_number; ++i) {
|
1700
|
+
String* local_name = *zone_scope_info.LocalName(i);
|
1701
|
+
int idx = serialized_scope_info->ContextSlotIndex(local_name, NULL);
|
1702
|
+
if (idx >= 0 && idx < context->length()) {
|
1703
|
+
snapshot_->SetClosureReference(entry, local_name, context->get(idx));
|
1704
|
+
}
|
1705
|
+
}
|
1706
|
+
snapshot_->SetInternalReference(entry, "code", func->shared());
|
1707
|
+
}
|
1708
|
+
}
|
1709
|
+
|
1710
|
+
|
1711
|
+
void HeapSnapshotGenerator::ExtractPropertyReferences(JSObject* js_obj,
|
1712
|
+
HeapEntry* entry) {
|
1713
|
+
if (js_obj->HasFastProperties()) {
|
1714
|
+
DescriptorArray* descs = js_obj->map()->instance_descriptors();
|
1715
|
+
for (int i = 0; i < descs->number_of_descriptors(); i++) {
|
1716
|
+
switch (descs->GetType(i)) {
|
1717
|
+
case FIELD: {
|
1718
|
+
int index = descs->GetFieldIndex(i);
|
1719
|
+
snapshot_->SetPropertyReference(
|
1720
|
+
entry, descs->GetKey(i), js_obj->FastPropertyAt(index));
|
1721
|
+
break;
|
1722
|
+
}
|
1723
|
+
case CONSTANT_FUNCTION:
|
1724
|
+
snapshot_->SetPropertyReference(
|
1725
|
+
entry, descs->GetKey(i), descs->GetConstantFunction(i));
|
1726
|
+
break;
|
1727
|
+
default: ;
|
1728
|
+
}
|
1729
|
+
}
|
1730
|
+
} else {
|
1731
|
+
StringDictionary* dictionary = js_obj->property_dictionary();
|
1732
|
+
int length = dictionary->Capacity();
|
1733
|
+
for (int i = 0; i < length; ++i) {
|
1734
|
+
Object* k = dictionary->KeyAt(i);
|
1735
|
+
if (dictionary->IsKey(k)) {
|
1736
|
+
snapshot_->SetPropertyReference(
|
1737
|
+
entry, String::cast(k), dictionary->ValueAt(i));
|
1738
|
+
}
|
1739
|
+
}
|
1740
|
+
}
|
1741
|
+
}
|
1742
|
+
|
1743
|
+
|
1744
|
+
void HeapSnapshotGenerator::ExtractElementReferences(JSObject* js_obj,
|
1745
|
+
HeapEntry* entry) {
|
1746
|
+
if (js_obj->HasFastElements()) {
|
1747
|
+
FixedArray* elements = FixedArray::cast(js_obj->elements());
|
1748
|
+
int length = js_obj->IsJSArray() ?
|
1749
|
+
Smi::cast(JSArray::cast(js_obj)->length())->value() :
|
1750
|
+
elements->length();
|
1751
|
+
for (int i = 0; i < length; ++i) {
|
1752
|
+
if (!elements->get(i)->IsTheHole()) {
|
1753
|
+
snapshot_->SetElementReference(entry, i, elements->get(i));
|
1754
|
+
}
|
1755
|
+
}
|
1756
|
+
} else if (js_obj->HasDictionaryElements()) {
|
1757
|
+
NumberDictionary* dictionary = js_obj->element_dictionary();
|
1758
|
+
int length = dictionary->Capacity();
|
1759
|
+
for (int i = 0; i < length; ++i) {
|
1760
|
+
Object* k = dictionary->KeyAt(i);
|
1761
|
+
if (dictionary->IsKey(k)) {
|
1762
|
+
ASSERT(k->IsNumber());
|
1763
|
+
uint32_t index = static_cast<uint32_t>(k->Number());
|
1764
|
+
snapshot_->SetElementReference(entry, index, dictionary->ValueAt(i));
|
1765
|
+
}
|
1766
|
+
}
|
1767
|
+
}
|
1768
|
+
}
|
1769
|
+
|
1770
|
+
|
1771
|
+
static void DeleteHeapSnapshotsDiff(HeapSnapshotsDiff** diff_ptr) {
|
1772
|
+
delete *diff_ptr;
|
1773
|
+
}
|
1774
|
+
|
1775
|
+
HeapSnapshotsComparator::~HeapSnapshotsComparator() {
|
1776
|
+
diffs_.Iterate(DeleteHeapSnapshotsDiff);
|
1777
|
+
}
|
1778
|
+
|
1779
|
+
|
1780
|
+
HeapSnapshotsDiff* HeapSnapshotsComparator::Compare(HeapSnapshot* snapshot1,
|
1781
|
+
HeapSnapshot* snapshot2) {
|
1782
|
+
HeapSnapshotsDiff* diff = new HeapSnapshotsDiff(snapshot1, snapshot2);
|
1783
|
+
diffs_.Add(diff);
|
1784
|
+
List<HeapEntry*>* entries1 = snapshot1->GetSortedEntriesList();
|
1785
|
+
List<HeapEntry*>* entries2 = snapshot2->GetSortedEntriesList();
|
1786
|
+
int i = 0, j = 0;
|
1787
|
+
List<HeapEntry*> added_entries, deleted_entries;
|
1788
|
+
while (i < entries1->length() && j < entries2->length()) {
|
1789
|
+
uint64_t id1 = entries1->at(i)->id();
|
1790
|
+
uint64_t id2 = entries2->at(j)->id();
|
1791
|
+
if (id1 == id2) {
|
1792
|
+
i++;
|
1793
|
+
j++;
|
1794
|
+
} else if (id1 < id2) {
|
1795
|
+
HeapEntry* entry = entries1->at(i++);
|
1796
|
+
deleted_entries.Add(entry);
|
1797
|
+
} else {
|
1798
|
+
HeapEntry* entry = entries2->at(j++);
|
1799
|
+
added_entries.Add(entry);
|
1800
|
+
}
|
1801
|
+
}
|
1802
|
+
while (i < entries1->length()) {
|
1803
|
+
HeapEntry* entry = entries1->at(i++);
|
1804
|
+
deleted_entries.Add(entry);
|
1805
|
+
}
|
1806
|
+
while (j < entries2->length()) {
|
1807
|
+
HeapEntry* entry = entries2->at(j++);
|
1808
|
+
added_entries.Add(entry);
|
1809
|
+
}
|
1810
|
+
|
1811
|
+
snapshot1->ClearPaint();
|
1812
|
+
snapshot1->root()->PaintAllReachable();
|
1813
|
+
for (int i = 0; i < deleted_entries.length(); ++i) {
|
1814
|
+
HeapEntry* entry = deleted_entries[i];
|
1815
|
+
if (entry->painted_reachable())
|
1816
|
+
diff->AddDeletedEntry(entry);
|
1817
|
+
}
|
1818
|
+
snapshot2->ClearPaint();
|
1819
|
+
snapshot2->root()->PaintAllReachable();
|
1820
|
+
for (int i = 0; i < added_entries.length(); ++i) {
|
1821
|
+
HeapEntry* entry = added_entries[i];
|
1822
|
+
if (entry->painted_reachable())
|
1823
|
+
diff->AddAddedEntry(entry);
|
1824
|
+
}
|
1825
|
+
return diff;
|
1826
|
+
}
|
1827
|
+
|
1828
|
+
} } // namespace v8::internal
|
1829
|
+
|
1830
|
+
#endif // ENABLE_LOGGING_AND_PROFILING
|