Browse files

hook up new uniprop opcodes

  • Loading branch information...
1 parent a0dc24c commit fb32da5ea0844cbb25d3df0d60867794987254e6 @TimToady TimToady committed Mar 4, 2014
Showing with 10 additions and 5 deletions.
  1. +8 −3 docs/ops.markdown
  2. +2 −2 src/vm/moar/QAST/QASTOperationsMAST.nqp
@@ -695,12 +695,17 @@ Translates a property name to the property category it's in.
Looks up a property name in its property category, and returns which
table within that category to use.
-## getuniprop
-* `getuniprop(int $codepoint, int $propcode, int $pvalcode)`
+## getuniprop_int
+* `getuniprop_int(int $codepoint, int $propcode, int $pvalcode)`
-Uses the table found by the previous two opcodes to look up the property value
+Uses the table found by the previous two opcodes to look up an integer property value
for a given codepoint.
+## getuniprop_str
+* `getuniprop_str(int $codepoint, int $propcode, int $pvalcode)`
+Same thing, but fetches a string property value.
# Conditional Opcodes
## if
@@ -1954,9 +1954,9 @@ QAST::MASTOperations.add_core_op('rindex', -> $qastcomp, $op {
# 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');
+QAST::MASTOperations.add_core_moarop_mapping('getuniprop_int', 'getuniprop_int');
+QAST::MASTOperations.add_core_moarop_mapping('getuniprop_str', 'getuniprop_str');
# serialization context opcodes
QAST::MASTOperations.add_core_moarop_mapping('sha1', 'sha1');

0 comments on commit fb32da5

Please sign in to comment.