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

Unified Diff: runtime/vm/instructions_ia32.h

Issue 1343373003: Revert "VM: New calling convention for generated code." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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_arm_test.cc ('k') | runtime/vm/instructions_ia32_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/instructions_ia32.h
diff --git a/runtime/vm/instructions_ia32.h b/runtime/vm/instructions_ia32.h
index 9cf5243311e768159e13aa1905e7a54b2b12f617..1a839c84dec8a0e6592ab2038c34bcee0e35bef2 100644
--- a/runtime/vm/instructions_ia32.h
+++ b/runtime/vm/instructions_ia32.h
@@ -104,6 +104,23 @@ class CallPattern : public CallOrJumpPattern<CallPattern> {
};
+class JumpPattern : public CallOrJumpPattern<JumpPattern> {
+ public:
+ JumpPattern(uword pc, const Code& code) : CallOrJumpPattern(pc) {}
+
+ static int pattern_length_in_bytes() { return kLengthInBytes; }
+ static const int* pattern() {
+ static const int kJumpPattern[kLengthInBytes] = {0xE9, -1, -1, -1, -1};
+ return kJumpPattern;
+ }
+
+ private:
+ static const int kLengthInBytes = 5;
+
+ DISALLOW_COPY_AND_ASSIGN(JumpPattern);
+};
+
+
class ReturnPattern : public InstructionPattern<ReturnPattern> {
public:
explicit ReturnPattern(uword pc) : InstructionPattern(pc) {}
« no previous file with comments | « runtime/vm/instructions_arm_test.cc ('k') | runtime/vm/instructions_ia32_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698