mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	struct parse_params: trivial packing
* parse.y (struct parse_params): shrink to 320 to 304 bytes on 64-bit Some elements may be removed/resized as well, but not as important as reducing more-frequently allocated structures. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									36c1e06c93
								
							
						
					
					
						commit
						6358bae370
					
				
					 2 changed files with 7 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,7 @@
 | 
			
		|||
Sat Jul 26 06:44:43 2014  Eric Wong  <e@80x24.org>
 | 
			
		||||
 | 
			
		||||
	* parse.y (struct parse_params): shrink to 320 to 304 bytes on 64-bit
 | 
			
		||||
 | 
			
		||||
Sat Jul 26 05:58:35 2014  Eric Wong  <e@80x24.org>
 | 
			
		||||
 | 
			
		||||
	* include/ruby/ruby.h (ZALLOC, ZALLOC_N): implement
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										6
									
								
								parse.y
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								parse.y
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -216,10 +216,9 @@ struct parser_params {
 | 
			
		|||
    VALUE eofp;
 | 
			
		||||
 | 
			
		||||
    NODE *parser_lex_strterm;
 | 
			
		||||
    enum lex_state_e parser_lex_state;
 | 
			
		||||
    stack_type parser_cond_stack;
 | 
			
		||||
    stack_type parser_cmdarg_stack;
 | 
			
		||||
    int is_ripper;
 | 
			
		||||
    enum lex_state_e parser_lex_state;
 | 
			
		||||
    int parser_class_nest;
 | 
			
		||||
    int parser_paren_nest;
 | 
			
		||||
    int parser_lpar_beg;
 | 
			
		||||
| 
						 | 
				
			
			@ -234,6 +233,7 @@ struct parser_params {
 | 
			
		|||
    int parser_tokidx;
 | 
			
		||||
    int parser_toksiz;
 | 
			
		||||
    int parser_tokline;
 | 
			
		||||
    int is_ripper; /* bool, seems unused */
 | 
			
		||||
    VALUE parser_lex_input;
 | 
			
		||||
    VALUE parser_lex_lastline;
 | 
			
		||||
    VALUE parser_lex_nextline;
 | 
			
		||||
| 
						 | 
				
			
			@ -249,8 +249,8 @@ struct parser_params {
 | 
			
		|||
    int parser_ruby__end__seen;
 | 
			
		||||
    int line_count;
 | 
			
		||||
    int has_shebang;
 | 
			
		||||
    char *parser_ruby_sourcefile; /* current source file */
 | 
			
		||||
    int parser_ruby_sourceline;	/* current line no. */
 | 
			
		||||
    char *parser_ruby_sourcefile; /* current source file */
 | 
			
		||||
    VALUE parser_ruby_sourcefile_string;
 | 
			
		||||
    rb_encoding *enc;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue