diff options
Diffstat (limited to 'deps/v8/src/objects/js-array.h')
-rw-r--r-- | deps/v8/src/objects/js-array.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/v8/src/objects/js-array.h b/deps/v8/src/objects/js-array.h index cd1d2d800d..5a7da797cc 100644 --- a/deps/v8/src/objects/js-array.h +++ b/deps/v8/src/objects/js-array.h @@ -25,6 +25,16 @@ class JSArray : public JSObject { public: // [length]: The length property. DECL_ACCESSORS(length, Object) + DECL_RELAXED_GETTER(length, Object) + + // Acquire/release semantics on this field are explicitly forbidden to avoid + // confusion, since the default setter uses relaxed semantics. If + // acquire/release semantics ever become necessary, the default setter should + // be reverted to non-atomic behavior, and setters with explicit tags + // introduced and used when required. + Object length(IsolateRoot isolate, AcquireLoadTag tag) const = delete; + void set_length(Object value, ReleaseStoreTag tag, + WriteBarrierMode mode = UPDATE_WRITE_BARRIER) = delete; // Overload the length setter to skip write barrier when the length // is set to a smi. This matches the set function on FixedArray. |