Bug 1172076 - Switch compartment before computing recover instruction results. r=jandem

This commit is contained in:
Nicolas B. Pierron 2015-06-15 11:48:15 +02:00
Родитель 0597055c59
Коммит 80880ed682
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -2183,6 +2183,8 @@ SnapshotIterator::initInstructionResults(MaybeReadFallback& fallback)
JitFrameLayout* fp = fallback.frame->jsFrame();
RInstructionResults* results = fallback.activation->maybeIonFrameRecovery(fp);
if (!results) {
AutoCompartment ac(cx, fallback.frame->script()->compartment());
// We do not have the result yet, which means that an observable stack
// slot is requested. As we do not want to bailout every time for the
// same reason, we need to recompile without optimizing away the