Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/ssa/variable_allocator.dart |
| =================================================================== |
| --- sdk/lib/_internal/compiler/implementation/ssa/variable_allocator.dart (revision 14539) |
| +++ sdk/lib/_internal/compiler/implementation/ssa/variable_allocator.dart (working copy) |
| @@ -295,6 +295,11 @@ |
| void updateLoopMarker(HBasicBlock header) { |
| LiveEnvironment env = liveInstructions[header]; |
| int lastId = env.loopMarkers[header]; |
| + if (lastId == null) { |
| + assert(header.predecessors.length == 1); |
|
floitsch
2012/11/05 17:36:09
add comment what happened.
ngeoffray
2012/11/06 08:55:27
I changed the code to not enter updateLoopMarker i
|
| + return; |
| + } |
| + |
| // Update all instructions that are liveIns in [header] to have a |
| // range that covers the loop. |
| env.liveInstructions.forEach((HInstruction instruction, int id) { |