From b15e90aa9a994748b6ea0a3bf030ca7fc661d2a7 Mon Sep 17 00:00:00 2001 From: kseitz Date: Tue, 10 Oct 2006 20:15:51 +0000 Subject: * 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 --- libjava/include/java-interp.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libjava/include/java-interp.h') 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 -- cgit v1.2.3