Changeset 50553 in webkit for trunk/JavaScriptCore/assembler/ARMAssembler.h
- Timestamp:
- Nov 5, 2009, 12:28:02 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/assembler/ARMAssembler.h
r48525 r50553 140 140 BKPT = 0xe120070, 141 141 #endif 142 #if ARM_ARCH_VERSION >= 7 143 MOVW = 0x03000000, 144 MOVT = 0x03400000, 145 #endif 142 146 }; 143 147 … … 176 180 }; 177 181 182 static const ARMWord INVALID_IMM = 0xf0000000; 183 178 184 class JmpSrc { 179 185 friend class ARMAssembler; … … 334 340 } 335 341 342 #if ARM_ARCH_VERSION >= 7 343 void movw_r(int rd, ARMWord op2, Condition cc = AL) 344 { 345 ASSERT((op2 | 0xf0fff) == 0xf0fff); 346 m_buffer.putInt(static_cast<ARMWord>(cc) | MOVW | RD(rd) | op2); 347 } 348 349 void movt_r(int rd, ARMWord op2, Condition cc = AL) 350 { 351 ASSERT((op2 | 0xf0fff) == 0xf0fff); 352 m_buffer.putInt(static_cast<ARMWord>(cc) | MOVT | RD(rd) | op2); 353 } 354 #endif 355 336 356 void movs_r(int rd, ARMWord op2, Condition cc = AL) 337 357 { … … 709 729 710 730 static ARMWord getOp2(ARMWord imm); 731 732 #if ARM_ARCH_VERSION >= 7 733 static ARMWord getImm16Op2(ARMWord imm) 734 { 735 if (imm <= 0xffff) 736 return (imm & 0xf000) << 4 | (imm & 0xfff); 737 return INVALID_IMM; 738 } 739 #endif 711 740 ARMWord getImm(ARMWord imm, int tmpReg, bool invert = false); 712 741 void moveImm(ARMWord imm, int dest); 742 ARMWord encodeComplexImm(ARMWord imm, int dest); 713 743 714 744 // Memory load/store helpers
Note:
See TracChangeset
for help on using the changeset viewer.