diff options
| author | kseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-18 21:52:45 +0000 |
|---|---|---|
| committer | kseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-18 21:52:45 +0000 |
| commit | af21548a056a1c36a27707bb25af659552a8dfe6 (patch) | |
| tree | 780f9c54ac5cfe5ef734495b62563e4e2b4f0cdc /libjava/include/java-interp.h | |
| parent | de7fe654be4f7c339fcdb9adb766359242be99f5 (diff) | |
| download | ppe42-gcc-af21548a056a1c36a27707bb25af659552a8dfe6.tar.gz ppe42-gcc-af21548a056a1c36a27707bb25af659552a8dfe6.zip | |
* include/java-interp.h (_Jv_CompileMethod): Add declaration.
(class _Jv_InterpMethod): Add _Jv_CompileMethod as a friend.
* interpret.cc (_Jv_CompileMethod): New function.
(run): Massage code to allow for NULL args.
Update comments to explain NULL args.
Return if compiling the method and args is NULL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109918 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/include/java-interp.h')
| -rw-r--r-- | libjava/include/java-interp.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libjava/include/java-interp.h b/libjava/include/java-interp.h index 269e39c5a5e..872fb10a32b 100644 --- a/libjava/include/java-interp.h +++ b/libjava/include/java-interp.h @@ -1,6 +1,6 @@ // java-interp.h - Header file for the bytecode interpreter. -*- c++ -*- -/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation +/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation This file is part of libgcj. @@ -44,6 +44,7 @@ void * _Jv_AllocMethodInvocation (jsize size); int _Jv_count_arguments (_Jv_Utf8Const *signature, jboolean staticp = true); void _Jv_VerifyMethod (_Jv_InterpMethod *method); +void _Jv_CompileMethod (_Jv_InterpMethod* method); /* the interpreter is written in C++, primarily because it makes it easy for * the entire thing to be "friend" with class Class. */ @@ -184,6 +185,10 @@ class _Jv_InterpMethod : public _Jv_MethodBase public: static void dump_object(jobject o); +#ifdef DIRECT_THREADED + friend void _Jv_CompileMethod (_Jv_InterpMethod*); +#endif + friend class _Jv_ClassReader; friend class _Jv_BytecodeVerifier; friend class _Jv_StackTrace; |

