pike.git/
src/
interpret_functions.h
Branch:
Tag:
Non-build tags
All tags
No tags
2012-06-10
2012-06-10 14:09:18 by Henrik Grubbström (Grubba) <grubba@grubba.org>
89f83403115a14ed045a7fa6f8293d31a0a56038 (
25
lines) (+
25
/-
0
)
[
Show
|
Annotate
]
Branch:
7.9
Runtime: Added some new opcodes.
2708:
push_magic_index(magic_types_program, arg2, arg1); });
+
OPCODE2(F_INIT_FRAME, "init_frame", 0, {
+
Pike_fp->num_args = arg1;
+
Pike_fp->num_locals = arg2;
+
});
+
+
OPCODE1(F_PROTECT_STACK, "protect_stack", 0, {
+
Pike_fp->expendible = Pike_fp->locals + arg1;
+
});
+
+
OPCODE2(F_FILL_STACK, "fill_stack", I_UPDATE_SP, {
+
INT32 tmp = (Pike_fp->locals + arg1) - Pike_sp;
+
if (tmp > 0) {
+
if (arg2) {
+
push_undefines(tmp);
+
} else {
+
push_zeroes(tmp);
+
}
+
}
+
});
+
+
OPCODE1(F_MARK_AT, "mark_at", I_UPDATE_SP, {
+
*(Pike_mark_sp++) = Pike_fp->locals + arg1;
+
});
+
/* #undef PROG_COUNTER */