/[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 742 by zherczeg, Sun Nov 6 08:05:33 2011 UTC revision 836 by ph10, Wed Dec 28 17:16:11 2011 UTC
# Line 1  Line 1 
1  /*  /*
2   *    Stack-less Just-In-Time compiler   *    Stack-less Just-In-Time compiler
3   *   *
4   *    Copyright 2009-2010 Zoltan Herczeg (hzmester@freemail.hu). All rights reserved.   *    Copyright 2009-2012 Zoltan Herczeg (hzmester@freemail.hu). All rights reserved.
5   *   *
6   * Redistribution and use in source and binary forms, with or without modification, are   * Redistribution and use in source and binary forms, with or without modification, are
7   * permitted provided that the following conditions are met:   * permitted provided that the following conditions are met:
# 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;
198            /* For statistical purposes. */
199            sljit_uw executable_size;
200    
201  #if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32)  #if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32)
202          int args;          int args;
# Line 291  SLJIT_API_FUNC_ATTRIBUTE void sljit_comp Line 293  SLJIT_API_FUNC_ATTRIBUTE void sljit_comp
293  SLJIT_API_FUNC_ATTRIBUTE void* sljit_generate_code(struct sljit_compiler *compiler);  SLJIT_API_FUNC_ATTRIBUTE void* sljit_generate_code(struct sljit_compiler *compiler);
294  SLJIT_API_FUNC_ATTRIBUTE void sljit_free_code(void* code);  SLJIT_API_FUNC_ATTRIBUTE void sljit_free_code(void* code);
295    
296    /*
297       After the code generation we can retrieve the allocated executable memory size,
298       although this area may not be fully filled with instructions depending on some
299       optimizations. This function is useful only for statistical purposes.
300    
301       Before a successful code generation, this function returns with 0.
302    */
303    static SLJIT_INLINE sljit_uw sljit_get_generated_code_size(struct sljit_compiler *compiler) { return compiler->executable_size; }
304    
305  /* Instruction generation. Returns with error code. */  /* Instruction generation. Returns with error code. */
306    
307  /*  /*

Legend:
Removed from v.742  
changed lines
  Added in v.836

  ViewVC Help
Powered by ViewVC 1.1.5