Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Unified Diff: src/profile-generator.cc

Issue 6529055: [Isolates] Merge crankshaft (r5922 from bleeding_edge). (Closed)
Patch Set: Win32 port Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/prettyprinter.h ('k') | src/property.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
}
« no previous file with comments | « src/prettyprinter.h ('k') | src/property.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698