Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/invoke_dynamic_specializers.dart

Issue 614993002: Rename Constant to ConstantValue and ConstExp to ConstantExpression. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698