Reviewers: Mikhail Naganov (Chromium),
Description:
Fix failing STATIC_CHECK on Windows.
Please review this at https://chromiumcodereview.appspot.com/10543135/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/profile-generator.cc
Index: src/profile-generator.cc
diff --git a/src/profile-generator.cc b/src/profile-generator.cc
index
216dc8dcec8c62d79f2ac156ffe4980926f2983f..ca19f4aaaffea68b8a12e0764086bfa09ec5e06a
100644
--- a/src/profile-generator.cc
+++ b/src/profile-generator.cc
@@ -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();
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev