* src/vm/class.c (vm/suck.h): Added.
authortwisti <none@none>
Mon, 18 Dec 2006 18:21:37 +0000 (18:21 +0000)
committertwisti <none@none>
Mon, 18 Dec 2006 18:21:37 +0000 (18:21 +0000)
commitb0dba1116d03fbe97d75e8ccfb933a51caf05601
tree71e3b937ea9baa6ead9cfb95dae7ddc6d18bb2bf
parentedb29ccf4eab804aa2d2d9ee3700b76353f96be0
* src/vm/class.c (vm/suck.h): Added.
(class_load_attribute_sourcefile): New function.
(class_load_attribute_enclosingmethod): Likewise.
(class_load_attributes): Likewise.

* src/vm/loader.c [ENABLE_JAVASE] (vm/annotation.h, vm/stackmap.h):
Added.
(skipattributebody): Renamed to loader_skip_attribute_body, made
non-static.
(skipattributes): Removed.
(loader_load_attribute_signature): New function.
(load_field): Use loader_load_attribute_signature.
(load_method): Renamed to loader_load_method, call
stackmap_load_attribute_stackmaptable and
loader_load_attribute_signature.
(load_attributes): Removed.
(load_class_from_classbuffer): Renamed load_method to
loader_load_method and load_attributes to class_load_attributes.
* src/vm/loader.h (loader_skip_attribute_body): Added.
[ENABLE_JAVASE] (loader_load_attribute_signature): Likewise.

* src/vm/method.h [ENABLE_JAVASE] (vm/stackmap.h): Added.
(methodinfo) [ENABLE_JAVASE]: Added signature and stack_map.

* src/vm/statistics.c (size_stack_map): Added.
(print_stats): Print stack_map size.
* src/vm/statistics.h (size_stack_map): Likewise.

* src/vm/global.h (JAVA_VERSION): Changed to "1.5.0".
(CLASS_VERSION): Changed to "50.0".
(MAJOR_VERSION): Changed to 50.

* src/vm/utf8.c [ENABLE_JAVASE] (utf_EnclosingMethod)
(utf_RuntimeVisibleAnnotations, utf_StackMapTable): Added.
(utf8_init) [ENABLE_JAVASE]: Init utf_EnclosingMethod,
utf_RuntimeVisibleAnnotations and utf_StackMapTable.
* src/vm/utf8.h [ENABLE_JAVASE] (utf_EnclosingMethod)
(utf_RuntimeVisibleAnnotations, utf_StackMapTable): Added.

* src/vm/properties.c (properties_init): Changed
java.specification.version to 1.5.

* src/vm/Makefile.am [ENABLE_JAVASE] (ANNOTATION_OBJ): Renamed to
ANNOTATION_SOURCES.
[ENABLE_JAVASE] (STACKMAP_SOURCES): Added.
[ENABLE_STATISTICS] (STATISTICS_OBJ): Renamed to STATISTICS_SOURCES.
(libvmcore_la_SOURCES): Added STACKMAP_SOURCES.
* src/vm/stackmap.c: New file.
* src/vm/stackmap.h: Likewise.
13 files changed:
src/vm/Makefile.am
src/vm/class.c
src/vm/global.h
src/vm/loader.c
src/vm/loader.h
src/vm/method.h
src/vm/properties.c
src/vm/stackmap.c [new file with mode: 0644]
src/vm/stackmap.h [new file with mode: 0644]
src/vm/statistics.c
src/vm/statistics.h
src/vm/utf8.c
src/vm/utf8.h