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

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

Issue 22791002: Add renames in output when using the mirror helper library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changed solution approach. 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 db7b9eef095b278e8cc5f71915683b62b1627e48..e4d040829e6cf668848ccc2dc5e757f5621b0bb6 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart
@@ -107,7 +107,7 @@ class SendVisitor extends ResolvedVisitor {
visitStaticSend(Send node) {
final element = elements[node];
- backend.registerStaticSend(element, node);
+ collector.backend.registerStaticSend(element, node);
ahe 2013/08/19 15:34:06 I don't understand this change.
zarah 2013/08/20 14:08:17 Since the backend is now needed in the collector a
if (Elements.isUnresolved(element)
|| identical(element, compiler.assertMethod)) {
@@ -161,6 +161,7 @@ class PlaceholderCollector extends Visitor {
LibraryElement get coreLibrary => compiler.coreLibrary;
FunctionElement get entryFunction => compiler.mainApp.find(Compiler.MAIN);
+ DartBackend get backend => compiler.backend;
get currentFunctionScope => functionScopes.putIfAbsent(
topmostEnclosingFunction, () => new FunctionScope());
@@ -538,6 +539,9 @@ class PlaceholderCollector extends Visitor {
id != null && Keyword.keywords[id.source.slowToString()] != null;
Element element = treeElements[node];
+ if (element == compiler.mirrorHelperFunction) {
+ backend.registerHelperFunction(element, node);
+ }
// May get null here in case of A(int this.f());
if (element != null) {
// Rename only local functions.

Powered by Google App Engine
This is Rietveld 408576698