Index: src/arm/simulator-arm.cc |
diff --git a/src/arm/simulator-arm.cc b/src/arm/simulator-arm.cc |
index c972b42a7393b1cc391e54a0e910d2104873a43b..ca9a0a894727829d8d70efd008f9a445446fceba 100644 |
--- a/src/arm/simulator-arm.cc |
+++ b/src/arm/simulator-arm.cc |
@@ -657,9 +657,8 @@ void Simulator::FlushICache(v8::internal::HashMap* i_cache, |
CachePage* Simulator::GetCachePage(v8::internal::HashMap* i_cache, void* page) { |
- v8::internal::HashMap::Entry* entry = i_cache->Lookup(page, |
- ICacheHash(page), |
- true); |
+ v8::internal::HashMap::Entry* entry = |
+ i_cache->LookupOrInsert(page, ICacheHash(page)); |
if (entry->value == NULL) { |
CachePage* new_page = new CachePage(); |
entry->value = new_page; |