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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 1309743006: Move common URIs to common/names.dart (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 | « pkg/compiler/lib/src/elements/common.dart ('k') | pkg/compiler/lib/src/js_backend/js_backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index f8d4e3a26365c60cc0ff899d119fff338cdb5752..8b61544c84b7d86bb498eceb543dcbd3c27a278e 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -223,8 +223,6 @@ class JavaScriptBackend extends Backend {
static final Uri DART_JS_HELPER = new Uri(scheme: 'dart', path: '_js_helper');
static final Uri DART_INTERCEPTORS =
new Uri(scheme: 'dart', path: '_interceptors');
- static final Uri DART_INTERNAL =
- new Uri(scheme: 'dart', path: '_internal');
static final Uri DART_FOREIGN_HELPER =
new Uri(scheme: 'dart', path: '_foreign_helper');
static final Uri DART_JS_MIRRORS =
@@ -235,8 +233,6 @@ class JavaScriptBackend extends Backend {
new Uri(scheme: 'dart', path: '_js_embedded_names');
static final Uri DART_ISOLATE_HELPER =
new Uri(scheme: 'dart', path: '_isolate_helper');
- static final Uri DART_ASYNC = new Uri(scheme: 'dart', path: 'async');
- static final Uri DART_HTML = new Uri(scheme: 'dart', path: 'html');
static const String INVOKE_ON = '_getCachedInvocation';
static const String START_ROOT_ISOLATE = 'startRootIsolate';
@@ -2030,9 +2026,9 @@ class JavaScriptBackend extends Backend {
Uri uri = library.canonicalUri;
if (uri == DART_JS_HELPER) {
jsHelperLibrary = library;
- } else if (uri == DART_ASYNC) {
+ } else if (uri == Uris.dart_async) {
asyncLibrary = library;
- } else if (uri == DART_INTERNAL) {
+ } else if (uri == Uris.dart__internal) {
internalLibrary = library;
} else if (uri == DART_INTERCEPTORS) {
interceptorsLibrary = library;
@@ -2135,7 +2131,7 @@ class JavaScriptBackend extends Backend {
} else if (uri == DART_EMBEDDED_NAMES) {
jsGetNameEnum = find(library, 'JsGetName');
jsBuiltinEnum = find(library, 'JsBuiltin');
- } else if (uri == DART_HTML) {
+ } else if (uri == Uris.dart_html) {
htmlLibraryIsLoaded = true;
}
annotations.onLibraryScanned(library);
@@ -2143,11 +2139,11 @@ class JavaScriptBackend extends Backend {
}
Future onLibrariesLoaded(LoadedLibraries loadedLibraries) {
- if (!loadedLibraries.containsLibrary(Compiler.DART_CORE)) {
+ if (!loadedLibraries.containsLibrary(Uris.dart_core)) {
return new Future.value();
}
- assert(loadedLibraries.containsLibrary(Compiler.DART_CORE));
+ assert(loadedLibraries.containsLibrary(Uris.dart_core));
assert(loadedLibraries.containsLibrary(DART_INTERCEPTORS));
assert(loadedLibraries.containsLibrary(DART_JS_HELPER));
« no previous file with comments | « pkg/compiler/lib/src/elements/common.dart ('k') | pkg/compiler/lib/src/js_backend/js_backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698