Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Unified Diff: src/profile-generator.cc

Issue 10543135: Fix failing STATIC_CHECK on Windows. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698