Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(750)

Unified Diff: runtime/vm/instructions_arm.h

Issue 928833003: Add Function based profile tree (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/instructions_arm.h
diff --git a/runtime/vm/instructions_arm.h b/runtime/vm/instructions_arm.h
index b802fa6b03a2f1c56a26174393884db09b9295df..6d786fd6b1b7cd0cbe571fd5c9255724ab3a14fc 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);
+
+ // 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_ARM_H_

Powered by Google App Engine
This is Rietveld 408576698