diff options
Diffstat (limited to 'libjava/include/jvm.h')
-rw-r--r-- | libjava/include/jvm.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h index 61e426f2e66..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); @@ -373,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 @@ -585,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__ */ |