Chromium Code Reviews| Index: runtime/vm/instructions_arm64.h |
| diff --git a/runtime/vm/instructions_arm64.h b/runtime/vm/instructions_arm64.h |
| index e6c772e21ded29d20e9d9c8f1e51e50a2614ea6a..af73e13549f235f41b96157b17c01b9064f9f22e 100644 |
| --- a/runtime/vm/instructions_arm64.h |
| +++ b/runtime/vm/instructions_arm64.h |
| @@ -105,6 +105,24 @@ class JumpPattern : public ValueObject { |
| DISALLOW_COPY_AND_ASSIGN(JumpPattern); |
| }; |
| + |
| +class ReturnPattern : public ValueObject { |
| + public: |
| + ReturnPattern(uword pc); |
| + |
| + // lui; ori; jr; nop (in delay slot) = 4. |
|
rmacnak
2015/02/23 23:44:47
bx_lr = 1
Cutch
2015/02/24 19:26:23
Done.
|
| + static const int kLengthInBytes = 1*Instr::kInstrSize; |
| + |
| + int pattern_length_in_bytes() const { |
| + return kLengthInBytes; |
| + } |
| + |
| + bool IsValid() const; |
| + |
| + private: |
| + const uword pc_; |
| +}; |
| + |
| } // namespace dart |
| #endif // VM_INSTRUCTIONS_ARM64_H_ |