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

Unified Diff: runtime/vm/instructions_x64.cc

Issue 1150633002: Track prologue offset of Code and use for more precise return addresses (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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_x64.cc
diff --git a/runtime/vm/instructions_x64.cc b/runtime/vm/instructions_x64.cc
index f4a0632291fa22618a38b049d1b397c8a315eaf6..98ffcd96c3c62fa8622256c1bef5d43fcc716865 100644
--- a/runtime/vm/instructions_x64.cc
+++ b/runtime/vm/instructions_x64.cc
@@ -79,6 +79,19 @@ const int* ReturnPattern::pattern() const {
return kReturnPattern;
}
+
+const int* ProloguePattern::pattern() const {
+ static const int kProloguePattern[kLengthInBytes] =
+ { 0x55, 0x48, 0x89, 0xe5 };
+ return kProloguePattern;
+}
+
+
+const int* SetFramePointerPattern::pattern() const {
+ static const int kFramePointerPattern[kLengthInBytes] = { 0x48, 0x89, 0xe5 };
+ return kFramePointerPattern;
+}
+
} // namespace dart
#endif // defined TARGET_ARCH_X64

Powered by Google App Engine
This is Rietveld 408576698