| Index: src/allocation-tracker.cc
|
| diff --git a/src/allocation-tracker.cc b/src/allocation-tracker.cc
|
| index 1ad86b88ff8679a1dbf9568eaa8ee7fd022f331c..227d969c2e39c558da21d38566b4b69c69919fab 100644
|
| --- a/src/allocation-tracker.cc
|
| +++ b/src/allocation-tracker.cc
|
| @@ -262,8 +262,8 @@ static uint32_t SnapshotObjectIdHash(SnapshotObjectId id) {
|
|
|
| unsigned AllocationTracker::AddFunctionInfo(SharedFunctionInfo* shared,
|
| SnapshotObjectId id) {
|
| - HashMap::Entry* entry = id_to_function_info_index_.Lookup(
|
| - reinterpret_cast<void*>(id), SnapshotObjectIdHash(id), true);
|
| + HashMap::Entry* entry = id_to_function_info_index_.LookupOrInsert(
|
| + reinterpret_cast<void*>(id), SnapshotObjectIdHash(id));
|
| if (entry->value == NULL) {
|
| FunctionInfo* info = new FunctionInfo();
|
| info->name = names_->GetFunctionName(shared->DebugName());
|
|
|