Changeset 44476 in webkit for trunk/JavaScriptCore/assembler
- Timestamp:
- Jun 5, 2009, 5:08:00 PM (16 years ago)
- Location:
- trunk/JavaScriptCore/assembler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/assembler/AbstractMacroAssembler.h
r44455 r44476 460 460 } 461 461 462 void repatchLoad ToLEA()463 { 464 AssemblerType::repatchLoad ToLEA(this->dataLocation());462 void repatchLoadPtrToLEA() 463 { 464 AssemblerType::repatchLoadPtrToLEA(this->dataLocation()); 465 465 } 466 466 -
trunk/JavaScriptCore/assembler/X86Assembler.h
r44457 r44476 1422 1422 } 1423 1423 1424 static void repatchLoadToLEA(void* where) 1425 { 1424 static void repatchLoadPtrToLEA(void* where) 1425 { 1426 #if PLATFORM(X86_64) 1427 // On x86-64 pointer memory accesses require a 64-bit operand, and as such a REX prefix. 1428 // Skip over the prefix byte. 1429 where = reinterpret_cast<char*>(where) + 1; 1430 #endif 1426 1431 ExecutableAllocator::MakeWritable unprotect(where, 1); 1427 1432 *reinterpret_cast<unsigned char*>(where) = static_cast<unsigned char>(OP_LEA);
Note:
See TracChangeset
for help on using the changeset viewer.