libv8 3.11.8.17 → 3.16.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -2
- data/Gemfile +1 -1
- data/Rakefile +6 -7
- data/lib/libv8/version.rb +1 -1
- data/vendor/v8/.gitignore +24 -3
- data/vendor/v8/AUTHORS +7 -0
- data/vendor/v8/ChangeLog +839 -0
- data/vendor/v8/DEPS +1 -1
- data/vendor/v8/Makefile.android +92 -0
- data/vendor/v8/OWNERS +11 -0
- data/vendor/v8/PRESUBMIT.py +71 -0
- data/vendor/v8/SConstruct +34 -39
- data/vendor/v8/build/android.gypi +56 -37
- data/vendor/v8/build/common.gypi +112 -30
- data/vendor/v8/build/gyp_v8 +1 -1
- data/vendor/v8/build/standalone.gypi +15 -11
- data/vendor/v8/include/v8-debug.h +9 -1
- data/vendor/v8/include/v8-preparser.h +4 -3
- data/vendor/v8/include/v8-profiler.h +25 -25
- data/vendor/v8/include/v8-testing.h +4 -3
- data/vendor/v8/include/v8.h +994 -540
- data/vendor/v8/preparser/preparser-process.cc +3 -3
- data/vendor/v8/samples/lineprocessor.cc +20 -27
- data/vendor/v8/samples/process.cc +18 -14
- data/vendor/v8/samples/shell.cc +16 -15
- data/vendor/v8/src/SConscript +15 -14
- data/vendor/v8/src/accessors.cc +169 -77
- data/vendor/v8/src/accessors.h +4 -0
- data/vendor/v8/src/allocation-inl.h +2 -2
- data/vendor/v8/src/allocation.h +7 -7
- data/vendor/v8/src/api.cc +810 -497
- data/vendor/v8/src/api.h +85 -60
- data/vendor/v8/src/arm/assembler-arm-inl.h +179 -22
- data/vendor/v8/src/arm/assembler-arm.cc +633 -264
- data/vendor/v8/src/arm/assembler-arm.h +264 -197
- data/vendor/v8/src/arm/builtins-arm.cc +117 -27
- data/vendor/v8/src/arm/code-stubs-arm.cc +1241 -700
- data/vendor/v8/src/arm/code-stubs-arm.h +35 -138
- data/vendor/v8/src/arm/codegen-arm.cc +285 -16
- data/vendor/v8/src/arm/codegen-arm.h +22 -0
- data/vendor/v8/src/arm/constants-arm.cc +5 -3
- data/vendor/v8/src/arm/constants-arm.h +24 -11
- data/vendor/v8/src/arm/debug-arm.cc +3 -3
- data/vendor/v8/src/arm/deoptimizer-arm.cc +382 -92
- data/vendor/v8/src/arm/disasm-arm.cc +61 -12
- data/vendor/v8/src/arm/frames-arm.h +0 -14
- data/vendor/v8/src/arm/full-codegen-arm.cc +332 -304
- data/vendor/v8/src/arm/ic-arm.cc +180 -259
- data/vendor/v8/src/arm/lithium-arm.cc +364 -316
- data/vendor/v8/src/arm/lithium-arm.h +512 -275
- data/vendor/v8/src/arm/lithium-codegen-arm.cc +1768 -809
- data/vendor/v8/src/arm/lithium-codegen-arm.h +97 -35
- data/vendor/v8/src/arm/lithium-gap-resolver-arm.cc +12 -5
- data/vendor/v8/src/arm/macro-assembler-arm.cc +439 -228
- data/vendor/v8/src/arm/macro-assembler-arm.h +116 -70
- data/vendor/v8/src/arm/regexp-macro-assembler-arm.cc +54 -44
- data/vendor/v8/src/arm/regexp-macro-assembler-arm.h +3 -10
- data/vendor/v8/src/arm/simulator-arm.cc +272 -238
- data/vendor/v8/src/arm/simulator-arm.h +38 -8
- data/vendor/v8/src/arm/stub-cache-arm.cc +522 -895
- data/vendor/v8/src/array.js +101 -70
- data/vendor/v8/src/assembler.cc +270 -19
- data/vendor/v8/src/assembler.h +110 -15
- data/vendor/v8/src/ast.cc +79 -69
- data/vendor/v8/src/ast.h +255 -301
- data/vendor/v8/src/atomicops.h +7 -1
- data/vendor/v8/src/atomicops_internals_tsan.h +335 -0
- data/vendor/v8/src/bootstrapper.cc +481 -418
- data/vendor/v8/src/bootstrapper.h +4 -4
- data/vendor/v8/src/builtins.cc +498 -311
- data/vendor/v8/src/builtins.h +75 -47
- data/vendor/v8/src/checks.cc +2 -1
- data/vendor/v8/src/checks.h +8 -0
- data/vendor/v8/src/code-stubs-hydrogen.cc +253 -0
- data/vendor/v8/src/code-stubs.cc +249 -84
- data/vendor/v8/src/code-stubs.h +501 -169
- data/vendor/v8/src/codegen.cc +36 -18
- data/vendor/v8/src/codegen.h +25 -3
- data/vendor/v8/src/collection.js +54 -17
- data/vendor/v8/src/compilation-cache.cc +24 -16
- data/vendor/v8/src/compilation-cache.h +15 -6
- data/vendor/v8/src/compiler.cc +497 -195
- data/vendor/v8/src/compiler.h +246 -38
- data/vendor/v8/src/contexts.cc +64 -24
- data/vendor/v8/src/contexts.h +60 -29
- data/vendor/v8/src/conversions-inl.h +24 -14
- data/vendor/v8/src/conversions.h +7 -4
- data/vendor/v8/src/counters.cc +21 -12
- data/vendor/v8/src/counters.h +44 -16
- data/vendor/v8/src/cpu-profiler.h +1 -1
- data/vendor/v8/src/d8-debug.cc +2 -2
- data/vendor/v8/src/d8-readline.cc +13 -2
- data/vendor/v8/src/d8.cc +681 -273
- data/vendor/v8/src/d8.gyp +4 -4
- data/vendor/v8/src/d8.h +38 -18
- data/vendor/v8/src/d8.js +0 -617
- data/vendor/v8/src/data-flow.h +55 -0
- data/vendor/v8/src/date.js +1 -42
- data/vendor/v8/src/dateparser-inl.h +5 -1
- data/vendor/v8/src/debug-agent.cc +10 -15
- data/vendor/v8/src/debug-debugger.js +147 -149
- data/vendor/v8/src/debug.cc +323 -164
- data/vendor/v8/src/debug.h +26 -14
- data/vendor/v8/src/deoptimizer.cc +765 -290
- data/vendor/v8/src/deoptimizer.h +130 -28
- data/vendor/v8/src/disassembler.cc +10 -4
- data/vendor/v8/src/elements-kind.cc +7 -2
- data/vendor/v8/src/elements-kind.h +19 -0
- data/vendor/v8/src/elements.cc +607 -285
- data/vendor/v8/src/elements.h +36 -13
- data/vendor/v8/src/execution.cc +52 -31
- data/vendor/v8/src/execution.h +4 -4
- data/vendor/v8/src/extensions/externalize-string-extension.cc +5 -4
- data/vendor/v8/src/extensions/gc-extension.cc +5 -1
- data/vendor/v8/src/extensions/statistics-extension.cc +153 -0
- data/vendor/v8/src/{inspector.h → extensions/statistics-extension.h} +12 -23
- data/vendor/v8/src/factory.cc +101 -134
- data/vendor/v8/src/factory.h +36 -31
- data/vendor/v8/src/flag-definitions.h +102 -25
- data/vendor/v8/src/flags.cc +9 -5
- data/vendor/v8/src/frames-inl.h +10 -0
- data/vendor/v8/src/frames.cc +116 -26
- data/vendor/v8/src/frames.h +96 -12
- data/vendor/v8/src/full-codegen.cc +219 -74
- data/vendor/v8/src/full-codegen.h +63 -21
- data/vendor/v8/src/func-name-inferrer.cc +8 -7
- data/vendor/v8/src/func-name-inferrer.h +5 -3
- data/vendor/v8/src/gdb-jit.cc +71 -57
- data/vendor/v8/src/global-handles.cc +230 -101
- data/vendor/v8/src/global-handles.h +26 -27
- data/vendor/v8/src/globals.h +17 -19
- data/vendor/v8/src/handles-inl.h +59 -12
- data/vendor/v8/src/handles.cc +180 -200
- data/vendor/v8/src/handles.h +80 -11
- data/vendor/v8/src/hashmap.h +60 -40
- data/vendor/v8/src/heap-inl.h +107 -45
- data/vendor/v8/src/heap-profiler.cc +38 -19
- data/vendor/v8/src/heap-profiler.h +24 -14
- data/vendor/v8/src/heap.cc +1123 -738
- data/vendor/v8/src/heap.h +385 -146
- data/vendor/v8/src/hydrogen-instructions.cc +700 -217
- data/vendor/v8/src/hydrogen-instructions.h +1158 -472
- data/vendor/v8/src/hydrogen.cc +3319 -1662
- data/vendor/v8/src/hydrogen.h +411 -170
- data/vendor/v8/src/ia32/assembler-ia32-inl.h +46 -16
- data/vendor/v8/src/ia32/assembler-ia32.cc +131 -61
- data/vendor/v8/src/ia32/assembler-ia32.h +115 -57
- data/vendor/v8/src/ia32/builtins-ia32.cc +99 -5
- data/vendor/v8/src/ia32/code-stubs-ia32.cc +787 -495
- data/vendor/v8/src/ia32/code-stubs-ia32.h +10 -100
- data/vendor/v8/src/ia32/codegen-ia32.cc +227 -23
- data/vendor/v8/src/ia32/codegen-ia32.h +14 -0
- data/vendor/v8/src/ia32/deoptimizer-ia32.cc +428 -87
- data/vendor/v8/src/ia32/disasm-ia32.cc +28 -1
- data/vendor/v8/src/ia32/frames-ia32.h +6 -16
- data/vendor/v8/src/ia32/full-codegen-ia32.cc +280 -272
- data/vendor/v8/src/ia32/ic-ia32.cc +150 -250
- data/vendor/v8/src/ia32/lithium-codegen-ia32.cc +1600 -517
- data/vendor/v8/src/ia32/lithium-codegen-ia32.h +90 -24
- data/vendor/v8/src/ia32/lithium-gap-resolver-ia32.cc +10 -6
- data/vendor/v8/src/ia32/lithium-gap-resolver-ia32.h +2 -2
- data/vendor/v8/src/ia32/lithium-ia32.cc +405 -302
- data/vendor/v8/src/ia32/lithium-ia32.h +526 -271
- data/vendor/v8/src/ia32/macro-assembler-ia32.cc +378 -119
- data/vendor/v8/src/ia32/macro-assembler-ia32.h +62 -28
- data/vendor/v8/src/ia32/regexp-macro-assembler-ia32.cc +43 -30
- data/vendor/v8/src/ia32/regexp-macro-assembler-ia32.h +2 -10
- data/vendor/v8/src/ia32/stub-cache-ia32.cc +492 -678
- data/vendor/v8/src/ic-inl.h +9 -4
- data/vendor/v8/src/ic.cc +836 -923
- data/vendor/v8/src/ic.h +228 -247
- data/vendor/v8/src/incremental-marking-inl.h +26 -30
- data/vendor/v8/src/incremental-marking.cc +276 -248
- data/vendor/v8/src/incremental-marking.h +29 -37
- data/vendor/v8/src/interface.cc +34 -25
- data/vendor/v8/src/interface.h +69 -25
- data/vendor/v8/src/interpreter-irregexp.cc +2 -2
- data/vendor/v8/src/isolate.cc +382 -76
- data/vendor/v8/src/isolate.h +109 -56
- data/vendor/v8/src/json-parser.h +217 -104
- data/vendor/v8/src/json-stringifier.h +745 -0
- data/vendor/v8/src/json.js +10 -132
- data/vendor/v8/src/jsregexp-inl.h +106 -0
- data/vendor/v8/src/jsregexp.cc +517 -285
- data/vendor/v8/src/jsregexp.h +145 -117
- data/vendor/v8/src/list-inl.h +35 -22
- data/vendor/v8/src/list.h +46 -19
- data/vendor/v8/src/lithium-allocator-inl.h +22 -2
- data/vendor/v8/src/lithium-allocator.cc +85 -70
- data/vendor/v8/src/lithium-allocator.h +21 -39
- data/vendor/v8/src/lithium.cc +259 -5
- data/vendor/v8/src/lithium.h +131 -32
- data/vendor/v8/src/liveedit-debugger.js +52 -3
- data/vendor/v8/src/liveedit.cc +393 -113
- data/vendor/v8/src/liveedit.h +7 -3
- data/vendor/v8/src/log-utils.cc +4 -2
- data/vendor/v8/src/log.cc +170 -140
- data/vendor/v8/src/log.h +62 -11
- data/vendor/v8/src/macro-assembler.h +17 -0
- data/vendor/v8/src/macros.py +2 -0
- data/vendor/v8/src/mark-compact-inl.h +3 -23
- data/vendor/v8/src/mark-compact.cc +801 -830
- data/vendor/v8/src/mark-compact.h +154 -47
- data/vendor/v8/src/marking-thread.cc +85 -0
- data/vendor/v8/src/{inspector.cc → marking-thread.h} +32 -24
- data/vendor/v8/src/math.js +12 -18
- data/vendor/v8/src/messages.cc +18 -8
- data/vendor/v8/src/messages.js +314 -261
- data/vendor/v8/src/mips/assembler-mips-inl.h +58 -6
- data/vendor/v8/src/mips/assembler-mips.cc +92 -75
- data/vendor/v8/src/mips/assembler-mips.h +54 -60
- data/vendor/v8/src/mips/builtins-mips.cc +116 -17
- data/vendor/v8/src/mips/code-stubs-mips.cc +919 -556
- data/vendor/v8/src/mips/code-stubs-mips.h +22 -131
- data/vendor/v8/src/mips/codegen-mips.cc +281 -6
- data/vendor/v8/src/mips/codegen-mips.h +22 -0
- data/vendor/v8/src/mips/constants-mips.cc +2 -0
- data/vendor/v8/src/mips/constants-mips.h +12 -2
- data/vendor/v8/src/mips/deoptimizer-mips.cc +286 -50
- data/vendor/v8/src/mips/disasm-mips.cc +13 -0
- data/vendor/v8/src/mips/full-codegen-mips.cc +297 -284
- data/vendor/v8/src/mips/ic-mips.cc +182 -263
- data/vendor/v8/src/mips/lithium-codegen-mips.cc +1208 -556
- data/vendor/v8/src/mips/lithium-codegen-mips.h +72 -19
- data/vendor/v8/src/mips/lithium-gap-resolver-mips.cc +9 -2
- data/vendor/v8/src/mips/lithium-mips.cc +290 -302
- data/vendor/v8/src/mips/lithium-mips.h +463 -266
- data/vendor/v8/src/mips/macro-assembler-mips.cc +208 -115
- data/vendor/v8/src/mips/macro-assembler-mips.h +67 -24
- data/vendor/v8/src/mips/regexp-macro-assembler-mips.cc +40 -25
- data/vendor/v8/src/mips/regexp-macro-assembler-mips.h +3 -9
- data/vendor/v8/src/mips/simulator-mips.cc +112 -40
- data/vendor/v8/src/mips/simulator-mips.h +5 -0
- data/vendor/v8/src/mips/stub-cache-mips.cc +502 -884
- data/vendor/v8/src/mirror-debugger.js +157 -30
- data/vendor/v8/src/mksnapshot.cc +88 -14
- data/vendor/v8/src/object-observe.js +235 -0
- data/vendor/v8/src/objects-debug.cc +178 -176
- data/vendor/v8/src/objects-inl.h +1333 -486
- data/vendor/v8/src/objects-printer.cc +125 -43
- data/vendor/v8/src/objects-visiting-inl.h +578 -6
- data/vendor/v8/src/objects-visiting.cc +2 -2
- data/vendor/v8/src/objects-visiting.h +172 -79
- data/vendor/v8/src/objects.cc +3533 -2885
- data/vendor/v8/src/objects.h +1352 -1131
- data/vendor/v8/src/optimizing-compiler-thread.cc +152 -0
- data/vendor/v8/src/optimizing-compiler-thread.h +111 -0
- data/vendor/v8/src/parser.cc +390 -500
- data/vendor/v8/src/parser.h +45 -33
- data/vendor/v8/src/platform-cygwin.cc +10 -21
- data/vendor/v8/src/platform-freebsd.cc +36 -41
- data/vendor/v8/src/platform-linux.cc +160 -124
- data/vendor/v8/src/platform-macos.cc +30 -27
- data/vendor/v8/src/platform-nullos.cc +17 -1
- data/vendor/v8/src/platform-openbsd.cc +19 -50
- data/vendor/v8/src/platform-posix.cc +14 -0
- data/vendor/v8/src/platform-solaris.cc +20 -53
- data/vendor/v8/src/platform-win32.cc +49 -26
- data/vendor/v8/src/platform.h +40 -1
- data/vendor/v8/src/preparser.cc +8 -5
- data/vendor/v8/src/preparser.h +2 -2
- data/vendor/v8/src/prettyprinter.cc +16 -0
- data/vendor/v8/src/prettyprinter.h +2 -0
- data/vendor/v8/src/profile-generator-inl.h +1 -0
- data/vendor/v8/src/profile-generator.cc +209 -147
- data/vendor/v8/src/profile-generator.h +15 -12
- data/vendor/v8/src/property-details.h +46 -31
- data/vendor/v8/src/property.cc +27 -46
- data/vendor/v8/src/property.h +163 -83
- data/vendor/v8/src/proxy.js +7 -2
- data/vendor/v8/src/regexp-macro-assembler-irregexp.cc +4 -13
- data/vendor/v8/src/regexp-macro-assembler-irregexp.h +1 -2
- data/vendor/v8/src/regexp-macro-assembler-tracer.cc +1 -11
- data/vendor/v8/src/regexp-macro-assembler-tracer.h +0 -1
- data/vendor/v8/src/regexp-macro-assembler.cc +31 -14
- data/vendor/v8/src/regexp-macro-assembler.h +14 -11
- data/vendor/v8/src/regexp-stack.cc +1 -0
- data/vendor/v8/src/regexp.js +9 -8
- data/vendor/v8/src/rewriter.cc +18 -7
- data/vendor/v8/src/runtime-profiler.cc +52 -43
- data/vendor/v8/src/runtime-profiler.h +0 -25
- data/vendor/v8/src/runtime.cc +2006 -2023
- data/vendor/v8/src/runtime.h +56 -49
- data/vendor/v8/src/safepoint-table.cc +12 -18
- data/vendor/v8/src/safepoint-table.h +11 -8
- data/vendor/v8/src/scanner.cc +1 -0
- data/vendor/v8/src/scanner.h +4 -10
- data/vendor/v8/src/scopeinfo.cc +35 -9
- data/vendor/v8/src/scopeinfo.h +64 -3
- data/vendor/v8/src/scopes.cc +251 -156
- data/vendor/v8/src/scopes.h +61 -27
- data/vendor/v8/src/serialize.cc +348 -396
- data/vendor/v8/src/serialize.h +125 -114
- data/vendor/v8/src/small-pointer-list.h +11 -11
- data/vendor/v8/src/{smart-array-pointer.h → smart-pointers.h} +64 -15
- data/vendor/v8/src/snapshot-common.cc +64 -15
- data/vendor/v8/src/snapshot-empty.cc +7 -1
- data/vendor/v8/src/snapshot.h +9 -2
- data/vendor/v8/src/spaces-inl.h +17 -0
- data/vendor/v8/src/spaces.cc +477 -183
- data/vendor/v8/src/spaces.h +238 -58
- data/vendor/v8/src/splay-tree-inl.h +8 -7
- data/vendor/v8/src/splay-tree.h +24 -10
- data/vendor/v8/src/store-buffer.cc +12 -5
- data/vendor/v8/src/store-buffer.h +2 -4
- data/vendor/v8/src/string-search.h +22 -6
- data/vendor/v8/src/string-stream.cc +11 -8
- data/vendor/v8/src/string.js +47 -15
- data/vendor/v8/src/stub-cache.cc +461 -224
- data/vendor/v8/src/stub-cache.h +164 -102
- data/vendor/v8/src/sweeper-thread.cc +105 -0
- data/vendor/v8/src/sweeper-thread.h +81 -0
- data/vendor/v8/src/token.h +1 -0
- data/vendor/v8/src/transitions-inl.h +220 -0
- data/vendor/v8/src/transitions.cc +160 -0
- data/vendor/v8/src/transitions.h +207 -0
- data/vendor/v8/src/type-info.cc +182 -181
- data/vendor/v8/src/type-info.h +31 -19
- data/vendor/v8/src/unicode-inl.h +62 -106
- data/vendor/v8/src/unicode.cc +57 -67
- data/vendor/v8/src/unicode.h +45 -91
- data/vendor/v8/src/uri.js +57 -29
- data/vendor/v8/src/utils.h +105 -5
- data/vendor/v8/src/v8-counters.cc +54 -11
- data/vendor/v8/src/v8-counters.h +134 -19
- data/vendor/v8/src/v8.cc +29 -29
- data/vendor/v8/src/v8.h +1 -0
- data/vendor/v8/src/v8conversions.cc +26 -22
- data/vendor/v8/src/v8globals.h +56 -43
- data/vendor/v8/src/v8natives.js +83 -30
- data/vendor/v8/src/v8threads.cc +42 -21
- data/vendor/v8/src/v8threads.h +4 -1
- data/vendor/v8/src/v8utils.cc +9 -93
- data/vendor/v8/src/v8utils.h +37 -33
- data/vendor/v8/src/variables.cc +6 -3
- data/vendor/v8/src/variables.h +6 -13
- data/vendor/v8/src/version.cc +2 -2
- data/vendor/v8/src/vm-state-inl.h +11 -0
- data/vendor/v8/src/x64/assembler-x64-inl.h +39 -8
- data/vendor/v8/src/x64/assembler-x64.cc +78 -64
- data/vendor/v8/src/x64/assembler-x64.h +38 -33
- data/vendor/v8/src/x64/builtins-x64.cc +105 -7
- data/vendor/v8/src/x64/code-stubs-x64.cc +790 -413
- data/vendor/v8/src/x64/code-stubs-x64.h +10 -106
- data/vendor/v8/src/x64/codegen-x64.cc +210 -8
- data/vendor/v8/src/x64/codegen-x64.h +20 -1
- data/vendor/v8/src/x64/deoptimizer-x64.cc +336 -75
- data/vendor/v8/src/x64/disasm-x64.cc +15 -0
- data/vendor/v8/src/x64/frames-x64.h +0 -14
- data/vendor/v8/src/x64/full-codegen-x64.cc +293 -270
- data/vendor/v8/src/x64/ic-x64.cc +153 -251
- data/vendor/v8/src/x64/lithium-codegen-x64.cc +1379 -531
- data/vendor/v8/src/x64/lithium-codegen-x64.h +67 -23
- data/vendor/v8/src/x64/lithium-gap-resolver-x64.cc +2 -2
- data/vendor/v8/src/x64/lithium-x64.cc +349 -289
- data/vendor/v8/src/x64/lithium-x64.h +460 -250
- data/vendor/v8/src/x64/macro-assembler-x64.cc +350 -177
- data/vendor/v8/src/x64/macro-assembler-x64.h +67 -49
- data/vendor/v8/src/x64/regexp-macro-assembler-x64.cc +46 -33
- data/vendor/v8/src/x64/regexp-macro-assembler-x64.h +2 -3
- data/vendor/v8/src/x64/stub-cache-x64.cc +484 -653
- data/vendor/v8/src/zone-inl.h +9 -27
- data/vendor/v8/src/zone.cc +5 -5
- data/vendor/v8/src/zone.h +53 -27
- data/vendor/v8/test/benchmarks/testcfg.py +5 -0
- data/vendor/v8/test/cctest/cctest.cc +4 -0
- data/vendor/v8/test/cctest/cctest.gyp +3 -1
- data/vendor/v8/test/cctest/cctest.h +57 -9
- data/vendor/v8/test/cctest/cctest.status +15 -15
- data/vendor/v8/test/cctest/test-accessors.cc +26 -0
- data/vendor/v8/test/cctest/test-alloc.cc +22 -30
- data/vendor/v8/test/cctest/test-api.cc +1943 -314
- data/vendor/v8/test/cctest/test-assembler-arm.cc +133 -13
- data/vendor/v8/test/cctest/test-assembler-ia32.cc +1 -1
- data/vendor/v8/test/cctest/test-assembler-mips.cc +12 -0
- data/vendor/v8/test/cctest/test-ast.cc +4 -2
- data/vendor/v8/test/cctest/test-compiler.cc +61 -29
- data/vendor/v8/test/cctest/test-dataflow.cc +2 -2
- data/vendor/v8/test/cctest/test-debug.cc +212 -33
- data/vendor/v8/test/cctest/test-decls.cc +257 -11
- data/vendor/v8/test/cctest/test-dictionary.cc +24 -10
- data/vendor/v8/test/cctest/test-disasm-arm.cc +118 -1
- data/vendor/v8/test/cctest/test-disasm-ia32.cc +3 -2
- data/vendor/v8/test/cctest/test-flags.cc +14 -1
- data/vendor/v8/test/cctest/test-func-name-inference.cc +7 -4
- data/vendor/v8/test/cctest/test-global-object.cc +51 -0
- data/vendor/v8/test/cctest/test-hashing.cc +32 -23
- data/vendor/v8/test/cctest/test-heap-profiler.cc +131 -77
- data/vendor/v8/test/cctest/test-heap.cc +1084 -143
- data/vendor/v8/test/cctest/test-list.cc +1 -1
- data/vendor/v8/test/cctest/test-liveedit.cc +3 -2
- data/vendor/v8/test/cctest/test-lockers.cc +12 -13
- data/vendor/v8/test/cctest/test-log.cc +10 -8
- data/vendor/v8/test/cctest/test-macro-assembler-x64.cc +2 -2
- data/vendor/v8/test/cctest/test-mark-compact.cc +44 -22
- data/vendor/v8/test/cctest/test-object-observe.cc +434 -0
- data/vendor/v8/test/cctest/test-parsing.cc +86 -39
- data/vendor/v8/test/cctest/test-platform-linux.cc +6 -0
- data/vendor/v8/test/cctest/test-platform-win32.cc +7 -0
- data/vendor/v8/test/cctest/test-random.cc +5 -4
- data/vendor/v8/test/cctest/test-regexp.cc +137 -101
- data/vendor/v8/test/cctest/test-serialize.cc +150 -230
- data/vendor/v8/test/cctest/test-sockets.cc +1 -1
- data/vendor/v8/test/cctest/test-spaces.cc +139 -0
- data/vendor/v8/test/cctest/test-strings.cc +736 -74
- data/vendor/v8/test/cctest/test-thread-termination.cc +10 -11
- data/vendor/v8/test/cctest/test-threads.cc +4 -4
- data/vendor/v8/test/cctest/test-utils.cc +16 -0
- data/vendor/v8/test/cctest/test-weakmaps.cc +7 -3
- data/vendor/v8/test/cctest/testcfg.py +64 -5
- data/vendor/v8/test/es5conform/testcfg.py +5 -0
- data/vendor/v8/test/message/message.status +1 -1
- data/vendor/v8/test/message/overwritten-builtins.out +3 -0
- data/vendor/v8/test/message/testcfg.py +89 -8
- data/vendor/v8/test/message/try-catch-finally-no-message.out +26 -26
- data/vendor/v8/test/mjsunit/accessor-map-sharing.js +18 -2
- data/vendor/v8/test/mjsunit/allocation-site-info.js +126 -0
- data/vendor/v8/test/mjsunit/array-bounds-check-removal.js +62 -1
- data/vendor/v8/test/mjsunit/array-iteration.js +1 -1
- data/vendor/v8/test/mjsunit/array-literal-transitions.js +2 -0
- data/vendor/v8/test/mjsunit/array-natives-elements.js +317 -0
- data/vendor/v8/test/mjsunit/array-reduce.js +8 -8
- data/vendor/v8/test/mjsunit/array-slice.js +12 -0
- data/vendor/v8/test/mjsunit/array-store-and-grow.js +4 -1
- data/vendor/v8/test/mjsunit/assert-opt-and-deopt.js +1 -1
- data/vendor/v8/test/mjsunit/bugs/bug-2337.js +53 -0
- data/vendor/v8/test/mjsunit/compare-known-objects-slow.js +69 -0
- data/vendor/v8/test/mjsunit/compiler/alloc-object-huge.js +3 -1
- data/vendor/v8/test/mjsunit/compiler/inline-accessors.js +368 -0
- data/vendor/v8/test/mjsunit/compiler/inline-arguments.js +87 -1
- data/vendor/v8/test/mjsunit/compiler/inline-closures.js +49 -0
- data/vendor/v8/test/mjsunit/compiler/inline-construct.js +55 -43
- data/vendor/v8/test/mjsunit/compiler/inline-literals.js +39 -0
- data/vendor/v8/test/mjsunit/compiler/multiply-add.js +69 -0
- data/vendor/v8/test/mjsunit/compiler/optimized-closures.js +57 -0
- data/vendor/v8/test/mjsunit/compiler/parallel-proto-change.js +44 -0
- data/vendor/v8/test/mjsunit/compiler/property-static.js +69 -0
- data/vendor/v8/test/mjsunit/compiler/proto-chain-constant.js +55 -0
- data/vendor/v8/test/mjsunit/compiler/proto-chain-load.js +44 -0
- data/vendor/v8/test/mjsunit/compiler/regress-gvn.js +3 -2
- data/vendor/v8/test/mjsunit/compiler/regress-or.js +6 -2
- data/vendor/v8/test/mjsunit/compiler/rotate.js +224 -0
- data/vendor/v8/test/mjsunit/compiler/uint32.js +173 -0
- data/vendor/v8/test/mjsunit/count-based-osr.js +2 -1
- data/vendor/v8/test/mjsunit/d8-os.js +3 -3
- data/vendor/v8/test/mjsunit/date-parse.js +3 -0
- data/vendor/v8/test/mjsunit/date.js +22 -0
- data/vendor/v8/test/mjsunit/debug-break-inline.js +1 -0
- data/vendor/v8/test/mjsunit/debug-evaluate-locals-optimized-double.js +22 -12
- data/vendor/v8/test/mjsunit/debug-evaluate-locals-optimized.js +21 -10
- data/vendor/v8/test/mjsunit/debug-liveedit-compile-error.js +60 -0
- data/vendor/v8/test/mjsunit/debug-liveedit-double-call.js +142 -0
- data/vendor/v8/test/mjsunit/debug-liveedit-literals.js +94 -0
- data/vendor/v8/test/mjsunit/debug-liveedit-restart-frame.js +153 -0
- data/vendor/v8/test/mjsunit/debug-multiple-breakpoints.js +1 -1
- data/vendor/v8/test/mjsunit/debug-script-breakpoints-closure.js +67 -0
- data/vendor/v8/test/mjsunit/debug-script-breakpoints-nested.js +82 -0
- data/vendor/v8/test/mjsunit/debug-script.js +4 -2
- data/vendor/v8/test/mjsunit/debug-set-variable-value.js +308 -0
- data/vendor/v8/test/mjsunit/debug-stepout-scope-part1.js +190 -0
- data/vendor/v8/test/mjsunit/debug-stepout-scope-part2.js +83 -0
- data/vendor/v8/test/mjsunit/debug-stepout-scope-part3.js +80 -0
- data/vendor/v8/test/mjsunit/debug-stepout-scope-part4.js +80 -0
- data/vendor/v8/test/mjsunit/debug-stepout-scope-part5.js +77 -0
- data/vendor/v8/test/mjsunit/debug-stepout-scope-part6.js +79 -0
- data/vendor/v8/test/mjsunit/debug-stepout-scope-part7.js +79 -0
- data/vendor/v8/test/mjsunit/{debug-stepout-scope.js → debug-stepout-scope-part8.js} +0 -189
- data/vendor/v8/test/mjsunit/delete-non-configurable.js +74 -0
- data/vendor/v8/test/mjsunit/deopt-minus-zero.js +56 -0
- data/vendor/v8/test/mjsunit/elements-kind.js +6 -4
- data/vendor/v8/test/mjsunit/elements-length-no-holey.js +33 -0
- data/vendor/v8/test/mjsunit/elements-transition-hoisting.js +46 -19
- data/vendor/v8/test/mjsunit/error-accessors.js +54 -0
- data/vendor/v8/test/mjsunit/error-constructors.js +1 -14
- data/vendor/v8/test/mjsunit/error-tostring.js +8 -0
- data/vendor/v8/test/mjsunit/eval-stack-trace.js +204 -0
- data/vendor/v8/test/mjsunit/external-array.js +364 -1
- data/vendor/v8/test/mjsunit/fast-array-length.js +37 -0
- data/vendor/v8/test/mjsunit/fast-non-keyed.js +113 -0
- data/vendor/v8/test/mjsunit/fast-prototype.js +117 -0
- data/vendor/v8/test/mjsunit/function-call.js +14 -18
- data/vendor/v8/test/mjsunit/fuzz-natives-part1.js +230 -0
- data/vendor/v8/test/mjsunit/fuzz-natives-part2.js +229 -0
- data/vendor/v8/test/mjsunit/fuzz-natives-part3.js +229 -0
- data/vendor/v8/test/mjsunit/{fuzz-natives.js → fuzz-natives-part4.js} +12 -2
- data/vendor/v8/test/mjsunit/generated-transition-stub.js +218 -0
- data/vendor/v8/test/mjsunit/greedy.js +1 -1
- data/vendor/v8/test/mjsunit/harmony/block-conflicts.js +2 -1
- data/vendor/v8/test/mjsunit/harmony/block-let-crankshaft.js +1 -1
- data/vendor/v8/test/mjsunit/harmony/collections.js +69 -11
- data/vendor/v8/test/mjsunit/harmony/debug-blockscopes.js +2 -2
- data/vendor/v8/test/mjsunit/harmony/module-linking.js +180 -3
- data/vendor/v8/test/mjsunit/harmony/module-parsing.js +31 -0
- data/vendor/v8/test/mjsunit/harmony/module-recompile.js +87 -0
- data/vendor/v8/test/mjsunit/harmony/module-resolution.js +15 -2
- data/vendor/v8/test/mjsunit/harmony/object-observe.js +1056 -0
- data/vendor/v8/test/mjsunit/harmony/proxies-json.js +178 -0
- data/vendor/v8/test/mjsunit/harmony/proxies.js +25 -10
- data/vendor/v8/test/mjsunit/json-parser-recursive.js +33 -0
- data/vendor/v8/test/mjsunit/json-stringify-recursive.js +52 -0
- data/vendor/v8/test/mjsunit/json.js +38 -2
- data/vendor/v8/test/mjsunit/json2.js +153 -0
- data/vendor/v8/test/mjsunit/limit-locals.js +5 -4
- data/vendor/v8/test/mjsunit/manual-parallel-recompile.js +79 -0
- data/vendor/v8/test/mjsunit/math-exp-precision.js +64 -0
- data/vendor/v8/test/mjsunit/math-floor-negative.js +59 -0
- data/vendor/v8/test/mjsunit/math-floor-of-div-minus-zero.js +41 -0
- data/vendor/v8/test/mjsunit/math-floor-of-div-nosudiv.js +288 -0
- data/vendor/v8/test/mjsunit/math-floor-of-div.js +81 -9
- data/vendor/v8/test/mjsunit/{math-floor.js → math-floor-part1.js} +1 -72
- data/vendor/v8/test/mjsunit/math-floor-part2.js +76 -0
- data/vendor/v8/test/mjsunit/math-floor-part3.js +78 -0
- data/vendor/v8/test/mjsunit/math-floor-part4.js +76 -0
- data/vendor/v8/test/mjsunit/mirror-object.js +43 -9
- data/vendor/v8/test/mjsunit/mjsunit.js +1 -1
- data/vendor/v8/test/mjsunit/mjsunit.status +52 -27
- data/vendor/v8/test/mjsunit/mul-exhaustive-part1.js +491 -0
- data/vendor/v8/test/mjsunit/mul-exhaustive-part10.js +470 -0
- data/vendor/v8/test/mjsunit/mul-exhaustive-part2.js +525 -0
- data/vendor/v8/test/mjsunit/mul-exhaustive-part3.js +532 -0
- data/vendor/v8/test/mjsunit/mul-exhaustive-part4.js +509 -0
- data/vendor/v8/test/mjsunit/mul-exhaustive-part5.js +505 -0
- data/vendor/v8/test/mjsunit/mul-exhaustive-part6.js +554 -0
- data/vendor/v8/test/mjsunit/mul-exhaustive-part7.js +497 -0
- data/vendor/v8/test/mjsunit/mul-exhaustive-part8.js +526 -0
- data/vendor/v8/test/mjsunit/mul-exhaustive-part9.js +533 -0
- data/vendor/v8/test/mjsunit/new-function.js +34 -0
- data/vendor/v8/test/mjsunit/numops-fuzz-part1.js +1172 -0
- data/vendor/v8/test/mjsunit/numops-fuzz-part2.js +1178 -0
- data/vendor/v8/test/mjsunit/numops-fuzz-part3.js +1178 -0
- data/vendor/v8/test/mjsunit/numops-fuzz-part4.js +1177 -0
- data/vendor/v8/test/mjsunit/object-define-property.js +107 -2
- data/vendor/v8/test/mjsunit/override-read-only-property.js +6 -4
- data/vendor/v8/test/mjsunit/packed-elements.js +2 -2
- data/vendor/v8/test/mjsunit/parse-int-float.js +4 -4
- data/vendor/v8/test/mjsunit/pixel-array-rounding.js +1 -1
- data/vendor/v8/test/mjsunit/readonly.js +228 -0
- data/vendor/v8/test/mjsunit/regexp-capture-3.js +16 -18
- data/vendor/v8/test/mjsunit/regexp-capture.js +2 -0
- data/vendor/v8/test/mjsunit/regexp-global.js +122 -0
- data/vendor/v8/test/mjsunit/regexp-results-cache.js +78 -0
- data/vendor/v8/test/mjsunit/regress/regress-1117.js +12 -3
- data/vendor/v8/test/mjsunit/regress/regress-1118.js +1 -1
- data/vendor/v8/test/mjsunit/regress/regress-115100.js +36 -0
- data/vendor/v8/test/mjsunit/regress/regress-1199637.js +1 -3
- data/vendor/v8/test/mjsunit/regress/regress-121407.js +1 -1
- data/vendor/v8/test/mjsunit/regress/regress-131923.js +30 -0
- data/vendor/v8/test/mjsunit/regress/regress-131994.js +70 -0
- data/vendor/v8/test/mjsunit/regress/regress-133211.js +35 -0
- data/vendor/v8/test/mjsunit/regress/regress-133211b.js +39 -0
- data/vendor/v8/test/mjsunit/regress/regress-136048.js +34 -0
- data/vendor/v8/test/mjsunit/regress/regress-137768.js +73 -0
- data/vendor/v8/test/mjsunit/regress/regress-143967.js +34 -0
- data/vendor/v8/test/mjsunit/regress/regress-145201.js +107 -0
- data/vendor/v8/test/mjsunit/regress/regress-147497.js +45 -0
- data/vendor/v8/test/mjsunit/regress/regress-148378.js +38 -0
- data/vendor/v8/test/mjsunit/regress/regress-1563.js +1 -1
- data/vendor/v8/test/mjsunit/regress/regress-1591.js +48 -0
- data/vendor/v8/test/mjsunit/regress/regress-164442.js +45 -0
- data/vendor/v8/test/mjsunit/regress/regress-165637.js +61 -0
- data/vendor/v8/test/mjsunit/regress/regress-166379.js +39 -0
- data/vendor/v8/test/mjsunit/regress/regress-166553.js +33 -0
- data/vendor/v8/test/mjsunit/regress/regress-1692.js +1 -1
- data/vendor/v8/test/mjsunit/regress/regress-171641.js +40 -0
- data/vendor/v8/test/mjsunit/regress/regress-1980.js +1 -1
- data/vendor/v8/test/mjsunit/regress/regress-2073.js +99 -0
- data/vendor/v8/test/mjsunit/regress/regress-2119.js +36 -0
- data/vendor/v8/test/mjsunit/regress/regress-2156.js +39 -0
- data/vendor/v8/test/mjsunit/regress/regress-2163.js +70 -0
- data/vendor/v8/test/mjsunit/regress/regress-2170.js +58 -0
- data/vendor/v8/test/mjsunit/regress/regress-2172.js +35 -0
- data/vendor/v8/test/mjsunit/regress/regress-2185-2.js +145 -0
- data/vendor/v8/test/mjsunit/regress/regress-2185.js +38 -0
- data/vendor/v8/test/mjsunit/regress/regress-2186.js +49 -0
- data/vendor/v8/test/mjsunit/regress/regress-2193.js +58 -0
- data/vendor/v8/test/mjsunit/regress/regress-2219.js +32 -0
- data/vendor/v8/test/mjsunit/regress/regress-2225.js +65 -0
- data/vendor/v8/test/mjsunit/regress/regress-2226.js +36 -0
- data/vendor/v8/test/mjsunit/regress/regress-2234.js +41 -0
- data/vendor/v8/test/mjsunit/regress/regress-2243.js +31 -0
- data/vendor/v8/test/mjsunit/regress/regress-2249.js +33 -0
- data/vendor/v8/test/mjsunit/regress/regress-2250.js +68 -0
- data/vendor/v8/test/mjsunit/regress/regress-2261.js +113 -0
- data/vendor/v8/test/mjsunit/regress/regress-2263.js +30 -0
- data/vendor/v8/test/mjsunit/regress/regress-2284.js +32 -0
- data/vendor/v8/test/mjsunit/regress/regress-2285.js +32 -0
- data/vendor/v8/test/mjsunit/regress/regress-2286.js +32 -0
- data/vendor/v8/test/mjsunit/regress/regress-2289.js +34 -0
- data/vendor/v8/test/mjsunit/regress/regress-2291.js +36 -0
- data/vendor/v8/test/mjsunit/regress/regress-2294.js +70 -0
- data/vendor/v8/test/mjsunit/regress/regress-2296.js +40 -0
- data/vendor/v8/test/mjsunit/regress/regress-2315.js +40 -0
- data/vendor/v8/test/mjsunit/regress/regress-2318.js +66 -0
- data/vendor/v8/test/mjsunit/regress/regress-2322.js +36 -0
- data/vendor/v8/test/mjsunit/regress/regress-2326.js +54 -0
- data/vendor/v8/test/mjsunit/regress/regress-2336.js +53 -0
- data/vendor/v8/test/mjsunit/regress/regress-2339.js +59 -0
- data/vendor/v8/test/mjsunit/regress/regress-2346.js +123 -0
- data/vendor/v8/test/mjsunit/regress/regress-2373.js +29 -0
- data/vendor/v8/test/mjsunit/regress/regress-2374.js +33 -0
- data/vendor/v8/test/mjsunit/regress/regress-2398.js +41 -0
- data/vendor/v8/test/mjsunit/regress/regress-2410.js +36 -0
- data/vendor/v8/test/mjsunit/regress/regress-2416.js +75 -0
- data/vendor/v8/test/mjsunit/regress/regress-2419.js +37 -0
- data/vendor/v8/test/mjsunit/regress/regress-2433.js +36 -0
- data/vendor/v8/test/mjsunit/regress/regress-2437.js +156 -0
- data/vendor/v8/test/mjsunit/regress/regress-2438.js +52 -0
- data/vendor/v8/test/mjsunit/regress/regress-2443.js +129 -0
- data/vendor/v8/test/mjsunit/regress/regress-2444.js +120 -0
- data/vendor/v8/test/mjsunit/regress/regress-2489.js +50 -0
- data/vendor/v8/test/mjsunit/regress/regress-2499.js +40 -0
- data/vendor/v8/test/mjsunit/regress/regress-334.js +1 -1
- data/vendor/v8/test/mjsunit/regress/regress-492.js +39 -1
- data/vendor/v8/test/mjsunit/regress/regress-builtin-array-op.js +38 -0
- data/vendor/v8/test/mjsunit/regress/regress-cnlt-elements.js +43 -0
- data/vendor/v8/test/mjsunit/regress/regress-cnlt-enum-indices.js +45 -0
- data/vendor/v8/test/mjsunit/regress/regress-cntl-descriptors-enum.js +46 -0
- data/vendor/v8/test/mjsunit/regress/regress-convert-enum.js +60 -0
- data/vendor/v8/test/mjsunit/regress/regress-convert-enum2.js +46 -0
- data/vendor/v8/test/mjsunit/regress/regress-convert-transition.js +40 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-119926.js +3 -1
- data/vendor/v8/test/mjsunit/regress/regress-crbug-125148.js +90 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-134055.js +63 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-134609.js +59 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-135008.js +45 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-135066.js +55 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-137689.js +47 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-138887.js +48 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-140083.js +44 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-142087.js +38 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-142218.js +44 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-145961.js +39 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-146910.js +33 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-147475.js +48 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-148376.js +35 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-150545.js +53 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-150729.js +39 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-157019.js +54 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-157520.js +38 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-158185.js +39 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-160010.js +35 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-162085.js +71 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-168545.js +34 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-170856.js +33 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-172345.js +34 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-173974.js +36 -0
- data/vendor/v8/test/mjsunit/regress/regress-crbug-18639.js +9 -5
- data/vendor/v8/test/mjsunit/regress/regress-debug-code-recompilation.js +2 -1
- data/vendor/v8/test/mjsunit/regress/regress-deep-proto.js +45 -0
- data/vendor/v8/test/mjsunit/regress/regress-delete-empty-double.js +40 -0
- data/vendor/v8/test/mjsunit/regress/regress-iteration-order.js +42 -0
- data/vendor/v8/test/mjsunit/regress/regress-json-stringify-gc.js +41 -0
- data/vendor/v8/test/mjsunit/regress/regress-latin-1.js +78 -0
- data/vendor/v8/test/mjsunit/regress/regress-load-elements.js +49 -0
- data/vendor/v8/test/mjsunit/regress/regress-observe-empty-double-array.js +38 -0
- data/vendor/v8/test/mjsunit/regress/regress-undefined-store-keyed-fast-element.js +37 -0
- data/vendor/v8/test/mjsunit/shift-for-integer-div.js +59 -0
- data/vendor/v8/test/mjsunit/stack-traces-gc.js +119 -0
- data/vendor/v8/test/mjsunit/stack-traces-overflow.js +122 -0
- data/vendor/v8/test/mjsunit/stack-traces.js +39 -1
- data/vendor/v8/test/mjsunit/str-to-num.js +7 -2
- data/vendor/v8/test/mjsunit/strict-mode.js +36 -11
- data/vendor/v8/test/mjsunit/string-charcodeat.js +3 -0
- data/vendor/v8/test/mjsunit/string-natives.js +72 -0
- data/vendor/v8/test/mjsunit/string-split.js +17 -0
- data/vendor/v8/test/mjsunit/testcfg.py +76 -6
- data/vendor/v8/test/mjsunit/tools/tickprocessor.js +4 -1
- data/vendor/v8/test/mjsunit/try-finally-continue.js +72 -0
- data/vendor/v8/test/mjsunit/typed-array-slice.js +61 -0
- data/vendor/v8/test/mjsunit/unbox-double-arrays.js +2 -0
- data/vendor/v8/test/mjsunit/uri.js +12 -0
- data/vendor/v8/test/mjsunit/with-readonly.js +4 -2
- data/vendor/v8/test/mozilla/mozilla.status +19 -113
- data/vendor/v8/test/mozilla/testcfg.py +122 -3
- data/vendor/v8/test/preparser/preparser.status +5 -0
- data/vendor/v8/test/preparser/strict-identifiers.pyt +1 -1
- data/vendor/v8/test/preparser/testcfg.py +101 -5
- data/vendor/v8/test/sputnik/sputnik.status +1 -1
- data/vendor/v8/test/sputnik/testcfg.py +5 -0
- data/vendor/v8/test/test262/README +2 -2
- data/vendor/v8/test/test262/test262.status +13 -36
- data/vendor/v8/test/test262/testcfg.py +102 -8
- data/vendor/v8/tools/android-build.sh +0 -0
- data/vendor/v8/tools/android-ll-prof.sh +69 -0
- data/vendor/v8/tools/android-run.py +109 -0
- data/vendor/v8/tools/android-sync.sh +105 -0
- data/vendor/v8/tools/bash-completion.sh +0 -0
- data/vendor/v8/tools/check-static-initializers.sh +0 -0
- data/vendor/v8/tools/common-includes.sh +15 -22
- data/vendor/v8/tools/disasm.py +4 -4
- data/vendor/v8/tools/fuzz-harness.sh +0 -0
- data/vendor/v8/tools/gen-postmortem-metadata.py +6 -8
- data/vendor/v8/tools/grokdump.py +404 -129
- data/vendor/v8/tools/gyp/v8.gyp +105 -43
- data/vendor/v8/tools/linux-tick-processor +5 -5
- data/vendor/v8/tools/ll_prof.py +75 -15
- data/vendor/v8/tools/merge-to-branch.sh +2 -2
- data/vendor/v8/tools/plot-timer-events +70 -0
- data/vendor/v8/tools/plot-timer-events.js +510 -0
- data/vendor/v8/tools/presubmit.py +1 -0
- data/vendor/v8/tools/push-to-trunk.sh +14 -4
- data/vendor/v8/tools/run-llprof.sh +69 -0
- data/vendor/v8/tools/run-tests.py +372 -0
- data/vendor/v8/tools/run-valgrind.py +1 -1
- data/vendor/v8/tools/status-file-converter.py +39 -0
- data/vendor/v8/tools/test-server.py +224 -0
- data/vendor/v8/tools/test-wrapper-gypbuild.py +13 -16
- data/vendor/v8/tools/test.py +10 -19
- data/vendor/v8/tools/testrunner/README +174 -0
- data/vendor/v8/tools/testrunner/__init__.py +26 -0
- data/vendor/v8/tools/testrunner/local/__init__.py +26 -0
- data/vendor/v8/tools/testrunner/local/commands.py +153 -0
- data/vendor/v8/tools/testrunner/local/execution.py +182 -0
- data/vendor/v8/tools/testrunner/local/old_statusfile.py +460 -0
- data/vendor/v8/tools/testrunner/local/progress.py +238 -0
- data/vendor/v8/tools/testrunner/local/statusfile.py +145 -0
- data/vendor/v8/tools/testrunner/local/testsuite.py +187 -0
- data/vendor/v8/tools/testrunner/local/utils.py +108 -0
- data/vendor/v8/tools/testrunner/local/verbose.py +99 -0
- data/vendor/v8/tools/testrunner/network/__init__.py +26 -0
- data/vendor/v8/tools/testrunner/network/distro.py +90 -0
- data/vendor/v8/tools/testrunner/network/endpoint.py +124 -0
- data/vendor/v8/tools/testrunner/network/network_execution.py +253 -0
- data/vendor/v8/tools/testrunner/network/perfdata.py +120 -0
- data/vendor/v8/tools/testrunner/objects/__init__.py +26 -0
- data/vendor/v8/tools/testrunner/objects/context.py +50 -0
- data/vendor/v8/tools/testrunner/objects/output.py +60 -0
- data/vendor/v8/tools/testrunner/objects/peer.py +80 -0
- data/vendor/v8/tools/testrunner/objects/testcase.py +83 -0
- data/vendor/v8/tools/testrunner/objects/workpacket.py +90 -0
- data/vendor/v8/tools/testrunner/server/__init__.py +26 -0
- data/vendor/v8/tools/testrunner/server/compression.py +111 -0
- data/vendor/v8/tools/testrunner/server/constants.py +51 -0
- data/vendor/v8/tools/testrunner/server/daemon.py +147 -0
- data/vendor/v8/tools/testrunner/server/local_handler.py +119 -0
- data/vendor/v8/tools/testrunner/server/main.py +245 -0
- data/vendor/v8/tools/testrunner/server/presence_handler.py +120 -0
- data/vendor/v8/tools/testrunner/server/signatures.py +63 -0
- data/vendor/v8/tools/testrunner/server/status_handler.py +112 -0
- data/vendor/v8/tools/testrunner/server/work_handler.py +150 -0
- data/vendor/v8/tools/tick-processor.html +168 -0
- data/vendor/v8/tools/tickprocessor-driver.js +5 -3
- data/vendor/v8/tools/tickprocessor.js +58 -15
- metadata +534 -30
- data/patches/add-freebsd9-and-freebsd10-to-gyp-GetFlavor.patch +0 -11
- data/patches/do-not-imply-vfp3-and-armv7.patch +0 -44
- data/patches/fPIC-on-x64.patch +0 -14
- data/vendor/v8/src/liveobjectlist-inl.h +0 -126
- data/vendor/v8/src/liveobjectlist.cc +0 -2631
- data/vendor/v8/src/liveobjectlist.h +0 -319
- data/vendor/v8/test/mjsunit/mul-exhaustive.js +0 -4629
- data/vendor/v8/test/mjsunit/numops-fuzz.js +0 -4609
- data/vendor/v8/test/mjsunit/regress/regress-1969.js +0 -5045
data/vendor/v8/src/array.js
CHANGED
@@ -62,7 +62,7 @@ function GetSortedArrayKeys(array, intervals) {
|
|
62
62
|
}
|
63
63
|
}
|
64
64
|
}
|
65
|
-
keys
|
65
|
+
%_CallFunction(keys, function(a, b) { return a - b; }, ArraySort);
|
66
66
|
return keys;
|
67
67
|
}
|
68
68
|
|
@@ -413,6 +413,7 @@ function ArrayJoin(separator) {
|
|
413
413
|
["Array.prototype.join"]);
|
414
414
|
}
|
415
415
|
|
416
|
+
var length = TO_UINT32(this.length);
|
416
417
|
if (IS_UNDEFINED(separator)) {
|
417
418
|
separator = ',';
|
418
419
|
} else if (!IS_STRING(separator)) {
|
@@ -422,7 +423,7 @@ function ArrayJoin(separator) {
|
|
422
423
|
var result = %_FastAsciiArrayJoin(this, separator);
|
423
424
|
if (!IS_UNDEFINED(result)) return result;
|
424
425
|
|
425
|
-
return Join(this,
|
426
|
+
return Join(this, length, separator, ConvertToString);
|
426
427
|
}
|
427
428
|
|
428
429
|
|
@@ -441,8 +442,8 @@ function ArrayPop() {
|
|
441
442
|
}
|
442
443
|
n--;
|
443
444
|
var value = this[n];
|
444
|
-
this.length = n;
|
445
445
|
delete this[n];
|
446
|
+
this.length = n;
|
446
447
|
return value;
|
447
448
|
}
|
448
449
|
|
@@ -581,7 +582,7 @@ function ArrayShift() {
|
|
581
582
|
|
582
583
|
var first = this[0];
|
583
584
|
|
584
|
-
if (IS_ARRAY(this)) {
|
585
|
+
if (IS_ARRAY(this) && !%IsObserved(this)) {
|
585
586
|
SmartMove(this, 0, 1, len, 0);
|
586
587
|
} else {
|
587
588
|
SimpleMove(this, 0, 1, len, 0);
|
@@ -602,7 +603,7 @@ function ArrayUnshift(arg1) { // length == 1
|
|
602
603
|
var len = TO_UINT32(this.length);
|
603
604
|
var num_arguments = %_ArgumentsLength();
|
604
605
|
|
605
|
-
if (IS_ARRAY(this)) {
|
606
|
+
if (IS_ARRAY(this) && !%IsObserved(this)) {
|
606
607
|
SmartMove(this, 0, 0, len, num_arguments);
|
607
608
|
} else {
|
608
609
|
SimpleMove(this, 0, 0, len, num_arguments);
|
@@ -649,6 +650,7 @@ function ArraySlice(start, end) {
|
|
649
650
|
if (end_i < start_i) return result;
|
650
651
|
|
651
652
|
if (IS_ARRAY(this) &&
|
653
|
+
!%IsObserved(this) &&
|
652
654
|
(end_i > 1000) &&
|
653
655
|
(%EstimateNumberOfElements(this) < end_i)) {
|
654
656
|
SmartSlice(this, start_i, end_i - start_i, len, result);
|
@@ -705,7 +707,9 @@ function ArraySplice(start, delete_count) {
|
|
705
707
|
|
706
708
|
var use_simple_splice = true;
|
707
709
|
|
708
|
-
if (IS_ARRAY(this) &&
|
710
|
+
if (IS_ARRAY(this) &&
|
711
|
+
!%IsObserved(this) &&
|
712
|
+
num_additional_args !== del_count) {
|
709
713
|
// If we are only deleting/moving a few things near the end of the
|
710
714
|
// array then the simple version is going to be faster, because it
|
711
715
|
// doesn't touch most of the array.
|
@@ -777,78 +781,103 @@ function ArraySort(comparefn) {
|
|
777
781
|
}
|
778
782
|
};
|
779
783
|
|
780
|
-
var
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
784
|
+
var GetThirdIndex = function(a, from, to) {
|
785
|
+
var t_array = [];
|
786
|
+
// Use both 'from' and 'to' to determine the pivot candidates.
|
787
|
+
var increment = 200 + ((to - from) & 15);
|
788
|
+
for (var i = from + 1; i < to - 1; i += increment) {
|
789
|
+
t_array.push([i, a[i]]);
|
785
790
|
}
|
786
|
-
|
787
|
-
|
788
|
-
var
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
if (c02 >= 0) {
|
800
|
-
// v2 <= v0 <= v1.
|
801
|
-
var tmp = v0;
|
802
|
-
v0 = v2;
|
803
|
-
v2 = v1;
|
804
|
-
v1 = tmp;
|
805
|
-
} else {
|
806
|
-
// v0 <= v1 && v0 < v2
|
807
|
-
var c12 = %_CallFunction(receiver, v1, v2, comparefn);
|
808
|
-
if (c12 > 0) {
|
809
|
-
// v0 <= v2 < v1
|
810
|
-
var tmp = v1;
|
811
|
-
v1 = v2;
|
812
|
-
v2 = tmp;
|
791
|
+
t_array.sort(function(a, b) {
|
792
|
+
return %_CallFunction(receiver, a[1], b[1], comparefn) } );
|
793
|
+
var third_index = t_array[t_array.length >> 1][0];
|
794
|
+
return third_index;
|
795
|
+
}
|
796
|
+
|
797
|
+
var QuickSort = function QuickSort(a, from, to) {
|
798
|
+
var third_index = 0;
|
799
|
+
while (true) {
|
800
|
+
// Insertion sort is faster for short arrays.
|
801
|
+
if (to - from <= 10) {
|
802
|
+
InsertionSort(a, from, to);
|
803
|
+
return;
|
813
804
|
}
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
805
|
+
if (to - from > 1000) {
|
806
|
+
third_index = GetThirdIndex(a, from, to);
|
807
|
+
} else {
|
808
|
+
third_index = from + ((to - from) >> 1);
|
809
|
+
}
|
810
|
+
// Find a pivot as the median of first, last and middle element.
|
811
|
+
var v0 = a[from];
|
812
|
+
var v1 = a[to - 1];
|
813
|
+
var v2 = a[third_index];
|
814
|
+
var c01 = %_CallFunction(receiver, v0, v1, comparefn);
|
815
|
+
if (c01 > 0) {
|
816
|
+
// v1 < v0, so swap them.
|
817
|
+
var tmp = v0;
|
818
|
+
v0 = v1;
|
819
|
+
v1 = tmp;
|
820
|
+
} // v0 <= v1.
|
821
|
+
var c02 = %_CallFunction(receiver, v0, v2, comparefn);
|
822
|
+
if (c02 >= 0) {
|
823
|
+
// v2 <= v0 <= v1.
|
824
|
+
var tmp = v0;
|
825
|
+
v0 = v2;
|
826
|
+
v2 = v1;
|
827
|
+
v1 = tmp;
|
828
|
+
} else {
|
829
|
+
// v0 <= v1 && v0 < v2
|
830
|
+
var c12 = %_CallFunction(receiver, v1, v2, comparefn);
|
831
|
+
if (c12 > 0) {
|
832
|
+
// v0 <= v2 < v1
|
833
|
+
var tmp = v1;
|
834
|
+
v1 = v2;
|
835
|
+
v2 = tmp;
|
836
|
+
}
|
837
|
+
}
|
838
|
+
// v0 <= v1 <= v2
|
839
|
+
a[from] = v0;
|
840
|
+
a[to - 1] = v2;
|
841
|
+
var pivot = v1;
|
842
|
+
var low_end = from + 1; // Upper bound of elements lower than pivot.
|
843
|
+
var high_start = to - 1; // Lower bound of elements greater than pivot.
|
844
|
+
a[third_index] = a[low_end];
|
845
|
+
a[low_end] = pivot;
|
846
|
+
|
847
|
+
// From low_end to i are elements equal to pivot.
|
848
|
+
// From i to high_start are elements that haven't been compared yet.
|
849
|
+
partition: for (var i = low_end + 1; i < high_start; i++) {
|
850
|
+
var element = a[i];
|
851
|
+
var order = %_CallFunction(receiver, element, pivot, comparefn);
|
842
852
|
if (order < 0) {
|
843
|
-
element = a[i];
|
844
853
|
a[i] = a[low_end];
|
845
854
|
a[low_end] = element;
|
846
855
|
low_end++;
|
856
|
+
} else if (order > 0) {
|
857
|
+
do {
|
858
|
+
high_start--;
|
859
|
+
if (high_start == i) break partition;
|
860
|
+
var top_elem = a[high_start];
|
861
|
+
order = %_CallFunction(receiver, top_elem, pivot, comparefn);
|
862
|
+
} while (order > 0);
|
863
|
+
a[i] = a[high_start];
|
864
|
+
a[high_start] = element;
|
865
|
+
if (order < 0) {
|
866
|
+
element = a[i];
|
867
|
+
a[i] = a[low_end];
|
868
|
+
a[low_end] = element;
|
869
|
+
low_end++;
|
870
|
+
}
|
847
871
|
}
|
848
872
|
}
|
873
|
+
if (to - high_start < low_end - from) {
|
874
|
+
QuickSort(a, high_start, to);
|
875
|
+
to = low_end;
|
876
|
+
} else {
|
877
|
+
QuickSort(a, from, low_end);
|
878
|
+
from = high_start;
|
879
|
+
}
|
849
880
|
}
|
850
|
-
QuickSort(a, from, low_end);
|
851
|
-
QuickSort(a, high_start, to);
|
852
881
|
};
|
853
882
|
|
854
883
|
// Copy elements in the range 0..length from obj's prototype chain
|
@@ -1524,9 +1553,11 @@ function SetUpArray() {
|
|
1524
1553
|
// exposed to user code.
|
1525
1554
|
// Adding only the functions that are actually used.
|
1526
1555
|
SetUpLockedPrototype(InternalArray, $Array(), $Array(
|
1556
|
+
"indexOf", getFunction("indexOf", ArrayIndexOf),
|
1527
1557
|
"join", getFunction("join", ArrayJoin),
|
1528
1558
|
"pop", getFunction("pop", ArrayPop),
|
1529
|
-
"push", getFunction("push", ArrayPush)
|
1559
|
+
"push", getFunction("push", ArrayPush),
|
1560
|
+
"splice", getFunction("splice", ArraySplice)
|
1530
1561
|
));
|
1531
1562
|
}
|
1532
1563
|
|
data/vendor/v8/src/assembler.cc
CHANGED
@@ -103,15 +103,78 @@ static DoubleConstant double_constants;
|
|
103
103
|
|
104
104
|
const char* const RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING";
|
105
105
|
|
106
|
+
static bool math_exp_data_initialized = false;
|
107
|
+
static Mutex* math_exp_data_mutex = NULL;
|
108
|
+
static double* math_exp_constants_array = NULL;
|
109
|
+
static double* math_exp_log_table_array = NULL;
|
110
|
+
|
106
111
|
// -----------------------------------------------------------------------------
|
107
112
|
// Implementation of AssemblerBase
|
108
113
|
|
109
|
-
AssemblerBase::AssemblerBase(Isolate* isolate)
|
114
|
+
AssemblerBase::AssemblerBase(Isolate* isolate, void* buffer, int buffer_size)
|
110
115
|
: isolate_(isolate),
|
111
|
-
jit_cookie_(0)
|
116
|
+
jit_cookie_(0),
|
117
|
+
emit_debug_code_(FLAG_debug_code),
|
118
|
+
predictable_code_size_(false) {
|
112
119
|
if (FLAG_mask_constants_with_cookie && isolate != NULL) {
|
113
120
|
jit_cookie_ = V8::RandomPrivate(isolate);
|
114
121
|
}
|
122
|
+
|
123
|
+
if (buffer == NULL) {
|
124
|
+
// Do our own buffer management.
|
125
|
+
if (buffer_size <= kMinimalBufferSize) {
|
126
|
+
buffer_size = kMinimalBufferSize;
|
127
|
+
if (isolate->assembler_spare_buffer() != NULL) {
|
128
|
+
buffer = isolate->assembler_spare_buffer();
|
129
|
+
isolate->set_assembler_spare_buffer(NULL);
|
130
|
+
}
|
131
|
+
}
|
132
|
+
if (buffer == NULL) buffer = NewArray<byte>(buffer_size);
|
133
|
+
own_buffer_ = true;
|
134
|
+
} else {
|
135
|
+
// Use externally provided buffer instead.
|
136
|
+
ASSERT(buffer_size > 0);
|
137
|
+
own_buffer_ = false;
|
138
|
+
}
|
139
|
+
buffer_ = static_cast<byte*>(buffer);
|
140
|
+
buffer_size_ = buffer_size;
|
141
|
+
|
142
|
+
pc_ = buffer_;
|
143
|
+
}
|
144
|
+
|
145
|
+
|
146
|
+
AssemblerBase::~AssemblerBase() {
|
147
|
+
if (own_buffer_) {
|
148
|
+
if (isolate() != NULL &&
|
149
|
+
isolate()->assembler_spare_buffer() == NULL &&
|
150
|
+
buffer_size_ == kMinimalBufferSize) {
|
151
|
+
isolate()->set_assembler_spare_buffer(buffer_);
|
152
|
+
} else {
|
153
|
+
DeleteArray(buffer_);
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|
157
|
+
|
158
|
+
|
159
|
+
// -----------------------------------------------------------------------------
|
160
|
+
// Implementation of PredictableCodeSizeScope
|
161
|
+
|
162
|
+
PredictableCodeSizeScope::PredictableCodeSizeScope(AssemblerBase* assembler,
|
163
|
+
int expected_size)
|
164
|
+
: assembler_(assembler),
|
165
|
+
expected_size_(expected_size),
|
166
|
+
start_offset_(assembler->pc_offset()),
|
167
|
+
old_value_(assembler->predictable_code_size()) {
|
168
|
+
assembler_->set_predictable_code_size(true);
|
169
|
+
}
|
170
|
+
|
171
|
+
|
172
|
+
PredictableCodeSizeScope::~PredictableCodeSizeScope() {
|
173
|
+
// TODO(svenpanne) Remove the 'if' when everything works.
|
174
|
+
if (expected_size_ >= 0) {
|
175
|
+
CHECK_EQ(expected_size_, assembler_->pc_offset() - start_offset_);
|
176
|
+
}
|
177
|
+
assembler_->set_predictable_code_size(old_value_);
|
115
178
|
}
|
116
179
|
|
117
180
|
|
@@ -141,7 +204,7 @@ int Label::pos() const {
|
|
141
204
|
// an iteration.
|
142
205
|
//
|
143
206
|
// The encoding relies on the fact that there are fewer than 14
|
144
|
-
// different non-
|
207
|
+
// different relocation modes using standard non-compact encoding.
|
145
208
|
//
|
146
209
|
// The first byte of a relocation record has a tag in its low 2 bits:
|
147
210
|
// Here are the record schemes, depending on the low tag and optional higher
|
@@ -173,7 +236,9 @@ int Label::pos() const {
|
|
173
236
|
// 00 [4 bit middle_tag] 11 followed by
|
174
237
|
// 00 [6 bit pc delta]
|
175
238
|
//
|
176
|
-
// 1101:
|
239
|
+
// 1101: constant pool. Used on ARM only for now.
|
240
|
+
// The format is: 11 1101 11
|
241
|
+
// signed int (size of the constant pool).
|
177
242
|
// 1110: long_data_record
|
178
243
|
// The format is: [2-bit data_type_tag] 1110 11
|
179
244
|
// signed intptr_t, lowest byte written first
|
@@ -194,7 +259,7 @@ int Label::pos() const {
|
|
194
259
|
// dropped, and last non-zero chunk tagged with 1.)
|
195
260
|
|
196
261
|
|
197
|
-
const int
|
262
|
+
const int kMaxStandardNonCompactModes = 14;
|
198
263
|
|
199
264
|
const int kTagBits = 2;
|
200
265
|
const int kTagMask = (1 << kTagBits) - 1;
|
@@ -228,6 +293,9 @@ const int kNonstatementPositionTag = 1;
|
|
228
293
|
const int kStatementPositionTag = 2;
|
229
294
|
const int kCommentTag = 3;
|
230
295
|
|
296
|
+
const int kConstPoolExtraTag = kPCJumpExtraTag - 2;
|
297
|
+
const int kConstPoolTag = 3;
|
298
|
+
|
231
299
|
|
232
300
|
uint32_t RelocInfoWriter::WriteVariableLengthPCJump(uint32_t pc_delta) {
|
233
301
|
// Return if the pc_delta can fit in kSmallPCDeltaBits bits.
|
@@ -285,6 +353,15 @@ void RelocInfoWriter::WriteExtraTaggedIntData(int data_delta, int top_tag) {
|
|
285
353
|
}
|
286
354
|
}
|
287
355
|
|
356
|
+
void RelocInfoWriter::WriteExtraTaggedConstPoolData(int data) {
|
357
|
+
WriteExtraTag(kConstPoolExtraTag, kConstPoolTag);
|
358
|
+
for (int i = 0; i < kIntSize; i++) {
|
359
|
+
*--pos_ = static_cast<byte>(data);
|
360
|
+
// Signed right shift is arithmetic shift. Tested in test-utils.cc.
|
361
|
+
data = data >> kBitsPerByte;
|
362
|
+
}
|
363
|
+
}
|
364
|
+
|
288
365
|
void RelocInfoWriter::WriteExtraTaggedData(intptr_t data_delta, int top_tag) {
|
289
366
|
WriteExtraTag(kDataJumpExtraTag, top_tag);
|
290
367
|
for (int i = 0; i < kIntptrSize; i++) {
|
@@ -299,9 +376,10 @@ void RelocInfoWriter::Write(const RelocInfo* rinfo) {
|
|
299
376
|
#ifdef DEBUG
|
300
377
|
byte* begin_pos = pos_;
|
301
378
|
#endif
|
379
|
+
ASSERT(rinfo->rmode() < RelocInfo::NUMBER_OF_MODES);
|
302
380
|
ASSERT(rinfo->pc() - last_pc_ >= 0);
|
303
|
-
ASSERT(RelocInfo::
|
304
|
-
|
381
|
+
ASSERT(RelocInfo::LAST_STANDARD_NONCOMPACT_ENUM - RelocInfo::LAST_COMPACT_ENUM
|
382
|
+
<= kMaxStandardNonCompactModes);
|
305
383
|
// Use unsigned delta-encoding for pc.
|
306
384
|
uint32_t pc_delta = static_cast<uint32_t>(rinfo->pc() - last_pc_);
|
307
385
|
RelocInfo::Mode rmode = rinfo->rmode();
|
@@ -347,6 +425,9 @@ void RelocInfoWriter::Write(const RelocInfo* rinfo) {
|
|
347
425
|
WriteExtraTaggedPC(pc_delta, kPCJumpExtraTag);
|
348
426
|
WriteExtraTaggedData(rinfo->data(), kCommentTag);
|
349
427
|
ASSERT(begin_pos - pos_ >= RelocInfo::kMinRelocCommentSize);
|
428
|
+
} else if (RelocInfo::IsConstPool(rmode)) {
|
429
|
+
WriteExtraTaggedPC(pc_delta, kPCJumpExtraTag);
|
430
|
+
WriteExtraTaggedConstPoolData(static_cast<int>(rinfo->data()));
|
350
431
|
} else {
|
351
432
|
ASSERT(rmode > RelocInfo::LAST_COMPACT_ENUM);
|
352
433
|
int saved_mode = rmode - RelocInfo::LAST_COMPACT_ENUM;
|
@@ -397,6 +478,15 @@ void RelocIterator::AdvanceReadId() {
|
|
397
478
|
}
|
398
479
|
|
399
480
|
|
481
|
+
void RelocIterator::AdvanceReadConstPoolData() {
|
482
|
+
int x = 0;
|
483
|
+
for (int i = 0; i < kIntSize; i++) {
|
484
|
+
x |= static_cast<int>(*--pos_) << i * kBitsPerByte;
|
485
|
+
}
|
486
|
+
rinfo_.data_ = x;
|
487
|
+
}
|
488
|
+
|
489
|
+
|
400
490
|
void RelocIterator::AdvanceReadPosition() {
|
401
491
|
int x = 0;
|
402
492
|
for (int i = 0; i < kIntSize; i++) {
|
@@ -500,8 +590,7 @@ void RelocIterator::next() {
|
|
500
590
|
ASSERT(tag == kDefaultTag);
|
501
591
|
int extra_tag = GetExtraTag();
|
502
592
|
if (extra_tag == kPCJumpExtraTag) {
|
503
|
-
|
504
|
-
if (top_tag == kVariableLengthPCJumpTopTag) {
|
593
|
+
if (GetTopTag() == kVariableLengthPCJumpTopTag) {
|
505
594
|
AdvanceReadVariableLengthPCJump();
|
506
595
|
} else {
|
507
596
|
AdvanceReadPC();
|
@@ -531,6 +620,13 @@ void RelocIterator::next() {
|
|
531
620
|
}
|
532
621
|
Advance(kIntptrSize);
|
533
622
|
}
|
623
|
+
} else if ((extra_tag == kConstPoolExtraTag) &&
|
624
|
+
(GetTopTag() == kConstPoolTag)) {
|
625
|
+
if (SetMode(RelocInfo::CONST_POOL)) {
|
626
|
+
AdvanceReadConstPoolData();
|
627
|
+
return;
|
628
|
+
}
|
629
|
+
Advance(kIntSize);
|
534
630
|
} else {
|
535
631
|
AdvanceReadPC();
|
536
632
|
int rmode = extra_tag + RelocInfo::LAST_COMPACT_ENUM;
|
@@ -538,6 +634,15 @@ void RelocIterator::next() {
|
|
538
634
|
}
|
539
635
|
}
|
540
636
|
}
|
637
|
+
if (code_age_sequence_ != NULL) {
|
638
|
+
byte* old_code_age_sequence = code_age_sequence_;
|
639
|
+
code_age_sequence_ = NULL;
|
640
|
+
if (SetMode(RelocInfo::CODE_AGE_SEQUENCE)) {
|
641
|
+
rinfo_.data_ = 0;
|
642
|
+
rinfo_.pc_ = old_code_age_sequence;
|
643
|
+
return;
|
644
|
+
}
|
645
|
+
}
|
541
646
|
done_ = true;
|
542
647
|
}
|
543
648
|
|
@@ -553,6 +658,12 @@ RelocIterator::RelocIterator(Code* code, int mode_mask) {
|
|
553
658
|
mode_mask_ = mode_mask;
|
554
659
|
last_id_ = 0;
|
555
660
|
last_position_ = 0;
|
661
|
+
byte* sequence = code->FindCodeAgeSequence();
|
662
|
+
if (sequence != NULL && !Code::IsYoungSequence(sequence)) {
|
663
|
+
code_age_sequence_ = sequence;
|
664
|
+
} else {
|
665
|
+
code_age_sequence_ = NULL;
|
666
|
+
}
|
556
667
|
if (mode_mask_ == 0) pos_ = end_;
|
557
668
|
next();
|
558
669
|
}
|
@@ -568,6 +679,7 @@ RelocIterator::RelocIterator(const CodeDesc& desc, int mode_mask) {
|
|
568
679
|
mode_mask_ = mode_mask;
|
569
680
|
last_id_ = 0;
|
570
681
|
last_position_ = 0;
|
682
|
+
code_age_sequence_ = NULL;
|
571
683
|
if (mode_mask_ == 0) pos_ = end_;
|
572
684
|
next();
|
573
685
|
}
|
@@ -580,8 +692,10 @@ RelocIterator::RelocIterator(const CodeDesc& desc, int mode_mask) {
|
|
580
692
|
#ifdef ENABLE_DISASSEMBLER
|
581
693
|
const char* RelocInfo::RelocModeName(RelocInfo::Mode rmode) {
|
582
694
|
switch (rmode) {
|
583
|
-
case RelocInfo::
|
584
|
-
return "no reloc";
|
695
|
+
case RelocInfo::NONE32:
|
696
|
+
return "no reloc 32";
|
697
|
+
case RelocInfo::NONE64:
|
698
|
+
return "no reloc 64";
|
585
699
|
case RelocInfo::EMBEDDED_OBJECT:
|
586
700
|
return "embedded object";
|
587
701
|
case RelocInfo::CONSTRUCT_CALL:
|
@@ -613,11 +727,15 @@ const char* RelocInfo::RelocModeName(RelocInfo::Mode rmode) {
|
|
613
727
|
return "external reference";
|
614
728
|
case RelocInfo::INTERNAL_REFERENCE:
|
615
729
|
return "internal reference";
|
730
|
+
case RelocInfo::CONST_POOL:
|
731
|
+
return "constant pool";
|
616
732
|
case RelocInfo::DEBUG_BREAK_SLOT:
|
617
733
|
#ifndef ENABLE_DEBUGGER_SUPPORT
|
618
734
|
UNREACHABLE();
|
619
735
|
#endif
|
620
736
|
return "debug break slot";
|
737
|
+
case RelocInfo::CODE_AGE_SEQUENCE:
|
738
|
+
return "code_age_sequence";
|
621
739
|
case RelocInfo::NUMBER_OF_MODES:
|
622
740
|
UNREACHABLE();
|
623
741
|
return "number_of_modes";
|
@@ -663,7 +781,7 @@ void RelocInfo::Print(FILE* out) {
|
|
663
781
|
#endif // ENABLE_DISASSEMBLER
|
664
782
|
|
665
783
|
|
666
|
-
#ifdef
|
784
|
+
#ifdef VERIFY_HEAP
|
667
785
|
void RelocInfo::Verify() {
|
668
786
|
switch (rmode_) {
|
669
787
|
case EMBEDDED_OBJECT:
|
@@ -683,12 +801,12 @@ void RelocInfo::Verify() {
|
|
683
801
|
case CODE_TARGET: {
|
684
802
|
// convert inline target address to code object
|
685
803
|
Address addr = target_address();
|
686
|
-
|
804
|
+
CHECK(addr != NULL);
|
687
805
|
// Check that we can find the right code object.
|
688
806
|
Code* code = Code::GetCodeFromTargetAddress(addr);
|
689
807
|
Object* found = HEAP->FindCodeObject(addr);
|
690
|
-
|
691
|
-
|
808
|
+
CHECK(found->IsCode());
|
809
|
+
CHECK(code->address() == HeapObject::cast(found)->address());
|
692
810
|
break;
|
693
811
|
}
|
694
812
|
case RUNTIME_ENTRY:
|
@@ -698,15 +816,20 @@ void RelocInfo::Verify() {
|
|
698
816
|
case STATEMENT_POSITION:
|
699
817
|
case EXTERNAL_REFERENCE:
|
700
818
|
case INTERNAL_REFERENCE:
|
819
|
+
case CONST_POOL:
|
701
820
|
case DEBUG_BREAK_SLOT:
|
702
|
-
case
|
821
|
+
case NONE32:
|
822
|
+
case NONE64:
|
703
823
|
break;
|
704
824
|
case NUMBER_OF_MODES:
|
705
825
|
UNREACHABLE();
|
706
826
|
break;
|
827
|
+
case CODE_AGE_SEQUENCE:
|
828
|
+
ASSERT(Code::IsYoungSequence(pc_) || code_age_stub()->IsCode());
|
829
|
+
break;
|
707
830
|
}
|
708
831
|
}
|
709
|
-
#endif //
|
832
|
+
#endif // VERIFY_HEAP
|
710
833
|
|
711
834
|
|
712
835
|
// -----------------------------------------------------------------------------
|
@@ -721,6 +844,70 @@ void ExternalReference::SetUp() {
|
|
721
844
|
double_constants.canonical_non_hole_nan = OS::nan_value();
|
722
845
|
double_constants.the_hole_nan = BitCast<double>(kHoleNanInt64);
|
723
846
|
double_constants.negative_infinity = -V8_INFINITY;
|
847
|
+
|
848
|
+
math_exp_data_mutex = OS::CreateMutex();
|
849
|
+
}
|
850
|
+
|
851
|
+
|
852
|
+
void ExternalReference::InitializeMathExpData() {
|
853
|
+
// Early return?
|
854
|
+
if (math_exp_data_initialized) return;
|
855
|
+
|
856
|
+
math_exp_data_mutex->Lock();
|
857
|
+
if (!math_exp_data_initialized) {
|
858
|
+
// If this is changed, generated code must be adapted too.
|
859
|
+
const int kTableSizeBits = 11;
|
860
|
+
const int kTableSize = 1 << kTableSizeBits;
|
861
|
+
const double kTableSizeDouble = static_cast<double>(kTableSize);
|
862
|
+
|
863
|
+
math_exp_constants_array = new double[9];
|
864
|
+
// Input values smaller than this always return 0.
|
865
|
+
math_exp_constants_array[0] = -708.39641853226408;
|
866
|
+
// Input values larger than this always return +Infinity.
|
867
|
+
math_exp_constants_array[1] = 709.78271289338397;
|
868
|
+
math_exp_constants_array[2] = V8_INFINITY;
|
869
|
+
// The rest is black magic. Do not attempt to understand it. It is
|
870
|
+
// loosely based on the "expd" function published at:
|
871
|
+
// http://herumi.blogspot.com/2011/08/fast-double-precision-exponential.html
|
872
|
+
const double constant3 = (1 << kTableSizeBits) / log(2.0);
|
873
|
+
math_exp_constants_array[3] = constant3;
|
874
|
+
math_exp_constants_array[4] =
|
875
|
+
static_cast<double>(static_cast<int64_t>(3) << 51);
|
876
|
+
math_exp_constants_array[5] = 1 / constant3;
|
877
|
+
math_exp_constants_array[6] = 3.0000000027955394;
|
878
|
+
math_exp_constants_array[7] = 0.16666666685227835;
|
879
|
+
math_exp_constants_array[8] = 1;
|
880
|
+
|
881
|
+
math_exp_log_table_array = new double[kTableSize];
|
882
|
+
for (int i = 0; i < kTableSize; i++) {
|
883
|
+
double value = pow(2, i / kTableSizeDouble);
|
884
|
+
|
885
|
+
uint64_t bits = BitCast<uint64_t, double>(value);
|
886
|
+
bits &= (static_cast<uint64_t>(1) << 52) - 1;
|
887
|
+
double mantissa = BitCast<double, uint64_t>(bits);
|
888
|
+
|
889
|
+
// <just testing>
|
890
|
+
uint64_t doublebits;
|
891
|
+
memcpy(&doublebits, &value, sizeof doublebits);
|
892
|
+
doublebits &= (static_cast<uint64_t>(1) << 52) - 1;
|
893
|
+
double mantissa2;
|
894
|
+
memcpy(&mantissa2, &doublebits, sizeof mantissa2);
|
895
|
+
CHECK_EQ(mantissa, mantissa2);
|
896
|
+
// </just testing>
|
897
|
+
|
898
|
+
math_exp_log_table_array[i] = mantissa;
|
899
|
+
}
|
900
|
+
|
901
|
+
math_exp_data_initialized = true;
|
902
|
+
}
|
903
|
+
math_exp_data_mutex->Unlock();
|
904
|
+
}
|
905
|
+
|
906
|
+
|
907
|
+
void ExternalReference::TearDownMathExpData() {
|
908
|
+
delete[] math_exp_constants_array;
|
909
|
+
delete[] math_exp_log_table_array;
|
910
|
+
delete math_exp_data_mutex;
|
724
911
|
}
|
725
912
|
|
726
913
|
|
@@ -839,6 +1026,13 @@ ExternalReference ExternalReference::get_date_field_function(
|
|
839
1026
|
}
|
840
1027
|
|
841
1028
|
|
1029
|
+
ExternalReference ExternalReference::get_make_code_young_function(
|
1030
|
+
Isolate* isolate) {
|
1031
|
+
return ExternalReference(Redirect(
|
1032
|
+
isolate, FUNCTION_ADDR(Code::MakeCodeAgeSequenceYoung)));
|
1033
|
+
}
|
1034
|
+
|
1035
|
+
|
842
1036
|
ExternalReference ExternalReference::date_cache_stamp(Isolate* isolate) {
|
843
1037
|
return ExternalReference(isolate->date_cache()->stamp_address());
|
844
1038
|
}
|
@@ -865,6 +1059,20 @@ ExternalReference ExternalReference::compute_output_frames_function(
|
|
865
1059
|
}
|
866
1060
|
|
867
1061
|
|
1062
|
+
ExternalReference ExternalReference::log_enter_external_function(
|
1063
|
+
Isolate* isolate) {
|
1064
|
+
return ExternalReference(
|
1065
|
+
Redirect(isolate, FUNCTION_ADDR(Logger::EnterExternal)));
|
1066
|
+
}
|
1067
|
+
|
1068
|
+
|
1069
|
+
ExternalReference ExternalReference::log_leave_external_function(
|
1070
|
+
Isolate* isolate) {
|
1071
|
+
return ExternalReference(
|
1072
|
+
Redirect(isolate, FUNCTION_ADDR(Logger::LeaveExternal)));
|
1073
|
+
}
|
1074
|
+
|
1075
|
+
|
868
1076
|
ExternalReference ExternalReference::keyed_lookup_cache_keys(Isolate* isolate) {
|
869
1077
|
return ExternalReference(isolate->keyed_lookup_cache()->keys_address());
|
870
1078
|
}
|
@@ -955,6 +1163,24 @@ ExternalReference ExternalReference::scheduled_exception_address(
|
|
955
1163
|
}
|
956
1164
|
|
957
1165
|
|
1166
|
+
ExternalReference ExternalReference::address_of_pending_message_obj(
|
1167
|
+
Isolate* isolate) {
|
1168
|
+
return ExternalReference(isolate->pending_message_obj_address());
|
1169
|
+
}
|
1170
|
+
|
1171
|
+
|
1172
|
+
ExternalReference ExternalReference::address_of_has_pending_message(
|
1173
|
+
Isolate* isolate) {
|
1174
|
+
return ExternalReference(isolate->has_pending_message_address());
|
1175
|
+
}
|
1176
|
+
|
1177
|
+
|
1178
|
+
ExternalReference ExternalReference::address_of_pending_message_script(
|
1179
|
+
Isolate* isolate) {
|
1180
|
+
return ExternalReference(isolate->pending_message_script_address());
|
1181
|
+
}
|
1182
|
+
|
1183
|
+
|
958
1184
|
ExternalReference ExternalReference::address_of_min_int() {
|
959
1185
|
return ExternalReference(reinterpret_cast<void*>(&double_constants.min_int));
|
960
1186
|
}
|
@@ -1039,7 +1265,7 @@ ExternalReference ExternalReference::re_word_character_map() {
|
|
1039
1265
|
ExternalReference ExternalReference::address_of_static_offsets_vector(
|
1040
1266
|
Isolate* isolate) {
|
1041
1267
|
return ExternalReference(
|
1042
|
-
|
1268
|
+
reinterpret_cast<Address>(isolate->jsregexp_static_offsets_vector()));
|
1043
1269
|
}
|
1044
1270
|
|
1045
1271
|
ExternalReference ExternalReference::address_of_regexp_stack_memory_address(
|
@@ -1133,6 +1359,30 @@ ExternalReference ExternalReference::math_log_double_function(
|
|
1133
1359
|
}
|
1134
1360
|
|
1135
1361
|
|
1362
|
+
ExternalReference ExternalReference::math_exp_constants(int constant_index) {
|
1363
|
+
ASSERT(math_exp_data_initialized);
|
1364
|
+
return ExternalReference(
|
1365
|
+
reinterpret_cast<void*>(math_exp_constants_array + constant_index));
|
1366
|
+
}
|
1367
|
+
|
1368
|
+
|
1369
|
+
ExternalReference ExternalReference::math_exp_log_table() {
|
1370
|
+
ASSERT(math_exp_data_initialized);
|
1371
|
+
return ExternalReference(reinterpret_cast<void*>(math_exp_log_table_array));
|
1372
|
+
}
|
1373
|
+
|
1374
|
+
|
1375
|
+
ExternalReference ExternalReference::page_flags(Page* page) {
|
1376
|
+
return ExternalReference(reinterpret_cast<Address>(page) +
|
1377
|
+
MemoryChunk::kFlagsOffset);
|
1378
|
+
}
|
1379
|
+
|
1380
|
+
|
1381
|
+
ExternalReference ExternalReference::ForDeoptEntry(Address entry) {
|
1382
|
+
return ExternalReference(entry);
|
1383
|
+
}
|
1384
|
+
|
1385
|
+
|
1136
1386
|
// Helper function to compute x^y, where y is known to be an
|
1137
1387
|
// integer. Uses binary decomposition to limit the number of
|
1138
1388
|
// multiplications; see the discussion in "Hacker's Delight" by Henry
|
@@ -1153,7 +1403,8 @@ double power_double_int(double x, int y) {
|
|
1153
1403
|
|
1154
1404
|
|
1155
1405
|
double power_double_double(double x, double y) {
|
1156
|
-
#
|
1406
|
+
#if defined(__MINGW64_VERSION_MAJOR) && \
|
1407
|
+
(!defined(__MINGW64_VERSION_RC) || __MINGW64_VERSION_RC < 1)
|
1157
1408
|
// MinGW64 has a custom implementation for pow. This handles certain
|
1158
1409
|
// special cases that are different.
|
1159
1410
|
if ((x == 0.0 || isinf(x)) && isfinite(y)) {
|