Changeset 39440 in webkit for trunk/JavaScriptCore/assembler/X86Assembler.h
- Timestamp:
- Dec 22, 2008, 1:21:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/assembler/X86Assembler.h
r39428 r39440 1100 1100 } 1101 1101 1102 // Linking & repatching:1102 // Linking & patching: 1103 1103 1104 1104 void link(JmpSrc from, JmpDst to) … … 1110 1110 } 1111 1111 1112 static void repatchAddress(void* code, JmpDst position, void* value)1112 static void patchAddress(void* code, JmpDst position, void* value) 1113 1113 { 1114 1114 ASSERT(position.m_offset != -1); … … 1151 1151 } 1152 1152 1153 static void repatchImmediate(intptr_t where, int32_t value)1153 static void patchImmediate(intptr_t where, int32_t value) 1154 1154 { 1155 1155 reinterpret_cast<int32_t*>(where)[-1] = value; 1156 1156 } 1157 1157 1158 static void repatchPointer(intptr_t where, intptr_t value)1158 static void patchPointer(intptr_t where, intptr_t value) 1159 1159 { 1160 1160 reinterpret_cast<intptr_t*>(where)[-1] = value; 1161 1161 } 1162 1162 1163 static void repatchBranchOffset(intptr_t where, void* destination)1163 static void patchBranchOffset(intptr_t where, void* destination) 1164 1164 { 1165 1165 intptr_t offset = reinterpret_cast<intptr_t>(destination) - where;
Note:
See TracChangeset
for help on using the changeset viewer.