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

Unified Diff: src/base/macros.h

Issue 273383003: v8::TryCatch now works correctly with ASAN's UseAfterReturn mode enabled. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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
« src/api.cc ('K') | « src/api.cc ('k') | src/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/macros.h
diff --git a/src/base/macros.h b/src/base/macros.h
index b99f01b230c52db6c11e90a49c608919ae6ccfab..5b3e90bc7d23699c1a0650f6ecfd94639b60dc50 100644
--- a/src/base/macros.h
+++ b/src/base/macros.h
@@ -54,15 +54,22 @@
#define MUST_USE_RESULT V8_WARN_UNUSED_RESULT
-// Define DISABLE_ASAN macros.
+// Define ASAN_BUILD macros.
+#ifdef ASAN_BUILD
+#error "ASAN_BUILD macros must not be defined."
+#endif
+
#if defined(__has_feature)
#if __has_feature(address_sanitizer)
-#define DISABLE_ASAN __attribute__((no_sanitize_address))
+#define ASAN_BUILD 1
Jakob Kummerow 2014/05/12 16:57:01 We already define V8_USE_ADDRESS_SANITIZER in zone
Igor Sheludko 2014/05/12 17:09:52 Done.
#endif
#endif
-#ifndef DISABLE_ASAN
+// Define DISABLE_ASAN macros.
+#ifdef ASAN_BUILD
+#define DISABLE_ASAN __attribute__((no_sanitize_address))
+#else
#define DISABLE_ASAN
#endif
« src/api.cc ('K') | « src/api.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698