Index: src/runtime.cc |
=================================================================== |
--- src/runtime.cc (revision 9765) |
+++ src/runtime.cc (working copy) |
@@ -13199,7 +13199,9 @@ |
} |
#ifdef DEBUG |
- cache_handle->JSFunctionResultCacheVerify(); |
+ if (FLAG_verify_heap) { |
+ cache_handle->JSFunctionResultCacheVerify(); |
+ } |
#endif |
// Function invocation may have cleared the cache. Reread all the data. |
@@ -13228,7 +13230,9 @@ |
cache_handle->set_finger_index(index); |
#ifdef DEBUG |
- cache_handle->JSFunctionResultCacheVerify(); |
+ if (FLAG_verify_heap) { |
+ cache_handle->JSFunctionResultCacheVerify(); |
+ } |
#endif |
return *value; |