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

Unified Diff: pkg/compiler/lib/src/ssa/nodes.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/ssa/nodes.dart
diff --git a/pkg/compiler/lib/src/ssa/nodes.dart b/pkg/compiler/lib/src/ssa/nodes.dart
index 29731459e1e1ac9d8858995a16f21a719da7b72d..8ad3f940adec20cb8d99d4eb592efef218122ad9 100644
--- a/pkg/compiler/lib/src/ssa/nodes.dart
+++ b/pkg/compiler/lib/src/ssa/nodes.dart
@@ -173,7 +173,7 @@ class HGraph {
HConstant addConstant(ConstantValue constant, Compiler compiler) {
HConstant result = constants[constant];
if (result == null) {
- TypeMask type = constant.computeMask(compiler);
+ TypeMask type = constant.accept(COMPUTE_TYPE_MASK, compiler);
result = new HConstant.internal(constant, type);
entry.addAtExit(result);
constants[constant] = result;

Powered by Google App Engine
This is Rietveld 408576698