зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1668249 - Use BytecodeLocation and BytecodeIterator in js::jit::AnalyzeBytecodeForIon. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D93186
This commit is contained in:
Родитель
73ecdc2952
Коммит
3431ff3dcc
|
@ -248,10 +248,10 @@ IonBytecodeInfo js::jit::AnalyzeBytecodeForIon(JSContext* cx,
|
|||
result.usesEnvironmentChain = true;
|
||||
}
|
||||
|
||||
jsbytecode const* pcEnd = script->codeEnd();
|
||||
for (jsbytecode* pc = script->code(); pc < pcEnd; pc = GetNextPc(pc)) {
|
||||
JSOp op = JSOp(*pc);
|
||||
switch (op) {
|
||||
AllBytecodesIterable iterator(script);
|
||||
|
||||
for (const BytecodeLocation& location : iterator) {
|
||||
switch (location.getOp()) {
|
||||
case JSOp::SetArg:
|
||||
result.modifiesArguments = true;
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче