Bug 825966 part 1 - Remove unused Bytecode::switchTarget. r=bhackett

This commit is contained in:
Jan de Mooij 2013-01-03 18:35:52 +01:00
Родитель 77fe39495b
Коммит e31b84cd0b
2 изменённых файлов: 0 добавлений и 7 удалений

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

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