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

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

Issue 2653203002: Use entities in CommonElements interface. (Closed)
Patch Set: Created 3 years, 11 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/runtime_types.dart
diff --git a/pkg/compiler/lib/src/js_backend/runtime_types.dart b/pkg/compiler/lib/src/js_backend/runtime_types.dart
index d8bb379a11766142f3e44762b10a41c3887018f4..dfa0813019b1c48bd3be736b1f0e1526139f899f 100644
--- a/pkg/compiler/lib/src/js_backend/runtime_types.dart
+++ b/pkg/compiler/lib/src/js_backend/runtime_types.dart
@@ -265,8 +265,8 @@ class _RuntimeTypes implements RuntimeTypes {
// JSArray needs type arguments.
// TODO(karlklose): make this dependency visible from code.
if (backend.helpers.jsArrayClass != null) {
- registerRtiDependency(
- backend.helpers.jsArrayClass, compiler.commonElements.listClass);
+ ClassElement listClass = compiler.commonElements.listClass;
+ registerRtiDependency(backend.helpers.jsArrayClass, listClass);
}
// Compute the set of all classes and methods that need runtime type
// information.
« no previous file with comments | « pkg/compiler/lib/src/js_backend/namer.dart ('k') | pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698