Index: src/heap/spaces.cc |
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc |
index 18d1b50cf2c47ac02f2aa884f96b10a9895427a2..e651e0dcb75aa1d1ac2401a9113eb983b816e4d2 100644 |
--- a/src/heap/spaces.cc |
+++ b/src/heap/spaces.cc |
@@ -2902,8 +2902,8 @@ AllocationResult LargeObjectSpace::AllocateRaw(int object_size, |
uintptr_t base = reinterpret_cast<uintptr_t>(page) / MemoryChunk::kAlignment; |
uintptr_t limit = base + (page->size() - 1) / MemoryChunk::kAlignment; |
for (uintptr_t key = base; key <= limit; key++) { |
- HashMap::Entry* entry = chunk_map_.Lookup(reinterpret_cast<void*>(key), |
- static_cast<uint32_t>(key), true); |
+ HashMap::Entry* entry = chunk_map_.LookupOrInsert( |
+ reinterpret_cast<void*>(key), static_cast<uint32_t>(key)); |
DCHECK(entry != NULL); |
entry->value = page; |
} |
@@ -2950,7 +2950,7 @@ Object* LargeObjectSpace::FindObject(Address a) { |
LargePage* LargeObjectSpace::FindPage(Address a) { |
uintptr_t key = reinterpret_cast<uintptr_t>(a) / MemoryChunk::kAlignment; |
HashMap::Entry* e = chunk_map_.Lookup(reinterpret_cast<void*>(key), |
- static_cast<uint32_t>(key), false); |
+ static_cast<uint32_t>(key)); |
if (e != NULL) { |
DCHECK(e->value != NULL); |
LargePage* page = reinterpret_cast<LargePage*>(e->value); |