java-interp.h (prepared): Change type to pc_t.

* include/java-interp.h (prepared): Change type to pc_t.
        (insn_index): Define for both DIRECT_THREADED and bytecode interpreters.
        * interpret.cc [!DIRECT_THREADED] (POKEI): Fix typo.
        (insn_index): Implement for bytecode interpreter.
        * interpret-run.cc [!DIRECT_THREADED] (AVAL1U): Add _Jv_Linker class
        qualifier to resolve_pool_entry.
        [!DIRECT_THREADED] (AVAL2U): Likewise.
        [!DIRECT_THREADED] bytecode() cannot be called without an object.
        Changed all typos.
        [!DIRECT_THREADED] Likewise for defining_class.

From-SVN: r117333
This commit is contained in:
Keith Seitz 2006-09-30 19:20:16 +00:00 committed by Keith Seitz
parent 05c1e3a7a9
commit 19add4f7e4
4 changed files with 32 additions and 20 deletions

View file

@ -144,7 +144,7 @@ class _Jv_InterpMethod : public _Jv_MethodBase
int line_table_len;
_Jv_LineTableEntry *line_table;
void *prepared;
pc_t prepared;
int number_insn_slots;
unsigned char* bytecode ()
@ -191,13 +191,9 @@ class _Jv_InterpMethod : public _Jv_MethodBase
// number info is unavailable.
int get_source_line(pc_t mpc);
#ifdef DIRECT_THREADED
// Convenience function for indexing bytecode PC/insn slots in
// line tables for JDWP
jlong insn_index (pc_t pc);
#endif
public: