| Index: lib/compiler/implementation/ssa/bailout.dart
|
| ===================================================================
|
| --- lib/compiler/implementation/ssa/bailout.dart (revision 10938)
|
| +++ lib/compiler/implementation/ssa/bailout.dart (working copy)
|
| @@ -162,6 +162,16 @@
|
| }
|
| }
|
|
|
| + // If the instruction is used by a phi where a guard would be
|
| + // valuable, put the guard on that instruction.
|
| + for (HInstruction user in instruction.usedBy) {
|
| + if (user is HPhi
|
| + && user.block.id > instruction.id
|
| + && typeGuardWouldBeValuable(user, speculativeType)) {
|
| + return true;
|
| + }
|
| + }
|
| +
|
| // Insert type guards if the method is likely to be called in a
|
| // loop.
|
| return calledInLoop;
|
|
|