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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart

Issue 21339002: Rename MirrorSystem.getName calls in dart2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments. Created 7 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
Index: sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart
index c7c7ec2a89ea7151d0cd18b289456364ce84403e..db7b9eef095b278e8cc5f71915683b62b1627e48 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart
@@ -45,6 +45,7 @@ class SendVisitor extends ResolvedVisitor {
final PlaceholderCollector collector;
get compiler => collector.compiler;
+ DartBackend get backend => compiler.backend;
SendVisitor(this.collector, TreeElements elements) : super(elements);
@@ -106,6 +107,8 @@ class SendVisitor extends ResolvedVisitor {
visitStaticSend(Send node) {
final element = elements[node];
+ backend.registerStaticSend(element, node);
+
if (Elements.isUnresolved(element)
|| identical(element, compiler.assertMethod)) {
return;

Powered by Google App Engine
This is Rietveld 408576698