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

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

Issue 9873021: Move frog/leg to lib/compiler/implementation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « lib/compiler/implementation/dart2js.dart ('k') | lib/compiler/implementation/leg.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/frog_leg.dart
===================================================================
--- lib/compiler/implementation/frog_leg.dart (revision 5925)
+++ lib/compiler/implementation/frog_leg.dart (working copy)
@@ -4,10 +4,10 @@
#library('frog_leg');
-#import('../../lib/uri/uri.dart');
+#import('../../uri/uri.dart');
#import('source_file.dart');
-#import('../lang.dart', prefix: 'frog');
-#import('api.dart', prefix: 'api');
+#import('../../../frog/lang.dart', prefix: 'frog');
+#import('../compiler.dart', prefix: 'compiler');
#import('io/io.dart', prefix: 'io');
String relativize(Uri base, Uri uri) {
@@ -44,13 +44,12 @@
final throwOnError = frog.options.throwOnErrors;
final showWarnings = frog.options.showWarnings;
final allowMockCompilation = frog.options.allowMockCompilation;
- // final compiler = new WorldCompiler(world, throwOnError);
Uri cwd = new Uri(scheme: 'file', path: io.getCurrentDirectory());
Uri uri = cwd.resolve(frog.options.dartScript);
String frogLibDir = frog.options.libDir;
if (!frogLibDir.endsWith("/")) frogLibDir = "$frogLibDir/";
Uri frogLib = new Uri(scheme: 'file', path: frogLibDir);
- Uri libraryRoot = frogLib.resolve('../leg/lib/');
+ Uri libraryRoot = frogLib.resolve('../../lib/compiler/implementation/lib/');
Map<String, SourceFile> sourceFiles = <SourceFile>{};
Future<String> provider(Uri uri) {
@@ -86,7 +85,8 @@
// TODO(ahe): We expect the future to be complete and call value
// directly. In effect, we don't support truly asynchronous API.
- String code = api.compile(uri, libraryRoot, provider, handler, options).value;
+ String code =
+ compiler.compile(uri, libraryRoot, provider, handler, options).value;
if (code === null) return false;
world.legCode = code;
world.jsBytesWritten = code.length;
« no previous file with comments | « lib/compiler/implementation/dart2js.dart ('k') | lib/compiler/implementation/leg.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698