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

Unified Diff: src/profile-generator.cc

Issue 10356075: Fix formatting. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 7 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 | « no previous file | no next file » | 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 214bfa407be15b08520c0db046e80b4a95f6ce52..c78bf28394dd00495ba6382191da2e07d06e3edd 100644
--- a/src/profile-generator.cc
+++ b/src/profile-generator.cc
@@ -931,12 +931,11 @@ void ProfileGenerator::RecordTickSample(const TickSample& sample) {
}
-HeapGraphEdge::HeapGraphEdge(
- Type type, const char* name, int from, int to) :
- type_(type),
- from_index_(from),
- to_index_(to),
- name_(name) {
+HeapGraphEdge::HeapGraphEdge(Type type, const char* name, int from, int to)
+ : type_(type),
+ from_index_(from),
+ to_index_(to),
+ name_(name) {
ASSERT(type == kContextVariable
|| type == kProperty
|| type == kInternal
@@ -944,11 +943,11 @@ HeapGraphEdge::HeapGraphEdge(
}
-HeapGraphEdge::HeapGraphEdge(Type type, int index, int from, int to) :
- type_(type),
- from_index_(from),
- to_index_(to),
- index_(index) {
+HeapGraphEdge::HeapGraphEdge(Type type, int index, int from, int to)
+ : type_(type),
+ from_index_(from),
+ to_index_(to),
+ index_(index) {
ASSERT(type == kElement || type == kHidden || type == kWeak);
}
@@ -964,20 +963,20 @@ HeapEntry::HeapEntry(HeapSnapshot* snapshot,
Type type,
const char* name,
SnapshotObjectId id,
- int self_size) :
- painted_(false),
- user_reachable_(false),
- dominator_(kNoEntry),
- type_(type),
- retainers_count_(0),
- retainers_index_(-1),
- children_count_(0),
- children_index_(-1),
- self_size_(self_size),
- retained_size_(0),
- id_(id),
- snapshot_(snapshot),
- name_(name) { }
+ int self_size)
+ : painted_(false),
+ user_reachable_(false),
+ dominator_(kNoEntry),
+ type_(type),
+ retainers_count_(0),
+ retainers_index_(-1),
+ children_count_(0),
+ children_index_(-1),
+ self_size_(self_size),
+ retained_size_(0),
+ id_(id),
+ snapshot_(snapshot),
+ name_(name) { }
void HeapEntry::SetNamedReference(HeapGraphEdge::Type type,
@@ -1275,7 +1274,7 @@ void HeapSnapshot::Print(int max_depth) {
template<typename T, class P>
-static size_t GetMemoryUsedByList(const List<T,P>& list) {
+static size_t GetMemoryUsedByList(const List<T, P>& list) {
return list.capacity() * sizeof(T);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698