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

Unified Diff: lib/compiler/implementation/ssa/builder.dart

Issue 10545031: Fix checked mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 | « frog/tests/leg/mock_compiler.dart ('k') | lib/compiler/implementation/ssa/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/builder.dart
diff --git a/lib/compiler/implementation/ssa/builder.dart b/lib/compiler/implementation/ssa/builder.dart
index c5b35184a51f412859fd4f97f39845f1df1c057e..91244038c3c53786b55156f1d0226428b5885541 100644
--- a/lib/compiler/implementation/ssa/builder.dart
+++ b/lib/compiler/implementation/ssa/builder.dart
@@ -2562,7 +2562,7 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
stack.add(graph.addConstantString(node.dartString, node));
return;
}
- StringBuilderVisitor stringBuilder = new StringBuilderVisitor(this);
+ StringBuilderVisitor stringBuilder = new StringBuilderVisitor(this, node);
stringBuilder.visit(node);
stack.add(stringBuilder.result);
}
@@ -2714,7 +2714,7 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
}
visitStringInterpolation(StringInterpolation node) {
- StringBuilderVisitor stringBuilder = new StringBuilderVisitor(this);
+ StringBuilderVisitor stringBuilder = new StringBuilderVisitor(this, node);
stringBuilder.visit(node);
stack.add(stringBuilder.result);
}
@@ -3391,13 +3391,14 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
*/
class StringBuilderVisitor extends AbstractVisitor {
final SsaBuilder builder;
+ final Node node;
/**
* The string value generated so far.
*/
HInstruction result = null;
- StringBuilderVisitor(this.builder);
+ StringBuilderVisitor(this.builder, this.node);
void visit(Node node) {
node.accept(this);
@@ -3431,7 +3432,7 @@ class StringBuilderVisitor extends AbstractVisitor {
}
HInstruction concat(HInstruction left, HInstruction right) {
- HInstruction instruction = new HStringConcat(left, right);
+ HInstruction instruction = new HStringConcat(left, right, node);
builder.add(instruction);
return instruction;
}
« no previous file with comments | « frog/tests/leg/mock_compiler.dart ('k') | lib/compiler/implementation/ssa/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698