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

Unified Diff: pkg/compiler/lib/src/inferrer/inferrer_visitor.dart

Issue 756903005: Remove computeMask from ConstantValue. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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: pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
diff --git a/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart b/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
index 65ea6bc8cf39868dea103e4205248cd2572b5089..bfc79e7e50ae3a6b7dc83d9bdf21407521e3bcdf 100644
--- a/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
+++ b/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
@@ -11,6 +11,7 @@ import '../tree/tree.dart';
import '../universe/universe.dart';
import '../util/util.dart';
import '../types/types.dart' show TypeMask;
+import '../types/constants.dart' show COMPUTE_TYPE_MASK;
import 'dart:collection' show IterableMixin;
/**
@@ -750,7 +751,7 @@ abstract class InferrerVisitor
// The JavaScript backend may turn this literal into an integer at
// runtime.
return types.getConcreteTypeFor(
- constantSystem.createDouble(node.value).computeMask(compiler));
+ constantSystem.createDouble(node.value).accept(COMPUTE_TYPE_MASK, compiler));
karlklose 2014/12/05 08:47:30 Lone line (also below).
}
T visitLiteralInt(LiteralInt node) {
@@ -758,7 +759,7 @@ abstract class InferrerVisitor
// The JavaScript backend may turn this literal into a double at
// runtime.
return types.getConcreteTypeFor(
- constantSystem.createInt(node.value).computeMask(compiler));
+ constantSystem.createInt(node.value).accept(COMPUTE_TYPE_MASK, compiler));
}
T visitLiteralList(LiteralList node) {

Powered by Google App Engine
This is Rietveld 408576698