Index: pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart |
diff --git a/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart b/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart |
index ed91773ef1aadac8ce238a4c89f7138e44e7e123..7c41a531f3c5a78dd22ee80c9821969b64568c57 100644 |
--- a/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart |
+++ b/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart |
@@ -43,6 +43,9 @@ import '../types/types.dart' as types show TypeMask; |
* The base class of all Tree nodes. |
*/ |
abstract class Node { |
+ /// Workaround for a slow Object.hashCode in the VM. |
+ static int _usedHashCodes = 0; |
+ final int hashCode = ++_usedHashCodes; |
} |
/** |