Commit dfb99c83 by Alexandre Petit-Bianco Committed by Alexandre Petit-Bianco

parse.y (source_start_java_method): Deleted unecessary code.

2000-04-24  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * parse.y (source_start_java_method): Deleted unecessary code.
        (patch_method_invocation): Fixed comment.

From-SVN: r33392
parent 4feeaae3
2000-04-24 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (source_start_java_method): Deleted unecessary code.
(patch_method_invocation): Fixed comment.
2000-04-24 Robert Lipe <robertlipe@usa.net> 2000-04-24 Robert Lipe <robertlipe@usa.net>
* parse.h (_jdep): Member `kind' now ENUM_BITFIELD. * parse.h (_jdep): Member `kind' now ENUM_BITFIELD.
......
...@@ -6847,10 +6847,6 @@ source_start_java_method (fndecl) ...@@ -6847,10 +6847,6 @@ source_start_java_method (fndecl)
tree tem; tree tem;
tree parm_decl; tree parm_decl;
int i; int i;
#if 0
int flag_inner = DECL_CONSTRUCTOR_P (fndecl)
&& (INNER_CLASS_TYPE_P (DECL_CONTEXT (fndecl)) ? 1 : 0);
#endif
if (!fndecl) if (!fndecl)
return; return;
...@@ -6887,29 +6883,6 @@ source_start_java_method (fndecl) ...@@ -6887,29 +6883,6 @@ source_start_java_method (fndecl)
LOCAL_FINAL (parm_decl) = 1; LOCAL_FINAL (parm_decl) = 1;
BLOCK_CHAIN_DECL (parm_decl); BLOCK_CHAIN_DECL (parm_decl);
#if 0
/* If this is a constructor of a inner class, hide the extra
this$<n> parameter */
if (i == 0 && flag_inner)
{
tree link = TREE_CHAIN (tem);
tree type = DECL_CONTEXT (TYPE_NAME (DECL_CONTEXT (fndecl)));
type = build_pointer_type (TREE_TYPE (type));
parm_decl = build_decl (PARM_DECL,
build_current_thisn (current_class), type);
BLOCK_CHAIN_DECL (parm_decl);
/* We hide the this$<n> decl in the name field of its
parameter declaration. */
parm_decl = build_tree_list (DECL_NAME (parm_decl), type);
TREE_CHAIN (tem) = parm_decl;
TREE_CHAIN (parm_decl) = link;
tem = parm_decl;
i++;
}
#endif
} }
tem = BLOCK_EXPR_DECLS (DECL_FUNCTION_BODY (current_function_decl)); tem = BLOCK_EXPR_DECLS (DECL_FUNCTION_BODY (current_function_decl));
BLOCK_EXPR_DECLS (DECL_FUNCTION_BODY (current_function_decl)) = BLOCK_EXPR_DECLS (DECL_FUNCTION_BODY (current_function_decl)) =
...@@ -9479,9 +9452,9 @@ patch_method_invocation (patch, primary, where, is_static, ret_decl) ...@@ -9479,9 +9452,9 @@ patch_method_invocation (patch, primary, where, is_static, ret_decl)
access$0(access$0(...(this$0))). access$0(access$0(...(this$0))).
maybe_use_access_method returns a non zero value if the maybe_use_access_method returns a non zero value if the
this_arg has to be deplaced into the (then generated) this_arg has to be moved into the (then generated) stub
stub argument list. In the mean time, the selected argument list. In the mean time, the selected function
function might have be replaced by a generated stub. */ might have be replaced by a generated stub. */
if (maybe_use_access_method (is_super_init, &list, &this_arg)) if (maybe_use_access_method (is_super_init, &list, &this_arg))
args = tree_cons (NULL_TREE, this_arg, args); args = tree_cons (NULL_TREE, this_arg, args);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment