Chromium Code Reviews| Index: dart/sdk/lib/_internal/compiler/implementation/util/util.dart |
| diff --git a/dart/sdk/lib/_internal/compiler/implementation/util/util.dart b/dart/sdk/lib/_internal/compiler/implementation/util/util.dart |
| index c9c0e6657dd90ffc915bbe9a30d59d1f97ba3f6f..3456dbf4bd337772accee22f3105e05b5224080d 100644 |
| --- a/dart/sdk/lib/_internal/compiler/implementation/util/util.dart |
| +++ b/dart/sdk/lib/_internal/compiler/implementation/util/util.dart |
| @@ -108,3 +108,10 @@ void writeJsonEscapedCharsOn(String string, buffer) { |
| } |
| buffer.write(string); |
| } |
| + |
| +int computeHashCode(part1, [part2, part3, part4]) { |
|
Johnni Winther
2013/06/23 19:07:42
Wouldn't it be faster to have functions [computeHa
kasperl
2013/06/24 06:32:43
At some point we should probably figure out if usi
|
| + return (part1.hashCode |
| + ^ part2.hashCode |
| + ^ part3.hashCode |
| + ^ part4.hashCode) & 0x3fffffff; |
| +} |