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:
Bogdan Postelnicu 2016-02-16 16:23:32 +02:00
Родитель 4b17d4d133
Коммит 59ba7153be
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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(),