Skip to content

Commit c961832

Browse files
committed
add four new opcodes for unicode properties
Well, actually, add two new opcodes and two old opcodes that weren't exposed.
1 parent 591268e commit c961832

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/vm/moar/QAST/QASTOperationsMAST.nqp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1951,6 +1951,13 @@ QAST::MASTOperations.add_core_op('rindex', -> $qastcomp, $op {
19511951
!! QAST::Op.new( :op('rindexfrom'), |@operands ));
19521952
});
19531953

1954+
# unicode properties
1955+
QAST::MASTOperations.add_core_moarop_mapping('unipropcode', 'unipropcode');
1956+
QAST::MASTOperations.add_core_moarop_mapping('unipvalcode', 'unipvalcode');
1957+
QAST::MASTOperations.add_core_moarop_mapping('getuniprop', 'getuniprop');
1958+
QAST::MASTOperations.add_core_moarop_mapping('getuniname', 'getuniname');
1959+
1960+
19541961
# serialization context opcodes
19551962
QAST::MASTOperations.add_core_moarop_mapping('sha1', 'sha1');
19561963
QAST::MASTOperations.add_core_moarop_mapping('createsc', 'createsc');

0 commit comments

Comments
 (0)