pike.git/
src/
peep.c
Branch:
Tag:
Non-build tags
All tags
No tags
2000-11-28
2000-11-28 02:16:22 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
71c5b9df3fb60da4817e80474df707c10d182acc (
14
lines) (+
13
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
minor opimization using RETURN_IF_TRUE (suggested by Grubba)
Rev: src/peep.c:1.39
15:
#include "bignum.h" #include "opcodes.h"
-
RCSID("$Id: peep.c,v 1.
38
2000/11/
25
16:
54:46
grubba
Exp $");
+
RCSID("$Id: peep.c,v 1.
39
2000/11/
28
02:
16:
22
hubbe
Exp $");
struct p_instr_s {
287:
case TWOO(F_LAND,F_LAND): c[e].arg=c[tmp].arg; continue;
+
+
case TWOO(F_LOR, F_RETURN):
+
c[e].opcode=F_RETURN_IF_TRUE;
+
break;
+
+
case TWOO(F_BRANCH, F_RETURN):
+
case TWOO(F_BRANCH, F_RETURN_0):
+
case TWOO(F_BRANCH, F_RETURN_1):
+
case TWOO(F_BRANCH, F_RETURN_LOCAL):
+
c[e]=c[tmp];
+
break;
} break; }