diff options
Diffstat (limited to 'Source/JavaScriptCore/bytecode/ArrayProfile.cpp')
-rw-r--r-- | Source/JavaScriptCore/bytecode/ArrayProfile.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/JavaScriptCore/bytecode/ArrayProfile.cpp b/Source/JavaScriptCore/bytecode/ArrayProfile.cpp index 6b97f7806..9f4e1ce20 100644 --- a/Source/JavaScriptCore/bytecode/ArrayProfile.cpp +++ b/Source/JavaScriptCore/bytecode/ArrayProfile.cpp @@ -43,6 +43,11 @@ void ArrayProfile::computeUpdatedPrediction(OperationInProgress operation) m_lastSeenStructure = 0; } + if (hasTwoOrMoreBitsSet(m_observedArrayModes)) { + m_structureIsPolymorphic = true; + m_expectedStructure = 0; + } + if (operation == Collection && m_expectedStructure && !Heap::isMarked(m_expectedStructure)) { |