OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1442 static bool IsLdrPcImmediateOffset(Instr instr); | 1442 static bool IsLdrPcImmediateOffset(Instr instr); |
1443 static bool IsVldrDPcImmediateOffset(Instr instr); | 1443 static bool IsVldrDPcImmediateOffset(Instr instr); |
1444 static bool IsBlxReg(Instr instr); | 1444 static bool IsBlxReg(Instr instr); |
1445 static bool IsBlxIp(Instr instr); | 1445 static bool IsBlxIp(Instr instr); |
1446 static bool IsTstImmediate(Instr instr); | 1446 static bool IsTstImmediate(Instr instr); |
1447 static bool IsCmpRegister(Instr instr); | 1447 static bool IsCmpRegister(Instr instr); |
1448 static bool IsCmpImmediate(Instr instr); | 1448 static bool IsCmpImmediate(Instr instr); |
1449 static Register GetCmpImmediateRegister(Instr instr); | 1449 static Register GetCmpImmediateRegister(Instr instr); |
1450 static int GetCmpImmediateRawImmediate(Instr instr); | 1450 static int GetCmpImmediateRawImmediate(Instr instr); |
1451 static bool IsNop(Instr instr, int type = NON_MARKING_NOP); | 1451 static bool IsNop(Instr instr, int type = NON_MARKING_NOP); |
| 1452 static bool IsMovImmed(Instr instr); |
| 1453 static bool IsOrrImmed(Instr instr); |
1452 static bool IsMovT(Instr instr); | 1454 static bool IsMovT(Instr instr); |
1453 static Instr GetMovTPattern(); | 1455 static Instr GetMovTPattern(); |
1454 static bool IsMovW(Instr instr); | 1456 static bool IsMovW(Instr instr); |
1455 static Instr GetMovWPattern(); | 1457 static Instr GetMovWPattern(); |
1456 static Instr EncodeMovwImmediate(uint32_t immediate); | 1458 static Instr EncodeMovwImmediate(uint32_t immediate); |
1457 static Instr PatchMovwImmediate(Instr instruction, uint32_t immediate); | 1459 static Instr PatchMovwImmediate(Instr instruction, uint32_t immediate); |
| 1460 static int DecodeShiftImm(Instr instr); |
| 1461 static Instr PatchShiftImm(Instr instr, int immed); |
1458 | 1462 |
1459 // Constants in pools are accessed via pc relative addressing, which can | 1463 // Constants in pools are accessed via pc relative addressing, which can |
1460 // reach +/-4KB for integer PC-relative loads and +/-1KB for floating-point | 1464 // reach +/-4KB for integer PC-relative loads and +/-1KB for floating-point |
1461 // PC-relative loads, thereby defining a maximum distance between the | 1465 // PC-relative loads, thereby defining a maximum distance between the |
1462 // instruction and the accessed constant. | 1466 // instruction and the accessed constant. |
1463 static const int kMaxDistToIntPool = 4*KB; | 1467 static const int kMaxDistToIntPool = 4*KB; |
1464 static const int kMaxDistToFPPool = 1*KB; | 1468 static const int kMaxDistToFPPool = 1*KB; |
1465 // All relocations could be integer, it therefore acts as the limit. | 1469 // All relocations could be integer, it therefore acts as the limit. |
1466 static const int kMaxNumPending32RelocInfo = kMaxDistToIntPool/kInstrSize; | 1470 static const int kMaxNumPending32RelocInfo = kMaxDistToIntPool/kInstrSize; |
1467 static const int kMaxNumPending64RelocInfo = kMaxDistToFPPool/kInstrSize; | 1471 static const int kMaxNumPending64RelocInfo = kMaxDistToFPPool/kInstrSize; |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1658 public: | 1662 public: |
1659 explicit EnsureSpace(Assembler* assembler) { | 1663 explicit EnsureSpace(Assembler* assembler) { |
1660 assembler->CheckBuffer(); | 1664 assembler->CheckBuffer(); |
1661 } | 1665 } |
1662 }; | 1666 }; |
1663 | 1667 |
1664 | 1668 |
1665 } } // namespace v8::internal | 1669 } } // namespace v8::internal |
1666 | 1670 |
1667 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1671 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
OLD | NEW |