Update d8 to 10.9.104

This version contains a number of updates to WasmGC:
- `dataref` is replaced by `structref`.
- `call_ref` now takes a function type immediate, both with the proper
  0x14 opcode and the temporary 0x17 opcode.
- Some of the new type test/cast instructions are implemented,
  specifically `ref.test`, `ref.cast`, `ref.test null` and
  `ref.cast null`. The new `br_on_cast` and `br_on_cast_fail` are not
  yet implemented.

Additionally, the `--wasm-gc-js-interop` flag is removed, and interop
is always enabled.

Change-Id: Ibe7a1d9e8800f89096239ff5afa16e80322e01c5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/266161
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Aske Simon Christensen <askesc@google.com>
This commit is contained in:
Aske Simon Christensen 2022-11-11 15:11:54 +00:00 committed by Commit Queue
parent bdbe0ded45
commit 6ddd14696c
4 changed files with 3 additions and 4 deletions

2
DEPS
View file

@ -66,7 +66,7 @@ vars = {
# Checkout extra javascript engines for testing or benchmarking.
# d8, the V8 shell, is always checked out.
"checkout_javascript_engines": False,
"d8_tag": "version:10.7.157",
"d8_tag": "version:10.9.104",
"jsshell_tag": "version:95.0",
# As Flutter does, we use Fuchsia's GN and Clang toolchain. These revision

View file

@ -6,7 +6,7 @@
//
// Run as follows:
//
// $> d8 --experimental-wasm-gc --wasm-gc-js-interop --experimental-wasm-stack-switching --experimental-wasm-type-reflection run_wasm.js -- <dart_module>.wasm [<ffi_module>.wasm]
// $> d8 --experimental-wasm-gc --experimental-wasm-stack-switching --experimental-wasm-type-reflection run_wasm.js -- <dart_module>.wasm [<ffi_module>.wasm]
//
// If an FFI module is specified, it will be instantiated first, and its
// exports will be supplied as imports to the Dart module under the 'ffi'

View file

@ -25,7 +25,7 @@ where *options* include:
The resulting `.wasm` file can be run with:
`d8 --experimental-wasm-gc --wasm-gc-js-interop --experimental-wasm-stack-switching --experimental-wasm-type-reflection pkg/dart2wasm/bin/run_wasm.js -- `*outfile*`.wasm`
`d8 --experimental-wasm-gc --experimental-wasm-stack-switching --experimental-wasm-type-reflection pkg/dart2wasm/bin/run_wasm.js -- `*outfile*`.wasm`
## Imports and exports

View file

@ -572,7 +572,6 @@ class Dart2WasmCompilerConfiguration extends CompilerConfiguration {
CommandArtifact? artifact) {
return [
'--experimental-wasm-gc',
'--wasm-gc-js-interop',
'--experimental-wasm-stack-switching',
'--experimental-wasm-type-reflection',
'pkg/dart2wasm/bin/run_wasm.js',