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:
parent
89176e88d8
commit
55595839f6
@ -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(
|
|||||||
|
|
||||||
|
|
||||||
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user