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

Unified Diff: runtime/vm/instructions_x64.h

Issue 2382953004: Revert "Lazy deopt without code patching." (Closed)
Patch Set: Created 4 years, 3 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.cc ('k') | runtime/vm/instructions_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/instructions_x64.h
diff --git a/runtime/vm/instructions_x64.h b/runtime/vm/instructions_x64.h
index 97c52e9a1fa8568d51fc3c1a2a545e4b064e4385..8f1c073eff200ba1c03c796485f9dd0c90989f53 100644
--- a/runtime/vm/instructions_x64.h
+++ b/runtime/vm/instructions_x64.h
@@ -66,6 +66,25 @@ template<class P> class InstructionPattern : public ValueObject {
};
+// 5 byte call instruction.
+class ShortCallPattern : public InstructionPattern<ShortCallPattern> {
+ public:
+ explicit ShortCallPattern(uword pc) : InstructionPattern(pc) {}
+
+ void SetTargetAddress(uword new_target) const;
+
+ static int pattern_length_in_bytes() { return kLengthInBytes; }
+ static const int* pattern() {
+ static const int kCallPattern[kLengthInBytes] = {0xE8, -1, -1, -1, -1};
+ return kCallPattern;
+ }
+
+ private:
+ static const int kLengthInBytes = 5;
+ DISALLOW_COPY_AND_ASSIGN(ShortCallPattern);
+};
+
+
class ReturnPattern : public InstructionPattern<ReturnPattern> {
public:
explicit ReturnPattern(uword pc) : InstructionPattern(pc) {}
« no previous file with comments | « runtime/vm/instructions_mips.cc ('k') | runtime/vm/instructions_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698