Commit f1ff027d authored by alexeif@chromium.org's avatar alexeif@chromium.org

Fix formatting.

TBR=mnaganov@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10356075

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11534 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 159ee25b
...@@ -931,12 +931,11 @@ void ProfileGenerator::RecordTickSample(const TickSample& sample) { ...@@ -931,12 +931,11 @@ void ProfileGenerator::RecordTickSample(const TickSample& sample) {
} }
HeapGraphEdge::HeapGraphEdge( HeapGraphEdge::HeapGraphEdge(Type type, const char* name, int from, int to)
Type type, const char* name, int from, int to) : : type_(type),
type_(type), from_index_(from),
from_index_(from), to_index_(to),
to_index_(to), name_(name) {
name_(name) {
ASSERT(type == kContextVariable ASSERT(type == kContextVariable
|| type == kProperty || type == kProperty
|| type == kInternal || type == kInternal
...@@ -944,11 +943,11 @@ HeapGraphEdge::HeapGraphEdge( ...@@ -944,11 +943,11 @@ HeapGraphEdge::HeapGraphEdge(
} }
HeapGraphEdge::HeapGraphEdge(Type type, int index, int from, int to) : HeapGraphEdge::HeapGraphEdge(Type type, int index, int from, int to)
type_(type), : type_(type),
from_index_(from), from_index_(from),
to_index_(to), to_index_(to),
index_(index) { index_(index) {
ASSERT(type == kElement || type == kHidden || type == kWeak); ASSERT(type == kElement || type == kHidden || type == kWeak);
} }
...@@ -964,20 +963,20 @@ HeapEntry::HeapEntry(HeapSnapshot* snapshot, ...@@ -964,20 +963,20 @@ HeapEntry::HeapEntry(HeapSnapshot* snapshot,
Type type, Type type,
const char* name, const char* name,
SnapshotObjectId id, SnapshotObjectId id,
int self_size) : int self_size)
painted_(false), : painted_(false),
user_reachable_(false), user_reachable_(false),
dominator_(kNoEntry), dominator_(kNoEntry),
type_(type), type_(type),
retainers_count_(0), retainers_count_(0),
retainers_index_(-1), retainers_index_(-1),
children_count_(0), children_count_(0),
children_index_(-1), children_index_(-1),
self_size_(self_size), self_size_(self_size),
retained_size_(0), retained_size_(0),
id_(id), id_(id),
snapshot_(snapshot), snapshot_(snapshot),
name_(name) { } name_(name) { }
void HeapEntry::SetNamedReference(HeapGraphEdge::Type type, void HeapEntry::SetNamedReference(HeapGraphEdge::Type type,
...@@ -1275,7 +1274,7 @@ void HeapSnapshot::Print(int max_depth) { ...@@ -1275,7 +1274,7 @@ void HeapSnapshot::Print(int max_depth) {
template<typename T, class P> 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); return list.capacity() * sizeof(T);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment