diff options
Diffstat (limited to 'libjava/include/jvm.h')
-rw-r--r-- | libjava/include/jvm.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h index cf4d7d640d0..e7d1ce23326 100644 --- a/libjava/include/jvm.h +++ b/libjava/include/jvm.h @@ -250,7 +250,8 @@ namespace gcj class _Jv_Linker { private: - static _Jv_Field *find_field_helper(jclass, _Jv_Utf8Const *, jclass *); + static _Jv_Field *find_field_helper(jclass, _Jv_Utf8Const *, _Jv_Utf8Const *, + jclass *); static _Jv_Field *find_field(jclass, jclass, _Jv_Utf8Const *, _Jv_Utf8Const *); static void prepare_constant_time_tables(jclass); @@ -278,6 +279,7 @@ private: public: + static bool has_field_p (jclass, _Jv_Utf8Const *); static void print_class_loaded (jclass); static void resolve_class_ref (jclass, jclass *); static void wait_for_state(jclass, int); @@ -372,6 +374,9 @@ extern "C" void JvRunMain (jclass klass, int argc, const char **argv); void _Jv_RunMain (jclass klass, const char *name, int argc, const char **argv, bool is_jar); +void _Jv_RunMain (struct _Jv_VMInitArgs *vm_args, jclass klass, + const char *name, int argc, const char **argv, bool is_jar); + // Delayed until after _Jv_AllocBytes is declared. // // Note that we allocate this as unscanned memory -- the vtables @@ -525,6 +530,9 @@ void _Jv_SetCurrentJNIEnv (_Jv_JNIEnv *); /* Free a JNIEnv. */ void _Jv_FreeJNIEnv (_Jv_JNIEnv *); +/* Free a JNIEnv. */ +void _Jv_FreeJNIEnv (_Jv_JNIEnv *); + struct _Jv_JavaVM; _Jv_JavaVM *_Jv_GetJavaVM (); @@ -581,4 +589,13 @@ _Jv_CheckABIVersion (unsigned long value) || value == (GCJ_VERSION + GCJ_BINARYCOMPAT_ADDITION)); } +// It makes the source cleaner if we simply always define this +// function. If the interpreter is not built, it will never return +// 'true'. +extern inline jboolean +_Jv_IsInterpretedClass (jclass c) +{ + return (c->accflags & java::lang::reflect::Modifier::INTERPRETED) != 0; +} + #endif /* __JAVA_JVM_H__ */ |