Index: src/compiler/graph-visualizer.cc |
diff --git a/src/compiler/graph-visualizer.cc b/src/compiler/graph-visualizer.cc |
index 5d255f064ec2c32fce563097778c9f989aab214d..67b10d6e8330a5beab4c97579020d491473c26b0 100644 |
--- a/src/compiler/graph-visualizer.cc |
+++ b/src/compiler/graph-visualizer.cc |
@@ -129,6 +129,15 @@ class JSONGraphNodeWriter { |
os_ << ",\"opcode\":\"" << IrOpcode::Mnemonic(node->opcode()) << "\""; |
os_ << ",\"control\":" << (NodeProperties::IsControl(node) ? "true" |
: "false"); |
+ if (NodeProperties::IsTyped(node)) { |
+ Bounds bounds = NodeProperties::GetBounds(node); |
+ std::ostringstream upper; |
+ bounds.upper->PrintTo(upper); |
+ std::ostringstream lower; |
+ bounds.lower->PrintTo(lower); |
+ os_ << ",\"upper_type\":\"" << Escaped(upper, "\"") << "\""; |
+ os_ << ",\"lower_type\":\"" << Escaped(lower, "\"") << "\""; |
+ } |
os_ << "}"; |
} |