Index: src/mips64/simulator-mips64.cc |
diff --git a/src/mips64/simulator-mips64.cc b/src/mips64/simulator-mips64.cc |
index 8d1df3d38c58d413d5da43f58101bff5a16f0f54..e361242e0580055610d43cfe4f676c61de3db00c 100644 |
--- a/src/mips64/simulator-mips64.cc |
+++ b/src/mips64/simulator-mips64.cc |
@@ -819,9 +819,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; |