Commit d30ea0ee authored by paul.lind's avatar paul.lind Committed by Commit bot

MIPS: Split TemplateHashMapImpl::Lookup into two methods.

Port 5277c410.

BUG=

Review URL: https://codereview.chromium.org/1084723003

Cr-Commit-Position: refs/heads/master@{#27800}
parent 5277c410
...@@ -889,9 +889,8 @@ void Simulator::FlushICache(v8::internal::HashMap* i_cache, ...@@ -889,9 +889,8 @@ void Simulator::FlushICache(v8::internal::HashMap* i_cache,
CachePage* Simulator::GetCachePage(v8::internal::HashMap* i_cache, void* page) { CachePage* Simulator::GetCachePage(v8::internal::HashMap* i_cache, void* page) {
v8::internal::HashMap::Entry* entry = i_cache->Lookup(page, v8::internal::HashMap::Entry* entry =
ICacheHash(page), i_cache->LookupOrInsert(page, ICacheHash(page));
true);
if (entry->value == NULL) { if (entry->value == NULL) {
CachePage* new_page = new CachePage(); CachePage* new_page = new CachePage();
entry->value = new_page; entry->value = new_page;
......
...@@ -819,9 +819,8 @@ void Simulator::FlushICache(v8::internal::HashMap* i_cache, ...@@ -819,9 +819,8 @@ void Simulator::FlushICache(v8::internal::HashMap* i_cache,
CachePage* Simulator::GetCachePage(v8::internal::HashMap* i_cache, void* page) { CachePage* Simulator::GetCachePage(v8::internal::HashMap* i_cache, void* page) {
v8::internal::HashMap::Entry* entry = i_cache->Lookup(page, v8::internal::HashMap::Entry* entry =
ICacheHash(page), i_cache->LookupOrInsert(page, ICacheHash(page));
true);
if (entry->value == NULL) { if (entry->value == NULL) {
CachePage* new_page = new CachePage(); CachePage* new_page = new CachePage();
entry->value = new_page; entry->value = new_page;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment