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

Unified Diff: pkg/kernel/lib/target/dart2js.dart

Issue 2832353002: Add support for building patched_sdk and platform.dill for dart2js: (Closed)
Patch Set: rebase Created 3 years, 8 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
Index: pkg/kernel/lib/target/dart2js.dart
diff --git a/pkg/kernel/lib/target/dart2js.dart b/pkg/kernel/lib/target/dart2js.dart
new file mode 100644
index 0000000000000000000000000000000000000000..3c67bf20da676c00312567e99681fc9d5013d9cc
--- /dev/null
+++ b/pkg/kernel/lib/target/dart2js.dart
@@ -0,0 +1,35 @@
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+library kernel.target.dart2js;
+
+import '../ast.dart';
+import 'targets.dart';
+
+/// Specializes the kernel IR for dart2js
+class Dart2jsTarget extends Target {
+ final TargetFlags flags;
+
+ Dart2jsTarget(this.flags);
+
+ String get name => 'dart2js';
+ bool get strongMode => flags.strongMode;
+
+ List<String> get extraRequiredLibraries => const <String>[
+ 'dart:async',
+ 'dart:collection',
+ 'dart:mirrors',
+ 'dart:_native_typed_data',
+ 'dart:_internal',
+ 'dart:_js_helper',
+ 'dart:_interceptors',
+ 'dart:_foreign_helper',
+ 'dart:_js_mirrors',
+ 'dart:_js_names',
+ 'dart:_js_embedded_names',
+ 'dart:_isolate_helper',
+ ];
+
+ void performModularTransformations(Program program) {}
+ void performGlobalTransformations(Program program) {}
+}

Powered by Google App Engine
This is Rietveld 408576698