diff options
| author | dearblue <[email protected]> | 2021-04-03 21:17:48 +0900 |
|---|---|---|
| committer | dearblue <[email protected]> | 2021-04-03 21:17:48 +0900 |
| commit | dd34ac647fb5d6842941b3529d1452797862cc23 (patch) | |
| tree | 028bee4037cc4050c9ddafd432d70ee02315ef9e /mrbgems/mruby-eval | |
| parent | fb8e12f37c86cfbdc6a8c4fa3b327bae24a8ce27 (diff) | |
| download | mruby-dd34ac647fb5d6842941b3529d1452797862cc23.tar.gz mruby-dd34ac647fb5d6842941b3529d1452797862cc23.zip | |
Make `mrb_exec_irep()` allow non-VM to enter.
Change the old `mrb_exec_irep()` as-is to static `mrb_exec_irep_vm()`.
Extract the VM entry part from the old `exec_irep()` in `mruby-eval/src/eval.c` and make it the core of the new `mrb_exec_irep()`.
Diffstat (limited to 'mrbgems/mruby-eval')
| -rw-r--r-- | mrbgems/mruby-eval/src/eval.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/mrbgems/mruby-eval/src/eval.c b/mrbgems/mruby-eval/src/eval.c index 978d4fc30..508f5ffcb 100644 --- a/mrbgems/mruby-eval/src/eval.c +++ b/mrbgems/mruby-eval/src/eval.c @@ -131,15 +131,6 @@ exec_irep(mrb_state *mrb, mrb_value self, struct RProc *proc, mrb_func_t posthoo { /* no argument passed from eval() */ mrb->c->ci->argc = 0; - if (mrb->c->ci->acc < 0) { - ptrdiff_t cioff = mrb->c->ci - mrb->c->cibase; - mrb_value ret = mrb_top_run(mrb, proc, self, 0); - if (mrb->exc) { - mrb_exc_raise(mrb, mrb_obj_value(mrb->exc)); - } - mrb->c->ci = mrb->c->cibase + cioff; - return ret; - } /* clear block */ mrb->c->ci->stack[1] = mrb_nil_value(); return mrb_exec_irep(mrb, self, proc, posthook); |
