Changeset 64938 in webkit for trunk/JavaScriptCore/assembler/X86Assembler.h
- Timestamp:
- Aug 7, 2010, 11:04:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/assembler/X86Assembler.h
r64608 r64938 1155 1155 void movl_rm(RegisterID src, void* addr) 1156 1156 { 1157 if (src == X86Registers::eax) 1158 movl_EAXm(addr); 1159 else 1160 m_formatter.oneByteOp(OP_MOV_EvGv, src, addr); 1157 m_formatter.oneByteOp(OP_MOV_EvGv, src, addr); 1161 1158 } 1162 1159 1163 1160 void movl_mr(void* addr, RegisterID dst) 1164 1161 { 1165 if (dst == X86Registers::eax) 1166 movl_mEAX(addr); 1167 else 1168 m_formatter.oneByteOp(OP_MOV_GvEv, dst, addr); 1162 m_formatter.oneByteOp(OP_MOV_GvEv, dst, addr); 1169 1163 } 1170 1164 … … 1558 1552 1559 1553 setPointer(reinterpret_cast<char*>(code) + where.m_offset, value); 1554 } 1555 1556 static int32_t int32AtLocation(void* where) 1557 { 1558 return static_cast<int32_t*>(where)[-1]; 1559 } 1560 1561 static void* pointerAtLocation(void* where) 1562 { 1563 return static_cast<void**>(where)[-1]; 1564 } 1565 1566 static void* jumpTarget(void* jump) 1567 { 1568 intptr_t src = reinterpret_cast<intptr_t>(jump); 1569 int32_t offset = static_cast<int32_t*>(jump)[-1]; 1570 return reinterpret_cast<void*>(src + offset); 1560 1571 } 1561 1572
Note:
See TracChangeset
for help on using the changeset viewer.