summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/ArrayStorage.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
commit32761a6cee1d0dee366b885b7b9c777e67885688 (patch)
treed6bec92bebfb216f4126356e55518842c2f476a1 /Source/JavaScriptCore/runtime/ArrayStorage.h
parenta4e969f4965059196ca948db781e52f7cfebf19e (diff)
downloadWebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/JavaScriptCore/runtime/ArrayStorage.h')
-rw-r--r--Source/JavaScriptCore/runtime/ArrayStorage.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/Source/JavaScriptCore/runtime/ArrayStorage.h b/Source/JavaScriptCore/runtime/ArrayStorage.h
index c93dc3bfd..a0287c921 100644
--- a/Source/JavaScriptCore/runtime/ArrayStorage.h
+++ b/Source/JavaScriptCore/runtime/ArrayStorage.h
@@ -32,6 +32,7 @@
#include "SparseArrayValueMap.h"
#include "WriteBarrier.h"
#include <wtf/Noncopyable.h>
+#include <wtf/Platform.h>
namespace JSC {
@@ -53,10 +54,9 @@ public:
Butterfly* butterfly() { return reinterpret_cast<Butterfly*>(this); }
IndexingHeader* indexingHeader() { return IndexingHeader::from(this); }
- const IndexingHeader* indexingHeader() const { return IndexingHeader::from(this); }
// We steal two fields from the indexing header: vectorLength and length.
- unsigned length() const { return indexingHeader()->publicLength(); }
+ unsigned length() { return indexingHeader()->publicLength(); }
void setLength(unsigned length) { indexingHeader()->setPublicLength(length); }
unsigned vectorLength() { return indexingHeader()->vectorLength(); }
void setVectorLength(unsigned length) { indexingHeader()->setVectorLength(length); }
@@ -68,11 +68,6 @@ public:
m_numValuesInVector = other.m_numValuesInVector;
}
- bool hasHoles() const
- {
- return m_numValuesInVector != length();
- }
-
bool inSparseMode()
{
return m_sparseMap && m_sparseMap->sparseMode();