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) {
size_t HeapSnapshot::RawSnapshotSize() const {
STATIC_CHECK(sizeof(*this) ==
SnapshotSizeConstants<kPointerSize>::kExpectedHeapSnapshotSize);
STATIC_CHECK(SnapshotSizeConstants<kPointerSize>::kExpectedHeapSnapshotSize ==
sizeof(HeapSnapshot)); // NOLINT
return
sizeof(*this) +
GetMemoryUsedByList(entries_) +
......@@ -1551,9 +1551,9 @@ Handle<HeapObject> HeapSnapshotsCollection::FindHeapObjectById(
size_t HeapSnapshotsCollection::GetUsedMemorySize() const {
STATIC_CHECK(
sizeof(*this) == SnapshotSizeConstants<kPointerSize>::
kExpectedHeapSnapshotsCollectionSize);
STATIC_CHECK(SnapshotSizeConstants<kPointerSize>::
kExpectedHeapSnapshotsCollectionSize ==
sizeof(HeapSnapshotsCollection)); // NOLINT
size_t size = sizeof(*this);
size += names_.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