Index: src/objects.cc |
=================================================================== |
--- src/objects.cc (revision 1984) |
+++ src/objects.cc (working copy) |
@@ -5936,20 +5936,6 @@ |
} |
-// Thomas Wang, Integer Hash Functions. |
-// http://www.concentric.net/~Ttwang/tech/inthash.htm |
-static uint32_t ComputeIntegerHash(uint32_t key) { |
- uint32_t hash = key; |
- hash = ~hash + (hash << 15); // hash = (hash << 15) - hash - 1; |
- hash = hash ^ (hash >> 12); |
- hash = hash + (hash << 2); |
- hash = hash ^ (hash >> 4); |
- hash = hash * 2057; // hash = (hash + (hash << 3)) + (hash << 11); |
- hash = hash ^ (hash >> 16); |
- return hash; |
-} |
- |
- |
// The NumberKey uses carries the uint32_t as key. |
// This avoids allocation in HasProperty. |
class NumberKey : public HashTableKey { |