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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart

Issue 90713003: Dart2js option to dump info about compilation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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/js_backend/backend.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
index 7f94ba02745562858abe19f8dc0bbe0148ba3074..7b8899252ce2eb607c1270a12f1c98419a9c4f8e 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
@@ -1917,6 +1917,12 @@ class JavaScriptBackend extends Backend {
element, "@NoSideEffects() should always be combined with @NoInline");
}
}
+
+ CodeBuffer codeOf(Element element) {
+ return generatedCode.containsKey(element)
+ ? jsAst.prettyPrint(generatedCode[element], compiler)
+ : null;
+ }
}
/// Records that [constant] is used by [user.element].

Powered by Google App Engine
This is Rietveld 408576698