From 05ee9ca08fa14577c842dbf0bece1b0d4e56eb00 Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Tue, 10 Oct 2006 20:15:51 +0000 Subject: 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 --- 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