summaryrefslogtreecommitdiff
path: root/chromium/v8/src/objects/compressed-slots-inl.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-09-03 13:32:17 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-10-01 14:31:55 +0200
commit21ba0c5d4bf8fba15dddd97cd693bad2358b77fd (patch)
tree91be119f694044dfc1ff9fdc054459e925de9df0 /chromium/v8/src/objects/compressed-slots-inl.h
parent03c549e0392f92c02536d3f86d5e1d8dfa3435ac (diff)
downloadqtwebengine-chromium-21ba0c5d4bf8fba15dddd97cd693bad2358b77fd.tar.gz
BASELINE: Update Chromium to 92.0.4515.166
Change-Id: I42a050486714e9e54fc271f2a8939223a02ae364
Diffstat (limited to 'chromium/v8/src/objects/compressed-slots-inl.h')
-rw-r--r--chromium/v8/src/objects/compressed-slots-inl.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/chromium/v8/src/objects/compressed-slots-inl.h b/chromium/v8/src/objects/compressed-slots-inl.h
index 54c828d919a..b550c9f8515 100644
--- a/chromium/v8/src/objects/compressed-slots-inl.h
+++ b/chromium/v8/src/objects/compressed-slots-inl.h
@@ -28,6 +28,13 @@ bool CompressedObjectSlot::contains_value(Address raw_value) const {
static_cast<uint32_t>(static_cast<Tagged_t>(raw_value));
}
+bool CompressedObjectSlot::contains_map_value(Address raw_value) const {
+ // Simply forward to contains_value because map packing is not supported with
+ // pointer compression.
+ DCHECK(!V8_MAP_PACKING_BOOL);
+ return contains_value(raw_value);
+}
+
Object CompressedObjectSlot::operator*() const {
Tagged_t value = *location();
return Object(DecompressTaggedAny(address(), value));
@@ -42,6 +49,20 @@ void CompressedObjectSlot::store(Object value) const {
*location() = CompressTagged(value.ptr());
}
+void CompressedObjectSlot::store_map(Map map) const {
+ // Simply forward to store because map packing is not supported with pointer
+ // compression.
+ DCHECK(!V8_MAP_PACKING_BOOL);
+ store(map);
+}
+
+Map CompressedObjectSlot::load_map() const {
+ // Simply forward to Relaxed_Load because map packing is not supported with
+ // pointer compression.
+ DCHECK(!V8_MAP_PACKING_BOOL);
+ return Map::unchecked_cast(Relaxed_Load());
+}
+
Object CompressedObjectSlot::Acquire_Load() const {
AtomicTagged_t value = AsAtomicTagged::Acquire_Load(location());
return Object(DecompressTaggedAny(address(), value));