Permalink
Browse files

Map nativecall ops.

Nothing works yet; the next step is to build stuff up in MoarVM to get
towards passing t/nativecall/01-basic.t.
  • Loading branch information...
1 parent e3e35ca commit 8a414b763a5d0bf8bf92d0009b7d8003879824d0 @jnthn jnthn committed Mar 10, 2014
Showing with 7 additions and 1 deletion.
  1. +6 −0 src/vm/moar/QAST/QASTOperationsMAST.nqp
  2. +1 −1 tools/build/MOAR_REVISION
@@ -2317,6 +2317,12 @@ QAST::MASTOperations.add_core_moarop_mapping('nfafromstatelist', 'nfafromstateli
QAST::MASTOperations.add_core_moarop_mapping('nfarunproto', 'nfarunproto');
QAST::MASTOperations.add_core_moarop_mapping('nfarunalt', 'nfarunalt', 0);
+# native call ops
+QAST::MASTOperations.add_core_moarop_mapping('initnativecall', 'no_op');
+QAST::MASTOperations.add_core_moarop_mapping('buildnativecall', 'nativecallbuild', 0);
+QAST::MASTOperations.add_core_moarop_mapping('nativecall', 'nativecallinvoke');
+QAST::MASTOperations.add_core_moarop_mapping('nativecallrefresh', 'nativecallrefresh', 0);
+
# process related opcodes
QAST::MASTOperations.add_core_moarop_mapping('exit', 'exit', 0);
QAST::MASTOperations.add_core_moarop_mapping('sleep', 'sleep', 0);
@@ -1 +1 @@
-2014.02-36-ge9b018f
+2014.02-49-gad99d7f

0 comments on commit 8a414b7

Please sign in to comment.