Changeset 44455 in webkit for trunk/JavaScriptCore/assembler/X86Assembler.h
- Timestamp:
- Jun 5, 2009, 12:55:38 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/assembler/X86Assembler.h
r44341 r44455 1370 1370 } 1371 1371 1372 void linkCall(JmpSrc from, JmpDstto)1372 static void linkJump(void* code, JmpSrc from, void* to) 1373 1373 { 1374 1374 ASSERT(from.m_offset != -1); 1375 ASSERT(to.m_offset != -1); 1376 1377 char* code = reinterpret_cast<char*>(m_formatter.data()); 1378 patchRel32(code + from.m_offset, code + to.m_offset); 1379 } 1380 1381 static void linkJump(void* code, JmpSrc from, void* to) 1375 1376 patchRel32(reinterpret_cast<char*>(code) + from.m_offset, to); 1377 } 1378 1379 static void linkCall(void* code, JmpSrc from, void* to) 1382 1380 { 1383 1381 ASSERT(from.m_offset != -1); … … 1386 1384 } 1387 1385 1388 static void linkCall(void* code, JmpSrc from, void* to)1389 {1390 ASSERT(from.m_offset != -1);1391 1392 patchRel32(reinterpret_cast<char*>(code) + from.m_offset, to);1393 }1394 1395 1386 static void patchPointer(void* where, void* value) 1396 1387 { 1397 1388 reinterpret_cast<void**>(where)[-1] = value; 1398 1389 } 1390 1391 #if PLATFORM(X86_64) 1392 static void patchPointerForCall(void* where, void* value) 1393 { 1394 reinterpret_cast<void**>(where)[-1] = value; 1395 } 1396 #endif 1399 1397 1400 1398 static void patchPointer(void* code, JmpDst where, void* value)
Note:
See TracChangeset
for help on using the changeset viewer.