mirror of
https://github.com/nodejs/node.git
synced 2024-11-24 03:07:54 +01:00
deps: avoid compilation error with ASan
Refs: https://bugs.chromium.org/p/v8/issues/detail?id=14221 PR-URL: https://github.com/nodejs/node/pull/49639 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: https://github.com/nodejs/node/pull/54077 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
This commit is contained in:
parent
e600de93cf
commit
ed029bded7
@ -36,7 +36,7 @@
|
||||
|
||||
# Reset this number to 0 on major V8 upgrades.
|
||||
# Increment by one for each non-official patch applied to deps/v8.
|
||||
'v8_embedder_string': '-node.2',
|
||||
'v8_embedder_string': '-node.3',
|
||||
|
||||
##### V8 defaults for Node.js #####
|
||||
|
||||
|
24
deps/v8/src/objects/object-macros.h
vendored
24
deps/v8/src/objects/object-macros.h
vendored
@ -696,24 +696,24 @@
|
||||
#define WRITE_BARRIER(object, offset, value)
|
||||
#define WRITE_BARRIER_CPP(object, offset, value)
|
||||
#else
|
||||
#define WRITE_BARRIER(object, offset, value) \
|
||||
do { \
|
||||
DCHECK_NOT_NULL(GetHeapFromWritableObject(object)); \
|
||||
static_assert(kTaggedCanConvertToRawObjects); \
|
||||
CombinedWriteBarrier(object, Tagged(object)->RawField(offset), value, \
|
||||
UPDATE_WRITE_BARRIER); \
|
||||
#define WRITE_BARRIER(object, offset, value) \
|
||||
do { \
|
||||
DCHECK_NOT_NULL(GetHeapFromWritableObject(object)); \
|
||||
static_assert(kTaggedCanConvertToRawObjects); \
|
||||
CombinedWriteBarrier(object, (object)->RawField(offset), value, \
|
||||
UPDATE_WRITE_BARRIER); \
|
||||
} while (false)
|
||||
#endif
|
||||
|
||||
#ifdef V8_DISABLE_WRITE_BARRIERS
|
||||
#define WEAK_WRITE_BARRIER(object, offset, value)
|
||||
#else
|
||||
#define WEAK_WRITE_BARRIER(object, offset, value) \
|
||||
do { \
|
||||
DCHECK_NOT_NULL(GetHeapFromWritableObject(object)); \
|
||||
static_assert(kTaggedCanConvertToRawObjects); \
|
||||
CombinedWriteBarrier(object, Tagged(object)->RawMaybeWeakField(offset), \
|
||||
value, UPDATE_WRITE_BARRIER); \
|
||||
#define WEAK_WRITE_BARRIER(object, offset, value) \
|
||||
do { \
|
||||
DCHECK_NOT_NULL(GetHeapFromWritableObject(object)); \
|
||||
static_assert(kTaggedCanConvertToRawObjects); \
|
||||
CombinedWriteBarrier(object, (object)->RawMaybeWeakField(offset), value, \
|
||||
UPDATE_WRITE_BARRIER); \
|
||||
} while (false)
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user