diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-12-11 20:48:44 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-12-11 20:48:44 -0200 |
commit | 9aff171f3bf0125314a29a5ca952470b2d83708e (patch) | |
tree | 8d1b400e0108198bde554a31731c655113bc4086 /ldebug.c | |
parent | ed9be5e1f0d4b68aa848f85744ad959d7a57c9f4 (diff) | |
download | lua-9aff171f3bf0125314a29a5ca952470b2d83708e.tar.gz lua-9aff171f3bf0125314a29a5ca952470b2d83708e.tar.bz2 lua-9aff171f3bf0125314a29a5ca952470b2d83708e.zip |
new type `boolean'
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -359,6 +359,10 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) { | |||
359 | if (testOpMode(op, OpModeT)) | 359 | if (testOpMode(op, OpModeT)) |
360 | check(GET_OPCODE(pt->code[pc+1]) == OP_CJMP); | 360 | check(GET_OPCODE(pt->code[pc+1]) == OP_CJMP); |
361 | switch (op) { | 361 | switch (op) { |
362 | case OP_LOADBOOL: { | ||
363 | check(c == 0 || pc+2 < pt->sizecode); /* check its jump */ | ||
364 | break; | ||
365 | } | ||
362 | case OP_LOADNIL: { | 366 | case OP_LOADNIL: { |
363 | if (a <= reg && reg <= b) | 367 | if (a <= reg && reg <= b) |
364 | last = pc; /* set registers from `a' to `b' */ | 368 | last = pc; /* set registers from `a' to `b' */ |
@@ -393,10 +397,6 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) { | |||
393 | pc += b; /* do the jump */ | 397 | pc += b; /* do the jump */ |
394 | break; | 398 | break; |
395 | } | 399 | } |
396 | case OP_NILJMP: { | ||
397 | check(pc+2 < pt->sizecode); /* check its jump */ | ||
398 | break; | ||
399 | } | ||
400 | case OP_CALL: { | 400 | case OP_CALL: { |
401 | if (b != NO_REG) { | 401 | if (b != NO_REG) { |
402 | checkreg(pt, a+b); | 402 | checkreg(pt, a+b); |