Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(771)

Unified Diff: pkg/front_end/lib/src/fasta/compile_platform.dart

Issue 2746923002: Implement nested switches and missing switch continue targets. (Closed)
Patch Set: Long line. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/front_end/lib/src/fasta/builder/scope.dart ('k') | pkg/front_end/lib/src/fasta/fasta.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/compile_platform.dart
diff --git a/pkg/front_end/lib/src/fasta/compile_platform.dart b/pkg/front_end/lib/src/fasta/compile_platform.dart
index 879d08dcf29f9155e018da08f1d7d83c408c1356..5b92567a9b0a4a9c90c7d6637bd7705b2040417f 100644
--- a/pkg/front_end/lib/src/fasta/compile_platform.dart
+++ b/pkg/front_end/lib/src/fasta/compile_platform.dart
@@ -6,8 +6,6 @@ library fasta.compile_platform;
import 'dart:async' show Future;
-import 'kernel/verifier.dart' show verifyProgram;
-
import 'ticker.dart' show Ticker;
import 'dart:io' show exitCode;
@@ -66,22 +64,7 @@ Future compilePlatform(CompilerContext c, Ticker ticker) async {
await kernelTarget.writeOutline(output);
if (exitCode != 0) return null;
- if (c.options.dumpIr) {
- kernelTarget.dumpIr();
- }
- if (c.options.verify) {
- try {
- verifyProgram(kernelTarget.program);
- ticker.logMs("Verified program");
- } catch (e, s) {
- exitCode = 1;
- print("Verification of program failed: $e");
- if (s != null && c.options.verbose) {
- print(s);
- }
- }
- }
- if (exitCode != 0) return null;
- await kernelTarget.writeProgram(output);
+ await kernelTarget.writeProgram(output,
+ dumpIr: c.options.dumpIr, verify: c.options.verify);
await kernelTarget.writeDepsFile(output, deps);
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/builder/scope.dart ('k') | pkg/front_end/lib/src/fasta/fasta.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698