added stradjust.pri opcode to the JIT
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40206
This commit is contained in:
		
							parent
							
								
									34c711fffd
								
							
						
					
					
						commit
						455c03321c
					
				| @ -1750,6 +1750,14 @@ inline void WriteOp_Tracker_Pop_SetHeap(JitWriter *jit) | |||||||
| 	IA32_Pop_Reg(jit, AMX_REG_PRI); | 	IA32_Pop_Reg(jit, AMX_REG_PRI); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | inline void WriteOp_Stradjust_Pri(JitWriter *jit) | ||||||
|  | { | ||||||
|  | 	//add eax, 4
 | ||||||
|  | 	//sar eax, 2
 | ||||||
|  | 	IA32_Add_Rm_Imm8(jit, AMX_REG_PRI, 4, MOD_REG); | ||||||
|  | 	IA32_Sar_Rm_Imm8(jit, AMX_REG_PRI, 2, MOD_REG); | ||||||
|  | } | ||||||
|  | 
 | ||||||
| /*************************************************
 | /*************************************************
 | ||||||
|  ************************************************* |  ************************************************* | ||||||
|  * JIT PROPER ************************************ |  * JIT PROPER ************************************ | ||||||
|  | |||||||
| @ -260,6 +260,7 @@ typedef enum | |||||||
| 	OP_TRACKER_POP_SETHEAP,	//VERIFIED
 | 	OP_TRACKER_POP_SETHEAP,	//VERIFIED
 | ||||||
| 	OP_GENARRAY,			//VERIFIED
 | 	OP_GENARRAY,			//VERIFIED
 | ||||||
| 	OP_GENARRAY_Z,			//-VERIFIED (not tested for 1D arrays)
 | 	OP_GENARRAY_Z,			//-VERIFIED (not tested for 1D arrays)
 | ||||||
|  | 	OP_STRADJUST_PRI,		//VERIFIED
 | ||||||
| 	/* ----- */ | 	/* ----- */ | ||||||
| 	OP_NUM_OPCODES | 	OP_NUM_OPCODES | ||||||
| } OPCODE; | } OPCODE; | ||||||
|  | |||||||
| @ -673,6 +673,11 @@ | |||||||
| 				WriteOp_GenArray(jit, true); | 				WriteOp_GenArray(jit, true); | ||||||
| 				break; | 				break; | ||||||
| 			} | 			} | ||||||
|  | 		case OP_STRADJUST_PRI: | ||||||
|  | 			{ | ||||||
|  | 				WriteOp_Stradjust_Pri(jit); | ||||||
|  | 				break; | ||||||
|  | 			} | ||||||
| #if defined USE_UNGEN_OPCODES
 | #if defined USE_UNGEN_OPCODES
 | ||||||
| 		#include "ungen_opcode_switch.inc"
 | 		#include "ungen_opcode_switch.inc"
 | ||||||
| #endif
 | #endif
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user