зеркало из https://github.com/mozilla/gecko-dev.git
Bug 825966 part 1 - Remove unused Bytecode::switchTarget. r=bhackett
This commit is contained in:
Родитель
77fe39495b
Коммит
e31b84cd0b
|
@ -374,7 +374,6 @@ ScriptAnalysis::analyzeBytecode(JSContext *cx)
|
|||
|
||||
if (!addJump(cx, defaultOffset, &nextOffset, &forwardJump, &forwardLoop, stackDepth))
|
||||
return;
|
||||
getCode(defaultOffset).switchTarget = true;
|
||||
getCode(defaultOffset).safePoint = true;
|
||||
|
||||
for (int32_t i = low; i <= high; i++) {
|
||||
|
@ -383,7 +382,6 @@ ScriptAnalysis::analyzeBytecode(JSContext *cx)
|
|||
if (!addJump(cx, targetOffset, &nextOffset, &forwardJump, &forwardLoop, stackDepth))
|
||||
return;
|
||||
}
|
||||
getCode(targetOffset).switchTarget = true;
|
||||
getCode(targetOffset).safePoint = true;
|
||||
pc2 += JUMP_OFFSET_LEN;
|
||||
}
|
||||
|
@ -399,7 +397,6 @@ ScriptAnalysis::analyzeBytecode(JSContext *cx)
|
|||
|
||||
if (!addJump(cx, defaultOffset, &nextOffset, &forwardJump, &forwardLoop, stackDepth))
|
||||
return;
|
||||
getCode(defaultOffset).switchTarget = true;
|
||||
getCode(defaultOffset).safePoint = true;
|
||||
|
||||
while (npairs) {
|
||||
|
@ -407,7 +404,6 @@ ScriptAnalysis::analyzeBytecode(JSContext *cx)
|
|||
unsigned targetOffset = offset + GET_JUMP_OFFSET(pc2);
|
||||
if (!addJump(cx, targetOffset, &nextOffset, &forwardJump, &forwardLoop, stackDepth))
|
||||
return;
|
||||
getCode(targetOffset).switchTarget = true;
|
||||
getCode(targetOffset).safePoint = true;
|
||||
pc2 += JUMP_OFFSET_LEN;
|
||||
npairs--;
|
||||
|
|
|
@ -74,9 +74,6 @@ class Bytecode
|
|||
/* Whether this instruction is the fall through point of a conditional jump. */
|
||||
bool jumpFallthrough : 1;
|
||||
|
||||
/* Whether this instruction can be branched to from a switch statement. Implies jumpTarget. */
|
||||
bool switchTarget : 1;
|
||||
|
||||
/*
|
||||
* Whether this instruction must always execute, unless the script throws
|
||||
* an exception which it does not later catch.
|
||||
|
|
Загрузка…
Ссылка в новой задаче