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

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: Next iteration 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/compiler.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..5d7296edf213e9190ea1d205bbd5d5fec985088c 100644
--- a/lib/compiler/implementation/apiimpl.dart
+++ b/lib/compiler/implementation/apiimpl.dart
@@ -24,7 +24,9 @@ class Compiler extends leg.Compiler {
Compiler(this.provider, this.handler, this.libraryRoot, this.options)
: super(tracer: new ssa.HTracer()) {
- enableTypeAssertions = options.indexOf('--enable-checked-mode') !== -1;
+ enableTypeAssertions = options.indexOf('--enable-checked-mode') != -1;
+ backend = options.indexOf('--2dart') != -1 ?
+ new leg.DartBackend(this) : new leg.JavaScriptBackend(this);
}
elements.LibraryElement scanBuiltinLibrary(String path) {
« no previous file with comments | « no previous file | lib/compiler/implementation/compiler.dart » ('j') | lib/compiler/implementation/compiler.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698