Chromium Code Reviews| 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; |
| } |
| } |