Index: runtime/vm/instructions_arm.h |
diff --git a/runtime/vm/instructions_arm.h b/runtime/vm/instructions_arm.h |
index b802fa6b03a2f1c56a26174393884db09b9295df..a9eedc56b6f4cabd02abf5e20a1a0c9313aefee9 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: |
+ 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:38
spaces (1 * Instr)
Cutch
2015/02/26 18:44:40
Done (here and elsewhere).
|
+ |
+ int pattern_length_in_bytes() const { |
siva
2015/02/25 22:58:38
This is not an accessor but it has the naming styl
Cutch
2015/02/26 18:44:40
Acknowledged.
|
+ return kLengthInBytes; |
+ } |
+ |
+ bool IsValid() const; |
+ |
+ private: |
+ const uword pc_; |
+}; |
+ |
} // namespace dart |
#endif // VM_INSTRUCTIONS_ARM_H_ |