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

Side by Side Diff: src/profile-generator.cc

Issue 9664042: Style fix after reapplying the patch r10996. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/profile-generator.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1454 matching lines...) Expand 10 before | Expand all | Expand 10 after
1465 1465
1466 1466
1467 void HeapSnapshotsCollection::RemoveSnapshot(HeapSnapshot* snapshot) { 1467 void HeapSnapshotsCollection::RemoveSnapshot(HeapSnapshot* snapshot) {
1468 snapshots_.RemoveElement(snapshot); 1468 snapshots_.RemoveElement(snapshot);
1469 unsigned uid = snapshot->uid(); 1469 unsigned uid = snapshot->uid();
1470 snapshots_uids_.Remove(reinterpret_cast<void*>(uid), 1470 snapshots_uids_.Remove(reinterpret_cast<void*>(uid),
1471 static_cast<uint32_t>(uid)); 1471 static_cast<uint32_t>(uid));
1472 } 1472 }
1473 1473
1474 1474
1475 Handle<HeapObject> HeapSnapshotsCollection::FindHeapObjectById(SnapshotObjectId id) { 1475 Handle<HeapObject> HeapSnapshotsCollection::FindHeapObjectById(
1476 SnapshotObjectId id) {
1476 // First perform a full GC in order to avoid dead objects. 1477 // First perform a full GC in order to avoid dead objects.
1477 HEAP->CollectAllGarbage(Heap::kMakeHeapIterableMask, 1478 HEAP->CollectAllGarbage(Heap::kMakeHeapIterableMask,
1478 "HeapSnapshotsCollection::FindHeapObjectById"); 1479 "HeapSnapshotsCollection::FindHeapObjectById");
1479 AssertNoAllocation no_allocation; 1480 AssertNoAllocation no_allocation;
1480 HeapObject* object = NULL; 1481 HeapObject* object = NULL;
1481 HeapIterator iterator(HeapIterator::kFilterUnreachable); 1482 HeapIterator iterator(HeapIterator::kFilterUnreachable);
1482 // Make sure that object with the given id is still reachable. 1483 // Make sure that object with the given id is still reachable.
1483 for (HeapObject* obj = iterator.next(); 1484 for (HeapObject* obj = iterator.next();
1484 obj != NULL; 1485 obj != NULL;
1485 obj = iterator.next()) { 1486 obj = iterator.next()) {
(...skipping 2248 matching lines...) Expand 10 before | Expand all | Expand 10 after
3734 3735
3735 3736
3736 void HeapSnapshotJSONSerializer::SortHashMap( 3737 void HeapSnapshotJSONSerializer::SortHashMap(
3737 HashMap* map, List<HashMap::Entry*>* sorted_entries) { 3738 HashMap* map, List<HashMap::Entry*>* sorted_entries) {
3738 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) 3739 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p))
3739 sorted_entries->Add(p); 3740 sorted_entries->Add(p);
3740 sorted_entries->Sort(SortUsingEntryValue); 3741 sorted_entries->Sort(SortUsingEntryValue);
3741 } 3742 }
3742 3743
3743 } } // namespace v8::internal 3744 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/profile-generator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698