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

Unified Diff: pkg/compiler/lib/src/dump_info.dart

Issue 2809203003: Remove Compiler/JavaScriptBackend from metadata_collector (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js/js.dart » ('j') | pkg/compiler/lib/src/js_backend/runtime_types.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dump_info.dart
diff --git a/pkg/compiler/lib/src/dump_info.dart b/pkg/compiler/lib/src/dump_info.dart
index 3194e57e7b2cd434d83047918a7a3b4af9bfc80c..67696cda0a740ba04ec207c83b086f9d48883995 100644
--- a/pkg/compiler/lib/src/dump_info.dart
+++ b/pkg/compiler/lib/src/dump_info.dart
@@ -42,7 +42,7 @@ class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> {
compiler.dumpInfoTask._constantToNode.forEach((constant, node) {
// TODO(sigmund): add dependencies on other constants
var size = compiler.dumpInfoTask._nodeToSize[node];
- var code = jsAst.prettyPrint(node, compiler);
+ var code = jsAst.prettyPrint(node, compiler.options);
var info = new ConstantInfo(
size: size, code: code, outputUnit: _unitInfoForConstant(constant));
_constantToInfo[constant] = info;
@@ -533,7 +533,7 @@ class DumpInfoTask extends CompilerTask implements InfoReporter {
// Concatenate rendered ASTs.
StringBuffer sb = new StringBuffer();
for (jsAst.Node ast in code) {
- sb.writeln(jsAst.prettyPrint(ast, compiler));
+ sb.writeln(jsAst.prettyPrint(ast, compiler.options));
}
return sb.toString();
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js/js.dart » ('j') | pkg/compiler/lib/src/js_backend/runtime_types.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698