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

Unified Diff: third_party/WebKit/Source/wtf/SizeLimits.cpp

Issue 2778993002: HashTable check
Patch Set: fix Created 3 years, 9 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 | « third_party/WebKit/Source/platform/wtf/Vector.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/SizeLimits.cpp
diff --git a/third_party/WebKit/Source/wtf/SizeLimits.cpp b/third_party/WebKit/Source/wtf/SizeLimits.cpp
index 6999a30f4752885b0c4c08be05e00cc222c2a1c2..4ac6c5df1d3d50d554864e063b000e4d3e29e3e9 100644
--- a/third_party/WebKit/Source/wtf/SizeLimits.cpp
+++ b/third_party/WebKit/Source/wtf/SizeLimits.cpp
@@ -88,6 +88,7 @@ static_assert(sizeof(RefPtr<RefCounted<int>>) == sizeof(int*),
static_assert(sizeof(String) == sizeof(int*), "String should stay small");
static_assert(sizeof(AtomicString) == sizeof(String),
"AtomicString should stay small");
+#if !DCHECK_IS_ON()
static_assert(sizeof(Vector<int>) ==
sizeof(SameSizeAsVectorWithInlineCapacity<int>),
"Vector should stay small");
@@ -100,4 +101,5 @@ static_assert(sizeof(Vector<int, 2>) ==
static_assert(sizeof(Vector<int, 3>) ==
sizeof(SameSizeAsVectorWithInlineCapacity<int, 3>),
"Vector should stay small");
+#endif
} // namespace WTF
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/Vector.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698