Changeset 113455 in webkit for trunk/Source/JavaScriptCore/assembler
- Timestamp:
- Apr 6, 2012, 10:35:52 AM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore/assembler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/assembler/ARMv7Assembler.h
r113253 r113455 1831 1831 if (jumpType == JumpCondition) { 1832 1832 // 2-byte conditional T1 1833 const uint16_t* jumpT1Location = reinterpret_cast <const uint16_t*>(from - (paddingSize - JUMP_ENUM_SIZE(LinkJumpT1)));1833 const uint16_t* jumpT1Location = reinterpret_cast_ptr<const uint16_t*>(from - (paddingSize - JUMP_ENUM_SIZE(LinkJumpT1))); 1834 1834 if (canBeJumpT1(jumpT1Location, to)) 1835 1835 return LinkJumpT1; 1836 1836 // 4-byte conditional T3 1837 const uint16_t* jumpT3Location = reinterpret_cast <const uint16_t*>(from - (paddingSize - JUMP_ENUM_SIZE(LinkJumpT3)));1837 const uint16_t* jumpT3Location = reinterpret_cast_ptr<const uint16_t*>(from - (paddingSize - JUMP_ENUM_SIZE(LinkJumpT3))); 1838 1838 if (canBeJumpT3(jumpT3Location, to, mayTriggerErrata)) { 1839 1839 if (!mayTriggerErrata) … … 1842 1842 // 4-byte conditional T4 with IT 1843 1843 const uint16_t* conditionalJumpT4Location = 1844 reinterpret_cast <const uint16_t*>(from - (paddingSize - JUMP_ENUM_SIZE(LinkConditionalJumpT4)));1844 reinterpret_cast_ptr<const uint16_t*>(from - (paddingSize - JUMP_ENUM_SIZE(LinkConditionalJumpT4))); 1845 1845 if (canBeJumpT4(conditionalJumpT4Location, to, mayTriggerErrata)) { 1846 1846 if (!mayTriggerErrata) … … 1849 1849 } else { 1850 1850 // 2-byte unconditional T2 1851 const uint16_t* jumpT2Location = reinterpret_cast <const uint16_t*>(from - (paddingSize - JUMP_ENUM_SIZE(LinkJumpT2)));1851 const uint16_t* jumpT2Location = reinterpret_cast_ptr<const uint16_t*>(from - (paddingSize - JUMP_ENUM_SIZE(LinkJumpT2))); 1852 1852 if (canBeJumpT2(jumpT2Location, to)) 1853 1853 return LinkJumpT2; 1854 1854 // 4-byte unconditional T4 1855 const uint16_t* jumpT4Location = reinterpret_cast <const uint16_t*>(from - (paddingSize - JUMP_ENUM_SIZE(LinkJumpT4)));1855 const uint16_t* jumpT4Location = reinterpret_cast_ptr<const uint16_t*>(from - (paddingSize - JUMP_ENUM_SIZE(LinkJumpT4))); 1856 1856 if (canBeJumpT4(jumpT4Location, to, mayTriggerErrata)) { 1857 1857 if (!mayTriggerErrata) … … 1892 1892 switch (record.linkType()) { 1893 1893 case LinkJumpT1: 1894 linkJumpT1(record.condition(), reinterpret_cast <uint16_t*>(from), to);1894 linkJumpT1(record.condition(), reinterpret_cast_ptr<uint16_t*>(from), to); 1895 1895 break; 1896 1896 case LinkJumpT2: 1897 linkJumpT2(reinterpret_cast <uint16_t*>(from), to);1897 linkJumpT2(reinterpret_cast_ptr<uint16_t*>(from), to); 1898 1898 break; 1899 1899 case LinkJumpT3: 1900 linkJumpT3(record.condition(), reinterpret_cast <uint16_t*>(from), to);1900 linkJumpT3(record.condition(), reinterpret_cast_ptr<uint16_t*>(from), to); 1901 1901 break; 1902 1902 case LinkJumpT4: 1903 linkJumpT4(reinterpret_cast <uint16_t*>(from), to);1903 linkJumpT4(reinterpret_cast_ptr<uint16_t*>(from), to); 1904 1904 break; 1905 1905 case LinkConditionalJumpT4: 1906 linkConditionalJumpT4(record.condition(), reinterpret_cast <uint16_t*>(from), to);1906 linkConditionalJumpT4(record.condition(), reinterpret_cast_ptr<uint16_t*>(from), to); 1907 1907 break; 1908 1908 case LinkConditionalBX: 1909 linkConditionalBX(record.condition(), reinterpret_cast <uint16_t*>(from), to);1909 linkConditionalBX(record.condition(), reinterpret_cast_ptr<uint16_t*>(from), to); 1910 1910 break; 1911 1911 case LinkBX: 1912 linkBX(reinterpret_cast <uint16_t*>(from), to);1912 linkBX(reinterpret_cast_ptr<uint16_t*>(from), to); 1913 1913 break; 1914 1914 default: -
trunk/Source/JavaScriptCore/assembler/LinkBuffer.h
r110605 r113455 261 261 // Copy the instructions from the last jump to the current one. 262 262 size_t regionSize = jumpsToLink[i].from() - readPtr; 263 uint16_t* copySource = reinterpret_cast <uint16_t*>(inData + readPtr);264 uint16_t* copyEnd = reinterpret_cast <uint16_t*>(inData + readPtr + regionSize);265 uint16_t* copyDst = reinterpret_cast <uint16_t*>(outData + writePtr);263 uint16_t* copySource = reinterpret_cast_ptr<uint16_t*>(inData + readPtr); 264 uint16_t* copyEnd = reinterpret_cast_ptr<uint16_t*>(inData + readPtr + regionSize); 265 uint16_t* copyDst = reinterpret_cast_ptr<uint16_t*>(outData + writePtr); 266 266 ASSERT(!(regionSize % 2)); 267 267 ASSERT(!(readPtr % 2));
Note:
See TracChangeset
for help on using the changeset viewer.