summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authordearblue <[email protected]>2020-05-24 00:42:09 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 16:21:32 +0900
commit0d7b4deccf445e3edae9239bf40b91cc79e83634 (patch)
treecddf29a04b9f6782060112f80c5463b11fd0949a /include
parentf467b02d4598ab64d98727348e8a9c4f04fc9b83 (diff)
downloadmruby-0d7b4deccf445e3edae9239bf40b91cc79e83634.tar.gz
mruby-0d7b4deccf445e3edae9239bf40b91cc79e83634.zip
Removed push/pop instructions for rescue/ensure
`OP_PUSHERR`, `OP_POPERR`, `OP_EPUSH` and `OP_EPOP` are removed.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/ops.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/mruby/ops.h b/include/mruby/ops.h
index 45397e2ed..8ff44088e 100644
--- a/include/mruby/ops.h
+++ b/include/mruby/ops.h
@@ -49,13 +49,9 @@ OPCODE(JMP, S) /* pc=a */
OPCODE(JMPIF, BS) /* if R(a) pc=b */
OPCODE(JMPNOT, BS) /* if !R(a) pc=b */
OPCODE(JMPNIL, BS) /* if R(a)==nil pc=b */
-OPCODE(ONERR, S) /* rescue_push(a) */
OPCODE(EXCEPT, B) /* R(a) = exc */
OPCODE(RESCUE, BB) /* R(b) = R(a).isa?(R(b)) */
-OPCODE(POPERR, B) /* a.times{rescue_pop()} */
OPCODE(RAISEIF, B) /* raise(R(a)) if R(a) */
-OPCODE(EPUSH, B) /* ensure_push(SEQ[a]) */
-OPCODE(EPOP, B) /* A.times{ensure_pop().call} */
OPCODE(SENDV, BB) /* R(a) = call(R(a),Syms(b),*R(a+1)) */
OPCODE(SENDVB, BB) /* R(a) = call(R(a),Syms(b),*R(a+1),&R(a+2)) */
OPCODE(SEND, BBB) /* R(a) = call(R(a),Syms(b),R(a+1),...,R(a+c)) */