Index: runtime/vm/instructions_arm.h |
diff --git a/runtime/vm/instructions_arm.h b/runtime/vm/instructions_arm.h |
index b802fa6b03a2f1c56a26174393884db09b9295df..b36d04f7c42d6e4b0bfa87d1a35addac5bea16d3 100644 |
--- a/runtime/vm/instructions_arm.h |
+++ b/runtime/vm/instructions_arm.h |
@@ -96,6 +96,24 @@ class JumpPattern : public ValueObject { |
DISALLOW_COPY_AND_ASSIGN(JumpPattern); |
}; |
+ |
+class ReturnPattern : public ValueObject { |
+ public: |
+ explicit ReturnPattern(uword pc); |
+ |
+ // bx_lr = 1. |
+ 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_ARM_H_ |