| Index: src/profile-generator.cc
|
| diff --git a/src/profile-generator.cc b/src/profile-generator.cc
|
| index 5e58ff8d929d889f71208034d79028c80fe32b85..7f0f3e9a88ffa47450f7571001e7fb441d112620 100644
|
| --- a/src/profile-generator.cc
|
| +++ b/src/profile-generator.cc
|
| @@ -605,8 +605,8 @@ CpuProfile* CpuProfilesCollection::GetProfile(int security_token_id,
|
| }
|
| List<CpuProfile*>* list = GetProfilesList(security_token_id);
|
| if (list->at(index) == NULL) {
|
| - list->at(index) =
|
| - unabridged_list->at(index)->FilteredClone(security_token_id);
|
| + (*list)[index] =
|
| + unabridged_list->at(index)->FilteredClone(security_token_id);
|
| }
|
| return list->at(index);
|
| }
|
| @@ -655,7 +655,7 @@ List<CpuProfile*>* CpuProfilesCollection::Profiles(int security_token_id) {
|
| const int current_count = unabridged_list->length();
|
| for (int i = 0; i < current_count; ++i) {
|
| if (list->at(i) == NULL) {
|
| - list->at(i) = unabridged_list->at(i)->FilteredClone(security_token_id);
|
| + (*list)[i] = unabridged_list->at(i)->FilteredClone(security_token_id);
|
| }
|
| }
|
| return list;
|
| @@ -1407,7 +1407,7 @@ void HeapSnapshot::FillReversePostorderIndexes(Vector<HeapEntry*>* entries) {
|
| }
|
| if (!has_new_edges) {
|
| entry->set_ordered_index(current_entry);
|
| - entries->at(current_entry++) = entry;
|
| + (*entries)[current_entry++] = entry;
|
| nodes_to_visit.RemoveLast();
|
| }
|
| }
|
| @@ -1431,8 +1431,8 @@ void HeapSnapshot::BuildDominatorTree(const Vector<HeapEntry*>& entries,
|
| Vector<HeapEntry*>* dominators) {
|
| if (entries.length() == 0) return;
|
| const int root_index = entries.length() - 1;
|
| - for (int i = 0; i < root_index; ++i) dominators->at(i) = NULL;
|
| - dominators->at(root_index) = entries[root_index];
|
| + for (int i = 0; i < root_index; ++i) (*dominators)[i] = NULL;
|
| + (*dominators)[root_index] = entries[root_index];
|
| bool changed = true;
|
| while (changed) {
|
| changed = false;
|
| @@ -1458,7 +1458,7 @@ void HeapSnapshot::BuildDominatorTree(const Vector<HeapEntry*>& entries,
|
| }
|
| }
|
| if (new_idom != NULL && dominators->at(i) != new_idom) {
|
| - dominators->at(i) = new_idom;
|
| + (*dominators)[i] = new_idom;
|
| changed = true;
|
| }
|
| }
|
|
|