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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/nodes.dart

Issue 109883003: Remove wrong assertion, and make sure we only change the type of constant lists. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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: sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/nodes.dart (revision 31278)
+++ sdk/lib/_internal/compiler/implementation/ssa/nodes.dart (working copy)
@@ -1933,9 +1933,8 @@
bool isCodeMotionInvariant() => true;
set instructionType(type) {
- assert((type.isEmpty && super.instructionType.isEmpty)
- || !type.isNullable);
- assert(!isConstantNull() || (type.isEmpty && type.isNullable));
+ // Only lists can be specialized.
floitsch 2013/12/19 16:16:29 Please add more information.
ngeoffray 2013/12/19 16:17:52 Done.
+ if (!isConstantList()) return;
super.instructionType = type;
}
}
« 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