| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_CONSTANTS_ARM_H_ | 5 #ifndef VM_CONSTANTS_ARM_H_ |
| 6 #define VM_CONSTANTS_ARM_H_ | 6 #define VM_CONSTANTS_ARM_H_ |
| 7 | 7 |
| 8 namespace dart { | 8 namespace dart { |
| 9 | 9 |
| 10 // We support both VFPv3-D16 and VFPv3-D32 profiles, but currently only one at | 10 // We support both VFPv3-D16 and VFPv3-D32 profiles, but currently only one at |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 inline bool HasL() const { return LField() == 1; } | 547 inline bool HasL() const { return LField() == 1; } |
| 548 inline bool HasSign() const { return SignField() == 1; } | 548 inline bool HasSign() const { return SignField() == 1; } |
| 549 inline bool HasH() const { return HField() == 1; } | 549 inline bool HasH() const { return HField() == 1; } |
| 550 inline bool HasLink() const { return LinkField() == 1; } | 550 inline bool HasLink() const { return LinkField() == 1; } |
| 551 | 551 |
| 552 // Instructions are read out of a code stream. The only way to get a | 552 // Instructions are read out of a code stream. The only way to get a |
| 553 // reference to an instruction is to convert a pointer. There is no way | 553 // reference to an instruction is to convert a pointer. There is no way |
| 554 // to allocate or create instances of class Instr. | 554 // to allocate or create instances of class Instr. |
| 555 // Use the At(pc) function to create references to Instr. | 555 // Use the At(pc) function to create references to Instr. |
| 556 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } | 556 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } |
| 557 Instr* Next() { return this + kInstrSize; } | |
| 558 | 557 |
| 559 private: | 558 private: |
| 560 DISALLOW_ALLOCATION(); | 559 DISALLOW_ALLOCATION(); |
| 561 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 560 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
| 562 }; | 561 }; |
| 563 | 562 |
| 564 } // namespace dart | 563 } // namespace dart |
| 565 | 564 |
| 566 #endif // VM_CONSTANTS_ARM_H_ | 565 #endif // VM_CONSTANTS_ARM_H_ |
| OLD | NEW |