Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.interop/src/com/oracle/truffle/interop/ForeignAccessArguments.java @ 21167:ab451b6de9f8
Interop: introduce separate global language scope
author | Matthias Grimmer <grimmer@ssw.jku.at> |
---|---|
date | Thu, 30 Apr 2015 17:27:53 +0200 |
parents | 556b6a4b36b2 |
children |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.interop/src/com/oracle/truffle/interop/ForeignAccessArguments.java Thu Apr 30 20:29:27 2015 +0200 +++ b/graal/com.oracle.truffle.interop/src/com/oracle/truffle/interop/ForeignAccessArguments.java Thu Apr 30 17:27:53 2015 +0200 @@ -54,6 +54,10 @@ return copyOfRange(arguments, RUNTIME_ARGUMENT_COUNT, arguments.length); } + public static Object[] extractUserArguments(int skip, Object[] arguments) { + return copyOfRange(arguments, RUNTIME_ARGUMENT_COUNT + skip, arguments.length); + } + public static int getUserArgumentCount(Object[] arguments) { return arguments.length - RUNTIME_ARGUMENT_COUNT; }