a
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Dec 1998 19:24:59 +0000 (19:24 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Dec 1998 19:24:59 +0000 (19:24 +0000)
commit03fd38538177ba02be643e4910b935daf60ab1aa
tree349e944970478e87202372d2465610c617a74ce0
parentd6f5caf30f5965df3d1a5573271ba22751c0157a
a
* expr.c (encode_newarray_type, build_new_array):  New functions.
* java-tree.h:  Declare build_new_array.
* jcf-write.c (patch_newarray):  Use build_new_array.
* expr.c (java_lang_expand_exp):  Support NEW_ARRAY_INIT.
* jcf-write.c (generate_bytecode_insns):  Support NEW_ARRAY_INIT.
* parse.y (patch_new_array_init):  Re-organize.
Now is passed the actual array (pointer) type of the value.
Set the type of the CONSTRUCTOR to be an ARRAY_TYPE.
(patch_array_constructor):  Removed - merged into patch_new_array_init.
  (java_complete_tree):  Update patch_new_array_init.
* jcf-write.c (find_constant_index):  New function.
(generate_bytecode_insns):  Use find_constant_index.
(generate_classfile):  Use find_constant_index for ConstantValue.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24272 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/java/jcf-write.c