diff options
Diffstat (limited to 'Source/JavaScriptCore/bytecode/ArrayAllocationProfile.h')
-rw-r--r-- | Source/JavaScriptCore/bytecode/ArrayAllocationProfile.h | 8 |
1 files changed, 2 insertions, 6 deletions
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 - |