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

Fix failing STATIC_CHECK on Windows.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11795 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 89176e88
...@@ -1261,8 +1261,8 @@ static size_t GetMemoryUsedByList(const List<T, P>& list) { ...@@ -1261,8 +1261,8 @@ static size_t GetMemoryUsedByList(const List<T, P>& list) {
size_t HeapSnapshot::RawSnapshotSize() const { size_t HeapSnapshot::RawSnapshotSize() const {
STATIC_CHECK(sizeof(*this) == STATIC_CHECK(SnapshotSizeConstants<kPointerSize>::kExpectedHeapSnapshotSize ==
SnapshotSizeConstants<kPointerSize>::kExpectedHeapSnapshotSize); sizeof(HeapSnapshot)); // NOLINT
return return
sizeof(*this) + sizeof(*this) +
GetMemoryUsedByList(entries_) + GetMemoryUsedByList(entries_) +
...@@ -1551,9 +1551,9 @@ Handle<HeapObject> HeapSnapshotsCollection::FindHeapObjectById( ...@@ -1551,9 +1551,9 @@ Handle<HeapObject> HeapSnapshotsCollection::FindHeapObjectById(
size_t HeapSnapshotsCollection::GetUsedMemorySize() const { size_t HeapSnapshotsCollection::GetUsedMemorySize() const {
STATIC_CHECK( STATIC_CHECK(SnapshotSizeConstants<kPointerSize>::
sizeof(*this) == SnapshotSizeConstants<kPointerSize>:: kExpectedHeapSnapshotsCollectionSize ==
kExpectedHeapSnapshotsCollectionSize); sizeof(HeapSnapshotsCollection)); // NOLINT
size_t size = sizeof(*this); size_t size = sizeof(*this);
size += names_.GetUsedMemorySize(); size += names_.GetUsedMemorySize();
size += ids_.GetUsedMemorySize(); size += ids_.GetUsedMemorySize();
......
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