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

Unified Diff: pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart

Issue 1294353002: dart2js CPS: Inline list.forEach. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Merge in tip of tree. Created 5 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/type_propagation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart
index f902bea8b1cfa2480a1c307f1a10eab598093aeb..71ff03dd8964bfa7642e793c62056935bab29f20 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart
@@ -337,7 +337,8 @@ class SExpressionStringifier extends Indentation implements Visitor<String> {
String arguments = node.arguments.map(access).join(' ');
String continuation = node.continuation == null ? ''
: ' ${access(node.continuation)}';
- return '(JS ${node.type} ${node.codeTemplate} ($arguments)$continuation)';
+ return '$indentation(JS "${node.codeTemplate.source}"'
+ ' ($arguments)$continuation)';
}
String visitGetLength(GetLength node) {
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/type_propagation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698