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

Unified Diff: runtime/vm/instructions_mips.cc

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_mips.h ('k') | runtime/vm/instructions_x64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/instructions_mips.cc
diff --git a/runtime/vm/instructions_mips.cc b/runtime/vm/instructions_mips.cc
index 533d8e47f3f225a4bd354a0d1d3d79920cc0d847..3e8cbe807cc00790f77d5aa7ec759e9252f534fa 100644
--- a/runtime/vm/instructions_mips.cc
+++ b/runtime/vm/instructions_mips.cc
@@ -227,6 +227,19 @@ void JumpPattern::SetTargetAddress(uword target_address) const {
ori->SetInstructionBits((ori_bits & 0xffff0000) | target_lo);
}
+
+ReturnPattern::ReturnPattern(uword pc)
+ : pc_(pc) {
+}
+
+
+bool ReturnPattern::IsValid() const {
+ Instr* jr = Instr::At(pc_);
+ return (jr->OpcodeField() == SPECIAL) &&
+ (jr->FunctionField() == JR) &&
+ (jr->RsField() == RA);
+}
+
} // namespace dart
#endif // defined TARGET_ARCH_MIPS
« no previous file with comments | « runtime/vm/instructions_mips.h ('k') | runtime/vm/instructions_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698