summaryrefslogtreecommitdiffstats
path: root/gcc/java/class.c
diff options
context:
space:
mode:
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-07 08:58:26 +0000
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-07 08:58:26 +0000
commit4095293c7d50d2367f6f60a3d9f8feaa1a932d6d (patch)
tree7f5247f181780723c8e8790acc8c5afc9d20e754 /gcc/java/class.c
parent261d09344519e41ec72466548567b1460fd2db0c (diff)
downloadppe42-gcc-4095293c7d50d2367f6f60a3d9f8feaa1a932d6d.tar.gz
ppe42-gcc-4095293c7d50d2367f6f60a3d9f8feaa1a932d6d.zip
2000-03-06 Bryce McKinlay <bryce@albatross.co.nz>
* decl.c (init_decl_processing): Added new class fields `depth', `ancestors', and `idt' to class_type_node. Use _Jv_LookupInterfaceMethodIdx for soft_lookupinterfacemthod_node. * class.c (make_class_data): Push initial values for new fields. * java-tree.h: Updated prototype for `build_invokeinterface'. * expr.c (build_invokeinterface): Changed parameters to accept `method' tree. Calculate index of `method' in its declaring interface. Build call to _Jv_LookupInterfaceMethodIdx. (expand_invoke): Call `build_invokeinterface' with new parameters. * parse.y (patch_invoke): Call `build_invokeinterface' with new parameters. (This is Bryce McKinlay's implementation of the interfaces constant-time dispatch and type checking techniques designed by Per Bothner.) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32381 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r--gcc/java/class.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index f5cfd880e73..b9f56f5984b 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -1380,6 +1380,9 @@ make_class_data (type)
PUSH_FIELD_VALUE (cons, "state", integer_zero_node);
PUSH_FIELD_VALUE (cons, "thread", null_pointer_node);
+ PUSH_FIELD_VALUE (cons, "depth", integer_zero_node);
+ PUSH_FIELD_VALUE (cons, "ancestors", null_pointer_node);
+ PUSH_FIELD_VALUE (cons, "idt", null_pointer_node);
FINISH_RECORD_CONSTRUCTOR (cons);
OpenPOWER on IntegriCloud