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

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

Issue 9965047: Make constant lists immutable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 03c65935677ec49dc1bb8487154bea7c585d7512..b3ebb4628830c1b8e77b601f489d88906ef1bacc 100644
--- a/lib/compiler/implementation/ssa/tracer.dart
+++ b/lib/compiler/implementation/ssa/tracer.dart
@@ -166,7 +166,8 @@ class HInstructionStringifier implements HVisitor<String> {
String temporaryId(HInstruction instruction) {
String prefix;
switch (instruction.type) {
- case HType.ARRAY: prefix = 'a'; break;
+ case HType.MUTABLE_ARRAY: prefix = 'a'; break;
+ case HType.READABLE_ARRAY: prefix = 'roa'; break;
case HType.BOOLEAN: prefix = 'b'; break;
case HType.INTEGER: prefix = 'i'; break;
case HType.DOUBLE: prefix = 'd'; break;
@@ -402,7 +403,8 @@ class HInstructionStringifier implements HVisitor<String> {
String visitTypeGuard(HTypeGuard node) {
String type;
switch (node.type) {
- case HType.ARRAY: type = "array"; break;
+ case HType.MUTABLE_ARRAY: type = "mutable_array"; break;
+ case HType.READABLE_ARRAY: type = "readable_array"; break;
case HType.BOOLEAN: type = "bool"; break;
case HType.INTEGER: type = "integer"; break;
case HType.DOUBLE: type = "double"; break;

Powered by Google App Engine
This is Rietveld 408576698