OSDN Git Service

* class.c (make_class_data): Renamed fields: nmethods to
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Oct 1998 00:35:32 +0000 (00:35 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Oct 1998 00:35:32 +0000 (00:35 +0000)
method_count, method_count to dtable_method_count.  Always set
`state' field to 0.
* decl.c (init_decl_processing): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23449 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/class.c
gcc/java/decl.c

index 2f4383e..3ebdedc 100644 (file)
@@ -1,3 +1,10 @@
+1998-10-30  Tom Tromey  <tromey@cygnus.com>
+
+       * class.c (make_class_data): Renamed fields: nmethods to
+       method_count, method_count to dtable_method_count.  Always set
+       `state' field to 0.
+       * decl.c (init_decl_processing): Likewise.
+
 Wed Oct 28 08:03:31 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
 
        * class.c (layout_class): Don't mangle <finit>, produce
index 4a382b9..d0fb94b 100644 (file)
@@ -1089,8 +1089,8 @@ make_class_data (type)
   PUSH_FIELD_VALUE (cons, "constants", constant_pool_constructor);
   PUSH_FIELD_VALUE (cons, "methods",
                    build1 (ADDR_EXPR, method_ptr_type_node, methods_decl));
-  PUSH_FIELD_VALUE (cons, "nmethods",  build_int_2 (method_count, 0));
-  PUSH_FIELD_VALUE (cons, "method_count", TYPE_NVIRTUALS (type));
+  PUSH_FIELD_VALUE (cons, "method_count",  build_int_2 (method_count, 0));
+  PUSH_FIELD_VALUE (cons, "dtable_method_count", TYPE_NVIRTUALS (type));
   PUSH_FIELD_VALUE (cons, "fields",
                    fields_decl == NULL_TREE ? null_pointer_node
                    : build1 (ADDR_EXPR, field_ptr_type_node, fields_decl));
@@ -1105,9 +1105,7 @@ make_class_data (type)
   PUSH_FIELD_VALUE (cons, "interfaces", interfaces);
   PUSH_FIELD_VALUE (cons, "loader", null_pointer_node);
   PUSH_FIELD_VALUE (cons, "interface_count", build_int_2 (interface_len, 0));
-  PUSH_FIELD_VALUE (cons, "state",
-                   flag_assume_compiled ? integer_four_node
-                   : integer_two_node);
+  PUSH_FIELD_VALUE (cons, "state", integer_zero_node);
 
   PUSH_FIELD_VALUE (cons, "thread", null_pointer_node);
 
index a49f22b..6c44d15 100644 (file)
@@ -589,8 +589,8 @@ init_decl_processing ()
   PUSH_FIELD (class_type_node, field, "superclass", class_ptr_type);
   PUSH_FIELD (class_type_node, field, "constants", constants_type_node);
   PUSH_FIELD (class_type_node, field, "methods", method_ptr_type_node);
-  PUSH_FIELD (class_type_node, field, "nmethods", short_type_node);
   PUSH_FIELD (class_type_node, field, "method_count", short_type_node);
+  PUSH_FIELD (class_type_node, field, "dtable_method_count", short_type_node);
   PUSH_FIELD (class_type_node, field, "fields", field_ptr_type_node);
   PUSH_FIELD (class_type_node, field, "size_in_bytes", int_type_node);
   PUSH_FIELD (class_type_node, field, "field_count", short_type_node);