javaprims.h (_Jv_Utf8Const): Change struct to a class, with private fields and access...
authorPer Bothner <per@bothner.com>
Thu, 12 Aug 2004 06:53:42 +0000 (23:53 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Thu, 12 Aug 2004 06:53:42 +0000 (23:53 -0700)
commitb4d49f49bf21837bef59aa30788e2e9bf2ce2e3b
treeddcf219c5b73f37a94e4a0d174408bc041874a8e
parentfbac6f3cf5a007c9888d1fecdd647338f9eb623f
javaprims.h (_Jv_Utf8Const): Change struct to a class, with private fields and access methods.

* gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
with private fields and access methods.
(_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
* gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
* prims.cc (_Jv_Utf8COnst::init): New method implementation.
( _Jv_makeUtf8Const): Rewrite using new constructors.
(hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
* defineclass.cc: Use new _Utf8Const access/convenience methods.
* jni.cc: Likewise.
* resolve.cc: Likewise.
* gcj/field.h: Likewise.
* include/jvm.h: Likewise.
* java/lang/Class.h: Likewise.
* java/lang/natClass.cc: Likwise.
* java/lang/natClassLoader.cc: Likewise
* java/lang/reflect/natMethod.cc: Likewise
* verify.cc: Likewise.
(_Jv_BytecodeVerifier::make_utf8_const):  Optimize.
(~_Jv_BytecodeVerifier):  Don't need second _Jv_Free call.

From-SVN: r85854
14 files changed:
libjava/ChangeLog
libjava/defineclass.cc
libjava/gcj/cni.h
libjava/gcj/field.h
libjava/gcj/javaprims.h
libjava/include/jvm.h
libjava/java/lang/Class.h
libjava/java/lang/natClass.cc
libjava/java/lang/natClassLoader.cc
libjava/java/lang/reflect/natMethod.cc
libjava/jni.cc
libjava/prims.cc
libjava/resolve.cc
libjava/verify.cc