Changeset 46247 in webkit for trunk/JavaScriptCore/assembler/X86Assembler.h
- Timestamp:
- Jul 22, 2009, 3:17:10 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/assembler/X86Assembler.h
r46209 r46247 1399 1399 static void relinkJump(void* from, void* to) 1400 1400 { 1401 ExecutableAllocator::MakeWritable unprotect(reinterpret_cast<char*>(from) - sizeof(int32_t), sizeof(int32_t));1402 1401 setRel32(from, to); 1403 1402 } … … 1405 1404 static void relinkCall(void* from, void* to) 1406 1405 { 1407 ExecutableAllocator::MakeWritable unprotect(reinterpret_cast<char*>(from) - sizeof(int32_t), sizeof(int32_t));1408 1406 setRel32(from, to); 1409 1407 } … … 1411 1409 static void repatchInt32(void* where, int32_t value) 1412 1410 { 1413 ExecutableAllocator::MakeWritable unprotect(reinterpret_cast<char*>(where) - sizeof(int32_t), sizeof(int32_t));1414 1411 setInt32(where, value); 1415 1412 } … … 1417 1414 static void repatchPointer(void* where, void* value) 1418 1415 { 1419 ExecutableAllocator::MakeWritable unprotect(reinterpret_cast<char*>(where) - sizeof(void*), sizeof(void*));1420 1416 setPointer(where, value); 1421 1417 } … … 1428 1424 where = reinterpret_cast<char*>(where) + 1; 1429 1425 #endif 1430 ExecutableAllocator::MakeWritable unprotect(where, 1);1431 1426 *reinterpret_cast<unsigned char*>(where) = static_cast<unsigned char>(OP_LEA); 1432 1427 }
Note:
See TracChangeset
for help on using the changeset viewer.