Skip to content

Commit 0e552b1

Browse files
committed
added nqp::sprintfdirectives for jvm backend, donaldh++
1 parent 92e2858 commit 0e552b1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/vm/jvm/QAST/Compiler.nqp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2020,6 +2020,20 @@ QAST::OperationsJAST.add_core_op('sprintf', -> $qastcomp, $op {
20202020
|@operands )
20212021
);
20222022
});
2023+
QAST::OperationsJAST.add_core_op('sprintfdirectives', -> $qastcomp, $op {
2024+
my @operands := $op.list;
2025+
$qastcomp.as_jast(
2026+
QAST::Op.new(
2027+
:op('call'),
2028+
:returns(str),
2029+
QAST::Op.new(
2030+
:op('gethllsym'),
2031+
QAST::SVal.new( :value('nqp') ),
2032+
QAST::SVal.new( :value('sprintfdirectives') )
2033+
),
2034+
|@operands )
2035+
);
2036+
});
20232037
QAST::OperationsJAST.add_core_op('sprintfaddargumenthandler', -> $qastcomp, $op {
20242038
my @operands := $op.list;
20252039
$qastcomp.as_jast(

0 commit comments

Comments
 (0)