UnlinkedCodeBlock constructor from cache should initialize m_didOptimize
authortzagallo@apple.com <tzagallo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Apr 2019 14:15:20 +0000 (14:15 +0000)
committertzagallo@apple.com <tzagallo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Apr 2019 14:15:20 +0000 (14:15 +0000)
commit8a604c9103408413af1223fd9081c338f931a7c4
tree3f866fef260bbdf309cb2f1f97f204aa147a5586
parentdeb15f6d30329994cb57809b5093ff60bc2a0be6
UnlinkedCodeBlock constructor from cache should initialize m_didOptimize
https://bugs.webkit.org/show_bug.cgi?id=196396

Reviewed by Saam Barati.

The UnlinkedCodeBlock constructor in CachedTypes was missing the initialization
for m_didOptimize, which leads to crashes in CodeBlock::thresholdForJIT.

* runtime/CachedTypes.cpp:
(JSC::UnlinkedCodeBlock::UnlinkedCodeBlock):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243867 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/CachedTypes.cpp