This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] turn quick_stack into a VEC


On 05/24/2010 04:09 AM, Nathan Froyd wrote:
> The patch below converts java/expr.c:quick_stack into a VEC instead of a
> TREE_LIST.  We get to use the intuitive push and pop methods and
> flush_quick_stack becomes somewhat more straightforward.
> 
> Tested on x86_64-unknown-linux-gnu.  OK to commit?
> 
> -Nathan
> 
> 	* expr.c (quick_stack): Change type to a VEC.  Update comment.
> 	(tree_list_free_list): Delete.
> 	(flush_quick_stack): Update for quick_stack type change.
> 	(push_value): Likewise.
> 	(pop_value): Likewise.

Gosh, that's quite some improvement.  Thanks.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]