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

Unified Diff: runtime/vm/instructions_mips.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
« no previous file with comments | « runtime/vm/instructions_ia32.cc ('k') | runtime/vm/instructions_mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/instructions_mips.h
diff --git a/runtime/vm/instructions_mips.h b/runtime/vm/instructions_mips.h
index b4864b74665617ed7d95dd59231f689acfbb73e8..2a9e2e14ee0c18642c887d71c6ba8c379376f26c 100644
--- a/runtime/vm/instructions_mips.h
+++ b/runtime/vm/instructions_mips.h
@@ -99,6 +99,24 @@ class JumpPattern : public ValueObject {
DISALLOW_COPY_AND_ASSIGN(JumpPattern);
};
+
+class ReturnPattern : public ValueObject {
+ public:
+ explicit ReturnPattern(uword pc);
+
+ // jr(RA) = 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_MIPS_H_
« no previous file with comments | « runtime/vm/instructions_ia32.cc ('k') | runtime/vm/instructions_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698