Bug 939581 part 2. Don't create resume points for non-effectful methods (which currently just means DOM methods), on the assumption that such methods have no side-effects and throw deterministically based on thisval and arguments. r=jandem,efaust

This commit is contained in:
Boris Zbarsky 2013-11-20 11:24:10 -05:00
Родитель 385e20051c
Коммит ff03c1914c
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -5264,7 +5264,7 @@ IonBuilder::makeCall(JSFunction *target, CallInfo &callInfo, bool cloneAtCallsit
return false;
current->push(call);
if (!resumeAfter(call))
if (call->isEffectful() && !resumeAfter(call))
return false;
types::TemporaryTypeSet *types = bytecodeTypes(pc);