зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1248584 - assert firstMonitorStub_ in ICMonitoredStub in order to silence Coverity. r=jandem
MozReview-Commit-ID: 4hSpodphJL9 --HG-- extra : rebase_source : b2d3db5a318ec4379e1b880b575f72bb78ce5ac9
This commit is contained in:
Родитель
4b17d4d133
Коммит
59ba7153be
|
@ -674,6 +674,8 @@ ICMonitoredStub::ICMonitoredStub(Kind kind, JitCode* stubCode, ICStub* firstMoni
|
|||
: ICStub(kind, ICStub::Monitored, stubCode),
|
||||
firstMonitorStub_(firstMonitorStub)
|
||||
{
|
||||
// In order to silence Coverity - null pointer dereference checker
|
||||
MOZ_ASSERT(firstMonitorStub_);
|
||||
// If the first monitored stub is a ICTypeMonitor_Fallback stub, then
|
||||
// double check that _its_ firstMonitorStub is the same as this one.
|
||||
MOZ_ASSERT_IF(firstMonitorStub_->isTypeMonitor_Fallback(),
|
||||
|
|
Загрузка…
Ссылка в новой задаче