| Index: src/runtime.cc | 
| =================================================================== | 
| --- src/runtime.cc	(revision 4459) | 
| +++ src/runtime.cc	(working copy) | 
| @@ -10101,8 +10101,10 @@ | 
| cache->set(JSFunctionResultCache::kCacheSizeIndex, Smi::FromInt(size + 2)); | 
| return CacheMiss(cache, size, key); | 
| } else { | 
| -    int target_index = (finger_index < cache->length()) ? | 
| -        finger_index + 2 : JSFunctionResultCache::kEntriesIndex; | 
| +    int target_index = finger_index + JSFunctionResultCache::kEntrySize; | 
| +    if (target_index == cache->length()) { | 
| +      target_index = JSFunctionResultCache::kEntriesIndex; | 
| +    } | 
| return CacheMiss(cache, target_index, key); | 
| } | 
| } | 
|  |