Changeset 39284 in webkit for trunk/JavaScriptCore/assembler/X86Assembler.h
- Timestamp:
- Dec 13, 2008, 3:58:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/assembler/X86Assembler.h
r39121 r39284 98 98 OP_GROUP1_EvIb = 0x83, 99 99 OP_TEST_EvGv = 0x85, 100 OP_XCHG_EvGv = 0x87, 100 101 OP_MOV_EvGv = 0x89, 101 102 OP_MOV_GvEv = 0x8B, … … 658 659 } 659 660 661 void xchgl_rr(RegisterID src, RegisterID dst) 662 { 663 m_buffer.putByte(OP_XCHG_EvGv); 664 modRm_rr(src, dst); 665 } 666 660 667 void imull_rr(RegisterID src, RegisterID dst) 661 668 { … … 858 865 } 859 866 867 void jmp_m(RegisterID base) 868 { 869 m_buffer.putByte(OP_GROUP5_Ev); 870 modRm_opm(GROUP5_OP_JMPN, base); 871 } 872 860 873 void jmp_m(int offset, RegisterID base) 861 874 { … … 1126 1139 } 1127 1140 1128 static void linkAbsoluteAddress(void* code, JmpDst useOffset, JmpDst address) 1129 { 1130 ASSERT(useOffset.m_offset != -1); 1131 ASSERT(address.m_offset != -1); 1141 static void repatchAddress(void* code, JmpDst position, void* value) 1142 { 1143 ASSERT(position.m_offset != -1); 1132 1144 1133 reinterpret_cast< int*>(reinterpret_cast<ptrdiff_t>(code) + useOffset.m_offset)[-1] = reinterpret_cast<ptrdiff_t>(code) + address.m_offset;1145 reinterpret_cast<void**>(reinterpret_cast<ptrdiff_t>(code) + position.m_offset)[-1] = value; 1134 1146 } 1135 1147 … … 1146 1158 } 1147 1159 1148 static void* getRelocatedAddress(void* code, JmpDst jump) 1149 { 1150 return reinterpret_cast<void*>(reinterpret_cast<ptrdiff_t>(code) + jump.m_offset); 1160 static void* getRelocatedAddress(void* code, JmpDst destination) 1161 { 1162 ASSERT(destination.m_offset != -1); 1163 1164 return reinterpret_cast<void*>(reinterpret_cast<ptrdiff_t>(code) + destination.m_offset); 1151 1165 } 1152 1166
Note:
See TracChangeset
for help on using the changeset viewer.