Skip to content

Commit cd63dfd

Browse files
committed
only 1/4th of ops have $moarop different from $op.
1 parent 99938e8 commit cd63dfd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/vm/moar/QAST/QASTOperationsMAST.nqp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,11 @@ class QAST::MASTOperations {
312312
if nqp::existskey(%core_mapper_returnargs, $op.op) {
313313
$returnarg := %core_mapper_returnargs{$op.op};
314314
}
315-
$self.compile_mastop($qastcomp, %core_mapper_moarops{$op.op}, $op.list, %core_mapper_deconts{$op.op}, :$returnarg);
315+
my $moarop := $op.op;
316+
if nqp::existskey(%core_mapper_moarops, $moarop) {
317+
$moarop := %core_mapper_moarops{$moarop};
318+
}
319+
$self.compile_mastop($qastcomp, $moarop, $op.list, %core_mapper_deconts{$op.op}, :$returnarg);
316320
}
317321
}
318322

@@ -373,8 +377,10 @@ class QAST::MASTOperations {
373377
@deconts[$decont_in] := 1;
374378
}
375379

376-
%core_mapper_moarops{$op} := $moarop;
377380
%core_mapper_deconts{$op} := @deconts;
381+
if $op ne $moarop {
382+
%core_mapper_moarops{$op} := $moarop;
383+
}
378384
if $ret != -1 {
379385
%core_mapper_returnargs{$op} := $ret;
380386
}

0 commit comments

Comments
 (0)