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

Unified Diff: runtime/vm/instructions_ia32.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_ia32.cc
diff --git a/runtime/vm/instructions_ia32.cc b/runtime/vm/instructions_ia32.cc
index 4eb0c3c6ceeb5460c683650d8a8ca584d75c4845..4093e208ede5a7e14c7f80039e0325bdcc31e0a4 100644
--- a/runtime/vm/instructions_ia32.cc
+++ b/runtime/vm/instructions_ia32.cc
@@ -55,6 +55,17 @@ const int* ReturnPattern::pattern() const {
}
+const int* ProloguePattern::pattern() const {
srdjan 2015/05/21 16:06:33 maybe describe somewhere what kind of prolog you a
Cutch 2015/05/22 01:11:14 Done.
+ static const int kProloguePattern[kLengthInBytes] = { 0x55, 0x89, 0xe5 };
+ return kProloguePattern;
+}
+
+
+const int* SetFramePointerPattern::pattern() const {
+ static const int kFramePointerPattern[kLengthInBytes] = { 0x89, 0xe5 };
+ return kFramePointerPattern;
+}
+
} // namespace dart
#endif // defined TARGET_ARCH_IA32

Powered by Google App Engine
This is Rietveld 408576698