Changeset 93277 in webkit for trunk/Source/JavaScriptCore/assembler/SH4Assembler.h
- Timestamp:
- Aug 17, 2011, 7:56:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/assembler/SH4Assembler.h
r89630 r93277 34 34 #include <stdarg.h> 35 35 #include <stdint.h> 36 #include <stdio.h> 36 37 #include <wtf/Assertions.h> 37 38 #include <wtf/Vector.h> … … 1064 1065 } 1065 1066 1067 void movlMemRegCompact(int offset, RegisterID base, RegisterID dst) 1068 { 1069 oneShortOp(getOpcodeGroup4(MOVL_READ_OFFRM_OPCODE, dst, base, offset)); 1070 } 1071 1066 1072 void movbMemReg(int offset, RegisterID base, RegisterID dst) 1067 1073 { … … 1233 1239 *reinterpret_cast<uint32_t*>(address) = newAddress; 1234 1240 } 1235 1241 1236 1242 static uint32_t readPCrelativeAddress(int offset, uint16_t* instructionPtr) 1237 1243 { … … 1355 1361 static void* readPointer(void* code) 1356 1362 { 1357 return static_cast<void*>(readInt32(code));1363 return reinterpret_cast<void*>(readInt32(code)); 1358 1364 } 1359 1365 … … 1366 1372 static void repatchCompact(void* where, int32_t value) 1367 1373 { 1368 repatchInt32(where, value); 1374 ASSERT(value >= 0); 1375 ASSERT(value <= 60); 1376 *reinterpret_cast<uint16_t*>(where) = ((*reinterpret_cast<uint16_t*>(where) & 0xfff0) | (value >> 2)); 1377 ExecutableAllocator::cacheFlush(reinterpret_cast<uint16_t*>(where), sizeof(uint16_t)); 1369 1378 } 1370 1379
Note:
See TracChangeset
for help on using the changeset viewer.