From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/JavaScriptCore/bytecode/ArrayAllocationProfile.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Source/JavaScriptCore/bytecode/ArrayAllocationProfile.h') diff --git a/Source/JavaScriptCore/bytecode/ArrayAllocationProfile.h b/Source/JavaScriptCore/bytecode/ArrayAllocationProfile.h index f77b92a2f..cf30de6b9 100644 --- a/Source/JavaScriptCore/bytecode/ArrayAllocationProfile.h +++ b/Source/JavaScriptCore/bytecode/ArrayAllocationProfile.h @@ -23,8 +23,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef ArrayAllocationProfile_h -#define ArrayAllocationProfile_h +#pragma once #include "IndexingType.h" #include "JSArray.h" @@ -42,7 +41,7 @@ public: IndexingType selectIndexingType() { JSArray* lastArray = m_lastArray; - if (lastArray && UNLIKELY(lastArray->structure()->indexingType() != m_currentIndexingType)) + if (lastArray && UNLIKELY(lastArray->indexingType() != m_currentIndexingType)) updateIndexingType(); return m_currentIndexingType; } @@ -76,6 +75,3 @@ private: }; } // namespace JSC - -#endif // ArrayAllocationProfile_h - -- cgit v1.2.1