From e9ee4a618cd06591a0335b25259b59beea0702e7 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 4 Aug 2009 18:27:04 -0600 Subject: [PATCH] implement Avian_java_lang_VMClassLoader_defineClass --- src/gnu.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/gnu.cpp b/src/gnu.cpp index 1aa77106b5..15aec5fd88 100644 --- a/src/gnu.cpp +++ b/src/gnu.cpp @@ -341,7 +341,7 @@ Avian_java_lang_VMRuntime_nativeLoad extern "C" JNIEXPORT int64_t JNICALL Avian_java_lang_Class_primitiveClass -(Thread* t, object, uintptr_t*); +(Thread*, object, uintptr_t*); extern "C" JNIEXPORT int64_t JNICALL Avian_java_lang_VMClassLoader_getPrimitiveClass @@ -350,6 +350,19 @@ Avian_java_lang_VMClassLoader_getPrimitiveClass return Avian_java_lang_Class_primitiveClass(t, 0, arguments); } +extern "C" JNIEXPORT int64_t JNICALL +Avian_java_lang_ClassLoader_defineClass +(Thread*, object, uintptr_t*); + +extern "C" JNIEXPORT int64_t JNICALL +Avian_java_lang_VMClassLoader_defineClass +(Thread* t, object, uintptr_t* arguments) +{ + uintptr_t args[] = { arguments[2], arguments[3], arguments[4] }; + + return Avian_java_lang_ClassLoader_defineClass(t, 0, args); +} + extern "C" JNIEXPORT int64_t JNICALL Avian_java_lang_System_identityHashCode (Thread*, object, uintptr_t*);