mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Retrieve b operand from the instruction (for debugging); ref #4020
This commit is contained in:
@@ -1398,6 +1398,7 @@ RETRY_TRY_BLOCK:
|
||||
CASE(OP_SEND) {
|
||||
/* A B C R(A) := call(R(A),Syms(B),R(A+1),...,R(A+C)) */
|
||||
int a = GETARG_A(i);
|
||||
int b = GETARG_B(i);
|
||||
int n = GETARG_C(i);
|
||||
int argc = (n == CALL_MAXARGS) ? -1 : n;
|
||||
int bidx = (argc < 0) ? a+2 : a+n+1;
|
||||
@@ -1405,7 +1406,7 @@ RETRY_TRY_BLOCK:
|
||||
struct RClass *c;
|
||||
mrb_callinfo *ci = mrb->c->ci;
|
||||
mrb_value recv, blk;
|
||||
mrb_sym mid = syms[GETARG_B(i)];
|
||||
mrb_sym mid = syms[b];
|
||||
|
||||
mrb_assert(bidx < ci->nregs);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user