Split up an assertion of x && y && z into separate asserts for x, y, and z, for easier at-a-glance understandings of failures should the assertion ever be hit. No bug, r=sparky

--HG--
extra : rebase_source : a110a0bfce4eecb0c47cba054cb858223f75acf4
This commit is contained in:
Jeff Walden 2012-10-01 11:23:40 -07:00
Родитель 0bb7849c02
Коммит f788798a93
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -42,9 +42,9 @@ bool
LoopState::init(jsbytecode *head, Jump entry, jsbytecode *entryTarget)
{
this->lifetime = outerAnalysis->getLoop(head);
JS_ASSERT(lifetime &&
lifetime->head == uint32_t(head - outerScript->code) &&
lifetime->entry == uint32_t(entryTarget - outerScript->code));
JS_ASSERT(lifetime);
JS_ASSERT(lifetime->head == uint32_t(head - outerScript->code));
JS_ASSERT(lifetime->entry == uint32_t(entryTarget - outerScript->code));
this->entry = entry;