Changeset 101658 in webkit for trunk/Source/JavaScriptCore/assembler/MIPSAssembler.h
- Timestamp:
- Dec 1, 2011, 4:42:08 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/assembler/MIPSAssembler.h
r101487 r101658 773 773 } 774 774 775 static void* readCallTarget(void* from) 776 { 777 MIPSWord* insn = reinterpret_cast<MIPSWord*>(from); 778 insn -= 4; 779 ASSERT((*insn & 0xffe00000) == 0x3c000000); // lui 780 int32_t result = (*insn & 0x0000ffff) << 16; 781 insn++; 782 ASSERT((*insn & 0xfc000000) == 0x34000000); // ori 783 result |= *insn & 0x0000ffff; 784 return reinterpret_cast<void*>(result); 785 } 786 775 787 private: 776 788 /* Update each jump in the buffer of newBase. */
Note:
See TracChangeset
for help on using the changeset viewer.