mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-compiler (gen_call): use OP_SSEND for self.foo() calls
This commit is contained in:
@@ -1726,7 +1726,7 @@ gen_call(codegen_scope *s, node *tree, int val, int safe)
|
||||
mrb_sym sym = nsym(tree->cdr->car);
|
||||
int skip = 0, n = 0, nk = 0, noop = no_optimize(s), noself = 0, blk = 0, sp_save = cursp();
|
||||
|
||||
if (!tree->car) {
|
||||
if (!tree->car || nint(tree->car->car) == NODE_SELF) {
|
||||
noself = noop = 1;
|
||||
push();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user