summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/IndexingHeaderInlineMethods.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/runtime/IndexingHeaderInlineMethods.h')
-rw-r--r--Source/JavaScriptCore/runtime/IndexingHeaderInlineMethods.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/JavaScriptCore/runtime/IndexingHeaderInlineMethods.h b/Source/JavaScriptCore/runtime/IndexingHeaderInlineMethods.h
index 8d6e08256..e1d893b0b 100644
--- a/Source/JavaScriptCore/runtime/IndexingHeaderInlineMethods.h
+++ b/Source/JavaScriptCore/runtime/IndexingHeaderInlineMethods.h
@@ -34,7 +34,7 @@ namespace JSC {
inline size_t IndexingHeader::preCapacity(Structure* structure)
{
- if (LIKELY(!(structure->indexingType() & HasArrayStorage)))
+ if (LIKELY(!hasArrayStorage(structure->indexingType())))
return 0;
return arrayStorage()->m_indexBias;
@@ -42,7 +42,7 @@ inline size_t IndexingHeader::preCapacity(Structure* structure)
inline size_t IndexingHeader::indexingPayloadSizeInBytes(Structure* structure)
{
- if (LIKELY(!(structure->indexingType() & HasArrayStorage)))
+ if (LIKELY(!hasArrayStorage(structure->indexingType())))
return 0;
return ArrayStorage::sizeFor(arrayStorage()->vectorLength());