Changeset 50595 in webkit for trunk/JavaScriptCore/jit/JITArithmetic.cpp
- Timestamp:
- Nov 6, 2009, 1:35:03 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/JITArithmetic.cpp
r50531 r50595 1144 1144 emitFastArithImmToInt(regT0); 1145 1145 emitFastArithImmToInt(regT2); 1146 #if !PLATFORM(X86)1147 // Mask with 0x1f as per ecma-262 11.7.2 step 7.1148 // On 32-bit x86 this is not necessary, since the shift anount is implicitly masked in the instruction.1149 and32(Imm32(0x1f), regT2);1150 #endif1151 1146 lshift32(regT2, regT0); 1152 #if !USE(JSVALUE64)1147 #if USE(JSVALUE32) 1153 1148 addSlowCase(branchAdd32(Overflow, regT0, regT0)); 1154 1149 signExtend32ToPtr(regT0, regT0); … … 1226 1221 } 1227 1222 emitFastArithImmToInt(regT2); 1228 #if !PLATFORM(X86)1229 // Mask with 0x1f as per ecma-262 11.7.2 step 7.1230 // On 32-bit x86 this is not necessary, since the shift anount is implicitly masked in the instruction.1231 and32(Imm32(0x1f), regT2);1232 #endif1233 #if USE(JSVALUE64)1234 1223 rshift32(regT2, regT0); 1235 # else1236 rshiftPtr(regT2, regT0);1224 #if USE(JSVALUE32) 1225 signExtend32ToPtr(regT0, regT0); 1237 1226 #endif 1238 1227 }
Note:
See TracChangeset
for help on using the changeset viewer.