From a59391482883479a9b28a6f1ace6d1ebd08a7ecd Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 9 Nov 2012 09:42:44 +0100 Subject: Imported WebKit commit 7bcdfab9a40db7d16b4b95bb77d78b8a59c9e701 (http://svn.webkit.org/repository/webkit/trunk@134025) New snapshot with numerious build fixes, including MSVC 2012 and ARM Thumb-2. --- Source/JavaScriptCore/runtime/Butterfly.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Source/JavaScriptCore/runtime/Butterfly.h') diff --git a/Source/JavaScriptCore/runtime/Butterfly.h b/Source/JavaScriptCore/runtime/Butterfly.h index cb93aea8a..4b8d53f7e 100644 --- a/Source/JavaScriptCore/runtime/Butterfly.h +++ b/Source/JavaScriptCore/runtime/Butterfly.h @@ -88,12 +88,18 @@ public: template T* indexingPayload() { return reinterpret_cast(this); } ArrayStorage* arrayStorage() { return indexingPayload(); } + WriteBarrier* contiguousInt32() { return indexingPayload >(); } + double* contiguousDouble() { return indexingPayload(); } WriteBarrier* contiguous() { return indexingPayload >(); } static Butterfly* fromContiguous(WriteBarrier* contiguous) { return reinterpret_cast(contiguous); } + static Butterfly* fromContiguous(double* contiguous) + { + return reinterpret_cast(contiguous); + } static ptrdiff_t offsetOfPropertyStorage() { return -static_cast(sizeof(IndexingHeader)); } static int indexOfPropertyStorage() -- cgit v1.2.1