Reviewed by Mark.
authorzimmermann <zimmermann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Jul 2007 12:56:05 +0000 (12:56 +0000)
committerzimmermann <zimmermann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Jul 2007 12:56:05 +0000 (12:56 +0000)
Forwardport the hash table fix from CodeGeneratorJS.pm to create_hash_table.
Reran run-jsc-tests, couldn't find any regressions. Suggested by Darin.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24198 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/create_hash_table

index 367f34cea7fba11e1ab44e3200b3bb18d2567555..f656616f647c94b06f9218313fe68b37a7d2cfb8 100644 (file)
@@ -1,3 +1,12 @@
+2007-07-11  Nikolas Zimmermann  <zimmermann@kde.org>
+
+        Reviewed by Mark.
+
+        Forwardport the hash table fix from CodeGeneratorJS.pm to create_hash_table.
+        Reran run-jsc-tests, couldn't find any regressions. Suggested by Darin.
+
+        * kjs/create_hash_table:
+
 2007-07-09  Maciej Stachowiak  <mjs@apple.com>
 
         Reviewed by Oliver.
index 95f018d62a40787eb3d8607ab0cc9d301ab20a33..565753182879dee9882b9dfae3c4c661dc370ca0 100755 (executable)
@@ -188,6 +188,7 @@ sub hashValue($) {
     $hash   = (leftShift($hash, 16)% $EXP2_32) ^ $tmp;
     $s += 2;
     $hash += $hash >> 11;
+    $hash %= $EXP2_32;
   }
 
   # Handle end case