From 6dbcd09121fe266c7704a524b5cbd7f2754659c0 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Thu, 20 Sep 2012 14:01:09 +0200 Subject: Imported WebKit commit 080af0beaa6f0ba8ff8f44cb8bd8b5dcf75ac0af (http://svn.webkit.org/repository/webkit/trunk@129119) New snapshot with prospective build fix for incorrect QtWebKit master module header file creation --- Source/JavaScriptCore/bytecode/ArrayProfile.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Source/JavaScriptCore/bytecode/ArrayProfile.h') diff --git a/Source/JavaScriptCore/bytecode/ArrayProfile.h b/Source/JavaScriptCore/bytecode/ArrayProfile.h index 43818d77d..3b462eaba 100644 --- a/Source/JavaScriptCore/bytecode/ArrayProfile.h +++ b/Source/JavaScriptCore/bytecode/ArrayProfile.h @@ -54,6 +54,8 @@ public: , m_lastSeenStructure(0) , m_expectedStructure(0) , m_structureIsPolymorphic(false) + , m_mayStoreToHole(false) + , m_mayInterceptIndexedAccesses(false) , m_observedArrayModes(0) { } @@ -63,6 +65,8 @@ public: , m_lastSeenStructure(0) , m_expectedStructure(0) , m_structureIsPolymorphic(false) + , m_mayStoreToHole(false) + , m_mayInterceptIndexedAccesses(false) , m_observedArrayModes(0) { } @@ -71,6 +75,7 @@ public: Structure** addressOfLastSeenStructure() { return &m_lastSeenStructure; } ArrayModes* addressOfArrayModes() { return &m_observedArrayModes; } + bool* addressOfMayStoreToHole() { return &m_mayStoreToHole; } void observeStructure(Structure* structure) { @@ -89,6 +94,9 @@ public: return !structureIsPolymorphic() && m_expectedStructure; } ArrayModes observedArrayModes() const { return m_observedArrayModes; } + bool mayInterceptIndexedAccesses() const { return m_mayInterceptIndexedAccesses; } + + bool mayStoreToHole() const { return m_mayStoreToHole; } private: friend class LLIntOffsetsExtractor; @@ -97,6 +105,8 @@ private: Structure* m_lastSeenStructure; Structure* m_expectedStructure; bool m_structureIsPolymorphic; + bool m_mayStoreToHole; // This flag may become overloaded to indicate other special cases that were encountered during array access, as it depends on indexing type. Since we currently have basically just one indexing type (two variants of ArrayStorage), this flag for now just means exactly what its name implies. + bool m_mayInterceptIndexedAccesses; ArrayModes m_observedArrayModes; }; -- cgit v1.2.1