Added basic while loop support and a test system.

This commit is contained in:
Darryl Pogue 2010-12-31 02:42:58 -08:00
commit 132d62baf6
7 changed files with 73 additions and 16 deletions

View file

@ -140,9 +140,8 @@ bool Pyc::IsCellArg(int opcode)
bool Pyc::IsJumpOffsetArg(int opcode)
{
return (opcode == Pyc::JUMP_FORWARD_A) || (opcode == Pyc::JUMP_IF_FALSE_A) ||
(opcode == Pyc::JUMP_IF_TRUE_A) || (opcode == Pyc::JUMP_IF_FALSE_OR_POP_A) ||
(opcode == Pyc::JUMP_IF_TRUE_OR_POP_A) || (opcode == Pyc::POP_JUMP_IF_FALSE_A) ||
(opcode == Pyc::POP_JUMP_IF_TRUE_A);
(opcode == Pyc::JUMP_IF_TRUE_A) || (opcode == Pyc::SETUP_LOOP_A) ||
(opcode == Pyc::SETUP_FINALLY_A) || (opcode == Pyc::SETUP_EXCEPT_A);
}