* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85854 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- libjava/ChangeLog 22 additions, 0 deletionslibjava/ChangeLog
- libjava/defineclass.cc 18 additions, 20 deletionslibjava/defineclass.cc
- libjava/gcj/cni.h 0 additions, 1 deletionlibjava/gcj/cni.h
- libjava/gcj/field.h 1 addition, 1 deletionlibjava/gcj/field.h
- libjava/gcj/javaprims.h 33 additions, 1 deletionlibjava/gcj/javaprims.h
- libjava/include/jvm.h 1 addition, 1 deletionlibjava/include/jvm.h
- libjava/java/lang/Class.h 1 addition, 1 deletionlibjava/java/lang/Class.h
- libjava/java/lang/natClass.cc 11 additions, 17 deletionslibjava/java/lang/natClass.cc
- libjava/java/lang/natClassLoader.cc 11 additions, 11 deletionslibjava/java/lang/natClassLoader.cc
- libjava/java/lang/reflect/natMethod.cc 2 additions, 2 deletionslibjava/java/lang/reflect/natMethod.cc
- libjava/jni.cc 15 additions, 13 deletionslibjava/jni.cc
- libjava/prims.cc 15 additions, 8 deletionslibjava/prims.cc
- libjava/resolve.cc 13 additions, 13 deletionslibjava/resolve.cc
- libjava/verify.cc 20 additions, 28 deletionslibjava/verify.cc
Loading
Please register or sign in to comment