aboutsummaryrefslogtreecommitdiff
path: root/libjava/include/java-interp.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2003-01-24 19:58:21 +0000
committerTom Tromey <tromey@gcc.gnu.org>2003-01-24 19:58:21 +0000
commit4c98b1b0782cb1ad25a5d1f44391d65b12f9a566 (patch)
treef37c4a601e54ff85516e178f32e45db587bf62ce /libjava/include/java-interp.h
parentd291503a6733535c462bf71c03347c2452a523ee (diff)
downloadgcc-4c98b1b0782cb1ad25a5d1f44391d65b12f9a566.zip
gcc-4c98b1b0782cb1ad25a5d1f44391d65b12f9a566.tar.gz
gcc-4c98b1b0782cb1ad25a5d1f44391d65b12f9a566.tar.bz2
defineclass.cc (handleMethodsEnd): Precompute code for static method.
* defineclass.cc (handleMethodsEnd): Precompute code for static method. (handleCodeAttribute): Likewise. * resolve.cc (ncode): Use run_class for unsynchronized static methods. * include/java-interp.h (class _Jv_InterpMethod): Declare run_class. * interpret.cc (run_synch_class): Initialize class. (run) [insn_invokestatic]: Don't initialize class. [insn_anewarray]: Likewise. [insn_multianewarray]: Likewise. (run_class): New function. From-SVN: r61727
Diffstat (limited to 'libjava/include/java-interp.h')
-rw-r--r--libjava/include/java-interp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/include/java-interp.h b/libjava/include/java-interp.h
index a00f4db..c801274 100644
--- a/libjava/include/java-interp.h
+++ b/libjava/include/java-interp.h
@@ -1,6 +1,6 @@
// java-interp.h - Header file for the bytecode interpreter. -*- c++ -*-
-/* Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation
+/* Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
This file is part of libgcj.
@@ -132,6 +132,7 @@ class _Jv_InterpMethod : public _Jv_MethodBase
static void run_normal (ffi_cif*, void*, ffi_raw*, void*);
static void run_synch_object (ffi_cif*, void*, ffi_raw*, void*);
+ static void run_class (ffi_cif*, void*, ffi_raw*, void*);
static void run_synch_class (ffi_cif*, void*, ffi_raw*, void*);
void run (void*, ffi_raw *);