summaryrefslogtreecommitdiff
path: root/deps/v8/include/cppgc/member.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/include/cppgc/member.h')
-rw-r--r--deps/v8/include/cppgc/member.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/deps/v8/include/cppgc/member.h b/deps/v8/include/cppgc/member.h
index 116a2c7e54..84e81251c2 100644
--- a/deps/v8/include/cppgc/member.h
+++ b/deps/v8/include/cppgc/member.h
@@ -24,7 +24,7 @@ class MemberBase {
MemberBase() = default;
explicit MemberBase(void* value) : raw_(value) {}
- void* const* GetRawSlot() const { return &raw_; }
+ void** GetRawSlot() const { return &raw_; }
void* GetRaw() const { return raw_; }
void SetRaw(void* value) { raw_ = value; }
@@ -178,6 +178,10 @@ class BasicMember final : private MemberBase, private CheckingPolicy {
return result;
}
+ const T** GetSlotForTesting() const {
+ return reinterpret_cast<const T**>(const_cast<const void**>(GetRawSlot()));
+ }
+
private:
T* GetRawAtomic() const {
return static_cast<T*>(MemberBase::GetRawAtomic());