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

Side by Side Diff: src/checks.h

Issue 2846012: Heap profiler: add a missing link between a function closure and shared function info. (Closed)
Patch Set: comments addressed Created 10 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 unified diff | Download patch
« no previous file with comments | « src/api.cc ('k') | src/profile-generator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 expected_source, value_source, value); 148 expected_source, value_source, value);
149 } 149 }
150 } 150 }
151 151
152 152
153 // Helper function used by the CHECK function when given pointer 153 // Helper function used by the CHECK function when given pointer
154 // arguments. Should not be called directly. 154 // arguments. Should not be called directly.
155 static inline void CheckEqualsHelper(const char* file, 155 static inline void CheckEqualsHelper(const char* file,
156 int line, 156 int line,
157 const char* expected_source, 157 const char* expected_source,
158 void* expected, 158 const void* expected,
159 const char* value_source, 159 const char* value_source,
160 void* value) { 160 const void* value) {
161 if (expected != value) { 161 if (expected != value) {
162 V8_Fatal(file, line, 162 V8_Fatal(file, line,
163 "CHECK_EQ(%s, %s) failed\n# Expected: %p\n# Found: %p", 163 "CHECK_EQ(%s, %s) failed\n# Expected: %p\n# Found: %p",
164 expected_source, value_source, 164 expected_source, value_source,
165 expected, value); 165 expected, value);
166 } 166 }
167 } 167 }
168 168
169 169
170 static inline void CheckNonEqualsHelper(const char* file, 170 static inline void CheckNonEqualsHelper(const char* file,
171 int line, 171 int line,
172 const char* expected_source, 172 const char* expected_source,
173 void* expected, 173 const void* expected,
174 const char* value_source, 174 const char* value_source,
175 void* value) { 175 const void* value) {
176 if (expected == value) { 176 if (expected == value) {
177 V8_Fatal(file, line, "CHECK_NE(%s, %s) failed\n# Value: %p", 177 V8_Fatal(file, line, "CHECK_NE(%s, %s) failed\n# Value: %p",
178 expected_source, value_source, value); 178 expected_source, value_source, value);
179 } 179 }
180 } 180 }
181 181
182 182
183 // Helper function used by the CHECK function when given floating 183 // Helper function used by the CHECK function when given floating
184 // point arguments. Should not be called directly. 184 // point arguments. Should not be called directly.
185 static inline void CheckEqualsHelper(const char* file, 185 static inline void CheckEqualsHelper(const char* file,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 301
302 302
303 #define ASSERT_TAG_ALIGNED(address) \ 303 #define ASSERT_TAG_ALIGNED(address) \
304 ASSERT((reinterpret_cast<intptr_t>(address) & kHeapObjectTagMask) == 0) 304 ASSERT((reinterpret_cast<intptr_t>(address) & kHeapObjectTagMask) == 0)
305 305
306 #define ASSERT_SIZE_TAG_ALIGNED(size) ASSERT((size & kHeapObjectTagMask) == 0) 306 #define ASSERT_SIZE_TAG_ALIGNED(size) ASSERT((size & kHeapObjectTagMask) == 0)
307 307
308 #define ASSERT_NOT_NULL(p) ASSERT_NE(NULL, p) 308 #define ASSERT_NOT_NULL(p) ASSERT_NE(NULL, p)
309 309
310 #endif // V8_CHECKS_H_ 310 #endif // V8_CHECKS_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/profile-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698