Skip to content

Commit

Permalink
Set correct argument signatures for native call ops.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnsholt committed Sep 5, 2013
1 parent 0d2e7b8 commit 279c94a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/vm/jvm/QAST/Compiler.nqp
Expand Up @@ -2462,8 +2462,8 @@ QAST::OperationsJAST.map_classlib_core_op('jvmgetconfig', $TYPE_OPS, 'jvmgetconf

# Native call ops
QAST::OperationsJAST.map_classlib_core_op('initnativecall', $TYPE_NATIVE_OPS, 'init', [], $RT_INT);
QAST::OperationsJAST.map_classlib_core_op('buildnativecall', $TYPE_NATIVE_OPS, 'build', [], $RT_INT);
QAST::OperationsJAST.map_classlib_core_op('nativecall', $TYPE_NATIVE_OPS, 'call', [], $RT_INT);
QAST::OperationsJAST.map_classlib_core_op('buildnativecall', $TYPE_NATIVE_OPS, 'build', [$RT_OBJ, $RT_STR, $RT_STR, $RT_STR, $RT_OBJ, $RT_OBJ], $RT_INT);
QAST::OperationsJAST.map_classlib_core_op('nativecall', $TYPE_NATIVE_OPS, 'call', [$RT_OBJ, $RT_OBJ, $RT_OBJ], $RT_OBJ);

class QAST::CompilerJAST {
# Responsible for handling issues around code references, building the
Expand Down
4 changes: 2 additions & 2 deletions src/vm/jvm/runtime/org/perl6/nqp/runtime/NativeCallOps.java
Expand Up @@ -9,11 +9,11 @@ public static long init() {
return 1L;
}

public static long build() {
public static long build(SixModelObject target, String libname, String symbol, String convention, SixModelObject arguments, SixModelObject returns) {
return 1L;
}

public static SixModelObject call() {
public static SixModelObject call(SixModelObject returns, SixModelObject call, SixModelObject arguments) {
return null;
}
}

0 comments on commit 279c94a

Please sign in to comment.