pike.git/
src/
operators.c
Branch:
Tag:
Non-build tags
All tags
No tags
2016-12-30
2016-12-30 19:14:10 by Martin Nilsson <nilsson@fastmail.com>
c62935a572c848e06e1ebda20b41df0c4a4fa42b (
22
lines) (+
4
/-
18
)
[
Show
|
Annotate
]
Branch:
8.1
No need to handle objects in f_or/f_and/f_xor as the o-verison does that.
2835:
case 1: return; case 2: o_and(); return; default:
-
if(TYPEOF(sp[-args]) == T_OBJECT)
-
{
-
CALL_OPERATOR(LFUN_AND, args);
-
}else{
+
speedup(args, o_and); } }
-
}
+
static int generate_and(node *n) {
3085:
case 1: return; case 2: o_or(); return; default:
-
if(TYPEOF(sp[-args]) == T_OBJECT)
-
{
-
CALL_OPERATOR(LFUN_OR, args);
-
} else {
+
speedup(args, o_or); } }
-
}
+
static int generate_or(node *n) {
3325:
case 1: return; case 2: o_xor(); return; default:
-
if(TYPEOF(sp[-args]) == T_OBJECT)
-
{
-
CALL_OPERATOR(LFUN_XOR, args);
-
} else {
+
speedup(args, o_xor); } }
-
}
+
static int generate_xor(node *n) {