Lines Matching defs:CodeOffset
28 // CodeOffset is a holder for compressed code offsets. Since some architectures have alignment
30 class CodeOffset {
32 ALWAYS_INLINE static CodeOffset FromOffset(uint32_t offset, InstructionSet isa = kRuntimeISA) {
33 return CodeOffset(offset / GetInstructionSetInstructionAlignment(isa));
36 ALWAYS_INLINE static CodeOffset FromCompressedOffset(uint32_t offset) {
37 return CodeOffset(offset);
51 ALWAYS_INLINE CodeOffset() = default;
52 ALWAYS_INLINE CodeOffset(const CodeOffset&) = default;
53 ALWAYS_INLINE CodeOffset& operator=(const CodeOffset&) = default;
54 ALWAYS_INLINE CodeOffset& operator=(CodeOffset&&) = default;
57 ALWAYS_INLINE explicit CodeOffset(uint32_t value) : value_(value) {}
62 inline bool operator==(const CodeOffset& a, const CodeOffset& b) {
66 inline bool operator!=(const CodeOffset& a, const CodeOffset& b) {
70 inline bool operator<(const CodeOffset& a, const CodeOffset& b) {
74 inline bool operator<=(const CodeOffset& a, const CodeOffset& b) {
78 inline bool operator>(const CodeOffset& a, const CodeOffset& b) {
82 inline bool operator>=(const CodeOffset& a, const CodeOffset& b) {
86 inline std::ostream& operator<<(std::ostream& os, const CodeOffset& offset) {