aboutsummaryrefslogtreecommitdiff
path: root/libjava/include
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2006-10-10 20:15:51 +0000
committerKeith Seitz <kseitz@gcc.gnu.org>2006-10-10 20:15:51 +0000
commit05ee9ca08fa14577c842dbf0bece1b0d4e56eb00 (patch)
tree128c26f6b83c22bf5dbed4b27189a9b690415438 /libjava/include
parent4e34ede292add9a4518f78848bdf76f9b4944f6f (diff)
downloadgcc-05ee9ca08fa14577c842dbf0bece1b0d4e56eb00.zip
gcc-05ee9ca08fa14577c842dbf0bece1b0d4e56eb00.tar.gz
gcc-05ee9ca08fa14577c842dbf0bece1b0d4e56eb00.tar.bz2
java-interp.h (_Jv_InterpMethod::get_insn): Declare.
* 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. From-SVN: r117614
Diffstat (limited to 'libjava/include')
-rw-r--r--libjava/include/java-interp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libjava/include/java-interp.h b/libjava/include/java-interp.h
index 133fd19..276a887b 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