shrink code size
This commit is contained in:
		
							parent
							
								
									53e3e019de
								
							
						
					
					
						commit
						4f5743ad0f
					
				|  | @ -845,7 +845,7 @@ codegen_lambda(codegen_state *state, pic_value obj) | ||||||
|     irep->varg = state->scope->varg; |     irep->varg = state->scope->varg; | ||||||
|     irep->argc = state->scope->argc; |     irep->argc = state->scope->argc; | ||||||
|     irep->localc = state->scope->localc; |     irep->localc = state->scope->localc; | ||||||
|     irep->code = state->scope->code; |     irep->code = pic_realloc(pic, state->scope->code, sizeof(struct pic_code) * state->scope->clen); | ||||||
|     irep->clen = state->scope->clen; |     irep->clen = state->scope->clen; | ||||||
| 
 | 
 | ||||||
|     /* fixup local references */ |     /* fixup local references */ | ||||||
|  | @ -935,7 +935,7 @@ pic_codegen(pic_state *pic, pic_value obj) | ||||||
|   irep->varg = false; |   irep->varg = false; | ||||||
|   irep->argc = 1; |   irep->argc = 1; | ||||||
|   irep->localc = 0; |   irep->localc = 0; | ||||||
|   irep->code = state->scope->code; |   irep->code = pic_realloc(pic, state->scope->code, sizeof(struct pic_code) * state->scope->clen); | ||||||
|   irep->clen = state->scope->clen; |   irep->clen = state->scope->clen; | ||||||
|   irep->cv_num = 0; |   irep->cv_num = 0; | ||||||
|   irep->cv_tbl = NULL; |   irep->cv_tbl = NULL; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Yuichi Nishiwaki
						Yuichi Nishiwaki