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

Unified Diff: dart/frog/leg/compiler.dart

Issue 9866006: Add library mapping. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
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
Index: dart/frog/leg/compiler.dart
diff --git a/dart/frog/leg/compiler.dart b/dart/frog/leg/compiler.dart
index 0f945a1d467004a7f95c5d74a9c60261900545ee..bb3d3385fb393456f070e5667bcb89e455ea606a 100644
--- a/dart/frog/leg/compiler.dart
+++ b/dart/frog/leg/compiler.dart
@@ -42,7 +42,6 @@ class Compiler implements DiagnosticListener {
String assembledCode;
Namer namer;
Types types;
- final String currentDirectory;
final Tracer tracer;
@@ -102,8 +101,7 @@ class Compiler implements DiagnosticListener {
Stopwatch codegenProgress;
- Compiler.withCurrentDirectory(String this.currentDirectory,
- [this.tracer = const Tracer()])
+ Compiler([this.tracer = const Tracer()])
: types = new Types(),
universe = new Universe(),
worklist = new Queue<WorkItem>(),
@@ -235,9 +233,9 @@ class Compiler implements DiagnosticListener {
}
void scanBuiltinLibraries() {
- coreImplLibrary = scanBuiltinLibrary('coreimpl.dart');
- jsHelperLibrary = scanBuiltinLibrary('js_helper.dart');
- coreLibrary = scanBuiltinLibrary('core.dart');
+ coreImplLibrary = scanBuiltinLibrary('coreimpl');
+ jsHelperLibrary = scanBuiltinLibrary('_js_helper');
+ coreLibrary = scanBuiltinLibrary('core');
// Since coreLibrary import the libraries "coreimpl", and
// "js_helper", coreLibrary is null when they are being built. So

Powered by Google App Engine
This is Rietveld 408576698