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

Diff of /code/trunk/sljit/sljitNativePPC_common.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_PPC_32 && SLJIT_CONFIG_PPC_32)  #if (defined SLJIT_CONFIG_PPC_32 && SLJIT_CONFIG_PPC_32)
30          return "ppc-32";          return "ppc-32";
# Line 205  static SLJIT_INLINE int optimize_jump(st Line 205  static SLJIT_INLINE int optimize_jump(st
205          return 0;          return 0;
206  }  }
207    
208  void* sljit_generate_code(struct sljit_compiler *compiler)  SLJIT_API_FUNC_ATTRIBUTE void* sljit_generate_code(struct sljit_compiler *compiler)
209  {  {
210          struct sljit_memory_fragment *buf;          struct sljit_memory_fragment *buf;
211          sljit_ins *code;          sljit_ins *code;
# Line 415  static int emit_op(struct sljit_compiler Line 415  static int emit_op(struct sljit_compiler
415          int src1, sljit_w src1w,          int src1, sljit_w src1w,
416          int src2, sljit_w src2w);          int src2, sljit_w src2w);
417    
418  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)
419  {  {
420          CHECK_ERROR();          CHECK_ERROR();
421          check_sljit_emit_enter(compiler, args, temporaries, generals, local_size);          check_sljit_emit_enter(compiler, args, temporaries, generals, local_size);
# Line 478  int sljit_emit_enter(struct sljit_compil Line 478  int sljit_emit_enter(struct sljit_compil
478          return SLJIT_SUCCESS;          return SLJIT_SUCCESS;
479  }  }
480    
481  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)
482  {  {
483          CHECK_ERROR_VOID();          CHECK_ERROR_VOID();
484          check_sljit_fake_enter(compiler, args, temporaries, generals, local_size);          check_sljit_fake_enter(compiler, args, temporaries, generals, local_size);
# Line 495  void sljit_fake_enter(struct sljit_compi Line 495  void sljit_fake_enter(struct sljit_compi
495          compiler->local_size = (compiler->local_size + 15) & ~0xf;          compiler->local_size = (compiler->local_size + 15) & ~0xf;
496  }  }
497    
498  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)
499  {  {
500          CHECK_ERROR();          CHECK_ERROR();
501          check_sljit_emit_return(compiler, src, srcw);          check_sljit_emit_return(compiler, src, srcw);
# Line 1010  static int emit_op(struct sljit_compiler Line 1010  static int emit_op(struct sljit_compiler
1010          return SLJIT_SUCCESS;          return SLJIT_SUCCESS;
1011  }  }
1012    
1013  int sljit_emit_op0(struct sljit_compiler *compiler, int op)  SLJIT_API_FUNC_ATTRIBUTE int sljit_emit_op0(struct sljit_compiler *compiler, int op)
1014  {  {
1015          CHECK_ERROR();          CHECK_ERROR();
1016          check_sljit_emit_op0(compiler, op);          check_sljit_emit_op0(compiler, op);
# Line 1026  int sljit_emit_op0(struct sljit_compiler Line 1026  int sljit_emit_op0(struct sljit_compiler
1026          return SLJIT_SUCCESS;          return SLJIT_SUCCESS;
1027  }  }
1028    
1029  int sljit_emit_op1(struct sljit_compiler *compiler, int op,  SLJIT_API_FUNC_ATTRIBUTE int sljit_emit_op1(struct sljit_compiler *compiler, int op,
1030          int dst, sljit_w dstw,          int dst, sljit_w dstw,
1031          int src, sljit_w srcw)          int src, sljit_w srcw)
1032  {  {
# Line 1133  int sljit_emit_op1(struct sljit_compiler Line 1133  int sljit_emit_op1(struct sljit_compiler
1133          ((src) & SLJIT_IMM)          ((src) & SLJIT_IMM)
1134  #endif  #endif
1135    
1136  int sljit_emit_op2(struct sljit_compiler *compiler, int op,  SLJIT_API_FUNC_ATTRIBUTE int sljit_emit_op2(struct sljit_compiler *compiler, int op,
1137          int dst, sljit_w dstw,          int dst, sljit_w dstw,
1138          int src1, sljit_w src1w,          int src1, sljit_w src1w,
1139          int src2, sljit_w src2w)          int src2, sljit_w src2w)
# Line 1315  int sljit_emit_op2(struct sljit_compiler Line 1315  int sljit_emit_op2(struct sljit_compiler
1315  /*  Floating point operators                                             */  /*  Floating point operators                                             */
1316  /* --------------------------------------------------------------------- */  /* --------------------------------------------------------------------- */
1317    
1318  int sljit_is_fpu_available(void)  SLJIT_API_FUNC_ATTRIBUTE int sljit_is_fpu_available(void)
1319  {  {
1320          /* Always available. */          /* Always available. */
1321          return 1;          return 1;
# Line 1359  static int emit_fpu_data_transfer(struct Line 1359  static int emit_fpu_data_transfer(struct
1359          return push_inst(compiler, (load ? LFDUX : STFDUX) | FD(fpu_reg) | A(TMP_REG3) | B(arg & 0xf));          return push_inst(compiler, (load ? LFDUX : STFDUX) | FD(fpu_reg) | A(TMP_REG3) | B(arg & 0xf));
1360  }  }
1361    
1362  int sljit_emit_fop1(struct sljit_compiler *compiler, int op,  SLJIT_API_FUNC_ATTRIBUTE int sljit_emit_fop1(struct sljit_compiler *compiler, int op,
1363          int dst, sljit_w dstw,          int dst, sljit_w dstw,
1364          int src, sljit_w srcw)          int src, sljit_w srcw)
1365  {  {
# Line 1409  int sljit_emit_fop1(struct sljit_compile Line 1409  int sljit_emit_fop1(struct sljit_compile
1409          return SLJIT_SUCCESS;          return SLJIT_SUCCESS;
1410  }  }
1411    
1412  int sljit_emit_fop2(struct sljit_compiler *compiler, int op,  SLJIT_API_FUNC_ATTRIBUTE int sljit_emit_fop2(struct sljit_compiler *compiler, int op,
1413          int dst, sljit_w dstw,          int dst, sljit_w dstw,
1414          int src1, sljit_w src1w,          int src1, sljit_w src1w,
1415          int src2, sljit_w src2w)          int src2, sljit_w src2w)
# Line 1462  int sljit_emit_fop2(struct sljit_compile Line 1462  int sljit_emit_fop2(struct sljit_compile
1462  /*  Other instructions                                                   */  /*  Other instructions                                                   */
1463  /* --------------------------------------------------------------------- */  /* --------------------------------------------------------------------- */
1464    
1465  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)
1466  {  {
1467          CHECK_ERROR();          CHECK_ERROR();
1468          check_sljit_emit_fast_enter(compiler, dst, dstw, args, temporaries, generals, local_size);          check_sljit_emit_fast_enter(compiler, dst, dstw, args, temporaries, generals, local_size);
# Line 1488  int sljit_emit_fast_enter(struct sljit_c Line 1488  int sljit_emit_fast_enter(struct sljit_c
1488          return SLJIT_SUCCESS;          return SLJIT_SUCCESS;
1489  }  }
1490    
1491  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)
1492  {  {
1493          CHECK_ERROR();          CHECK_ERROR();
1494          check_sljit_emit_fast_return(compiler, src, srcw);          check_sljit_emit_fast_return(compiler, src, srcw);
# Line 1509  int sljit_emit_fast_return(struct sljit_ Line 1509  int sljit_emit_fast_return(struct sljit_
1509  /*  Conditional instructions                                             */  /*  Conditional instructions                                             */
1510  /* --------------------------------------------------------------------- */  /* --------------------------------------------------------------------- */
1511    
1512  struct sljit_label* sljit_emit_label(struct sljit_compiler *compiler)  SLJIT_API_FUNC_ATTRIBUTE struct sljit_label* sljit_emit_label(struct sljit_compiler *compiler)
1513  {  {
1514          struct sljit_label *label;          struct sljit_label *label;
1515    
# Line 1588  static sljit_ins get_bo_bi_flags(struct Line 1588  static sljit_ins get_bo_bi_flags(struct
1588          }          }
1589  }  }
1590    
1591  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)
1592  {  {
1593          struct sljit_jump *jump;          struct sljit_jump *jump;
1594          sljit_ins bo_bi_flags;          sljit_ins bo_bi_flags;
# Line 1616  struct sljit_jump* sljit_emit_jump(struc Line 1616  struct sljit_jump* sljit_emit_jump(struc
1616          return jump;          return jump;
1617  }  }
1618    
1619  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)
1620  {  {
1621          sljit_ins bo_bi_flags;          sljit_ins bo_bi_flags;
1622          struct sljit_jump *jump = NULL;          struct sljit_jump *jump = NULL;
# Line 1658  int sljit_emit_ijump(struct sljit_compil Line 1658  int sljit_emit_ijump(struct sljit_compil
1658  #define INVERT_BIT(dst) \  #define INVERT_BIT(dst) \
1659          FAIL_IF(push_inst(compiler, XORI | S(dst) | A(dst) | 0x1));          FAIL_IF(push_inst(compiler, XORI | S(dst) | A(dst) | 0x1));
1660    
1661  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)
1662  {  {
1663          int reg;          int reg;
1664    
# Line 1762  int sljit_emit_cond_value(struct sljit_c Line 1762  int sljit_emit_cond_value(struct sljit_c
1762          return SLJIT_SUCCESS;          return SLJIT_SUCCESS;
1763  }  }
1764    
1765  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)
1766  {  {
1767          struct sljit_const *const_;          struct sljit_const *const_;
1768          int reg;          int reg;

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

  ViewVC Help
Powered by ViewVC 1.1.5