From 41386e9cb918eed93b3f13648cbef387e371e451 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Wed, 20 May 2015 09:56:07 +0000 Subject: webkitgtk-2.4.9 --- Source/JavaScriptCore/runtime/IndexingHeader.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'Source/JavaScriptCore/runtime/IndexingHeader.h') 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 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(from(const_cast(arrayStorage))); - } - - static const IndexingHeader* from(const ArrayStorage* arrayStorage) - { - return reinterpret_cast(arrayStorage) - 1; + return reinterpret_cast(arrayStorage) - 1; } static IndexingHeader* fromEndOf(PropertyStorage propertyStorage) -- cgit v1.2.1