summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-07-31 17:28:42 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2018-07-31 17:28:42 +0900
commitbeb6e5c299bb411a7f2a9e355e6eeca3aa785c74 (patch)
tree706d4a1cffc4f85367f08079a6e3da1332ab8ffd /include
parent889f0f5f36212606056af4fbb7865f900c2b8af1 (diff)
downloadmruby-beb6e5c299bb411a7f2a9e355e6eeca3aa785c74.tar.gz
mruby-beb6e5c299bb411a7f2a9e355e6eeca3aa785c74.zip
Bytecode support for `mrdb`.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/irep.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/mruby/irep.h b/include/mruby/irep.h
index c98d008db..7dcf33735 100644
--- a/include/mruby/irep.h
+++ b/include/mruby/irep.h
@@ -58,6 +58,15 @@ void mrb_irep_decref(mrb_state*, struct mrb_irep*);
void mrb_irep_cutref(mrb_state*, struct mrb_irep*);
void mrb_irep_remove_lv(mrb_state *mrb, mrb_irep *irep);
+struct mrb_insn_data {
+ uint8_t insn;
+ uint16_t a;
+ uint16_t b;
+ uint8_t c;
+};
+
+struct mrb_insn_data mrb_decode_insn(mrb_code *pc);
+
MRB_END_DECL
#endif /* MRUBY_IREP_H */