| Index: lib/compiler/implementation/ssa/nodes.dart
|
| diff --git a/lib/compiler/implementation/ssa/nodes.dart b/lib/compiler/implementation/ssa/nodes.dart
|
| index 9d869462709263875c5479bea49089b6cd106adb..f9fb69ef9bf4193fdf7527952956942a02297a04 100644
|
| --- a/lib/compiler/implementation/ssa/nodes.dart
|
| +++ b/lib/compiler/implementation/ssa/nodes.dart
|
| @@ -590,22 +590,6 @@ class HBasicBlock extends HInstructionList implements Hashable {
|
| }
|
| }
|
|
|
| - static void removeUser(HInstruction instruction, HInstruction user) {
|
| - List<HInstruction> users = instruction.usedBy;
|
| - int length = users.length;
|
| - if (length == 1) {
|
| - users.clear();
|
| - } else {
|
| - for (int i = 0; i < length; i++) {
|
| - if (users[i] === user) {
|
| - users[i] = users[length - 1];
|
| - users.length = length - 1;
|
| - return;
|
| - }
|
| - }
|
| - }
|
| - }
|
| -
|
| bool isExitBlock() {
|
| return first === last && first is HExit;
|
| }
|
| @@ -1840,7 +1824,6 @@ class HPhi extends HInstruction {
|
| }
|
|
|
| class HRelational extends HInvokeBinary {
|
| - bool usesBoolifiedInterceptor = false;
|
| HRelational(HStatic target, HInstruction left, HInstruction right)
|
| : super(target, left, right);
|
|
|
| @@ -1857,12 +1840,7 @@ class HRelational extends HInvokeBinary {
|
| }
|
|
|
| HType computeTypeFromInputTypes() {
|
| - if (left.isNumber() || usesBoolifiedInterceptor) return HType.BOOLEAN;
|
| - return HType.UNKNOWN;
|
| - }
|
| -
|
| - HType get guaranteedType() {
|
| - if (usesBoolifiedInterceptor) return HType.BOOLEAN;
|
| + if (left.isNumber()) return HType.BOOLEAN;
|
| return HType.UNKNOWN;
|
| }
|
|
|
| @@ -1898,7 +1876,7 @@ class HEquals extends HRelational {
|
| }
|
|
|
| HType computeTypeFromInputTypes() {
|
| - if (builtin || usesBoolifiedInterceptor) return HType.BOOLEAN;
|
| + if (builtin) return HType.BOOLEAN;
|
| return HType.UNKNOWN;
|
| }
|
|
|
|
|