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

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

Issue 10041033: Improve tracer output for bailouts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment. Created 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/tracer.dart
diff --git a/lib/compiler/implementation/ssa/tracer.dart b/lib/compiler/implementation/ssa/tracer.dart
index 971f7d874a188345fde5cf21fccea02bf58bc094..ea5643728d232bfdf0be5e4e67965380daf0412e 100644
--- a/lib/compiler/implementation/ssa/tracer.dart
+++ b/lib/compiler/implementation/ssa/tracer.dart
@@ -415,8 +415,15 @@ class HInstructionStringifier implements HVisitor<String> {
case HType.UNKNOWN: type = 'unknown'; break;
default: unreachable();
}
- String onString = node.isOn ? "on" : "off";
- return "TypeGuard: ${temporaryId(node.inputs[0])} is $type ($onString)";
+ StringBuffer envBuffer = new StringBuffer();
+ List<HInstruction> inputs = node.inputs;
+ // The last input is the guarded expression.
+ for (int i = 0; i < inputs.length - 1; i++) {
+ envBuffer.add(" ${temporaryId(inputs[i])}");
+ }
+ String on = node.isOn ? "on" : "off";
+ String id = temporaryId(node.guarded);
+ return "TypeGuard($on): $id is $type env: $envBuffer";
}
String visitIs(HIs node) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698