| Index: lib/compiler/implementation/ssa/codegen_helpers.dart
|
| ===================================================================
|
| --- lib/compiler/implementation/ssa/codegen_helpers.dart (revision 7371)
|
| +++ lib/compiler/implementation/ssa/codegen_helpers.dart (working copy)
|
| @@ -42,10 +42,6 @@
|
| }
|
| }
|
|
|
| - void visitTypeConversion(HTypeConversion instruction) {
|
| - generateAtUseSite.add(instruction);
|
| - }
|
| -
|
| // The codegen might use the input multiple times, so it must not be
|
| // set generate at use site.
|
| void visitIs(HIs instruction) {}
|
| @@ -58,6 +54,10 @@
|
| // they would not be alive.
|
| void visitTypeGuard(HTypeGuard instruction) {}
|
|
|
| + // TODO(ngeoffray): This should not be needed. The codegen should
|
| + // cope better with this instruction.
|
| + void visitTypeConversion(HTypeConversion instruction) {}
|
| +
|
| void tryGenerateAtUseSite(HInstruction instruction) {
|
| // A type guard should never be generate at use site, otherwise we
|
| // cannot bailout.
|
| @@ -67,6 +67,10 @@
|
| // cannot throw.
|
| if (instruction is HCheck) return;
|
|
|
| + // TODO(ngeoffray): This should not be needed. The codegen should
|
| + // cope better with this instruction.
|
| + if (instruction is HTypeConversion) return;
|
| +
|
| generateAtUseSite.add(instruction);
|
| }
|
|
|
|
|