summaryrefslogtreecommitdiff
path: root/deps/v8/tools/debug_helper/debug-helper-internal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/tools/debug_helper/debug-helper-internal.cc')
-rw-r--r--deps/v8/tools/debug_helper/debug-helper-internal.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/deps/v8/tools/debug_helper/debug-helper-internal.cc b/deps/v8/tools/debug_helper/debug-helper-internal.cc
index ee5629b438..597ea7a639 100644
--- a/deps/v8/tools/debug_helper/debug-helper-internal.cc
+++ b/deps/v8/tools/debug_helper/debug-helper-internal.cc
@@ -12,15 +12,14 @@ namespace v8_debug_helper_internal {
bool IsPointerCompressed(uintptr_t address) {
#if COMPRESS_POINTERS_BOOL
- STATIC_ASSERT(i::kPtrComprHeapReservationSize == uintptr_t{1} << 32);
- intptr_t signed_address = static_cast<intptr_t>(address);
- return signed_address >= INT32_MIN && signed_address <= INT32_MAX;
+ return address < i::kPtrComprHeapReservationSize;
#else
return false;
#endif
}
-uintptr_t Decompress(uintptr_t address, uintptr_t any_uncompressed_ptr) {
+uintptr_t EnsureDecompressed(uintptr_t address,
+ uintptr_t any_uncompressed_ptr) {
if (!COMPRESS_POINTERS_BOOL || !IsPointerCompressed(address)) return address;
return i::DecompressTaggedAny(any_uncompressed_ptr,
static_cast<i::Tagged_t>(address));
@@ -55,4 +54,8 @@ void TqObject::Visit(TqObjectVisitor* visitor) const {
visitor->VisitObject(this);
}
+bool TqObject::IsSuperclassOf(const TqObject* other) const {
+ return GetName() != other->GetName();
+}
+
} // namespace v8_debug_helper_internal