| Index: src/snapshot/serialize.h
|
| diff --git a/src/snapshot/serialize.h b/src/snapshot/serialize.h
|
| index 41c4286e2b2a65d4ea5216a9e4f0ea085d49d2ca..e05e33ca07a835e45e965e88cfcc27cbb3dfa233 100644
|
| --- a/src/snapshot/serialize.h
|
| +++ b/src/snapshot/serialize.h
|
| @@ -81,7 +81,10 @@ class AddressMapBase {
|
|
|
| inline static HashMap::Entry* LookupEntry(HashMap* map, HeapObject* obj,
|
| bool insert) {
|
| - return map->Lookup(Key(obj), Hash(obj), insert);
|
| + if (insert) {
|
| + map->LookupOrInsert(Key(obj), Hash(obj));
|
| + }
|
| + return map->Lookup(Key(obj), Hash(obj));
|
| }
|
|
|
| private:
|
|
|