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

Unified Diff: lib/compiler/implementation/apiimpl.dart

Issue 10414024: Add a flag to control the backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Last version Created 8 years, 7 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 | « no previous file | lib/compiler/implementation/compiler.dart » ('j') | lib/compiler/implementation/dart2js.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/apiimpl.dart
diff --git a/lib/compiler/implementation/apiimpl.dart b/lib/compiler/implementation/apiimpl.dart
index 0064d06235a0abe25958284120fe437a80fa25cd..2d59e644613aab356e9dbba658e097f3a5e8ae4b 100644
--- a/lib/compiler/implementation/apiimpl.dart
+++ b/lib/compiler/implementation/apiimpl.dart
@@ -22,10 +22,12 @@ class Compiler extends leg.Compiler {
List<String> options;
bool mockableLibraryUsed = false;
- Compiler(this.provider, this.handler, this.libraryRoot, this.options)
- : super(tracer: new ssa.HTracer()) {
- enableTypeAssertions = options.indexOf('--enable-checked-mode') !== -1;
- }
+ Compiler(this.provider, this.handler, this.libraryRoot, List<String> options)
+ : this.options = options,
+ super(
+ tracer: new ssa.HTracer(),
+ enableTypeAssertions: options.indexOf('--enable-checked-mode') != -1,
+ emitJavascript: options.indexOf('--output-type=dart') == -1);
elements.LibraryElement scanBuiltinLibrary(String path) {
Uri uri = libraryRoot.resolve(DART2JS_LIBRARY_MAP[path]);
« no previous file with comments | « no previous file | lib/compiler/implementation/compiler.dart » ('j') | lib/compiler/implementation/dart2js.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698