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

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

Issue 9359039: Source in most stuff. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased Created 8 years, 10 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 | dart/frog/leg/elements/elements.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/compiler.dart
diff --git a/dart/frog/leg/compiler.dart b/dart/frog/leg/compiler.dart
index f00c94df144c6c58f4dc90f79e0d9772e83be118..c0b5ee43ee60107624e75c759f045fc858dca56a 100644
--- a/dart/frog/leg/compiler.dart
+++ b/dart/frog/leg/compiler.dart
@@ -162,9 +162,16 @@ class Compiler implements DiagnosticListener {
}
void scanBuiltinLibraries() {
- coreLibrary = scanBuiltinLibrary('core.dart');
coreImplLibrary = scanBuiltinLibrary('coreimpl.dart');
jsHelperLibrary = scanBuiltinLibrary('js_helper.dart');
+ coreLibrary = scanBuiltinLibrary('core.dart');
+ // Since the three libraries "core", "coreimpl", and "js_helper"
+ // coreLibrary is null when they are being built. So we add the
+ // implicit import of coreLibrary now. This can be cleaned up when
+ // we have proper support for "dart:core".
+ // TODO(ahe): Clean this up as described above.
+ scanner.importLibrary(coreImplLibrary, coreLibrary, null);
+ scanner.importLibrary(jsHelperLibrary, coreLibrary, null);
// TODO(ngeoffray): Lazily add this method.
universe.invokedNames[NO_SUCH_METHOD] =
new Set<Invocation>.from(<Invocation>[new Invocation(2)]);
« no previous file with comments | « no previous file | dart/frog/leg/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698