Skip to content

Commit

Permalink
Change _count_args to _opsize.
Browse files Browse the repository at this point in the history
  • Loading branch information
bacek committed Mar 26, 2011
1 parent 0f272d9 commit 0f7940e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compilers/opsc/src/Ops/JIT.pm
Expand Up @@ -245,7 +245,7 @@ method _create_basic_blocks(%jit_context) {
);

# Next op
$i := $i + 1 + _count_args(%jit_context, $op);
$i := $i + _opsize(%jit_context, $op);

$keep_going := self._keep_going($opname);

Expand All @@ -264,10 +264,10 @@ Calculate number of op's args. In most cases it's predefined for op. For 4
exceptions C<set_args>, C<get_results>, C<get_params>, C<set_returns> we have
to calculate it in run-time..
sub _count_args(%jit_context, $op) {
sub _opsize(%jit_context, $op) {
die("NYI") if _op_is_special(~$op);

Q:PIR {
1 + Q:PIR {
.local pmc op
.local int s
find_lex op, '$op'
Expand Down

0 comments on commit 0f7940e

Please sign in to comment.