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

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: Updated cf. comments. 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
« no previous file with comments | « pkg/compiler/lib/src/constants/values.dart ('k') | pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c2b3e416d62296f61ef30f48b417191b9deb13b3 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 computeTypeMask;
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));
+ computeTypeMask(compiler, constantSystem.createDouble(node.value)));
}
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));
+ computeTypeMask(compiler, constantSystem.createInt(node.value)));
}
T visitLiteralList(LiteralList node) {
« no previous file with comments | « pkg/compiler/lib/src/constants/values.dart ('k') | pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698