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
This commit is contained in:
alexeif@chromium.org 2012-06-13 11:23:16 +00:00
parent 89176e88d8
commit 55595839f6

View File

@ -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();