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

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

Issue 10139012: Refactor types in ssa nodes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More fixes. 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
Index: lib/compiler/implementation/ssa/tracer.dart
diff --git a/lib/compiler/implementation/ssa/tracer.dart b/lib/compiler/implementation/ssa/tracer.dart
index 7d62e9852051431ec1398f9f4ec55804aaf3ed2f..7d520597a19c79902f64e49ac8eec943c1023994 100644
--- a/lib/compiler/implementation/ssa/tracer.dart
+++ b/lib/compiler/implementation/ssa/tracer.dart
@@ -172,6 +172,7 @@ class HInstructionStringifier implements HVisitor<String> {
switch (type) {
case HType.MUTABLE_ARRAY: prefix = 'm'; break;
case HType.READABLE_ARRAY: prefix = 'a'; break;
+ case HType.EXTENDABLE_ARRAY: prefix = 'e'; break;
case HType.BOOLEAN: prefix = 'b'; break;
case HType.INTEGER: prefix = 'i'; break;
case HType.DOUBLE: prefix = 'd'; break;
@@ -179,7 +180,7 @@ class HInstructionStringifier implements HVisitor<String> {
case HType.STRING: prefix = 's'; break;
case HType.UNKNOWN: prefix = 'v'; break;
case HType.CONFLICTING: prefix = 'c'; break;
- case HType.STRING_OR_ARRAY: prefix = 'r'; break;
+ case HType.INDEXABLE: prefix = 'r'; break;
default: unreachable();
}
}
@@ -410,12 +411,13 @@ class HInstructionStringifier implements HVisitor<String> {
switch (node.guardedType) {
case HType.MUTABLE_ARRAY: type = "mutable_array"; break;
case HType.READABLE_ARRAY: type = "readable_array"; break;
+ case HType.EXTENDABLE_ARRAY: type = "extendable_array"; break;
case HType.BOOLEAN: type = "bool"; break;
case HType.INTEGER: type = "integer"; break;
case HType.DOUBLE: type = "double"; break;
case HType.NUMBER: type = "number"; break;
case HType.STRING: type = "string"; break;
- case HType.STRING_OR_ARRAY: type = "string_or_array"; break;
+ case HType.INDEXABLE: type = "string_or_array"; break;
case HType.UNKNOWN: type = 'unknown'; break;
default: unreachable();
}

Powered by Google App Engine
This is Rietveld 408576698