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

Unified Diff: runtime/vm/instructions_x64.h

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.h
diff --git a/runtime/vm/instructions_x64.h b/runtime/vm/instructions_x64.h
index 0c0dc5397f48c6aa5a976de5c1870ff45ee22bec..1acf51ede4dce859bf123a9b03b1f762f5fa9dce 100644
--- a/runtime/vm/instructions_x64.h
+++ b/runtime/vm/instructions_x64.h
@@ -112,6 +112,30 @@ class ReturnPattern : public InstructionPattern {
static const int kLengthInBytes = 1;
};
+
+class ProloguePattern : public InstructionPattern {
+ public:
+ explicit ProloguePattern(uword pc) : InstructionPattern(pc) {}
+
+ virtual const int* pattern() const;
+ virtual int pattern_length_in_bytes() const { return kLengthInBytes; }
+
+ private:
+ static const int kLengthInBytes = 4;
+};
+
+
+class SetFramePointerPattern : public InstructionPattern {
+ public:
+ explicit SetFramePointerPattern(uword pc) : InstructionPattern(pc) {}
+
+ virtual const int* pattern() const;
+ virtual int pattern_length_in_bytes() const { return kLengthInBytes; }
+
+ private:
+ static const int kLengthInBytes = 3;
+};
+
} // namespace dart
#endif // VM_INSTRUCTIONS_X64_H_

Powered by Google App Engine
This is Rietveld 408576698