/[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 995 by zherczeg, Wed Jul 11 11:05:30 2012 UTC revision 1149 by zherczeg, Sat Oct 20 21:33:38 2012 UTC
# Line 122  Line 122 
122  #endif  #endif
123    
124  #if (defined SLJIT_CONFIG_ARM_THUMB2 && SLJIT_CONFIG_ARM_THUMB2)  #if (defined SLJIT_CONFIG_ARM_THUMB2 && SLJIT_CONFIG_ARM_THUMB2)
125          #define IS_CONDITIONAL  0x04          #define IS_COND         0x04
126          #define IS_BL           0x08          #define IS_BL           0x08
127          /* cannot be encoded as branch */          /* cannot be encoded as branch */
128          #define B_TYPE0         0x00          #define B_TYPE0         0x00
# Line 159  Line 159 
159          #define PATCH_J         0x80          #define PATCH_J         0x80
160    
161          /* instruction types */          /* instruction types */
162          #define UNMOVABLE_INS   0          #define MOVABLE_INS     0
163          /* 1 - 31 last destination register */          /* 1 - 31 last destination register */
         #define FCSR_FCC        32  
164          /* no destination (i.e: store) */          /* no destination (i.e: store) */
165          #define MOVABLE_INS     33          #define UNMOVABLE_INS   32
166            /* FPU status register */
167            #define FCSR_FCC        33
168    #endif
169    
170    #if (defined SLJIT_CONFIG_SPARC_32 && SLJIT_CONFIG_SPARC_32)
171            #define IS_MOVABLE      0x04
172            #define IS_COND         0x08
173            #define IS_CALL         0x10
174    
175            #define PATCH_B         0x20
176            #define PATCH_CALL      0x40
177    
178            /* instruction types */
179            #define MOVABLE_INS     0
180            /* 1 - 31 last destination register */
181            /* no destination (i.e: store) */
182            #define UNMOVABLE_INS   32
183    
184            #define DST_INS_MASK    0xff
185    
186            /* ICC_SET is the same as SET_FLAGS. */
187            #define ICC_IS_SET      (1 << 23)
188            #define FCC_IS_SET      (1 << 24)
189  #endif  #endif
190    
191  #if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32)  #if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32)
# Line 179  Line 201 
201  #endif  #endif
202  #endif  #endif
203    
 #if (defined SLJIT_CONFIG_MIPS_32 && SLJIT_CONFIG_MIPS_32)  
 #define SLJIT_HAS_FIXED_LOCALS_OFFSET 1  
 #define FIXED_LOCALS_OFFSET (4 * sizeof(sljit_w))  
 #endif  
   
204  #if (defined SLJIT_CONFIG_PPC_32 && SLJIT_CONFIG_PPC_32)  #if (defined SLJIT_CONFIG_PPC_32 && SLJIT_CONFIG_PPC_32)
205  #define SLJIT_HAS_FIXED_LOCALS_OFFSET 1  #define SLJIT_HAS_FIXED_LOCALS_OFFSET 1
206  #if (defined SLJIT_INDIRECT_CALL && SLJIT_INDIRECT_CALL)  #if (defined SLJIT_INDIRECT_CALL && SLJIT_INDIRECT_CALL)
# Line 198  Line 215 
215  #define FIXED_LOCALS_OFFSET ((6 + 8) * sizeof(sljit_w))  #define FIXED_LOCALS_OFFSET ((6 + 8) * sizeof(sljit_w))
216  #endif  #endif
217    
218    #if (defined SLJIT_CONFIG_MIPS_32 && SLJIT_CONFIG_MIPS_32)
219    #define SLJIT_HAS_FIXED_LOCALS_OFFSET 1
220    #define FIXED_LOCALS_OFFSET (4 * sizeof(sljit_w))
221    #endif
222    
223    #if (defined SLJIT_CONFIG_SPARC_32 && SLJIT_CONFIG_SPARC_32)
224    #define SLJIT_HAS_FIXED_LOCALS_OFFSET 1
225    #define FIXED_LOCALS_OFFSET (23 * sizeof(sljit_w))
226    #endif
227    
228  #if (defined SLJIT_HAS_VARIABLE_LOCALS_OFFSET && SLJIT_HAS_VARIABLE_LOCALS_OFFSET)  #if (defined SLJIT_HAS_VARIABLE_LOCALS_OFFSET && SLJIT_HAS_VARIABLE_LOCALS_OFFSET)
229    
230  #define ADJUST_LOCAL_OFFSET(p, i) \  #define ADJUST_LOCAL_OFFSET(p, i) \
# Line 299  SLJIT_API_FUNC_ATTRIBUTE struct sljit_co Line 326  SLJIT_API_FUNC_ATTRIBUTE struct sljit_co
326          compiler->delay_slot = UNMOVABLE_INS;          compiler->delay_slot = UNMOVABLE_INS;
327  #endif  #endif
328    
329    #if (defined SLJIT_CONFIG_SPARC_32 && SLJIT_CONFIG_SPARC_32)
330            compiler->delay_slot = UNMOVABLE_INS;
331    #endif
332    
333  #if (defined SLJIT_NEEDS_COMPILER_INIT && SLJIT_NEEDS_COMPILER_INIT)  #if (defined SLJIT_NEEDS_COMPILER_INIT && SLJIT_NEEDS_COMPILER_INIT)
334          if (!compiler_initialized) {          if (!compiler_initialized) {
335                  init_compiler();                  init_compiler();
# Line 1092  static SLJIT_INLINE void check_sljit_emi Line 1123  static SLJIT_INLINE void check_sljit_emi
1123    
1124          SLJIT_ASSERT(sljit_is_fpu_available());          SLJIT_ASSERT(sljit_is_fpu_available());
1125          SLJIT_ASSERT(!(type & ~(0xff | SLJIT_REWRITABLE_JUMP)));          SLJIT_ASSERT(!(type & ~(0xff | SLJIT_REWRITABLE_JUMP)));
1126          SLJIT_ASSERT((type & 0xff) >= SLJIT_C_FLOAT_EQUAL && (type & 0xff) <= SLJIT_C_FLOAT_NOT_NAN);          SLJIT_ASSERT((type & 0xff) >= SLJIT_C_FLOAT_EQUAL && (type & 0xff) <= SLJIT_C_FLOAT_ORDERED);
1127  #if (defined SLJIT_DEBUG && SLJIT_DEBUG)  #if (defined SLJIT_DEBUG && SLJIT_DEBUG)
1128          FUNCTION_FCHECK(src1, src1w);          FUNCTION_FCHECK(src1, src1w);
1129          FUNCTION_FCHECK(src2, src2w);          FUNCTION_FCHECK(src2, src2w);
# Line 1255  static SLJIT_INLINE int emit_mov_before_ Line 1286  static SLJIT_INLINE int emit_mov_before_
1286          #include "sljitNativePPC_common.c"          #include "sljitNativePPC_common.c"
1287  #elif (defined SLJIT_CONFIG_MIPS_32 && SLJIT_CONFIG_MIPS_32)  #elif (defined SLJIT_CONFIG_MIPS_32 && SLJIT_CONFIG_MIPS_32)
1288          #include "sljitNativeMIPS_common.c"          #include "sljitNativeMIPS_common.c"
1289    #elif (defined SLJIT_CONFIG_SPARC_32 && SLJIT_CONFIG_SPARC_32)
1290            #include "sljitNativeSPARC_common.c"
1291  #endif  #endif
1292    
1293  #if !(defined SLJIT_CONFIG_MIPS_32 && SLJIT_CONFIG_MIPS_32)  #if !(defined SLJIT_CONFIG_MIPS_32 && SLJIT_CONFIG_MIPS_32)
# Line 1375  SLJIT_API_FUNC_ATTRIBUTE int sljit_get_l Line 1408  SLJIT_API_FUNC_ATTRIBUTE int sljit_get_l
1408    
1409  /* Empty function bodies for those machines, which are not (yet) supported. */  /* Empty function bodies for those machines, which are not (yet) supported. */
1410    
1411  SLJIT_API_FUNC_ATTRIBUTE SLJIT_CONST char* sljit_get_platform_name()  SLJIT_API_FUNC_ATTRIBUTE SLJIT_CONST char* sljit_get_platform_name(void)
1412  {  {
1413          return "unsupported";          return "unsupported";
1414  }  }

Legend:
Removed from v.995  
changed lines
  Added in v.1149

  ViewVC Help
Powered by ViewVC 1.1.5