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:
Jonatan Klemets 2020-10-13 17:30:42 +00:00
Родитель 73ecdc2952
Коммит 3431ff3dcc
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -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;