diff options
author | kseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-10 20:15:51 +0000 |
---|---|---|
committer | kseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-10 20:15:51 +0000 |
commit | b15e90aa9a994748b6ea0a3bf030ca7fc661d2a7 (patch) | |
tree | 128c26f6b83c22bf5dbed4b27189a9b690415438 /libjava/include/java-interp.h | |
parent | 7aa7b3527e0518c7a2d1de5a0bd3c6a6ebd2b481 (diff) | |
download | gcc-b15e90aa9a994748b6ea0a3bf030ca7fc661d2a7.tar.gz |
* include/java-interp.h (_Jv_InterpMethod::get_insn): Declare.
(_Jv_InterpMethod::set_insn): Declare.
* interpret.cc (_Jv_InterpMethod::get_insn): New method.
(_Jv_InterpMethod::get_insn): New method.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117614 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, 7 insertions, 0 deletions
diff --git a/libjava/include/java-interp.h b/libjava/include/java-interp.h index 133fd19f9fe..276a887be34 100644 --- a/libjava/include/java-interp.h +++ b/libjava/include/java-interp.h @@ -206,6 +206,13 @@ class _Jv_InterpMethod : public _Jv_MethodBase void get_line_table (jlong& start, jlong& end, jintArray& line_numbers, jlongArray& code_indices); + // Gets the instruction at the given index + pc_t get_insn (jlong index); + + /* Writes the given instruction at the given code index. Returns + the insn or NULL if index is invalid. */ + pc_t set_insn (jlong index, pc_t insn); + #ifdef DIRECT_THREADED friend void _Jv_CompileMethod (_Jv_InterpMethod*); #endif |