/[pcre]/code/trunk/sljit/sljitNativeARM_v5.c
ViewVC logotype

Diff of /code/trunk/sljit/sljitNativeARM_v5.c

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

revision 739 by zherczeg, Fri Oct 7 19:18:55 2011 UTC revision 740 by zherczeg, Mon Oct 31 06:10:14 2011 UTC
# Line 24  Line 24 
24   * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.   * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25   */   */
26    
27  SLJIT_CONST char* sljit_get_platform_name()  SLJIT_API_FUNC_ATTRIBUTE SLJIT_CONST char* sljit_get_platform_name()
28  {  {
29  #if (defined SLJIT_CONFIG_ARM_V7 && SLJIT_CONFIG_ARM_V7)  #if (defined SLJIT_CONFIG_ARM_V7 && SLJIT_CONFIG_ARM_V7)
30          return "arm-v7";          return "arm-v7";
# Line 548  static SLJIT_INLINE void inline_set_cons Line 548  static SLJIT_INLINE void inline_set_cons
548  #endif  #endif
549  }  }
550    
551  void* sljit_generate_code(struct sljit_compiler *compiler)  SLJIT_API_FUNC_ATTRIBUTE void* sljit_generate_code(struct sljit_compiler *compiler)
552  {  {
553          struct sljit_memory_fragment *buf;          struct sljit_memory_fragment *buf;
554          sljit_uw *code;          sljit_uw *code;
# Line 818  static int emit_op(struct sljit_compiler Line 818  static int emit_op(struct sljit_compiler
818          int src1, sljit_w src1w,          int src1, sljit_w src1w,
819          int src2, sljit_w src2w);          int src2, sljit_w src2w);
820    
821  int sljit_emit_enter(struct sljit_compiler *compiler, int args, int temporaries, int generals, int local_size)  SLJIT_API_FUNC_ATTRIBUTE int sljit_emit_enter(struct sljit_compiler *compiler, int args, int temporaries, int generals, int local_size)
822  {  {
823          int size;          int size;
824          sljit_uw push;          sljit_uw push;
# Line 869  int sljit_emit_enter(struct sljit_compil Line 869  int sljit_emit_enter(struct sljit_compil
869          return SLJIT_SUCCESS;          return SLJIT_SUCCESS;
870  }  }
871    
872  void sljit_fake_enter(struct sljit_compiler *compiler, int args, int temporaries, int generals, int local_size)  SLJIT_API_FUNC_ATTRIBUTE void sljit_fake_enter(struct sljit_compiler *compiler, int args, int temporaries, int generals, int local_size)
873  {  {
874          int size;          int size;
875    
# Line 888  void sljit_fake_enter(struct sljit_compi Line 888  void sljit_fake_enter(struct sljit_compi
888          compiler->local_size = local_size;          compiler->local_size = local_size;
889  }  }
890    
891  int sljit_emit_return(struct sljit_compiler *compiler, int src, sljit_w srcw)  SLJIT_API_FUNC_ATTRIBUTE int sljit_emit_return(struct sljit_compiler *compiler, int src, sljit_w srcw)
892  {  {
893          sljit_uw pop;          sljit_uw pop;
894    
# Line 1754  static int emit_op(struct sljit_compiler Line 1754  static int emit_op(struct sljit_compiler
1754          return SLJIT_SUCCESS;          return SLJIT_SUCCESS;
1755  }  }
1756    
1757  int sljit_emit_op0(struct sljit_compiler *compiler, int op)  SLJIT_API_FUNC_ATTRIBUTE int sljit_emit_op0(struct sljit_compiler *compiler, int op)
1758  {  {
1759          CHECK_ERROR();          CHECK_ERROR();
1760          check_sljit_emit_op0(compiler, op);          check_sljit_emit_op0(compiler, op);
# Line 1772  int sljit_emit_op0(struct sljit_compiler Line 1772  int sljit_emit_op0(struct sljit_compiler
1772          return SLJIT_SUCCESS;          return SLJIT_SUCCESS;
1773  }  }
1774    
1775  int sljit_emit_op1(struct sljit_compiler *compiler, int op,  SLJIT_API_FUNC_ATTRIBUTE int sljit_emit_op1(struct sljit_compiler *compiler, int op,
1776          int dst, sljit_w dstw,          int dst, sljit_w dstw,
1777          int src, sljit_w srcw)          int src, sljit_w srcw)
1778  {  {
# Line 1830  int sljit_emit_op1(struct sljit_compiler Line 1830  int sljit_emit_op1(struct sljit_compiler
1830          return SLJIT_SUCCESS;          return SLJIT_SUCCESS;
1831  }  }
1832    
1833  int sljit_emit_op2(struct sljit_compiler *compiler, int op,  SLJIT_API_FUNC_ATTRIBUTE int sljit_emit_op2(struct sljit_compiler *compiler, int op,
1834          int dst, sljit_w dstw,          int dst, sljit_w dstw,
1835          int src1, sljit_w src1w,          int src1, sljit_w src1w,
1836          int src2, sljit_w src2w)          int src2, sljit_w src2w)
# Line 1888  static void init_compiler() Line 1888  static void init_compiler()
1888          arm_fpu_type = 1;          arm_fpu_type = 1;
1889  }  }
1890    
1891  int sljit_is_fpu_available(void)  SLJIT_API_FUNC_ATTRIBUTE int sljit_is_fpu_available(void)
1892  {  {
1893          if (arm_fpu_type == -1)          if (arm_fpu_type == -1)
1894                  init_compiler();                  init_compiler();
# Line 1899  int sljit_is_fpu_available(void) Line 1899  int sljit_is_fpu_available(void)
1899    
1900  #define arm_fpu_type 1  #define arm_fpu_type 1
1901    
1902  int sljit_is_fpu_available(void)  SLJIT_API_FUNC_ATTRIBUTE int sljit_is_fpu_available(void)
1903  {  {
1904          /* Always available. */          /* Always available. */
1905          return 1;          return 1;
# Line 1973  static int emit_fpu_data_transfer(struct Line 1973  static int emit_fpu_data_transfer(struct
1973          return SLJIT_SUCCESS;          return SLJIT_SUCCESS;
1974  }  }
1975    
1976  int sljit_emit_fop1(struct sljit_compiler *compiler, int op,  SLJIT_API_FUNC_ATTRIBUTE int sljit_emit_fop1(struct sljit_compiler *compiler, int op,
1977          int dst, sljit_w dstw,          int dst, sljit_w dstw,
1978          int src, sljit_w srcw)          int src, sljit_w srcw)
1979  {  {
# Line 2025  int sljit_emit_fop1(struct sljit_compile Line 2025  int sljit_emit_fop1(struct sljit_compile
2025          return SLJIT_SUCCESS;          return SLJIT_SUCCESS;
2026  }  }
2027    
2028  int sljit_emit_fop2(struct sljit_compiler *compiler, int op,  SLJIT_API_FUNC_ATTRIBUTE int sljit_emit_fop2(struct sljit_compiler *compiler, int op,
2029          int dst, sljit_w dstw,          int dst, sljit_w dstw,
2030          int src1, sljit_w src1w,          int src1, sljit_w src1w,
2031          int src2, sljit_w src2w)          int src2, sljit_w src2w)
# Line 2078  int sljit_emit_fop2(struct sljit_compile Line 2078  int sljit_emit_fop2(struct sljit_compile
2078  /*  Other instructions                                                   */  /*  Other instructions                                                   */
2079  /* --------------------------------------------------------------------- */  /* --------------------------------------------------------------------- */
2080    
2081  int sljit_emit_fast_enter(struct sljit_compiler *compiler, int dst, sljit_w dstw, int args, int temporaries, int generals, int local_size)  SLJIT_API_FUNC_ATTRIBUTE int sljit_emit_fast_enter(struct sljit_compiler *compiler, int dst, sljit_w dstw, int args, int temporaries, int generals, int local_size)
2082  {  {
2083          int size;          int size;
2084    
# Line 2110  int sljit_emit_fast_enter(struct sljit_c Line 2110  int sljit_emit_fast_enter(struct sljit_c
2110          return SLJIT_SUCCESS;          return SLJIT_SUCCESS;
2111  }  }
2112    
2113  int sljit_emit_fast_return(struct sljit_compiler *compiler, int src, sljit_w srcw)  SLJIT_API_FUNC_ATTRIBUTE int sljit_emit_fast_return(struct sljit_compiler *compiler, int src, sljit_w srcw)
2114  {  {
2115          CHECK_ERROR();          CHECK_ERROR();
2116          check_sljit_emit_fast_return(compiler, src, srcw);          check_sljit_emit_fast_return(compiler, src, srcw);
# Line 2190  static sljit_uw get_cc(int type) Line 2190  static sljit_uw get_cc(int type)
2190          }          }
2191  }  }
2192    
2193  struct sljit_label* sljit_emit_label(struct sljit_compiler *compiler)  SLJIT_API_FUNC_ATTRIBUTE struct sljit_label* sljit_emit_label(struct sljit_compiler *compiler)
2194  {  {
2195          struct sljit_label *label;          struct sljit_label *label;
2196    
# Line 2206  struct sljit_label* sljit_emit_label(str Line 2206  struct sljit_label* sljit_emit_label(str
2206          return label;          return label;
2207  }  }
2208    
2209  struct sljit_jump* sljit_emit_jump(struct sljit_compiler *compiler, int type)  SLJIT_API_FUNC_ATTRIBUTE struct sljit_jump* sljit_emit_jump(struct sljit_compiler *compiler, int type)
2210  {  {
2211          struct sljit_jump *jump;          struct sljit_jump *jump;
2212    
# Line 2247  struct sljit_jump* sljit_emit_jump(struc Line 2247  struct sljit_jump* sljit_emit_jump(struc
2247          return jump;          return jump;
2248  }  }
2249    
2250  int sljit_emit_ijump(struct sljit_compiler *compiler, int type, int src, sljit_w srcw)  SLJIT_API_FUNC_ATTRIBUTE int sljit_emit_ijump(struct sljit_compiler *compiler, int type, int src, sljit_w srcw)
2251  {  {
2252          struct sljit_jump *jump;          struct sljit_jump *jump;
2253    
# Line 2285  int sljit_emit_ijump(struct sljit_compil Line 2285  int sljit_emit_ijump(struct sljit_compil
2285          return SLJIT_SUCCESS;          return SLJIT_SUCCESS;
2286  }  }
2287    
2288  int sljit_emit_cond_value(struct sljit_compiler *compiler, int op, int dst, sljit_w dstw, int type)  SLJIT_API_FUNC_ATTRIBUTE int sljit_emit_cond_value(struct sljit_compiler *compiler, int op, int dst, sljit_w dstw, int type)
2289  {  {
2290          int reg;          int reg;
2291          sljit_uw cc;          sljit_uw cc;
# Line 2323  int sljit_emit_cond_value(struct sljit_c Line 2323  int sljit_emit_cond_value(struct sljit_c
2323          return SLJIT_SUCCESS;          return SLJIT_SUCCESS;
2324  }  }
2325    
2326  struct sljit_const* sljit_emit_const(struct sljit_compiler *compiler, int dst, sljit_w dstw, sljit_w init_value)  SLJIT_API_FUNC_ATTRIBUTE struct sljit_const* sljit_emit_const(struct sljit_compiler *compiler, int dst, sljit_w dstw, sljit_w init_value)
2327  {  {
2328          struct sljit_const *const_;          struct sljit_const *const_;
2329          int reg;          int reg;
# Line 2350  struct sljit_const* sljit_emit_const(str Line 2350  struct sljit_const* sljit_emit_const(str
2350          return const_;          return const_;
2351  }  }
2352    
2353  void sljit_set_jump_addr(sljit_uw addr, sljit_uw new_addr)  SLJIT_API_FUNC_ATTRIBUTE void sljit_set_jump_addr(sljit_uw addr, sljit_uw new_addr)
2354  {  {
2355          inline_set_jump_addr(addr, new_addr, 1);          inline_set_jump_addr(addr, new_addr, 1);
2356  }  }
2357    
2358  void sljit_set_const(sljit_uw addr, sljit_w new_constant)  SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_w new_constant)
2359  {  {
2360          inline_set_const(addr, new_constant, 1);          inline_set_const(addr, new_constant, 1);
2361  }  }

Legend:
Removed from v.739  
changed lines
  Added in v.740

  ViewVC Help
Powered by ViewVC 1.1.5