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

Side by Side Diff: Source/wtf/ValueCheck.h

Issue 22887044: [oilpan] Make the oilpan branch build on Mac. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Only disable the malloc part of consistency checking Created 7 years, 4 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 | Annotate | Revision Log
« Source/heap/Visitor.h ('K') | « Source/wtf/HashTable.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 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 24 matching lines...) Expand all
35 static void checkConsistency(const T&) { } 35 static void checkConsistency(const T&) { }
36 }; 36 };
37 37
38 #if !ASSERT_DISABLED 38 #if !ASSERT_DISABLED
39 template<typename P> struct ValueCheck<P*> { 39 template<typename P> struct ValueCheck<P*> {
40 typedef P* TraitType; 40 typedef P* TraitType;
41 static void checkConsistency(const P* p) 41 static void checkConsistency(const P* p)
42 { 42 {
43 if (!p) 43 if (!p)
44 return; 44 return;
45 ASSERT(fastMallocSize(p));
46 ValueCheck<P>::checkConsistency(*p); 45 ValueCheck<P>::checkConsistency(*p);
47 } 46 }
48 }; 47 };
49 #endif 48 #endif
50 49
51 } 50 }
52 51
53 #endif // ValueCheck_h 52 #endif // ValueCheck_h
OLDNEW
« Source/heap/Visitor.h ('K') | « Source/wtf/HashTable.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698