Revision: 11795
Author: [email protected]
Date: Wed Jun 13 04:23:16 2012
Log: Fix failing STATIC_CHECK on Windows.
Review URL: https://chromiumcodereview.appspot.com/10543135
http://code.google.com/p/v8/source/detail?r=11795
Modified:
/branches/bleeding_edge/src/profile-generator.cc
=======================================
--- /branches/bleeding_edge/src/profile-generator.cc Wed Jun 13 04:02:24
2012
+++ /branches/bleeding_edge/src/profile-generator.cc Wed Jun 13 04:23:16
2012
@@ -1261,8 +1261,8 @@
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 @@
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