/[pcre]/code/trunk/sljit/sljitLir.h
ViewVC logotype

Diff of /code/trunk/sljit/sljitLir.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 777 by zherczeg, Thu Dec 1 15:15:31 2011 UTC revision 835 by ph10, Wed Dec 28 16:10:09 2011 UTC
# Line 195  struct sljit_compiler { Line 195  struct sljit_compiler {
195          int local_size;          int local_size;
196          /* Code size. */          /* Code size. */
197          sljit_uw size;          sljit_uw size;
         /* For statistical purposes. */  
         sljit_uw executable_size;  
198    
199  #if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32)  #if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32)
200          int args;          int args;
# Line 293  SLJIT_API_FUNC_ATTRIBUTE void sljit_comp Line 291  SLJIT_API_FUNC_ATTRIBUTE void sljit_comp
291  SLJIT_API_FUNC_ATTRIBUTE void* sljit_generate_code(struct sljit_compiler *compiler);  SLJIT_API_FUNC_ATTRIBUTE void* sljit_generate_code(struct sljit_compiler *compiler);
292  SLJIT_API_FUNC_ATTRIBUTE void sljit_free_code(void* code);  SLJIT_API_FUNC_ATTRIBUTE void sljit_free_code(void* code);
293    
 /*  
    After the code generation we can retrieve the allocated executable memory size,  
    although this area may not be fully filled with instructions depending on some  
    optimizations. This function is useful only for statistical purposes.  
   
    Before a successful code generation, this function returns with 0.  
 */  
 static SLJIT_INLINE sljit_uw sljit_get_generated_code_size(struct sljit_compiler *compiler) { return compiler->executable_size; }  
   
294  /* Instruction generation. Returns with error code. */  /* Instruction generation. Returns with error code. */
295    
296  /*  /*

Legend:
Removed from v.777  
changed lines
  Added in v.835

  ViewVC Help
Powered by ViewVC 1.1.5