зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
5d40f3015e
Коммит
0a6e649aa0
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче