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

Side by Side Diff: src/checks.h

Issue 200343003: Expose DumpBacktrace for debugging purposes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/checks.cc » ('j') | src/checks.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 namespace v8 { 299 namespace v8 {
300 namespace internal { 300 namespace internal {
301 #ifdef ENABLE_SLOW_ASSERTS 301 #ifdef ENABLE_SLOW_ASSERTS
302 #define SLOW_ASSERT(condition) \ 302 #define SLOW_ASSERT(condition) \
303 CHECK(!v8::internal::FLAG_enable_slow_asserts || (condition)) 303 CHECK(!v8::internal::FLAG_enable_slow_asserts || (condition))
304 extern bool FLAG_enable_slow_asserts; 304 extern bool FLAG_enable_slow_asserts;
305 #else 305 #else
306 #define SLOW_ASSERT(condition) ((void) 0) 306 #define SLOW_ASSERT(condition) ((void) 0)
307 const bool FLAG_enable_slow_asserts = false; 307 const bool FLAG_enable_slow_asserts = false;
308 #endif 308 #endif
309
310 void DumpBacktrace();
Michael Starzinger 2014/03/14 14:29:19 nit: Can we get a one-liner comment that this expo
marja 2014/03/17 10:50:07 Done.
311
309 } // namespace internal 312 } // namespace internal
310 } // namespace v8 313 } // namespace v8
311 314
312 315
313 // The ASSERT macro is equivalent to CHECK except that it only 316 // The ASSERT macro is equivalent to CHECK except that it only
314 // generates code in debug builds. 317 // generates code in debug builds.
315 #ifdef DEBUG 318 #ifdef DEBUG
316 #define ASSERT_RESULT(expr) CHECK(expr) 319 #define ASSERT_RESULT(expr) CHECK(expr)
317 #define ASSERT(condition) CHECK(condition) 320 #define ASSERT(condition) CHECK(condition)
318 #define ASSERT_EQ(v1, v2) CHECK_EQ(v1, v2) 321 #define ASSERT_EQ(v1, v2) CHECK_EQ(v1, v2)
(...skipping 21 matching lines...) Expand all
340 343
341 // "Extra checks" are lightweight checks that are enabled in some release 344 // "Extra checks" are lightweight checks that are enabled in some release
342 // builds. 345 // builds.
343 #ifdef ENABLE_EXTRA_CHECKS 346 #ifdef ENABLE_EXTRA_CHECKS
344 #define EXTRA_CHECK(condition) CHECK(condition) 347 #define EXTRA_CHECK(condition) CHECK(condition)
345 #else 348 #else
346 #define EXTRA_CHECK(condition) ((void) 0) 349 #define EXTRA_CHECK(condition) ((void) 0)
347 #endif 350 #endif
348 351
349 #endif // V8_CHECKS_H_ 352 #endif // V8_CHECKS_H_
OLDNEW
« no previous file with comments | « no previous file | src/checks.cc » ('j') | src/checks.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698