diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
commit | 32761a6cee1d0dee366b885b7b9c777e67885688 (patch) | |
tree | d6bec92bebfb216f4126356e55518842c2f476a1 /Source/JavaScriptCore/runtime/IndexingHeader.h | |
parent | a4e969f4965059196ca948db781e52f7cfebf19e (diff) | |
download | WebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz |
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/JavaScriptCore/runtime/IndexingHeader.h')
-rw-r--r-- | Source/JavaScriptCore/runtime/IndexingHeader.h | 12 |
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) |