Index: src/mips/simulator-mips.cc |
diff --git a/src/mips/simulator-mips.cc b/src/mips/simulator-mips.cc |
index 6a34cb365106a5ac618b3dfa5e8196ec136c2381..d2493d418f4970e8cfa8988c3264b1f011cbd3c7 100644 |
--- a/src/mips/simulator-mips.cc |
+++ b/src/mips/simulator-mips.cc |
@@ -889,9 +889,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; |