| 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) {}
|
|
|