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

Side by Side Diff: third_party/WebKit/Source/wtf/SizeLimits.cpp

Issue 2778993002: HashTable check
Patch Set: fix Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/Vector.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 "std::unique_ptr should stay small"); 81 "std::unique_ptr should stay small");
82 static_assert(sizeof(PassRefPtr<RefCounted<int>>) == sizeof(int*), 82 static_assert(sizeof(PassRefPtr<RefCounted<int>>) == sizeof(int*),
83 "PassRefPtr should stay small"); 83 "PassRefPtr should stay small");
84 static_assert(sizeof(RefCounted<int>) == sizeof(SameSizeAsRefCounted), 84 static_assert(sizeof(RefCounted<int>) == sizeof(SameSizeAsRefCounted),
85 "RefCounted should stay small"); 85 "RefCounted should stay small");
86 static_assert(sizeof(RefPtr<RefCounted<int>>) == sizeof(int*), 86 static_assert(sizeof(RefPtr<RefCounted<int>>) == sizeof(int*),
87 "RefPtr should stay small"); 87 "RefPtr should stay small");
88 static_assert(sizeof(String) == sizeof(int*), "String should stay small"); 88 static_assert(sizeof(String) == sizeof(int*), "String should stay small");
89 static_assert(sizeof(AtomicString) == sizeof(String), 89 static_assert(sizeof(AtomicString) == sizeof(String),
90 "AtomicString should stay small"); 90 "AtomicString should stay small");
91 #if !DCHECK_IS_ON()
91 static_assert(sizeof(Vector<int>) == 92 static_assert(sizeof(Vector<int>) ==
92 sizeof(SameSizeAsVectorWithInlineCapacity<int>), 93 sizeof(SameSizeAsVectorWithInlineCapacity<int>),
93 "Vector should stay small"); 94 "Vector should stay small");
94 static_assert(sizeof(Vector<int, 1>) == 95 static_assert(sizeof(Vector<int, 1>) ==
95 sizeof(SameSizeAsVectorWithInlineCapacity<int, 1>), 96 sizeof(SameSizeAsVectorWithInlineCapacity<int, 1>),
96 "Vector should stay small"); 97 "Vector should stay small");
97 static_assert(sizeof(Vector<int, 2>) == 98 static_assert(sizeof(Vector<int, 2>) ==
98 sizeof(SameSizeAsVectorWithInlineCapacity<int, 2>), 99 sizeof(SameSizeAsVectorWithInlineCapacity<int, 2>),
99 "Vector should stay small"); 100 "Vector should stay small");
100 static_assert(sizeof(Vector<int, 3>) == 101 static_assert(sizeof(Vector<int, 3>) ==
101 sizeof(SameSizeAsVectorWithInlineCapacity<int, 3>), 102 sizeof(SameSizeAsVectorWithInlineCapacity<int, 3>),
102 "Vector should stay small"); 103 "Vector should stay small");
104 #endif
103 } // namespace WTF 105 } // namespace WTF
OLDNEW
« 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