/[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 1493 by zherczeg, Wed Jul 9 04:41:15 2014 UTC revision 1499 by zherczeg, Mon Aug 11 06:42:28 2014 UTC
# Line 801  SLJIT_API_FUNC_ATTRIBUTE void sljit_comp Line 801  SLJIT_API_FUNC_ATTRIBUTE void sljit_comp
801                          fprintf(compiler->verbose, "fs%d", SLJIT_NUMBER_OF_FLOAT_REGISTERS - (p)); \                          fprintf(compiler->verbose, "fs%d", SLJIT_NUMBER_OF_FLOAT_REGISTERS - (p)); \
802          }          }
803    
804  static SLJIT_CONST char* op_names[] = {  static SLJIT_CONST char* op0_names[] = {
         /* op0 */  
805          (char*)"breakpoint", (char*)"nop",          (char*)"breakpoint", (char*)"nop",
806          (char*)"umul", (char*)"smul", (char*)"udiv", (char*)"sdiv",          (char*)"umul", (char*)"smul", (char*)"udiv", (char*)"sdiv",
807          /* op1 */  };
808    
809    static SLJIT_CONST char* op1_names[] = {
810          (char*)"mov", (char*)"mov.ub", (char*)"mov.sb", (char*)"mov.uh",          (char*)"mov", (char*)"mov.ub", (char*)"mov.sb", (char*)"mov.uh",
811          (char*)"mov.sh", (char*)"mov.ui", (char*)"mov.si", (char*)"mov.p",          (char*)"mov.sh", (char*)"mov.ui", (char*)"mov.si", (char*)"mov.p",
812          (char*)"movu", (char*)"movu.ub", (char*)"movu.sb", (char*)"movu.uh",          (char*)"movu", (char*)"movu.ub", (char*)"movu.sb", (char*)"movu.uh",
813          (char*)"movu.sh", (char*)"movu.ui", (char*)"movu.si", (char*)"movu.p",          (char*)"movu.sh", (char*)"movu.ui", (char*)"movu.si", (char*)"movu.p",
814          (char*)"not", (char*)"neg", (char*)"clz",          (char*)"not", (char*)"neg", (char*)"clz",
815          /* op2 */  };
816    
817    static SLJIT_CONST char* op2_names[] = {
818          (char*)"add", (char*)"addc", (char*)"sub", (char*)"subc",          (char*)"add", (char*)"addc", (char*)"sub", (char*)"subc",
819          (char*)"mul", (char*)"and", (char*)"or", (char*)"xor",          (char*)"mul", (char*)"and", (char*)"or", (char*)"xor",
820          (char*)"shl", (char*)"lshr", (char*)"ashr",          (char*)"shl", (char*)"lshr", (char*)"ashr",
821          /* fop1 */  };
822          (char*)"mov", (char*)"neg", (char*)"abs", (char*)"conv",  
823          (char*)"conv", (char*)"conv", (char*)"conv", (char*)"conv",  static SLJIT_CONST char* fop1_names[] = {
824          (char*)"cmp",          (char*)"mov", (char*)"conv", (char*)"conv", (char*)"conv",
825          /* fop2 */          (char*)"conv", (char*)"conv", (char*)"cmp", (char*)"neg",
826            (char*)"abs",
827    };
828    
829    static SLJIT_CONST char* fop2_names[] = {
830          (char*)"add", (char*)"sub", (char*)"mul", (char*)"div"          (char*)"add", (char*)"sub", (char*)"mul", (char*)"div"
831  };  };
832    
# Line 865  static SLJIT_INLINE void check_sljit_gen Line 872  static SLJIT_INLINE void check_sljit_gen
872  }  }
873    
874  static SLJIT_INLINE void check_sljit_emit_enter(struct sljit_compiler *compiler,  static SLJIT_INLINE void check_sljit_emit_enter(struct sljit_compiler *compiler,
875          sljit_si args, sljit_si scratches, sljit_si saveds,          sljit_si options, sljit_si args, sljit_si scratches, sljit_si saveds,
876          sljit_si fscratches, sljit_si fsaveds, sljit_si local_size)          sljit_si fscratches, sljit_si fsaveds, sljit_si local_size)
877  {  {
878          /* If debug and verbose are disabled, all arguments are unused. */          /* If debug and verbose are disabled, all arguments are unused. */
879          SLJIT_UNUSED_ARG(compiler);          SLJIT_UNUSED_ARG(compiler);
880            SLJIT_UNUSED_ARG(options);
881          SLJIT_UNUSED_ARG(args);          SLJIT_UNUSED_ARG(args);
882          SLJIT_UNUSED_ARG(scratches);          SLJIT_UNUSED_ARG(scratches);
883          SLJIT_UNUSED_ARG(saveds);          SLJIT_UNUSED_ARG(saveds);
# Line 877  static SLJIT_INLINE void check_sljit_emi Line 885  static SLJIT_INLINE void check_sljit_emi
885          SLJIT_UNUSED_ARG(fsaveds);          SLJIT_UNUSED_ARG(fsaveds);
886          SLJIT_UNUSED_ARG(local_size);          SLJIT_UNUSED_ARG(local_size);
887    
888            SLJIT_ASSERT(options == 0);
889          SLJIT_ASSERT(args >= 0 && args <= 3);          SLJIT_ASSERT(args >= 0 && args <= 3);
890          SLJIT_ASSERT(scratches >= 0 && scratches <= SLJIT_NUMBER_OF_REGISTERS);          SLJIT_ASSERT(scratches >= 0 && scratches <= SLJIT_NUMBER_OF_REGISTERS);
891          SLJIT_ASSERT(saveds >= 0 && saveds <= SLJIT_NUMBER_OF_REGISTERS);          SLJIT_ASSERT(saveds >= 0 && saveds <= SLJIT_NUMBER_OF_REGISTERS);
# Line 888  static SLJIT_INLINE void check_sljit_emi Line 897  static SLJIT_INLINE void check_sljit_emi
897          SLJIT_ASSERT(local_size >= 0 && local_size <= SLJIT_MAX_LOCAL_SIZE);          SLJIT_ASSERT(local_size >= 0 && local_size <= SLJIT_MAX_LOCAL_SIZE);
898  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)
899          if (SLJIT_UNLIKELY(!!compiler->verbose))          if (SLJIT_UNLIKELY(!!compiler->verbose))
900                  fprintf(compiler->verbose, "  enter args:%d scratches:%d saveds:%d fscratches:%d fsaveds:%d local_size:%d\n",                  fprintf(compiler->verbose, "  enter options:none args:%d scratches:%d saveds:%d fscratches:%d fsaveds:%d local_size:%d\n",
901                          args, scratches, saveds, fscratches, fsaveds, local_size);                          args, scratches, saveds, fscratches, fsaveds, local_size);
902  #endif  #endif
903  }  }
904    
905  static SLJIT_INLINE void check_sljit_set_context(struct sljit_compiler *compiler,  static SLJIT_INLINE void check_sljit_set_context(struct sljit_compiler *compiler,
906          sljit_si args, sljit_si scratches, sljit_si saveds,          sljit_si options, sljit_si args, sljit_si scratches, sljit_si saveds,
907          sljit_si fscratches, sljit_si fsaveds, sljit_si local_size)          sljit_si fscratches, sljit_si fsaveds, sljit_si local_size)
908  {  {
909          /* If debug and verbose are disabled, all arguments are unused. */          /* If debug and verbose are disabled, all arguments are unused. */
910          SLJIT_UNUSED_ARG(compiler);          SLJIT_UNUSED_ARG(compiler);
911            SLJIT_UNUSED_ARG(options);
912          SLJIT_UNUSED_ARG(args);          SLJIT_UNUSED_ARG(args);
913          SLJIT_UNUSED_ARG(scratches);          SLJIT_UNUSED_ARG(scratches);
914          SLJIT_UNUSED_ARG(saveds);          SLJIT_UNUSED_ARG(saveds);
# Line 913  static SLJIT_INLINE void check_sljit_set Line 923  static SLJIT_INLINE void check_sljit_set
923          }          }
924  #endif  #endif
925    
926            SLJIT_ASSERT(options == 0);
927          SLJIT_ASSERT(args >= 0 && args <= 3);          SLJIT_ASSERT(args >= 0 && args <= 3);
928          SLJIT_ASSERT(scratches >= 0 && scratches <= SLJIT_NUMBER_OF_REGISTERS);          SLJIT_ASSERT(scratches >= 0 && scratches <= SLJIT_NUMBER_OF_REGISTERS);
929          SLJIT_ASSERT(saveds >= 0 && saveds <= SLJIT_NUMBER_OF_REGISTERS);          SLJIT_ASSERT(saveds >= 0 && saveds <= SLJIT_NUMBER_OF_REGISTERS);
# Line 924  static SLJIT_INLINE void check_sljit_set Line 935  static SLJIT_INLINE void check_sljit_set
935          SLJIT_ASSERT(local_size >= 0 && local_size <= SLJIT_MAX_LOCAL_SIZE);          SLJIT_ASSERT(local_size >= 0 && local_size <= SLJIT_MAX_LOCAL_SIZE);
936  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)
937          if (SLJIT_UNLIKELY(!!compiler->verbose))          if (SLJIT_UNLIKELY(!!compiler->verbose))
938                  fprintf(compiler->verbose, "  set_context args:%d scratches:%d saveds:%d fscratches:%d fsaveds:%d local_size:%d\n",                  fprintf(compiler->verbose, "  set_context options:none args:%d scratches:%d saveds:%d fscratches:%d fsaveds:%d local_size:%d\n",
939                          args, scratches, saveds, fscratches, fsaveds, local_size);                          args, scratches, saveds, fscratches, fsaveds, local_size);
940  #endif  #endif
941  }  }
# Line 950  static SLJIT_INLINE void check_sljit_emi Line 961  static SLJIT_INLINE void check_sljit_emi
961                  if (op == SLJIT_UNUSED)                  if (op == SLJIT_UNUSED)
962                          fprintf(compiler->verbose, "  return\n");                          fprintf(compiler->verbose, "  return\n");
963                  else {                  else {
964                          fprintf(compiler->verbose, "  return %s ", op_names[op]);                          fprintf(compiler->verbose, "  return.%s ", op1_names[op - SLJIT_OP1_BASE]);
965                          sljit_verbose_param(compiler, src, srcw);                          sljit_verbose_param(compiler, src, srcw);
966                          fprintf(compiler->verbose, "\n");                          fprintf(compiler->verbose, "\n");
967                  }                  }
# Line 1007  static SLJIT_INLINE void check_sljit_emi Line 1018  static SLJIT_INLINE void check_sljit_emi
1018          SLJIT_ASSERT(op < SLJIT_UMUL || compiler->scratches >= 2);          SLJIT_ASSERT(op < SLJIT_UMUL || compiler->scratches >= 2);
1019  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)
1020          if (SLJIT_UNLIKELY(!!compiler->verbose))          if (SLJIT_UNLIKELY(!!compiler->verbose))
1021                  fprintf(compiler->verbose, "  %s%s\n", !(op & SLJIT_INT_OP) ? "" : "i", op_names[GET_OPCODE(op)]);                  fprintf(compiler->verbose, "  %s%s\n", !(op & SLJIT_INT_OP) ? "" : "i", op0_names[GET_OPCODE(op) - SLJIT_OP0_BASE]);
1022  #endif  #endif
1023  }  }
1024    
# Line 1039  static SLJIT_INLINE void check_sljit_emi Line 1050  static SLJIT_INLINE void check_sljit_emi
1050  #endif  #endif
1051  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)
1052          if (SLJIT_UNLIKELY(!!compiler->verbose)) {          if (SLJIT_UNLIKELY(!!compiler->verbose)) {
1053                  fprintf(compiler->verbose, "  %s%s%s%s%s%s%s%s ", !(op & SLJIT_INT_OP) ? "" : "i", op_names[GET_OPCODE(op)],                  fprintf(compiler->verbose, "  %s%s%s%s%s%s%s%s ", !(op & SLJIT_INT_OP) ? "" : "i", op1_names[GET_OPCODE(op) - SLJIT_OP1_BASE],
1054                          !(op & SLJIT_SET_E) ? "" : ".e", !(op & SLJIT_SET_U) ? "" : ".u", !(op & SLJIT_SET_S) ? "" : ".s",                          !(op & SLJIT_SET_E) ? "" : ".e", !(op & SLJIT_SET_U) ? "" : ".u", !(op & SLJIT_SET_S) ? "" : ".s",
1055                          !(op & SLJIT_SET_O) ? "" : ".o", !(op & SLJIT_SET_C) ? "" : ".c", !(op & SLJIT_KEEP_FLAGS) ? "" : ".k");                          !(op & SLJIT_SET_O) ? "" : ".o", !(op & SLJIT_SET_C) ? "" : ".c", !(op & SLJIT_KEEP_FLAGS) ? "" : ".k");
1056                  sljit_verbose_param(compiler, dst, dstw);                  sljit_verbose_param(compiler, dst, dstw);
# Line 1081  static SLJIT_INLINE void check_sljit_emi Line 1092  static SLJIT_INLINE void check_sljit_emi
1092  #endif  #endif
1093  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)
1094          if (SLJIT_UNLIKELY(!!compiler->verbose)) {          if (SLJIT_UNLIKELY(!!compiler->verbose)) {
1095                  fprintf(compiler->verbose, "  %s%s%s%s%s%s%s%s ", !(op & SLJIT_INT_OP) ? "" : "i", op_names[GET_OPCODE(op)],                  fprintf(compiler->verbose, "  %s%s%s%s%s%s%s%s ", !(op & SLJIT_INT_OP) ? "" : "i", op2_names[GET_OPCODE(op) - SLJIT_OP2_BASE],
1096                          !(op & SLJIT_SET_E) ? "" : ".e", !(op & SLJIT_SET_U) ? "" : ".u", !(op & SLJIT_SET_S) ? "" : ".s",                          !(op & SLJIT_SET_E) ? "" : ".e", !(op & SLJIT_SET_U) ? "" : ".u", !(op & SLJIT_SET_S) ? "" : ".s",
1097                          !(op & SLJIT_SET_O) ? "" : ".o", !(op & SLJIT_SET_C) ? "" : ".c", !(op & SLJIT_KEEP_FLAGS) ? "" : ".k");                          !(op & SLJIT_SET_O) ? "" : ".o", !(op & SLJIT_SET_C) ? "" : ".c", !(op & SLJIT_KEEP_FLAGS) ? "" : ".k");
1098                  sljit_verbose_param(compiler, dst, dstw);                  sljit_verbose_param(compiler, dst, dstw);
# Line 1117  static SLJIT_INLINE void check_sljit_emi Line 1128  static SLJIT_INLINE void check_sljit_emi
1128    
1129  #define SELECT_FOP1_OPERATION_WITH_CHECKS(compiler, op, dst, dstw, src, srcw) \  #define SELECT_FOP1_OPERATION_WITH_CHECKS(compiler, op, dst, dstw, src, srcw) \
1130          SLJIT_ASSERT(sljit_is_fpu_available()); \          SLJIT_ASSERT(sljit_is_fpu_available()); \
1131          SLJIT_COMPILE_ASSERT(!(SLJIT_CONVW_FROMD & 0x1) && !(SLJIT_CONVD_FROMW & 0x1) && (SLJIT_MOVD < SLJIT_CONVW_FROMD), \          SLJIT_COMPILE_ASSERT(!(SLJIT_CONVW_FROMD & 0x1) && !(SLJIT_CONVD_FROMW & 0x1), \
1132                  invalid_float_opcodes); \                  invalid_float_opcodes); \
1133          if (GET_OPCODE(op) >= SLJIT_CONVW_FROMD) { \          if (GET_OPCODE(op) >= SLJIT_CONVW_FROMD && GET_OPCODE(op) <= SLJIT_CMPD) { \
1134                  if (GET_OPCODE(op) == SLJIT_CMPD) { \                  if (GET_OPCODE(op) == SLJIT_CMPD) { \
1135                          check_sljit_emit_fop1_cmp(compiler, op, dst, dstw, src, srcw); \                          check_sljit_emit_fop1_cmp(compiler, op, dst, dstw, src, srcw); \
1136                          ADJUST_LOCAL_OFFSET(dst, dstw); \                          ADJUST_LOCAL_OFFSET(dst, dstw); \
# Line 1160  static SLJIT_INLINE void check_sljit_emi Line 1171  static SLJIT_INLINE void check_sljit_emi
1171          }          }
1172  #endif  #endif
1173    
1174          SLJIT_ASSERT(GET_OPCODE(op) >= SLJIT_MOVD && GET_OPCODE(op) <= SLJIT_CONVD_FROMS);          SLJIT_ASSERT(GET_OPCODE(op) >= SLJIT_MOVD && GET_OPCODE(op) <= SLJIT_ABSD);
1175  #if (defined SLJIT_DEBUG && SLJIT_DEBUG)  #if (defined SLJIT_DEBUG && SLJIT_DEBUG)
1176          FUNCTION_CHECK_FOP();          FUNCTION_CHECK_FOP();
1177          FUNCTION_FCHECK(src, srcw);          FUNCTION_FCHECK(src, srcw);
# Line 1168  static SLJIT_INLINE void check_sljit_emi Line 1179  static SLJIT_INLINE void check_sljit_emi
1179  #endif  #endif
1180  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)
1181          if (SLJIT_UNLIKELY(!!compiler->verbose)) {          if (SLJIT_UNLIKELY(!!compiler->verbose)) {
1182                  fprintf(compiler->verbose, "  %s%s ", op_names[GET_OPCODE(op)],                  fprintf(compiler->verbose, "  %s%s ", fop1_names[GET_OPCODE(op) - SLJIT_FOP1_BASE],
1183                          (GET_OPCODE(op) == SLJIT_CONVD_FROMS)                          (GET_OPCODE(op) == SLJIT_CONVD_FROMS)
1184                          ? ((op & SLJIT_SINGLE_OP) ? "s.fromd" : "d.froms")                          ? ((op & SLJIT_SINGLE_OP) ? "s.fromd" : "d.froms")
1185                          : ((op & SLJIT_SINGLE_OP) ? "s" : "d"));                          : ((op & SLJIT_SINGLE_OP) ? "s" : "d"));
# Line 1207  static SLJIT_INLINE void check_sljit_emi Line 1218  static SLJIT_INLINE void check_sljit_emi
1218  #endif  #endif
1219  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)
1220          if (SLJIT_UNLIKELY(!!compiler->verbose)) {          if (SLJIT_UNLIKELY(!!compiler->verbose)) {
1221                  fprintf(compiler->verbose, "  %s%s%s%s ", op_names[GET_OPCODE(op)], (op & SLJIT_SINGLE_OP) ? "s" : "d",                  fprintf(compiler->verbose, "  %s%s%s%s ", fop1_names[GET_OPCODE(op) - SLJIT_FOP1_BASE], (op & SLJIT_SINGLE_OP) ? "s" : "d",
1222                          !(op & SLJIT_SET_E) ? "" : ".e", !(op & SLJIT_SET_S) ? "" : ".s");                          !(op & SLJIT_SET_E) ? "" : ".e", !(op & SLJIT_SET_S) ? "" : ".s");
1223                  sljit_verbose_fparam(compiler, src1, src1w);                  sljit_verbose_fparam(compiler, src1, src1w);
1224                  fprintf(compiler->verbose, ", ");                  fprintf(compiler->verbose, ", ");
# Line 1244  static SLJIT_INLINE void check_sljit_emi Line 1255  static SLJIT_INLINE void check_sljit_emi
1255  #endif  #endif
1256  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)
1257          if (SLJIT_UNLIKELY(!!compiler->verbose)) {          if (SLJIT_UNLIKELY(!!compiler->verbose)) {
1258                  fprintf(compiler->verbose, "  %s%s.from%s ", op_names[GET_OPCODE(op)],                  fprintf(compiler->verbose, "  %s%s.from%s ", fop1_names[GET_OPCODE(op) - SLJIT_FOP1_BASE],
1259                          (GET_OPCODE(op) == SLJIT_CONVI_FROMD) ? "i" : "w",                          (GET_OPCODE(op) == SLJIT_CONVI_FROMD) ? "i" : "w",
1260                          (op & SLJIT_SINGLE_OP) ? "s" : "d");                          (op & SLJIT_SINGLE_OP) ? "s" : "d");
1261                  sljit_verbose_param(compiler, dst, dstw);                  sljit_verbose_param(compiler, dst, dstw);
# Line 1282  static SLJIT_INLINE void check_sljit_emi Line 1293  static SLJIT_INLINE void check_sljit_emi
1293  #endif  #endif
1294  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)
1295          if (SLJIT_UNLIKELY(!!compiler->verbose)) {          if (SLJIT_UNLIKELY(!!compiler->verbose)) {
1296                  fprintf(compiler->verbose, "  %s%s.from%s ", op_names[GET_OPCODE(op)],                  fprintf(compiler->verbose, "  %s%s.from%s ", fop1_names[GET_OPCODE(op) - SLJIT_FOP1_BASE],
1297                          (op & SLJIT_SINGLE_OP) ? "s" : "d",                          (op & SLJIT_SINGLE_OP) ? "s" : "d",
1298                          (GET_OPCODE(op) == SLJIT_CONVD_FROMI) ? "i" : "w");                          (GET_OPCODE(op) == SLJIT_CONVD_FROMI) ? "i" : "w");
1299                  sljit_verbose_fparam(compiler, dst, dstw);                  sljit_verbose_fparam(compiler, dst, dstw);
# Line 1318  static SLJIT_INLINE void check_sljit_emi Line 1329  static SLJIT_INLINE void check_sljit_emi
1329  #endif  #endif
1330  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)
1331          if (SLJIT_UNLIKELY(!!compiler->verbose)) {          if (SLJIT_UNLIKELY(!!compiler->verbose)) {
1332                  fprintf(compiler->verbose, "  %s%s ", op_names[GET_OPCODE(op)], (op & SLJIT_SINGLE_OP) ? "s" : "d");                  fprintf(compiler->verbose, "  %s%s ", fop2_names[GET_OPCODE(op) - SLJIT_FOP2_BASE], (op & SLJIT_SINGLE_OP) ? "s" : "d");
1333                  sljit_verbose_fparam(compiler, dst, dstw);                  sljit_verbose_fparam(compiler, dst, dstw);
1334                  fprintf(compiler->verbose, ", ");                  fprintf(compiler->verbose, ", ");
1335                  sljit_verbose_fparam(compiler, src1, src1w);                  sljit_verbose_fparam(compiler, src1, src1w);
# Line 1477  static SLJIT_INLINE void check_sljit_emi Line 1488  static SLJIT_INLINE void check_sljit_emi
1488  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)  #if (defined SLJIT_VERBOSE && SLJIT_VERBOSE)
1489          if (SLJIT_UNLIKELY(!!compiler->verbose)) {          if (SLJIT_UNLIKELY(!!compiler->verbose)) {
1490                  fprintf(compiler->verbose, "  %sflags.%s%s%s ", !(op & SLJIT_INT_OP) ? "" : "i",                  fprintf(compiler->verbose, "  %sflags.%s%s%s ", !(op & SLJIT_INT_OP) ? "" : "i",
1491                          op_names[GET_OPCODE(op)], !(op & SLJIT_SET_E) ? "" : ".e", !(op & SLJIT_KEEP_FLAGS) ? "" : ".k");                          GET_OPCODE(op) >= SLJIT_OP2_BASE ? op2_names[GET_OPCODE(op) - SLJIT_OP2_BASE] : op1_names[GET_OPCODE(op) - SLJIT_OP1_BASE],
1492                            !(op & SLJIT_SET_E) ? "" : ".e", !(op & SLJIT_KEEP_FLAGS) ? "" : ".k");
1493                  sljit_verbose_param(compiler, dst, dstw);                  sljit_verbose_param(compiler, dst, dstw);
1494                  if (src != SLJIT_UNUSED) {                  if (src != SLJIT_UNUSED) {
1495                          fprintf(compiler->verbose, ", ");                          fprintf(compiler->verbose, ", ");
# Line 1772  SLJIT_API_FUNC_ATTRIBUTE void sljit_free Line 1784  SLJIT_API_FUNC_ATTRIBUTE void sljit_free
1784  }  }
1785    
1786  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_enter(struct sljit_compiler *compiler,  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_enter(struct sljit_compiler *compiler,
1787          sljit_si args, sljit_si scratches, sljit_si saveds,          sljit_si options, sljit_si args, sljit_si scratches, sljit_si saveds,
1788          sljit_si fscratches, sljit_si fsaveds, sljit_si local_size)          sljit_si fscratches, sljit_si fsaveds, sljit_si local_size)
1789  {  {
1790          SLJIT_UNUSED_ARG(compiler);          SLJIT_UNUSED_ARG(compiler);
1791            SLJIT_UNUSED_ARG(options);
1792          SLJIT_UNUSED_ARG(args);          SLJIT_UNUSED_ARG(args);
1793          SLJIT_UNUSED_ARG(scratches);          SLJIT_UNUSED_ARG(scratches);
1794          SLJIT_UNUSED_ARG(saveds);          SLJIT_UNUSED_ARG(saveds);
# Line 1787  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_ Line 1800  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_
1800  }  }
1801    
1802  SLJIT_API_FUNC_ATTRIBUTE void sljit_set_context(struct sljit_compiler *compiler,  SLJIT_API_FUNC_ATTRIBUTE void sljit_set_context(struct sljit_compiler *compiler,
1803          sljit_si args, sljit_si scratches, sljit_si saveds,          sljit_si options, sljit_si args, sljit_si scratches, sljit_si saveds,
1804          sljit_si fscratches, sljit_si fsaveds, sljit_si local_size)          sljit_si fscratches, sljit_si fsaveds, sljit_si local_size)
1805  {  {
1806          SLJIT_UNUSED_ARG(compiler);          SLJIT_UNUSED_ARG(compiler);
1807            SLJIT_UNUSED_ARG(options);
1808          SLJIT_UNUSED_ARG(args);          SLJIT_UNUSED_ARG(args);
1809          SLJIT_UNUSED_ARG(scratches);          SLJIT_UNUSED_ARG(scratches);
1810          SLJIT_UNUSED_ARG(saveds);          SLJIT_UNUSED_ARG(saveds);

Legend:
Removed from v.1493  
changed lines
  Added in v.1499

  ViewVC Help
Powered by ViewVC 1.1.5