OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 patch class Object { | 5 patch class Object { |
6 | 6 |
7 // The VM has its own implementation of equals. | 7 // The VM has its own implementation of equals. |
8 bool operator ==(other) native "Object_equals"; | 8 bool operator ==(other) native "Object_equals"; |
9 | 9 |
10 // Helpers used to implement hashCode. If a hashCode is used, we remember it | 10 // Helpers used to implement hashCode. If a hashCode is used, we remember it |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // feedback. Returns receiver. | 66 // feedback. Returns receiver. |
67 _as(instantiator_type_arguments, type) native "Object_as"; | 67 _as(instantiator_type_arguments, type) native "Object_as"; |
68 | 68 |
69 static _symbolMapToStringMap(Map<Symbol, dynamic> map) { | 69 static _symbolMapToStringMap(Map<Symbol, dynamic> map) { |
70 var result = new Map<String, dynamic>(); | 70 var result = new Map<String, dynamic>(); |
71 map.forEach((Symbol key, value) { | 71 map.forEach((Symbol key, value) { |
72 result[internal.Symbol.getName(key)] = value; | 72 result[internal.Symbol.getName(key)] = value; |
73 }); | 73 }); |
74 return result; | 74 return result; |
75 } | 75 } |
76 | |
77 _leftShiftWithMask32(count, mask) { | |
78 return (this << count) & mask; | |
79 } | |
80 } | 76 } |
OLD | NEW |