OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of types; | 5 part of types; |
6 | 6 |
7 /** | 7 /** |
8 * A [MapTypeMask] is a [TypeMask] for a specific allocation | 8 * A [MapTypeMask] is a [TypeMask] for a specific allocation |
9 * site of a map (currently only internal Map class) that will get specialized | 9 * site of a map (currently only internal Map class) that will get specialized |
10 * once the [TypeGraphInferrer] phase finds a key and/or value type for it. | 10 * once the [TypeGraphInferrer] phase finds a key and/or value type for it. |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 int get hashCode { | 112 int get hashCode { |
113 return computeHashCode( | 113 return computeHashCode( |
114 allocationNode, isNullable, keyType, valueType, forwardTo); | 114 allocationNode, isNullable, keyType, valueType, forwardTo); |
115 } | 115 } |
116 | 116 |
117 String toString() { | 117 String toString() { |
118 return 'Map mask: [$keyType/$valueType] type: $forwardTo'; | 118 return 'Map mask: [$keyType/$valueType] type: $forwardTo'; |
119 } | 119 } |
120 } | 120 } |
OLD | NEW |