diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-03-31 14:38:28 +0200 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-04-02 00:05:24 +0400 |
commit | 67e078094b53861a5aa7e9354e33487d0bd4f73b (patch) | |
tree | 09a706adee1ddb59c1507ee3320de9cb6896135b /deps/v8/src/zone.h | |
parent | f984555d47298cfb01b3e55c2861066379306fc3 (diff) | |
download | node-new-67e078094b53861a5aa7e9354e33487d0bd4f73b.tar.gz |
deps: upgrade v8 to 3.25.30
Diffstat (limited to 'deps/v8/src/zone.h')
-rw-r--r-- | deps/v8/src/zone.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/deps/v8/src/zone.h b/deps/v8/src/zone.h index bd7cc39b0c..83421b3963 100644 --- a/deps/v8/src/zone.h +++ b/deps/v8/src/zone.h @@ -38,6 +38,11 @@ namespace v8 { namespace internal { +#if defined(__has_feature) + #if __has_feature(address_sanitizer) + #define V8_USE_ADDRESS_SANITIZER + #endif +#endif class Segment; class Isolate; @@ -89,8 +94,13 @@ class Zone { // All pointers returned from New() have this alignment. In addition, if the // object being allocated has a size that is divisible by 8 then its alignment - // will be 8. + // will be 8. ASan requires 8-byte alignment. +#ifdef V8_USE_ADDRESS_SANITIZER + static const int kAlignment = 8; + STATIC_ASSERT(kPointerSize <= 8); +#else static const int kAlignment = kPointerSize; +#endif // Never allocate segments smaller than this size in bytes. static const int kMinimumSegmentSize = 8 * KB; |