summaryrefslogtreecommitdiffstats
path: root/Source/JavaScriptCore/wtf/MallocZoneSupport.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/wtf/MallocZoneSupport.h')
-rw-r--r--Source/JavaScriptCore/wtf/MallocZoneSupport.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/JavaScriptCore/wtf/MallocZoneSupport.h b/Source/JavaScriptCore/wtf/MallocZoneSupport.h
index 62df145..4332e40 100644
--- a/Source/JavaScriptCore/wtf/MallocZoneSupport.h
+++ b/Source/JavaScriptCore/wtf/MallocZoneSupport.h
@@ -47,7 +47,6 @@ public:
{
void* output;
kern_return_t err = (*m_reader)(m_task, address, size, static_cast<void**>(&output));
- ASSERT(!err);
if (err)
output = 0;
return output;
@@ -58,6 +57,15 @@ public:
{
return static_cast<T*>((*this)(reinterpret_cast<vm_address_t>(address), size));
}
+
+ template <typename T>
+ T* nextEntryInLinkedList(T** address) const
+ {
+ T** output = (*this)(address);
+ if (!output)
+ return 0;
+ return *output;
+ }
};
} // namespace WTF