diff --git a/BUILD.gn b/BUILD.gn index 1603e2b0ec7..02819d0e4e8 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -108,7 +108,6 @@ group("dart2wasm_platform") { ":runtime_precompiled", "utils/dart2wasm:compile_dart2wasm_js_compatibility_platform", "utils/dart2wasm:compile_dart2wasm_platform", - "utils/dart2wasm:compile_dart2wasm_stringref_platform", "utils/dart2wasm:dart2wasm_snapshot", ] if (defined(is_product)) { diff --git a/pkg/_fe_analyzer_shared/lib/src/messages/codes_generated.dart b/pkg/_fe_analyzer_shared/lib/src/messages/codes_generated.dart index 846274fbc45..c3f149849f7 100644 --- a/pkg/_fe_analyzer_shared/lib/src/messages/codes_generated.dart +++ b/pkg/_fe_analyzer_shared/lib/src/messages/codes_generated.dart @@ -4743,7 +4743,7 @@ const MessageCode messageFastaUsageLong = Read the SDK platform from , which should be in Dill/Kernel IR format and contain the Dart SDK. - --target=dart2js|dart2js_server|dart2wasm|dart2wasm_js_compatibility|dart2wasm_stringref|dart_runner|dartdevc|flutter|flutter_runner|none|vm + --target=dart2js|dart2js_server|dart2wasm|dart2wasm_js_compatibility|dart_runner|dartdevc|flutter|flutter_runner|none|vm Specify the target configuration. --enable-asserts diff --git a/pkg/dart2wasm/README.md b/pkg/dart2wasm/README.md index 26bf0728ed5..616ebb346cf 100644 --- a/pkg/dart2wasm/README.md +++ b/pkg/dart2wasm/README.md @@ -37,7 +37,6 @@ where *options* include: | `--`[`no-`]`polymorphic-specialization` | no | Do virtual calls by switching on the class ID instead of using `call_indirect`. | `--`[`no-`]`print-kernel` | no | Print IR for each function before compiling it. | `--`[`no-`]`print-wasm` | no | Print Wasm instructions of each compiled function. -| `--`[`no-`]`stringref` | no | Use the experimental stringref Wasm proposal. | `--`[`no-`]`enable-asserts` | no | Enable assertions at runtime. | `--`[`no-`]`js-compatibility` | no | Enable JS compatibility mode. | `--shared-memory-max-pages` *pagecount* | | Max size of the imported memory buffer. If `--shared-import-memory` is specified, this must also be specified. diff --git a/pkg/dart2wasm/lib/compile.dart b/pkg/dart2wasm/lib/compile.dart index e642e1290a1..ea9c6b62b3e 100644 --- a/pkg/dart2wasm/lib/compile.dart +++ b/pkg/dart2wasm/lib/compile.dart @@ -69,9 +69,7 @@ Future compileToModule(compiler.CompilerOptions options, } final wasm.Mode mode; - if (options.translatorOptions.useStringref) { - mode = wasm.Mode.stringref; - } else if (options.translatorOptions.jsCompatibility) { + if (options.translatorOptions.jsCompatibility) { mode = wasm.Mode.jsCompatibility; } else { mode = wasm.Mode.regular; diff --git a/pkg/dart2wasm/lib/dart2wasm.dart b/pkg/dart2wasm/lib/dart2wasm.dart index 4ae5db164ca..32b84818874 100644 --- a/pkg/dart2wasm/lib/dart2wasm.dart +++ b/pkg/dart2wasm/lib/dart2wasm.dart @@ -34,8 +34,6 @@ final List