Revision: 9177
Author:   [email protected]
Date:     Wed Sep  7 06:44:42 2011
Log:      Fix 64 bit build on Windows.
Review URL: http://codereview.chromium.org/7841035
http://code.google.com/p/v8/source/detail?r=9177

Modified:
 /branches/bleeding_edge/src/heap.cc

=======================================
--- /branches/bleeding_edge/src/heap.cc Wed Sep  7 06:17:25 2011
+++ /branches/bleeding_edge/src/heap.cc Wed Sep  7 06:44:42 2011
@@ -2259,8 +2259,8 @@
 Object* StringSplitCache::Lookup(
     FixedArray* cache, String* string, String* pattern) {
   if (!string->IsSymbol() || !pattern->IsSymbol()) return Smi::FromInt(0);
-  uintptr_t hash = string->Hash();
-  uintptr_t index = ((hash & (kStringSplitCacheSize - 1)) &
+  uint32_t hash = string->Hash();
+  uint32_t index = ((hash & (kStringSplitCacheSize - 1)) &
       ~(kArrayEntriesPerCacheEntry - 1));
   if (cache->get(index + kStringOffset) == string &&
       cache->get(index + kPatternOffset) == pattern) {
@@ -2281,8 +2281,8 @@
                              String* pattern,
                              FixedArray* array) {
   if (!string->IsSymbol() || !pattern->IsSymbol()) return;
-  uintptr_t hash = string->Hash();
-  uintptr_t index = ((hash & (kStringSplitCacheSize - 1)) &
+  uint32_t hash = string->Hash();
+  uint32_t index = ((hash & (kStringSplitCacheSize - 1)) &
       ~(kArrayEntriesPerCacheEntry - 1));
   if (cache->get(index + kStringOffset) == Smi::FromInt(0)) {
     cache->set(index + kStringOffset, string);
@@ -2290,7 +2290,7 @@
     cache->set(index + kArrayOffset, array);
     return;
   }
-  uintptr_t index2 =
+  uint32_t index2 =
       ((index + kArrayEntriesPerCacheEntry) & (kStringSplitCacheSize - 1));
   if (cache->get(index2 + kStringOffset) == Smi::FromInt(0)) {
     cache->set(index2 + kStringOffset, string);

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to