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..d4f7d125c9ff184384f99d3a0f6b2e3f8a59f0c3 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); |
|
siva
2015/02/25 22:58:38
explicit ?
Cutch
2015/02/26 18:44:40
Done.
|
| + |
| + // bx_lr = 1. |
| + static const int kLengthInBytes = 1*Instr::kInstrSize; |
|
siva
2015/02/25 22:58:39
Ditto comment about spaces.
Cutch
2015/02/26 18:44:40
Done.
Cutch
2015/02/26 18:44:40
Done.
Cutch
2015/02/26 18:44:40
Done.
|
| + |
| + int pattern_length_in_bytes() const { |
|
siva
2015/02/25 22:58:39
Ditto comment about name.
Cutch
2015/02/26 18:44:40
Acknowledged.
Cutch
2015/02/26 18:44:40
Acknowledged.
Cutch
2015/02/26 18:44:40
Acknowledged.
|
| + return kLengthInBytes; |
| + } |
| + |
| + bool IsValid() const; |
| + |
| + private: |
| + const uword pc_; |
| +}; |
| + |
| } // namespace dart |
| #endif // VM_INSTRUCTIONS_ARM64_H_ |