diff options
author | Tom Tromey <tromey@redhat.com> | 2006-05-05 00:59:48 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2006-05-05 00:59:48 +0000 |
commit | b11382213a2e25a0b0ccd70783641b33b6dc51f1 (patch) | |
tree | 6ce8f1048cd1d8cac9e29552ec52889a47da2919 /gcc/java/class.c | |
parent | d31f43306b18932fa4e007dcc45ae4b88165a194 (diff) | |
download | gcc-b11382213a2e25a0b0ccd70783641b33b6dc51f1.zip gcc-b11382213a2e25a0b0ccd70783641b33b6dc51f1.tar.gz gcc-b11382213a2e25a0b0ccd70783641b33b6dc51f1.tar.bz2 |
java-tree.h (uses_jv_markobj_p): Declare.
* java-tree.h (uses_jv_markobj_p): Declare.
* class.c (uses_jv_markobj_p): Removed.
* boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): New define.
(get_boehm_type_descriptor): Use it.
(uses_jv_markobj_p): Moved from class.c. Return bool.
From-SVN: r113549
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r-- | gcc/java/class.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c index 590925d..05c9944 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -1611,16 +1611,6 @@ supers_all_compiled (tree type) return 1; } -/* The forth (index of 3) element in the vtable is the GC descriptor. - A value of 2 indicates that the class uses _Jv_MarkObj. */ -static int -uses_jv_markobj_p(tree dtable) -{ - tree v; - v = VEC_index (constructor_elt, CONSTRUCTOR_ELTS (dtable), 3)->value; - return (2 == TREE_INT_CST_LOW (v)); -} - void make_class_data (tree type) { @@ -1659,7 +1649,7 @@ make_class_data (tree type) && !flag_indirect_dispatch) { tree dtable = get_dispatch_table (type, this_class_addr); - uses_jv_markobj = uses_jv_markobj_p(dtable); + uses_jv_markobj = uses_jv_markobj_p (dtable); dtable_decl = build_dtable_decl (type); DECL_INITIAL (dtable_decl) = dtable; TREE_STATIC (dtable_decl) = 1; |