From e5564a3f29e0a818832a97c7c3b28d7c8b3b0460 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 8 Jul 2011 16:40:11 -0700 Subject: Upgrade V8 to 3.4.10 --- deps/v8/src/SConscript | 93 +- deps/v8/src/accessors.cc | 309 +- deps/v8/src/accessors.h | 2 + deps/v8/src/allocation-inl.h | 49 + deps/v8/src/allocation.cc | 82 - deps/v8/src/allocation.h | 51 +- deps/v8/src/api.cc | 3510 ++++--- deps/v8/src/api.h | 111 +- deps/v8/src/apinatives.js | 10 +- deps/v8/src/apiutils.h | 7 - deps/v8/src/arguments.h | 29 +- deps/v8/src/arm/assembler-arm-inl.h | 19 +- deps/v8/src/arm/assembler-arm.cc | 692 +- deps/v8/src/arm/assembler-arm.h | 263 +- deps/v8/src/arm/builtins-arm.cc | 171 +- deps/v8/src/arm/code-stubs-arm.cc | 3713 ++++--- deps/v8/src/arm/code-stubs-arm.h | 613 +- deps/v8/src/arm/codegen-arm-inl.h | 48 - deps/v8/src/arm/codegen-arm.cc | 7360 +------------- deps/v8/src/arm/codegen-arm.h | 512 +- deps/v8/src/arm/constants-arm.h | 24 +- deps/v8/src/arm/cpu-arm.cc | 93 +- deps/v8/src/arm/debug-arm.cc | 14 +- deps/v8/src/arm/deoptimizer-arm.cc | 110 +- deps/v8/src/arm/disasm-arm.cc | 145 +- deps/v8/src/arm/frames-arm.h | 5 +- deps/v8/src/arm/full-codegen-arm.cc | 1154 ++- deps/v8/src/arm/ic-arm.cc | 688 +- deps/v8/src/arm/jump-target-arm.cc | 174 - deps/v8/src/arm/lithium-arm.cc | 701 +- deps/v8/src/arm/lithium-arm.h | 644 +- deps/v8/src/arm/lithium-codegen-arm.cc | 2017 ++-- deps/v8/src/arm/lithium-codegen-arm.h | 52 +- deps/v8/src/arm/lithium-gap-resolver-arm.cc | 2 + deps/v8/src/arm/macro-assembler-arm.cc | 803 +- deps/v8/src/arm/macro-assembler-arm.h | 217 +- deps/v8/src/arm/regexp-macro-assembler-arm.cc | 45 +- deps/v8/src/arm/regexp-macro-assembler-arm.h | 3 +- deps/v8/src/arm/register-allocator-arm-inl.h | 100 - deps/v8/src/arm/register-allocator-arm.cc | 63 - deps/v8/src/arm/register-allocator-arm.h | 44 - deps/v8/src/arm/simulator-arm.cc | 555 +- deps/v8/src/arm/simulator-arm.h | 87 +- deps/v8/src/arm/stub-cache-arm.cc | 1558 +-- deps/v8/src/arm/virtual-frame-arm-inl.h | 59 - deps/v8/src/arm/virtual-frame-arm.cc | 843 -- deps/v8/src/arm/virtual-frame-arm.h | 520 - deps/v8/src/array.js | 204 +- deps/v8/src/assembler.cc | 593 +- deps/v8/src/assembler.h | 334 +- deps/v8/src/ast-inl.h | 11 +- deps/v8/src/ast.cc | 393 +- deps/v8/src/ast.h | 466 +- deps/v8/src/atomicops.h | 2 + deps/v8/src/atomicops_internals_mips_gcc.h | 169 + deps/v8/src/atomicops_internals_x86_gcc.cc | 13 +- deps/v8/src/atomicops_internals_x86_gcc.h | 6 +- deps/v8/src/bignum.cc | 7 +- deps/v8/src/bootstrapper.cc | 1210 ++- deps/v8/src/bootstrapper.h | 123 +- deps/v8/src/builtins.cc | 580 +- deps/v8/src/builtins.h | 294 +- deps/v8/src/cached-powers.cc | 12 +- deps/v8/src/char-predicates.h | 4 +- deps/v8/src/checks.cc | 4 +- deps/v8/src/checks.h | 4 + deps/v8/src/code-stubs.cc | 73 +- deps/v8/src/code-stubs.h | 226 +- deps/v8/src/code.h | 2 + deps/v8/src/codegen-inl.h | 64 - deps/v8/src/codegen.cc | 315 +- deps/v8/src/codegen.h | 163 +- deps/v8/src/compilation-cache.cc | 327 +- deps/v8/src/compilation-cache.h | 233 +- deps/v8/src/compiler.cc | 344 +- deps/v8/src/compiler.h | 64 +- deps/v8/src/contexts.cc | 172 +- deps/v8/src/contexts.h | 100 +- deps/v8/src/conversions-inl.h | 588 +- deps/v8/src/conversions.cc | 708 +- deps/v8/src/conversions.h | 50 +- deps/v8/src/counters.cc | 23 +- deps/v8/src/counters.h | 44 +- deps/v8/src/cpu-profiler-inl.h | 22 +- deps/v8/src/cpu-profiler.cc | 202 +- deps/v8/src/cpu-profiler.h | 70 +- deps/v8/src/cpu.h | 4 + deps/v8/src/d8-debug.cc | 2 + deps/v8/src/d8-posix.cc | 13 +- deps/v8/src/d8-readline.cc | 2 + deps/v8/src/d8.cc | 443 +- deps/v8/src/d8.gyp | 8 +- deps/v8/src/d8.h | 26 +- deps/v8/src/d8.js | 10 +- deps/v8/src/data-flow.cc | 479 - deps/v8/src/data-flow.h | 182 +- deps/v8/src/date.js | 25 +- deps/v8/src/dateparser-inl.h | 289 +- deps/v8/src/dateparser.cc | 42 +- deps/v8/src/dateparser.h | 209 +- deps/v8/src/debug-agent.cc | 23 +- deps/v8/src/debug-agent.h | 18 +- deps/v8/src/debug-debugger.js | 93 +- deps/v8/src/debug.cc | 572 +- deps/v8/src/debug.h | 475 +- deps/v8/src/deoptimizer.cc | 430 +- deps/v8/src/deoptimizer.h | 228 +- deps/v8/src/disasm.h | 3 + deps/v8/src/disassembler.cc | 27 +- deps/v8/src/disassembler.h | 2 + deps/v8/src/diy-fp.cc | 7 +- deps/v8/src/diy-fp.h | 6 +- deps/v8/src/execution.cc | 392 +- deps/v8/src/execution.h | 133 +- .../src/extensions/experimental/break-iterator.cc | 252 + .../src/extensions/experimental/break-iterator.h | 89 + deps/v8/src/extensions/experimental/collator.cc | 222 + deps/v8/src/extensions/experimental/collator.h | 68 + .../src/extensions/experimental/datetime-format.cc | 384 + .../src/extensions/experimental/datetime-format.h | 83 + .../src/extensions/experimental/experimental.gyp | 54 +- .../src/extensions/experimental/i18n-extension.cc | 230 +- .../src/extensions/experimental/i18n-extension.h | 18 +- deps/v8/src/extensions/experimental/i18n-js2c.py | 126 + deps/v8/src/extensions/experimental/i18n-locale.cc | 111 + deps/v8/src/extensions/experimental/i18n-locale.h | 60 + deps/v8/src/extensions/experimental/i18n-natives.h | 43 + deps/v8/src/extensions/experimental/i18n-utils.cc | 87 + deps/v8/src/extensions/experimental/i18n-utils.h | 69 + deps/v8/src/extensions/experimental/i18n.js | 380 + .../extensions/experimental/language-matcher.cc | 252 + .../src/extensions/experimental/language-matcher.h | 95 + .../src/extensions/experimental/number-format.cc | 356 + .../v8/src/extensions/experimental/number-format.h | 71 + .../src/extensions/externalize-string-extension.cc | 4 +- deps/v8/src/extensions/gc-extension.cc | 2 +- deps/v8/src/factory.cc | 505 +- deps/v8/src/factory.h | 352 +- deps/v8/src/flag-definitions.h | 61 +- deps/v8/src/frame-element.cc | 42 - deps/v8/src/frame-element.h | 277 - deps/v8/src/frames-inl.h | 36 +- deps/v8/src/frames.cc | 231 +- deps/v8/src/frames.h | 117 +- deps/v8/src/full-codegen.cc | 501 +- deps/v8/src/full-codegen.h | 143 +- deps/v8/src/func-name-inferrer.cc | 48 +- deps/v8/src/func-name-inferrer.h | 28 +- deps/v8/src/gdb-jit.cc | 721 +- deps/v8/src/gdb-jit.h | 13 +- deps/v8/src/global-handles.cc | 733 +- deps/v8/src/global-handles.h | 226 +- deps/v8/src/globals.h | 4 +- deps/v8/src/handles-inl.h | 111 +- deps/v8/src/handles.cc | 410 +- deps/v8/src/handles.h | 119 +- deps/v8/src/hashmap.h | 10 +- deps/v8/src/heap-inl.h | 167 +- deps/v8/src/heap-profiler.cc | 1057 +- deps/v8/src/heap-profiler.h | 317 +- deps/v8/src/heap.cc | 1672 +-- deps/v8/src/heap.h | 1298 +-- deps/v8/src/hydrogen-instructions.cc | 694 +- deps/v8/src/hydrogen-instructions.h | 1897 ++-- deps/v8/src/hydrogen.cc | 4958 +++++---- deps/v8/src/hydrogen.h | 487 +- deps/v8/src/ia32/assembler-ia32-inl.h | 45 +- deps/v8/src/ia32/assembler-ia32.cc | 580 +- deps/v8/src/ia32/assembler-ia32.h | 154 +- deps/v8/src/ia32/builtins-ia32.cc | 292 +- deps/v8/src/ia32/code-stubs-ia32.cc | 3574 +++---- deps/v8/src/ia32/code-stubs-ia32.h | 348 +- deps/v8/src/ia32/codegen-ia32-inl.h | 46 - deps/v8/src/ia32/codegen-ia32.cc | 10115 +------------------ deps/v8/src/ia32/codegen-ia32.h | 723 +- deps/v8/src/ia32/cpu-ia32.cc | 11 +- deps/v8/src/ia32/debug-ia32.cc | 17 +- deps/v8/src/ia32/deoptimizer-ia32.cc | 97 +- deps/v8/src/ia32/disasm-ia32.cc | 157 +- deps/v8/src/ia32/frames-ia32.h | 10 +- deps/v8/src/ia32/full-codegen-ia32.cc | 1240 ++- deps/v8/src/ia32/ic-ia32.cc | 778 +- deps/v8/src/ia32/jump-target-ia32.cc | 437 - deps/v8/src/ia32/lithium-codegen-ia32.cc | 1878 ++-- deps/v8/src/ia32/lithium-codegen-ia32.h | 61 +- deps/v8/src/ia32/lithium-gap-resolver-ia32.cc | 33 +- deps/v8/src/ia32/lithium-ia32.cc | 731 +- deps/v8/src/ia32/lithium-ia32.h | 751 +- deps/v8/src/ia32/macro-assembler-ia32.cc | 559 +- deps/v8/src/ia32/macro-assembler-ia32.h | 180 +- deps/v8/src/ia32/regexp-macro-assembler-ia32.cc | 66 +- deps/v8/src/ia32/regexp-macro-assembler-ia32.h | 5 +- deps/v8/src/ia32/register-allocator-ia32-inl.h | 82 - deps/v8/src/ia32/register-allocator-ia32.cc | 157 - deps/v8/src/ia32/register-allocator-ia32.h | 43 - deps/v8/src/ia32/simulator-ia32.h | 12 +- deps/v8/src/ia32/stub-cache-ia32.cc | 1443 +-- deps/v8/src/ia32/virtual-frame-ia32.cc | 1360 --- deps/v8/src/ia32/virtual-frame-ia32.h | 646 -- deps/v8/src/ic-inl.h | 5 +- deps/v8/src/ic.cc | 1354 +-- deps/v8/src/ic.h | 359 +- deps/v8/src/interpreter-irregexp.cc | 46 +- deps/v8/src/interpreter-irregexp.h | 3 +- deps/v8/src/isolate-inl.h | 50 + deps/v8/src/isolate.cc | 1866 ++++ deps/v8/src/isolate.h | 1365 +++ deps/v8/src/json-parser.h | 598 ++ deps/v8/src/json.js | 69 +- deps/v8/src/jsregexp.cc | 451 +- deps/v8/src/jsregexp.h | 24 +- deps/v8/src/jump-target-heavy-inl.h | 51 - deps/v8/src/jump-target-heavy.cc | 430 - deps/v8/src/jump-target-heavy.h | 244 - deps/v8/src/jump-target-inl.h | 48 - deps/v8/src/jump-target-light-inl.h | 56 - deps/v8/src/jump-target-light.cc | 111 - deps/v8/src/jump-target-light.h | 193 - deps/v8/src/jump-target.cc | 91 - deps/v8/src/jump-target.h | 90 - deps/v8/src/list-inl.h | 12 +- deps/v8/src/list.h | 14 +- deps/v8/src/lithium-allocator-inl.h | 58 +- deps/v8/src/lithium-allocator.cc | 139 +- deps/v8/src/lithium-allocator.h | 50 +- deps/v8/src/lithium.cc | 27 + deps/v8/src/lithium.h | 65 +- deps/v8/src/liveedit.cc | 395 +- deps/v8/src/liveedit.h | 17 +- deps/v8/src/liveobjectlist.cc | 142 +- deps/v8/src/liveobjectlist.h | 18 +- deps/v8/src/log-utils.cc | 184 +- deps/v8/src/log-utils.h | 73 +- deps/v8/src/log.cc | 1017 +- deps/v8/src/log.h | 402 +- deps/v8/src/macros.py | 16 +- deps/v8/src/mark-compact.cc | 1332 ++- deps/v8/src/mark-compact.h | 237 +- deps/v8/src/memory.h | 82 - deps/v8/src/messages.cc | 61 +- deps/v8/src/messages.h | 7 +- deps/v8/src/messages.js | 85 +- deps/v8/src/mips/assembler-mips-inl.h | 183 +- deps/v8/src/mips/assembler-mips.cc | 1416 ++- deps/v8/src/mips/assembler-mips.h | 855 +- deps/v8/src/mips/builtins-mips.cc | 1543 ++- deps/v8/src/mips/code-stubs-mips.cc | 6889 +++++++++++++ deps/v8/src/mips/code-stubs-mips.h | 660 ++ deps/v8/src/mips/codegen-mips-inl.h | 70 - deps/v8/src/mips/codegen-mips.cc | 1401 +-- deps/v8/src/mips/codegen-mips.h | 383 +- deps/v8/src/mips/constants-mips.cc | 76 +- deps/v8/src/mips/constants-mips.h | 360 +- deps/v8/src/mips/cpu-mips.cc | 33 +- deps/v8/src/mips/debug-mips.cc | 207 +- deps/v8/src/mips/deoptimizer-mips.cc | 96 + deps/v8/src/mips/disasm-mips.cc | 609 +- deps/v8/src/mips/fast-codegen-mips.cc | 77 - deps/v8/src/mips/frames-mips.cc | 53 +- deps/v8/src/mips/frames-mips.h | 83 +- deps/v8/src/mips/full-codegen-mips.cc | 4207 +++++++- deps/v8/src/mips/ic-mips.cc | 1654 ++- deps/v8/src/mips/jump-target-mips.cc | 175 - deps/v8/src/mips/lithium-codegen-mips.h | 65 + deps/v8/src/mips/lithium-mips.h | 307 + deps/v8/src/mips/macro-assembler-mips.cc | 3883 ++++++- deps/v8/src/mips/macro-assembler-mips.h | 1112 +- deps/v8/src/mips/regexp-macro-assembler-mips.cc | 1251 +++ deps/v8/src/mips/regexp-macro-assembler-mips.h | 252 + deps/v8/src/mips/register-allocator-mips-inl.h | 137 - deps/v8/src/mips/register-allocator-mips.cc | 63 - deps/v8/src/mips/register-allocator-mips.h | 46 - deps/v8/src/mips/simulator-mips.cc | 1796 +++- deps/v8/src/mips/simulator-mips.h | 210 +- deps/v8/src/mips/stub-cache-mips.cc | 4255 +++++++- deps/v8/src/mips/virtual-frame-mips.cc | 319 - deps/v8/src/mips/virtual-frame-mips.h | 548 - deps/v8/src/mirror-debugger.js | 53 +- deps/v8/src/misc-intrinsics.h | 89 + deps/v8/src/mksnapshot.cc | 203 +- deps/v8/src/natives.h | 10 +- deps/v8/src/objects-debug.cc | 100 +- deps/v8/src/objects-inl.h | 1087 +- deps/v8/src/objects-printer.cc | 72 +- deps/v8/src/objects-visiting.cc | 21 +- deps/v8/src/objects-visiting.h | 64 +- deps/v8/src/objects.cc | 3901 ++++--- deps/v8/src/objects.h | 1330 ++- deps/v8/src/parser.cc | 1413 ++- deps/v8/src/parser.h | 136 +- deps/v8/src/platform-cygwin.cc | 322 +- deps/v8/src/platform-freebsd.cc | 339 +- deps/v8/src/platform-linux.cc | 460 +- deps/v8/src/platform-macos.cc | 340 +- deps/v8/src/platform-nullos.cc | 51 +- deps/v8/src/platform-openbsd.cc | 370 +- deps/v8/src/platform-posix.cc | 47 +- deps/v8/src/platform-solaris.cc | 305 +- deps/v8/src/platform-tls-mac.h | 62 + deps/v8/src/platform-tls-win32.h | 62 + deps/v8/src/platform-tls.h | 50 + deps/v8/src/platform-win32.cc | 356 +- deps/v8/src/platform.h | 129 +- deps/v8/src/preparse-data-format.h | 62 + deps/v8/src/preparse-data.cc | 12 +- deps/v8/src/preparse-data.h | 46 +- deps/v8/src/preparser-api.cc | 24 +- deps/v8/src/preparser.cc | 566 +- deps/v8/src/preparser.h | 274 +- deps/v8/src/prettyprinter.cc | 221 +- deps/v8/src/prettyprinter.h | 8 +- deps/v8/src/profile-generator.cc | 1094 +- deps/v8/src/profile-generator.h | 224 +- deps/v8/src/property.cc | 9 + deps/v8/src/property.h | 56 +- deps/v8/src/proxy.js | 137 + deps/v8/src/regexp-macro-assembler-irregexp.cc | 5 +- deps/v8/src/regexp-macro-assembler-irregexp.h | 2 +- deps/v8/src/regexp-macro-assembler-tracer.cc | 2 +- deps/v8/src/regexp-macro-assembler-tracer.h | 2 +- deps/v8/src/regexp-macro-assembler.cc | 54 +- deps/v8/src/regexp-macro-assembler.h | 26 +- deps/v8/src/regexp-stack.cc | 28 +- deps/v8/src/regexp-stack.h | 66 +- deps/v8/src/regexp.js | 18 +- deps/v8/src/register-allocator-inl.h | 141 - deps/v8/src/register-allocator.cc | 104 - deps/v8/src/register-allocator.h | 320 - deps/v8/src/rewriter.cc | 806 +- deps/v8/src/rewriter.h | 11 +- deps/v8/src/runtime-profiler.cc | 320 +- deps/v8/src/runtime-profiler.h | 142 +- deps/v8/src/runtime.cc | 4834 +++++---- deps/v8/src/runtime.h | 128 +- deps/v8/src/runtime.js | 52 +- deps/v8/src/safepoint-table.cc | 3 + deps/v8/src/safepoint-table.h | 13 +- deps/v8/src/scanner-base.cc | 179 +- deps/v8/src/scanner-base.h | 123 +- deps/v8/src/scanner.cc | 261 +- deps/v8/src/scanner.h | 65 +- deps/v8/src/scopeinfo.cc | 52 +- deps/v8/src/scopeinfo.h | 51 +- deps/v8/src/scopes.cc | 426 +- deps/v8/src/scopes.h | 146 +- deps/v8/src/serialize.cc | 354 +- deps/v8/src/serialize.h | 19 +- deps/v8/src/small-pointer-list.h | 163 + deps/v8/src/snapshot-common.cc | 7 +- deps/v8/src/snapshot-empty.cc | 4 + deps/v8/src/snapshot.h | 20 + deps/v8/src/spaces-inl.h | 55 +- deps/v8/src/spaces.cc | 637 +- deps/v8/src/spaces.h | 343 +- deps/v8/src/splay-tree.h | 2 + deps/v8/src/string-search.cc | 7 +- deps/v8/src/string-search.h | 41 +- deps/v8/src/string-stream.cc | 56 +- deps/v8/src/string.js | 106 +- deps/v8/src/strtod.cc | 10 +- deps/v8/src/stub-cache.cc | 789 +- deps/v8/src/stub-cache.h | 420 +- deps/v8/src/token.cc | 6 +- deps/v8/src/token.h | 10 +- deps/v8/src/top.cc | 1153 --- deps/v8/src/top.h | 608 -- deps/v8/src/type-info.cc | 437 +- deps/v8/src/type-info.h | 97 +- deps/v8/src/unbound-queue.h | 2 + deps/v8/src/unicode.cc | 2 +- deps/v8/src/unicode.h | 2 +- deps/v8/src/uri.js | 10 +- deps/v8/src/utils-inl.h | 48 + deps/v8/src/utils.cc | 329 +- deps/v8/src/utils.h | 121 +- deps/v8/src/v8-counters.cc | 29 +- deps/v8/src/v8-counters.h | 61 +- deps/v8/src/v8.cc | 225 +- deps/v8/src/v8.h | 23 +- deps/v8/src/v8conversions.cc | 129 + deps/v8/src/v8conversions.h | 60 + deps/v8/src/v8dll-main.cc | 11 +- deps/v8/src/v8globals.h | 64 +- deps/v8/src/v8memory.h | 82 + deps/v8/src/v8natives.js | 238 +- deps/v8/src/v8threads.cc | 301 +- deps/v8/src/v8threads.h | 93 +- deps/v8/src/v8utils.cc | 334 + deps/v8/src/v8utils.h | 125 +- deps/v8/src/variables.cc | 36 +- deps/v8/src/variables.h | 58 +- deps/v8/src/version.cc | 33 +- deps/v8/src/version.h | 4 + deps/v8/src/virtual-frame-heavy-inl.h | 190 - deps/v8/src/virtual-frame-heavy.cc | 312 - deps/v8/src/virtual-frame-inl.h | 39 - deps/v8/src/virtual-frame-light-inl.h | 170 - deps/v8/src/virtual-frame-light.cc | 52 - deps/v8/src/virtual-frame.cc | 49 - deps/v8/src/virtual-frame.h | 59 - deps/v8/src/vm-state-inl.h | 38 +- deps/v8/src/vm-state.h | 13 +- deps/v8/src/win32-headers.h | 1 + deps/v8/src/x64/assembler-x64-inl.h | 31 +- deps/v8/src/x64/assembler-x64.cc | 525 +- deps/v8/src/x64/assembler-x64.h | 146 +- deps/v8/src/x64/builtins-x64.cc | 187 +- deps/v8/src/x64/code-stubs-x64.cc | 3196 +++--- deps/v8/src/x64/code-stubs-x64.h | 330 +- deps/v8/src/x64/codegen-x64-inl.h | 46 - deps/v8/src/x64/codegen-x64.cc | 8695 +--------------- deps/v8/src/x64/codegen-x64.h | 674 -- deps/v8/src/x64/cpu-x64.cc | 10 +- deps/v8/src/x64/debug-x64.cc | 15 +- deps/v8/src/x64/deoptimizer-x64.cc | 107 +- deps/v8/src/x64/disasm-x64.cc | 148 +- deps/v8/src/x64/frames-x64.h | 2 +- deps/v8/src/x64/full-codegen-x64.cc | 1366 ++- deps/v8/src/x64/ic-x64.cc | 606 +- deps/v8/src/x64/jump-target-x64.cc | 437 - deps/v8/src/x64/lithium-codegen-x64.cc | 1751 ++-- deps/v8/src/x64/lithium-codegen-x64.h | 63 +- deps/v8/src/x64/lithium-gap-resolver-x64.cc | 8 +- deps/v8/src/x64/lithium-x64.cc | 625 +- deps/v8/src/x64/lithium-x64.h | 615 +- deps/v8/src/x64/macro-assembler-x64.cc | 1572 ++- deps/v8/src/x64/macro-assembler-x64.h | 1035 +- deps/v8/src/x64/regexp-macro-assembler-x64.cc | 88 +- deps/v8/src/x64/regexp-macro-assembler-x64.h | 12 +- deps/v8/src/x64/register-allocator-x64-inl.h | 87 - deps/v8/src/x64/register-allocator-x64.cc | 91 - deps/v8/src/x64/register-allocator-x64.h | 43 - deps/v8/src/x64/simulator-x64.h | 11 +- deps/v8/src/x64/stub-cache-x64.cc | 1137 ++- deps/v8/src/x64/virtual-frame-x64.cc | 1292 --- deps/v8/src/x64/virtual-frame-x64.h | 593 -- deps/v8/src/zone-inl.h | 63 +- deps/v8/src/zone.cc | 83 +- deps/v8/src/zone.h | 75 +- 439 files changed, 99482 insertions(+), 92314 deletions(-) create mode 100644 deps/v8/src/allocation-inl.h delete mode 100644 deps/v8/src/arm/codegen-arm-inl.h delete mode 100644 deps/v8/src/arm/jump-target-arm.cc delete mode 100644 deps/v8/src/arm/register-allocator-arm-inl.h delete mode 100644 deps/v8/src/arm/register-allocator-arm.cc delete mode 100644 deps/v8/src/arm/register-allocator-arm.h delete mode 100644 deps/v8/src/arm/virtual-frame-arm-inl.h delete mode 100644 deps/v8/src/arm/virtual-frame-arm.cc delete mode 100644 deps/v8/src/arm/virtual-frame-arm.h create mode 100644 deps/v8/src/atomicops_internals_mips_gcc.h delete mode 100644 deps/v8/src/codegen-inl.h create mode 100644 deps/v8/src/extensions/experimental/break-iterator.cc create mode 100644 deps/v8/src/extensions/experimental/break-iterator.h create mode 100644 deps/v8/src/extensions/experimental/collator.cc create mode 100644 deps/v8/src/extensions/experimental/collator.h create mode 100644 deps/v8/src/extensions/experimental/datetime-format.cc create mode 100644 deps/v8/src/extensions/experimental/datetime-format.h create mode 100644 deps/v8/src/extensions/experimental/i18n-js2c.py create mode 100644 deps/v8/src/extensions/experimental/i18n-locale.cc create mode 100644 deps/v8/src/extensions/experimental/i18n-locale.h create mode 100644 deps/v8/src/extensions/experimental/i18n-natives.h create mode 100644 deps/v8/src/extensions/experimental/i18n-utils.cc create mode 100644 deps/v8/src/extensions/experimental/i18n-utils.h create mode 100644 deps/v8/src/extensions/experimental/i18n.js create mode 100644 deps/v8/src/extensions/experimental/language-matcher.cc create mode 100644 deps/v8/src/extensions/experimental/language-matcher.h create mode 100644 deps/v8/src/extensions/experimental/number-format.cc create mode 100644 deps/v8/src/extensions/experimental/number-format.h delete mode 100644 deps/v8/src/frame-element.cc delete mode 100644 deps/v8/src/frame-element.h delete mode 100644 deps/v8/src/ia32/codegen-ia32-inl.h delete mode 100644 deps/v8/src/ia32/jump-target-ia32.cc delete mode 100644 deps/v8/src/ia32/register-allocator-ia32-inl.h delete mode 100644 deps/v8/src/ia32/register-allocator-ia32.cc delete mode 100644 deps/v8/src/ia32/register-allocator-ia32.h delete mode 100644 deps/v8/src/ia32/virtual-frame-ia32.cc delete mode 100644 deps/v8/src/ia32/virtual-frame-ia32.h create mode 100644 deps/v8/src/isolate-inl.h create mode 100644 deps/v8/src/isolate.cc create mode 100644 deps/v8/src/isolate.h create mode 100644 deps/v8/src/json-parser.h delete mode 100644 deps/v8/src/jump-target-heavy-inl.h delete mode 100644 deps/v8/src/jump-target-heavy.cc delete mode 100644 deps/v8/src/jump-target-heavy.h delete mode 100644 deps/v8/src/jump-target-inl.h delete mode 100644 deps/v8/src/jump-target-light-inl.h delete mode 100644 deps/v8/src/jump-target-light.cc delete mode 100644 deps/v8/src/jump-target-light.h delete mode 100644 deps/v8/src/jump-target.cc delete mode 100644 deps/v8/src/jump-target.h delete mode 100644 deps/v8/src/memory.h create mode 100644 deps/v8/src/mips/code-stubs-mips.cc create mode 100644 deps/v8/src/mips/code-stubs-mips.h delete mode 100644 deps/v8/src/mips/codegen-mips-inl.h create mode 100644 deps/v8/src/mips/deoptimizer-mips.cc delete mode 100644 deps/v8/src/mips/fast-codegen-mips.cc delete mode 100644 deps/v8/src/mips/jump-target-mips.cc create mode 100644 deps/v8/src/mips/lithium-codegen-mips.h create mode 100644 deps/v8/src/mips/lithium-mips.h create mode 100644 deps/v8/src/mips/regexp-macro-assembler-mips.cc create mode 100644 deps/v8/src/mips/regexp-macro-assembler-mips.h delete mode 100644 deps/v8/src/mips/register-allocator-mips-inl.h delete mode 100644 deps/v8/src/mips/register-allocator-mips.cc delete mode 100644 deps/v8/src/mips/register-allocator-mips.h delete mode 100644 deps/v8/src/mips/virtual-frame-mips.cc delete mode 100644 deps/v8/src/mips/virtual-frame-mips.h create mode 100644 deps/v8/src/misc-intrinsics.h create mode 100644 deps/v8/src/platform-tls-mac.h create mode 100644 deps/v8/src/platform-tls-win32.h create mode 100644 deps/v8/src/platform-tls.h create mode 100644 deps/v8/src/preparse-data-format.h create mode 100644 deps/v8/src/proxy.js delete mode 100644 deps/v8/src/register-allocator-inl.h delete mode 100644 deps/v8/src/register-allocator.cc delete mode 100644 deps/v8/src/register-allocator.h create mode 100644 deps/v8/src/small-pointer-list.h delete mode 100644 deps/v8/src/top.cc delete mode 100644 deps/v8/src/top.h create mode 100644 deps/v8/src/utils-inl.h create mode 100644 deps/v8/src/v8conversions.cc create mode 100644 deps/v8/src/v8conversions.h create mode 100644 deps/v8/src/v8memory.h create mode 100644 deps/v8/src/v8utils.cc delete mode 100644 deps/v8/src/virtual-frame-heavy-inl.h delete mode 100644 deps/v8/src/virtual-frame-heavy.cc delete mode 100644 deps/v8/src/virtual-frame-inl.h delete mode 100644 deps/v8/src/virtual-frame-light-inl.h delete mode 100644 deps/v8/src/virtual-frame-light.cc delete mode 100644 deps/v8/src/virtual-frame.cc delete mode 100644 deps/v8/src/virtual-frame.h delete mode 100644 deps/v8/src/x64/codegen-x64-inl.h delete mode 100644 deps/v8/src/x64/jump-target-x64.cc delete mode 100644 deps/v8/src/x64/register-allocator-x64-inl.h delete mode 100644 deps/v8/src/x64/register-allocator-x64.cc delete mode 100644 deps/v8/src/x64/register-allocator-x64.h delete mode 100644 deps/v8/src/x64/virtual-frame-x64.cc delete mode 100644 deps/v8/src/x64/virtual-frame-x64.h (limited to 'deps/v8/src') diff --git a/deps/v8/src/SConscript b/deps/v8/src/SConscript index 598e4af56e..4b0ba16341 100755 --- a/deps/v8/src/SConscript +++ b/deps/v8/src/SConscript @@ -68,7 +68,6 @@ SOURCES = { execution.cc factory.cc flags.cc - frame-element.cc frames.cc full-codegen.cc func-name-inferrer.cc @@ -85,8 +84,8 @@ SOURCES = { ic.cc inspector.cc interpreter-irregexp.cc + isolate.cc jsregexp.cc - jump-target.cc lithium-allocator.cc lithium.cc liveedit.cc @@ -106,7 +105,6 @@ SOURCES = { regexp-macro-assembler-irregexp.cc regexp-macro-assembler.cc regexp-stack.cc - register-allocator.cc rewriter.cc runtime.cc runtime-profiler.cc @@ -123,23 +121,21 @@ SOURCES = { strtod.cc stub-cache.cc token.cc - top.cc type-info.cc unicode.cc utils.cc v8-counters.cc v8.cc + v8conversions.cc v8threads.cc + v8utils.cc variables.cc version.cc - virtual-frame.cc zone.cc extensions/gc-extension.cc extensions/externalize-string-extension.cc """), 'arch:arm': Split(""" - jump-target-light.cc - virtual-frame-light.cc arm/builtins-arm.cc arm/code-stubs-arm.cc arm/codegen-arm.cc @@ -151,37 +147,32 @@ SOURCES = { arm/frames-arm.cc arm/full-codegen-arm.cc arm/ic-arm.cc - arm/jump-target-arm.cc arm/lithium-arm.cc arm/lithium-codegen-arm.cc arm/lithium-gap-resolver-arm.cc arm/macro-assembler-arm.cc arm/regexp-macro-assembler-arm.cc - arm/register-allocator-arm.cc arm/stub-cache-arm.cc - arm/virtual-frame-arm.cc arm/assembler-arm.cc """), 'arch:mips': Split(""" mips/assembler-mips.cc mips/builtins-mips.cc + mips/code-stubs-mips.cc mips/codegen-mips.cc mips/constants-mips.cc mips/cpu-mips.cc mips/debug-mips.cc + mips/deoptimizer-mips.cc mips/disasm-mips.cc - mips/full-codegen-mips.cc mips/frames-mips.cc + mips/full-codegen-mips.cc mips/ic-mips.cc - mips/jump-target-mips.cc mips/macro-assembler-mips.cc - mips/register-allocator-mips.cc + mips/regexp-macro-assembler-mips.cc mips/stub-cache-mips.cc - mips/virtual-frame-mips.cc """), 'arch:ia32': Split(""" - jump-target-heavy.cc - virtual-frame-heavy.cc ia32/assembler-ia32.cc ia32/builtins-ia32.cc ia32/code-stubs-ia32.cc @@ -193,19 +184,14 @@ SOURCES = { ia32/frames-ia32.cc ia32/full-codegen-ia32.cc ia32/ic-ia32.cc - ia32/jump-target-ia32.cc ia32/lithium-codegen-ia32.cc ia32/lithium-gap-resolver-ia32.cc ia32/lithium-ia32.cc ia32/macro-assembler-ia32.cc ia32/regexp-macro-assembler-ia32.cc - ia32/register-allocator-ia32.cc ia32/stub-cache-ia32.cc - ia32/virtual-frame-ia32.cc """), 'arch:x64': Split(""" - jump-target-heavy.cc - virtual-frame-heavy.cc x64/assembler-x64.cc x64/builtins-x64.cc x64/code-stubs-x64.cc @@ -217,15 +203,12 @@ SOURCES = { x64/frames-x64.cc x64/full-codegen-x64.cc x64/ic-x64.cc - x64/jump-target-x64.cc x64/lithium-codegen-x64.cc x64/lithium-gap-resolver-x64.cc x64/lithium-x64.cc x64/macro-assembler-x64.cc x64/regexp-macro-assembler-x64.cc - x64/register-allocator-x64.cc x64/stub-cache-x64.cc - x64/virtual-frame-x64.cc """), 'simulator:arm': ['arm/simulator-arm.cc'], 'simulator:mips': ['mips/simulator-mips.cc'], @@ -245,6 +228,25 @@ SOURCES = { } +PREPARSER_SOURCES = { + 'all': Split(""" + allocation.cc + bignum.cc + cached-powers.cc + conversions.cc + hashmap.cc + preparse-data.cc + preparser.cc + preparser-api.cc + scanner-base.cc + strtod.cc + token.cc + unicode.cc + utils.cc + """) +} + + D8_FILES = { 'all': [ 'd8.cc', 'd8-debug.cc' @@ -300,6 +302,11 @@ debug-debugger.js '''.split() +EXPERIMENTAL_LIBRARY_FILES = ''' +proxy.js +'''.split() + + def Abort(message): print message sys.exit(1) @@ -310,13 +317,22 @@ def ConfigureObjectFiles(): env.Replace(**context.flags['v8']) context.ApplyEnvOverrides(env) env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C) - env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGFILE" --log-snapshot-positions') + if 'ENABLE_LOGGING_AND_PROFILING' in env['CPPDEFINES']: + env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGFILE" --log-snapshot-positions') + else: + env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET') + + def BuildJS2CEnv(type): + js2c_env = { 'TYPE': type, 'COMPRESSION': 'off' } + if 'COMPRESS_STARTUP_DATA_BZ2' in env['CPPDEFINES']: + js2c_env['COMPRESSION'] = 'bz2' + return js2c_env # Build the standard platform-independent source files. source_files = context.GetRelevantSources(SOURCES) d8_files = context.GetRelevantSources(D8_FILES) - d8_js = env.JS2C('d8-js.cc', 'd8.js', TYPE='D8') + d8_js = env.JS2C('d8-js.cc', 'd8.js', **{'TYPE': 'D8', 'COMPRESSION': 'off'}) d8_js_obj = context.ConfigureObject(env, d8_js, CPPPATH=['.']) d8_objs = [context.ConfigureObject(env, [d8_files]), d8_js_obj] @@ -324,12 +340,25 @@ def ConfigureObjectFiles(): # compile it. library_files = [s for s in LIBRARY_FILES] library_files.append('macros.py') - libraries_src, libraries_empty_src = env.JS2C(['libraries.cc', 'libraries-empty.cc'], library_files, TYPE='CORE') + libraries_src = env.JS2C( + ['libraries.cc'], library_files, **BuildJS2CEnv('CORE')) libraries_obj = context.ConfigureObject(env, libraries_src, CPPPATH=['.']) + # Combine the experimental JavaScript library files into a C++ file + # and compile it. + experimental_library_files = [ s for s in EXPERIMENTAL_LIBRARY_FILES ] + experimental_library_files.append('macros.py') + experimental_libraries_src = env.JS2C(['experimental-libraries.cc'], + experimental_library_files, + **BuildJS2CEnv('EXPERIMENTAL')) + experimental_libraries_obj = context.ConfigureObject(env, experimental_libraries_src, CPPPATH=['.']) + source_objs = context.ConfigureObject(env, source_files) non_snapshot_files = [source_objs] + preparser_source_files = context.GetRelevantSources(PREPARSER_SOURCES) + preparser_objs = context.ConfigureObject(env, preparser_source_files) + # Create snapshot if necessary. For cross compilation you should either # do without snapshots and take the performance hit or you should build a # host VM with the simulator=arm and snapshot=on options and then take the @@ -340,7 +369,7 @@ def ConfigureObjectFiles(): mksnapshot_env = env.Copy() mksnapshot_env.Replace(**context.flags['mksnapshot']) mksnapshot_src = 'mksnapshot.cc' - mksnapshot = mksnapshot_env.Program('mksnapshot', [mksnapshot_src, libraries_obj, non_snapshot_files, empty_snapshot_obj], PDB='mksnapshot.exe.pdb') + mksnapshot = mksnapshot_env.Program('mksnapshot', [mksnapshot_src, libraries_obj, experimental_libraries_obj, non_snapshot_files, empty_snapshot_obj], PDB='mksnapshot.exe.pdb') if context.use_snapshot: if context.build_snapshot: snapshot_cc = env.Snapshot('snapshot.cc', mksnapshot, LOGFILE=File('snapshot.log').abspath) @@ -349,9 +378,9 @@ def ConfigureObjectFiles(): snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) else: snapshot_obj = empty_snapshot_obj - library_objs = [non_snapshot_files, libraries_obj, snapshot_obj] - return (library_objs, d8_objs, [mksnapshot]) + library_objs = [non_snapshot_files, libraries_obj, experimental_libraries_obj, snapshot_obj] + return (library_objs, d8_objs, [mksnapshot], preparser_objs) -(library_objs, d8_objs, mksnapshot) = ConfigureObjectFiles() -Return('library_objs d8_objs mksnapshot') +(library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles() +Return('library_objs d8_objs mksnapshot preparser_objs') diff --git a/deps/v8/src/accessors.cc b/deps/v8/src/accessors.cc index 8cbdc09edf..806c679f4b 100644 --- a/deps/v8/src/accessors.cc +++ b/deps/v8/src/accessors.cc @@ -1,4 +1,4 @@ -// Copyright 2006-2008 the V8 project authors. All rights reserved. +// Copyright 2011 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: @@ -32,9 +32,9 @@ #include "deoptimizer.h" #include "execution.h" #include "factory.h" +#include "list-inl.h" #include "safepoint-table.h" #include "scopeinfo.h" -#include "top.h" namespace v8 { namespace internal { @@ -43,8 +43,9 @@ namespace internal { template static C* FindInPrototypeChain(Object* obj, bool* found_it) { ASSERT(!*found_it); + Heap* heap = HEAP; while (!Is(obj)) { - if (obj == Heap::null_value()) return NULL; + if (obj == heap->null_value()) return NULL; obj = obj->GetPrototype(); } *found_it = true; @@ -90,24 +91,34 @@ MaybeObject* Accessors::ArrayGetLength(Object* object, void*) { Object* Accessors::FlattenNumber(Object* value) { if (value->IsNumber() || !value->IsJSValue()) return value; JSValue* wrapper = JSValue::cast(value); - ASSERT( - Top::context()->global_context()->number_function()->has_initial_map()); - Map* number_map = - Top::context()->global_context()->number_function()->initial_map(); + ASSERT(Isolate::Current()->context()->global_context()->number_function()-> + has_initial_map()); + Map* number_map = Isolate::Current()->context()->global_context()-> + number_function()->initial_map(); if (wrapper->map() == number_map) return wrapper->value(); return value; } MaybeObject* Accessors::ArraySetLength(JSObject* object, Object* value, void*) { + Isolate* isolate = object->GetIsolate(); + + // This means one of the object's prototypes is a JSArray and the + // object does not have a 'length' property. Calling SetProperty + // causes an infinite loop. + if (!object->IsJSArray()) { + return object->SetLocalPropertyIgnoreAttributes( + isolate->heap()->length_symbol(), value, NONE); + } + value = FlattenNumber(value); // Need to call methods that may trigger GC. - HandleScope scope; + HandleScope scope(isolate); // Protect raw pointers. - Handle object_handle(object); - Handle value_handle(value); + Handle object_handle(object, isolate); + Handle value_handle(value, isolate); bool has_exception; Handle uint32_v = Execution::ToUint32(value_handle, &has_exception); @@ -115,23 +126,12 @@ MaybeObject* Accessors::ArraySetLength(JSObject* object, Object* value, void*) { Handle number_v = Execution::ToNumber(value_handle, &has_exception); if (has_exception) return Failure::Exception(); - // Restore raw pointers, - object = *object_handle; - value = *value_handle; - if (uint32_v->Number() == number_v->Number()) { - if (object->IsJSArray()) { - return JSArray::cast(object)->SetElementsLength(*uint32_v); - } else { - // This means one of the object's prototypes is a JSArray and - // the object does not have a 'length' property. - // Calling SetProperty causes an infinite loop. - return object->SetLocalPropertyIgnoreAttributes(Heap::length_symbol(), - value, NONE); - } + return Handle::cast(object_handle)->SetElementsLength(*uint32_v); } - return Top::Throw(*Factory::NewRangeError("invalid_array_length", - HandleVector(NULL, 0))); + return isolate->Throw( + *isolate->factory()->NewRangeError("invalid_array_length", + HandleVector(NULL, 0))); } @@ -314,15 +314,18 @@ const AccessorDescriptor Accessors::ScriptCompilationType = { MaybeObject* Accessors::ScriptGetLineEnds(Object* object, void*) { - HandleScope scope; - Handle