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

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

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

revision 1222 by zherczeg, Mon Nov 19 08:04:03 2012 UTC revision 1237 by zherczeg, Tue Jan 1 21:41:23 2013 UTC
# Line 652  SLJIT_API_FUNC_ATTRIBUTE void sljit_comp Line 652  SLJIT_API_FUNC_ATTRIBUTE void sljit_comp
652  }  }
653    
654  static char* reg_names[] = {  static char* reg_names[] = {
655          (char*)"<noreg>", (char*)"t1", (char*)"t2", (char*)"t3",          (char*)"unused", (char*)"s1", (char*)"s2", (char*)"s3",
656          (char*)"te1", (char*)"te2", (char*)"s1", (char*)"s2",          (char*)"se1", (char*)"se2", (char*)"p1", (char*)"p2",
657          (char*)"s3", (char*)"se1", (char*)"se2", (char*)"lcr"          (char*)"p3", (char*)"pe1", (char*)"pe2", (char*)"lc"
658  };  };
659    
660  static char* freg_names[] = {  static char* freg_names[] = {
661          (char*)"<noreg>", (char*)"float_r1", (char*)"float_r2", (char*)"float_r3",          (char*)"unused", (char*)"f1", (char*)"f2", (char*)"f3",
662          (char*)"float_r4", (char*)"float_r5", (char*)"float_r6"          (char*)"f4", (char*)"f5", (char*)"f6"
663  };  };
664    
665  #if (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64) || (defined SLJIT_CONFIG_PPC_64 && SLJIT_CONFIG_PPC_64)  #if (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64) || (defined SLJIT_CONFIG_PPC_64 && SLJIT_CONFIG_PPC_64)
# Line 736  static SLJIT_CONST char* op_names[] = { Line 736  static SLJIT_CONST char* op_names[] = {
736  };  };
737    
738  static char* jump_names[] = {  static char* jump_names[] = {
739          (char*)"c_equal", (char*)"c_not_equal",          (char*)"equal", (char*)"not_equal",
740          (char*)"c_less", (char*)"c_greater_equal",          (char*)"less", (char*)"greater_equal",
741          (char*)"c_greater", (char*)"c_less_equal",          (char*)"greater", (char*)"less_equal",
742          (char*)"c_sig_less", (char*)"c_sig_greater_equal",          (char*)"sig_less", (char*)"sig_greater_equal",
743          (char*)"c_sig_greater", (char*)"c_sig_less_equal",          (char*)"sig_greater", (char*)"sig_less_equal",
744          (char*)"c_overflow", (char*)"c_not_overflow",          (char*)"overflow", (char*)"not_overflow",
745          (char*)"c_mul_overflow", (char*)"c_mul_not_overflow",          (char*)"mul_overflow", (char*)"mul_not_overflow",
746          (char*)"c_float_equal", (char*)"c_float_not_equal",          (char*)"float_equal", (char*)"float_not_equal",
747          (char*)"c_float_less", (char*)"c_float_greater_equal",          (char*)"float_less", (char*)"float_greater_equal",
748          (char*)"c_float_greater", (char*)"c_float_less_equal",          (char*)"float_greater", (char*)"float_less_equal",
749          (char*)"c_float_unordered", (char*)"c_float_ordered",          (char*)"float_unordered", (char*)"float_ordered",
750          (char*)"jump", (char*)"fast_call",          (char*)"jump", (char*)"fast_call",
751          (char*)"call0", (char*)"call1", (char*)"call2", (char*)"call3"          (char*)"call0", (char*)"call1", (char*)"call2", (char*)"call3"
752  };  };
# Line 1104  static SLJIT_INLINE void check_sljit_emi Line 1104  static SLJIT_INLINE void check_sljit_emi
1104          SLJIT_ASSERT((type & 0xff) >= SLJIT_C_EQUAL && (type & 0xff) <= SLJIT_CALL3);          SLJIT_ASSERT((type & 0xff) >= SLJIT_C_EQUAL && (type & 0xff) <= SLJIT_CALL3);
1105  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)
1106          if (SLJIT_UNLIKELY(!!compiler->verbose))          if (SLJIT_UNLIKELY(!!compiler->verbose))
1107                  fprintf(compiler->verbose, "  jump%s<%s>\n", !(type & SLJIT_REWRITABLE_JUMP) ? "" : ".r", jump_names[type & 0xff]);                  fprintf(compiler->verbose, "  jump%s.%s\n", !(type & SLJIT_REWRITABLE_JUMP) ? "" : ".r", jump_names[type & 0xff]);
1108  #endif  #endif
1109  }  }
1110    
# Line 1127  static SLJIT_INLINE void check_sljit_emi Line 1127  static SLJIT_INLINE void check_sljit_emi
1127  #endif  #endif
1128  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)
1129          if (SLJIT_UNLIKELY(!!compiler->verbose)) {          if (SLJIT_UNLIKELY(!!compiler->verbose)) {
1130                  fprintf(compiler->verbose, "  %scmp%s<%s> ", !(type & SLJIT_INT_OP) ? "" : "i", !(type & SLJIT_REWRITABLE_JUMP) ? "" : ".r", jump_names[type & 0xff]);                  fprintf(compiler->verbose, "  %scmp%s.%s ", !(type & SLJIT_INT_OP) ? "" : "i", !(type & SLJIT_REWRITABLE_JUMP) ? "" : ".r", jump_names[type & 0xff]);
1131                  sljit_verbose_param(src1, src1w);                  sljit_verbose_param(src1, src1w);
1132                  fprintf(compiler->verbose, ", ");                  fprintf(compiler->verbose, ", ");
1133                  sljit_verbose_param(src2, src2w);                  sljit_verbose_param(src2, src2w);
# Line 1156  static SLJIT_INLINE void check_sljit_emi Line 1156  static SLJIT_INLINE void check_sljit_emi
1156  #endif  #endif
1157  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)
1158          if (SLJIT_UNLIKELY(!!compiler->verbose)) {          if (SLJIT_UNLIKELY(!!compiler->verbose)) {
1159                  fprintf(compiler->verbose, "  %scmp%s<%s> ", (type & SLJIT_SINGLE_OP) ? "s" : "d",                  fprintf(compiler->verbose, "  %scmp%s.%s ", (type & SLJIT_SINGLE_OP) ? "s" : "d",
1160                          !(type & SLJIT_REWRITABLE_JUMP) ? "" : ".r", jump_names[type & 0xff]);                          !(type & SLJIT_REWRITABLE_JUMP) ? "" : ".r", jump_names[type & 0xff]);
1161                  sljit_verbose_fparam(src1, src1w);                  sljit_verbose_fparam(src1, src1w);
1162                  fprintf(compiler->verbose, ", ");                  fprintf(compiler->verbose, ", ");
# Line 1187  static SLJIT_INLINE void check_sljit_emi Line 1187  static SLJIT_INLINE void check_sljit_emi
1187  #endif  #endif
1188  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)
1189          if (SLJIT_UNLIKELY(!!compiler->verbose)) {          if (SLJIT_UNLIKELY(!!compiler->verbose)) {
1190                  fprintf(compiler->verbose, "  ijump<%s> ", jump_names[type]);                  fprintf(compiler->verbose, "  ijump.%s ", jump_names[type]);
1191                  sljit_verbose_param(src, srcw);                  sljit_verbose_param(src, srcw);
1192                  fprintf(compiler->verbose, "\n");                  fprintf(compiler->verbose, "\n");
1193          }          }
# Line 1223  static SLJIT_INLINE void check_sljit_emi Line 1223  static SLJIT_INLINE void check_sljit_emi
1223  #endif  #endif
1224  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)
1225          if (SLJIT_UNLIKELY(!!compiler->verbose)) {          if (SLJIT_UNLIKELY(!!compiler->verbose)) {
1226                  fprintf(compiler->verbose, "  op_flags<%s%s%s%s> ", !(op & SLJIT_INT_OP) ? "" : "i",                  fprintf(compiler->verbose, "  %sflags.%s%s%s ", !(op & SLJIT_INT_OP) ? "" : "i",
1227                          op_names[GET_OPCODE(op)], !(op & SLJIT_SET_E) ? "" : ".e", !(op & SLJIT_KEEP_FLAGS) ? "" : ".k");                          op_names[GET_OPCODE(op)], !(op & SLJIT_SET_E) ? "" : ".e", !(op & SLJIT_KEEP_FLAGS) ? "" : ".k");
1228                  sljit_verbose_param(dst, dstw);                  sljit_verbose_param(dst, dstw);
1229                  if (src != SLJIT_UNUSED) {                  if (src != SLJIT_UNUSED) {
1230                          fprintf(compiler->verbose, ", ");                          fprintf(compiler->verbose, ", ");
1231                          sljit_verbose_param(src, srcw);                          sljit_verbose_param(src, srcw);
1232                  }                  }
1233                  fprintf(compiler->verbose, ", <%s>\n", jump_names[type]);                  fprintf(compiler->verbose, ", %s\n", jump_names[type]);
1234          }          }
1235  #endif  #endif
1236  }  }

Legend:
Removed from v.1222  
changed lines
  Added in v.1237

  ViewVC Help
Powered by ViewVC 1.1.5