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

Unified Diff: pkg/compiler/lib/src/js_backend/codegen/glue.dart

Issue 1421003004: Add CoreClasses (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment. Created 5 years, 2 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: pkg/compiler/lib/src/js_backend/codegen/glue.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/glue.dart b/pkg/compiler/lib/src/js_backend/codegen/glue.dart
index ac91652ee8b8bd781fa244396663fa638b4c42a0..66f09e5a7d6ff90320d8f733ef8a8d5c2182de1c 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/glue.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/glue.dart
@@ -89,7 +89,7 @@ class Glue {
return _namer.safeVariableName(name);
}
- ClassElement get listClass => _compiler.listClass;
+ ClassElement get listClass => _compiler.coreClasses.listClass;
ConstructorElement get mapLiteralConstructor {
return _backend.mapLiteralConstructor;
@@ -276,11 +276,11 @@ class Glue {
bool isStringClass(ClassElement classElement) =>
classElement == _backend.jsStringClass ||
- classElement == _compiler.stringClass;
+ classElement == _compiler.coreClasses.stringClass;
bool isBoolClass(ClassElement classElement) =>
classElement == _backend.jsBoolClass ||
- classElement == _compiler.boolClass;
+ classElement == _compiler.coreClasses.boolClass;
// TODO(sra): Should this be part of CodegenRegistry?
void registerNativeBehavior(NativeBehavior nativeBehavior, node) {
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend_impact.dart ('k') | pkg/compiler/lib/src/js_backend/constant_system_javascript.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698