Permalink
Browse files

add four new opcodes for unicode properties

Well, actually, add two new opcodes and two old opcodes that weren't exposed.
  • Loading branch information...
1 parent 591268e commit c9618321e583eb1272d730e7a096d3faa357c3b9 @TimToady TimToady committed Mar 3, 2014
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/vm/moar/QAST/QASTOperationsMAST.nqp
@@ -1951,6 +1951,13 @@ QAST::MASTOperations.add_core_op('rindex', -> $qastcomp, $op {
!! QAST::Op.new( :op('rindexfrom'), |@operands ));
});
+# unicode properties
+QAST::MASTOperations.add_core_moarop_mapping('unipropcode', 'unipropcode');
+QAST::MASTOperations.add_core_moarop_mapping('unipvalcode', 'unipvalcode');
+QAST::MASTOperations.add_core_moarop_mapping('getuniprop', 'getuniprop');
+QAST::MASTOperations.add_core_moarop_mapping('getuniname', 'getuniname');
+
+
# serialization context opcodes
QAST::MASTOperations.add_core_moarop_mapping('sha1', 'sha1');
QAST::MASTOperations.add_core_moarop_mapping('createsc', 'createsc');

0 comments on commit c961832

Please sign in to comment.