Index: sdk/lib/_internal/compiler/implementation/ssa/invoke_dynamic_specializers.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/invoke_dynamic_specializers.dart b/sdk/lib/_internal/compiler/implementation/ssa/invoke_dynamic_specializers.dart |
index 288bee3a5113bed7a776e9aefefd64a47ac3f53d..d9fc2865689090dbc84f51569946e071dfa5f528 100644 |
--- a/sdk/lib/_internal/compiler/implementation/ssa/invoke_dynamic_specializers.dart |
+++ b/sdk/lib/_internal/compiler/implementation/ssa/invoke_dynamic_specializers.dart |
@@ -369,8 +369,8 @@ class TruncatingDivideSpecializer extends BinaryArithmeticSpecializer { |
bool isNotZero(HInstruction instruction, Compiler compiler) { |
if (!instruction.isConstantInteger()) return false; |
HConstant rightConstant = instruction; |
- IntConstant intConstant = rightConstant.constant; |
- int count = intConstant.value; |
+ IntConstantValue intConstant = rightConstant.constant; |
+ int count = intConstant.primitiveValue; |
return count != 0; |
} |
@@ -419,8 +419,8 @@ abstract class BinaryBitOpSpecializer extends BinaryArithmeticSpecializer { |
bool argumentLessThan32(HInstruction instruction) { |
if (!instruction.isConstantInteger()) return false; |
HConstant rightConstant = instruction; |
- IntConstant intConstant = rightConstant.constant; |
- int count = intConstant.value; |
+ IntConstantValue intConstant = rightConstant.constant; |
+ int count = intConstant.primitiveValue; |
return count >= 0 && count <= 31; |
} |