summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/IndexingHeader.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2015-05-20 09:56:07 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2015-05-20 09:56:07 +0000
commit41386e9cb918eed93b3f13648cbef387e371e451 (patch)
treea97f9d7bd1d9d091833286085f72da9d83fd0606 /Source/JavaScriptCore/runtime/IndexingHeader.h
parente15dd966d523731101f70ccf768bba12435a0208 (diff)
downloadWebKitGtk-tarball-41386e9cb918eed93b3f13648cbef387e371e451.tar.gz
webkitgtk-2.4.9webkitgtk-2.4.9
Diffstat (limited to 'Source/JavaScriptCore/runtime/IndexingHeader.h')
-rw-r--r--Source/JavaScriptCore/runtime/IndexingHeader.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/JavaScriptCore/runtime/IndexingHeader.h b/Source/JavaScriptCore/runtime/IndexingHeader.h
index a88643239..27881297b 100644
--- a/Source/JavaScriptCore/runtime/IndexingHeader.h
+++ b/Source/JavaScriptCore/runtime/IndexingHeader.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012, 2014 Apple Inc. All rights reserved.
+ * Copyright (C) 2012 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -27,6 +27,7 @@
#define IndexingHeader_h
#include "PropertyStorage.h"
+#include <wtf/Platform.h>
namespace JSC {
@@ -62,7 +63,7 @@ public:
u.lengths.vectorLength = length;
}
- uint32_t publicLength() const { return u.lengths.publicLength; }
+ uint32_t publicLength() { return u.lengths.publicLength; }
void setPublicLength(uint32_t auxWord) { u.lengths.publicLength = auxWord; }
ArrayBuffer* arrayBuffer() { return u.typedArray.buffer; }
@@ -80,12 +81,7 @@ public:
static IndexingHeader* from(ArrayStorage* arrayStorage)
{
- return const_cast<IndexingHeader*>(from(const_cast<const ArrayStorage*>(arrayStorage)));
- }
-
- static const IndexingHeader* from(const ArrayStorage* arrayStorage)
- {
- return reinterpret_cast<const IndexingHeader*>(arrayStorage) - 1;
+ return reinterpret_cast<IndexingHeader*>(arrayStorage) - 1;
}
static IndexingHeader* fromEndOf(PropertyStorage propertyStorage)