From cbaaceca2f95ebb370cfbeedacbfa65607f82dac Mon Sep 17 00:00:00 2001 From: William Hesse Date: Thu, 27 Jul 2017 10:36:13 +0200 Subject: [PATCH] Update checked-in d8 shell to version 6.2.0 BUG=https://github.com/dart-lang/sdk/issues/29794 R=rnystrom@google.com, sra@google.com Review-Url: https://codereview.chromium.org/2979403002 . --- .../_internal/js_runtime/lib/preambles/d8.js | 5 +++++ tests/corelib/corelib.status | 3 --- tests/lib/lib.status | 2 +- third_party/d8/README.google | 18 ++++++++++++------ third_party/d8/linux/arm32/d8.sha1 | 1 + .../d8/linux/arm32/natives_blob.bin.sha1 | 1 + .../d8/linux/arm32/snapshot_blob.bin.sha1 | 1 + third_party/d8/linux/d8-arm.sha1 | 1 - third_party/d8/linux/d8.sha1 | 2 +- third_party/d8/linux/ia32/d8.sha1 | 1 + .../d8/linux/ia32/natives_blob.bin.sha1 | 1 + .../d8/linux/ia32/snapshot_blob.bin.sha1 | 1 + third_party/d8/linux/natives_blob.bin.sha1 | 1 + third_party/d8/linux/snapshot_blob.bin.sha1 | 1 + third_party/d8/linux/x64/d8.sha1 | 1 + third_party/d8/linux/x64/natives_blob.bin.sha1 | 1 + .../d8/linux/x64/snapshot_blob.bin.sha1 | 1 + third_party/d8/macos/d8.sha1 | 2 +- third_party/d8/macos/natives_blob.bin.sha1 | 1 + third_party/d8/macos/snapshot_blob.bin.sha1 | 1 + third_party/d8/windows/d8.exe.sha1 | 2 +- third_party/d8/windows/natives_blob.bin.sha1 | 1 + third_party/d8/windows/snapshot_blob.bin.sha1 | 1 + 23 files changed, 36 insertions(+), 14 deletions(-) create mode 100644 third_party/d8/linux/arm32/d8.sha1 create mode 100644 third_party/d8/linux/arm32/natives_blob.bin.sha1 create mode 100644 third_party/d8/linux/arm32/snapshot_blob.bin.sha1 delete mode 100644 third_party/d8/linux/d8-arm.sha1 create mode 100644 third_party/d8/linux/ia32/d8.sha1 create mode 100644 third_party/d8/linux/ia32/natives_blob.bin.sha1 create mode 100644 third_party/d8/linux/ia32/snapshot_blob.bin.sha1 create mode 100644 third_party/d8/linux/natives_blob.bin.sha1 create mode 100644 third_party/d8/linux/snapshot_blob.bin.sha1 create mode 100644 third_party/d8/linux/x64/d8.sha1 create mode 100644 third_party/d8/linux/x64/natives_blob.bin.sha1 create mode 100644 third_party/d8/linux/x64/snapshot_blob.bin.sha1 create mode 100644 third_party/d8/macos/natives_blob.bin.sha1 create mode 100644 third_party/d8/macos/snapshot_blob.bin.sha1 create mode 100644 third_party/d8/windows/natives_blob.bin.sha1 create mode 100644 third_party/d8/windows/snapshot_blob.bin.sha1 diff --git a/sdk/lib/_internal/js_runtime/lib/preambles/d8.js b/sdk/lib/_internal/js_runtime/lib/preambles/d8.js index be4ad33908d..75c0c459003 100644 --- a/sdk/lib/_internal/js_runtime/lib/preambles/d8.js +++ b/sdk/lib/_internal/js_runtime/lib/preambles/d8.js @@ -334,4 +334,9 @@ if (typeof global != "undefined") self = global; // Node.js. array[i] = Math.random() * 256; } }}; + + // D8 Workers are not sufficiently compatible with browser Workers + // so pretend they don't exist. + // TODO(30217): Try to use D8's worker. + delete self.Worker; })(self); diff --git a/tests/corelib/corelib.status b/tests/corelib/corelib.status index dda5c8842b3..bdf73539911 100644 --- a/tests/corelib/corelib.status +++ b/tests/corelib/corelib.status @@ -73,9 +73,6 @@ duration2_test: StaticWarning, OK # Test generates error on purpose. # The regexp tests are not verified to work on non d8/vm platforms yet. regexp/*: Skip -[ $runtime == d8 ] -string_trimlr_test/02: RuntimeError # Uses Unicode 6.2.0 or earlier. - [ $runtime == vm || $runtime == dart_precompiled || $runtime == flutter] regexp/global_test: Skip # Timeout. Issue 21709 and 21708 regexp/pcre_test: Pass, Slow, Timeout # Issues 21593 and 22008 diff --git a/tests/lib/lib.status b/tests/lib/lib.status index da64355d19f..ccddbc62aa8 100644 --- a/tests/lib/lib.status +++ b/tests/lib/lib.status @@ -156,7 +156,7 @@ typed_data/setRange_4_test: Fail # Safari doesn't fully implement spec for Typed typed_data/setRange_2_test: RuntimeError # TODO(dart2js-team): Please triage this failure. typed_data/setRange_3_test: RuntimeError # TODO(dart2js-team): Please triage this failure. -[ $compiler == dart2js && ($runtime == d8 || $runtime == drt || $runtime == ie11) ] +[ $compiler == dart2js && ($runtime == drt || $runtime == ie11) ] math/math_test: RuntimeError math/math2_test: RuntimeError diff --git a/third_party/d8/README.google b/third_party/d8/README.google index f5e801cf5c2..0ae4f6f280f 100644 --- a/third_party/d8/README.google +++ b/third_party/d8/README.google @@ -1,14 +1,20 @@ Name: V8 command line javascript shell. Short Name: d8 -URL: https://chromium.googlesource.com/v8/v8/+/4.4.63.5 -Version: 4.4.63.5 -Revision: 288da5c7788134004a4b34a4ba0cb4814428cf7c -Date: September 2nd 2014 +URL: https://chromium.googlesource.com/v8/v8/+/efdf8385488430cb3fc15a37ca284c4e2ea1b97f +Version: 6.2.0 +Revision: 7bb6cd63ed02f850f00e5b456fcf817b754779b2 +Date: July 27 2017 License: BSD - Description: -This directory contains the d8 binaries for Windows, Mac and Linux. +This directory contains hashes of the d8 binaries for Windows, Mac and Linux. +The files are stored in cloud storage in the bucket dart-dependencies, +and are downloaded by the depot_tools tool download_from_cloud_storage.py. The files were fetched from the v8 builders on the DartFYI waterfall: http://build.chromium.org/p/client.dart.fyi/console + +When all users are updated to use linux binaries from the ia32 or other +subdirectories, remove them from d8/linux. +Build and add an ARMv8 64-bit build on linux. + The binaries are used for testing dart code compiled to javascript. diff --git a/third_party/d8/linux/arm32/d8.sha1 b/third_party/d8/linux/arm32/d8.sha1 new file mode 100644 index 00000000000..a9cecfb6d26 --- /dev/null +++ b/third_party/d8/linux/arm32/d8.sha1 @@ -0,0 +1 @@ +529e8ea23f246ef1be796641e37c25b45f0351b5 \ No newline at end of file diff --git a/third_party/d8/linux/arm32/natives_blob.bin.sha1 b/third_party/d8/linux/arm32/natives_blob.bin.sha1 new file mode 100644 index 00000000000..9607a1e4b43 --- /dev/null +++ b/third_party/d8/linux/arm32/natives_blob.bin.sha1 @@ -0,0 +1 @@ +7d4b56c775ebbb64d1ac59633cba8d8ebdd582b1 \ No newline at end of file diff --git a/third_party/d8/linux/arm32/snapshot_blob.bin.sha1 b/third_party/d8/linux/arm32/snapshot_blob.bin.sha1 new file mode 100644 index 00000000000..e3d4333b571 --- /dev/null +++ b/third_party/d8/linux/arm32/snapshot_blob.bin.sha1 @@ -0,0 +1 @@ +db5c7cca45f83be3eefbf723a8ebd78e5e6a461a \ No newline at end of file diff --git a/third_party/d8/linux/d8-arm.sha1 b/third_party/d8/linux/d8-arm.sha1 deleted file mode 100644 index 2dafdac49ad..00000000000 --- a/third_party/d8/linux/d8-arm.sha1 +++ /dev/null @@ -1 +0,0 @@ -560998fba34d0243b396ca5b63b86e4479cabb86 \ No newline at end of file diff --git a/third_party/d8/linux/d8.sha1 b/third_party/d8/linux/d8.sha1 index 5f0b753f834..c26f2d533f7 100644 --- a/third_party/d8/linux/d8.sha1 +++ b/third_party/d8/linux/d8.sha1 @@ -1 +1 @@ -3ce7314d80c9591de6681bbc68f9702406ad3ece \ No newline at end of file +82c3a2f3e2b5edbd3defc1db07463a872c703f75 \ No newline at end of file diff --git a/third_party/d8/linux/ia32/d8.sha1 b/third_party/d8/linux/ia32/d8.sha1 new file mode 100644 index 00000000000..c26f2d533f7 --- /dev/null +++ b/third_party/d8/linux/ia32/d8.sha1 @@ -0,0 +1 @@ +82c3a2f3e2b5edbd3defc1db07463a872c703f75 \ No newline at end of file diff --git a/third_party/d8/linux/ia32/natives_blob.bin.sha1 b/third_party/d8/linux/ia32/natives_blob.bin.sha1 new file mode 100644 index 00000000000..8193a8e6e3a --- /dev/null +++ b/third_party/d8/linux/ia32/natives_blob.bin.sha1 @@ -0,0 +1 @@ +a2d1d683cd1679c9844534e25fa857a1e86e6ece \ No newline at end of file diff --git a/third_party/d8/linux/ia32/snapshot_blob.bin.sha1 b/third_party/d8/linux/ia32/snapshot_blob.bin.sha1 new file mode 100644 index 00000000000..f0b4d43a1b2 --- /dev/null +++ b/third_party/d8/linux/ia32/snapshot_blob.bin.sha1 @@ -0,0 +1 @@ +7120a86f9ba5af6c327bf3403f3fee69074c68dc \ No newline at end of file diff --git a/third_party/d8/linux/natives_blob.bin.sha1 b/third_party/d8/linux/natives_blob.bin.sha1 new file mode 100644 index 00000000000..8193a8e6e3a --- /dev/null +++ b/third_party/d8/linux/natives_blob.bin.sha1 @@ -0,0 +1 @@ +a2d1d683cd1679c9844534e25fa857a1e86e6ece \ No newline at end of file diff --git a/third_party/d8/linux/snapshot_blob.bin.sha1 b/third_party/d8/linux/snapshot_blob.bin.sha1 new file mode 100644 index 00000000000..f0b4d43a1b2 --- /dev/null +++ b/third_party/d8/linux/snapshot_blob.bin.sha1 @@ -0,0 +1 @@ +7120a86f9ba5af6c327bf3403f3fee69074c68dc \ No newline at end of file diff --git a/third_party/d8/linux/x64/d8.sha1 b/third_party/d8/linux/x64/d8.sha1 new file mode 100644 index 00000000000..c97a344ab74 --- /dev/null +++ b/third_party/d8/linux/x64/d8.sha1 @@ -0,0 +1 @@ +8f4870586aed39475717a1f828fc5e4a52856a00 \ No newline at end of file diff --git a/third_party/d8/linux/x64/natives_blob.bin.sha1 b/third_party/d8/linux/x64/natives_blob.bin.sha1 new file mode 100644 index 00000000000..9607a1e4b43 --- /dev/null +++ b/third_party/d8/linux/x64/natives_blob.bin.sha1 @@ -0,0 +1 @@ +7d4b56c775ebbb64d1ac59633cba8d8ebdd582b1 \ No newline at end of file diff --git a/third_party/d8/linux/x64/snapshot_blob.bin.sha1 b/third_party/d8/linux/x64/snapshot_blob.bin.sha1 new file mode 100644 index 00000000000..da95faf6e18 --- /dev/null +++ b/third_party/d8/linux/x64/snapshot_blob.bin.sha1 @@ -0,0 +1 @@ +f89563597bc430d8359f06cc28381644317a51f1 \ No newline at end of file diff --git a/third_party/d8/macos/d8.sha1 b/third_party/d8/macos/d8.sha1 index 3a0f2136981..270a51da2f2 100644 --- a/third_party/d8/macos/d8.sha1 +++ b/third_party/d8/macos/d8.sha1 @@ -1 +1 @@ -9fd5757eac16ebfe1ec9b45778c5394dab0c36cc \ No newline at end of file +0d376770b10225b791d880a2d30aed7b98a41f0c \ No newline at end of file diff --git a/third_party/d8/macos/natives_blob.bin.sha1 b/third_party/d8/macos/natives_blob.bin.sha1 new file mode 100644 index 00000000000..9607a1e4b43 --- /dev/null +++ b/third_party/d8/macos/natives_blob.bin.sha1 @@ -0,0 +1 @@ +7d4b56c775ebbb64d1ac59633cba8d8ebdd582b1 \ No newline at end of file diff --git a/third_party/d8/macos/snapshot_blob.bin.sha1 b/third_party/d8/macos/snapshot_blob.bin.sha1 new file mode 100644 index 00000000000..c62f97926bf --- /dev/null +++ b/third_party/d8/macos/snapshot_blob.bin.sha1 @@ -0,0 +1 @@ +97ccf11ec6810bd3477395b09c10aa69c84ad18a \ No newline at end of file diff --git a/third_party/d8/windows/d8.exe.sha1 b/third_party/d8/windows/d8.exe.sha1 index 7a7f50b7390..312ddf91ec1 100644 --- a/third_party/d8/windows/d8.exe.sha1 +++ b/third_party/d8/windows/d8.exe.sha1 @@ -1 +1 @@ -04e58ecd97cd9ee4186fbbce99a079d7d2cb2f68 \ No newline at end of file +a489ff87bffcb3150de200a0bd85c5bbfffe674a \ No newline at end of file diff --git a/third_party/d8/windows/natives_blob.bin.sha1 b/third_party/d8/windows/natives_blob.bin.sha1 new file mode 100644 index 00000000000..6ab0b533b18 --- /dev/null +++ b/third_party/d8/windows/natives_blob.bin.sha1 @@ -0,0 +1 @@ +74b2acf3e17f16018f003037daeb2ea9fb65570c \ No newline at end of file diff --git a/third_party/d8/windows/snapshot_blob.bin.sha1 b/third_party/d8/windows/snapshot_blob.bin.sha1 new file mode 100644 index 00000000000..8b4d122507a --- /dev/null +++ b/third_party/d8/windows/snapshot_blob.bin.sha1 @@ -0,0 +1 @@ +792073af206bdc34b1d852b5e146bdaa12260efa \ No newline at end of file