mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-05 13:40:18 +00:00
Recover mistakenly deleted function
This commit is contained in:
parent
4c2fc9aa9a
commit
0222409941
@ -75,6 +75,7 @@ public:
|
||||
return (encoding() & 0xff000000) == 0x10000000;
|
||||
}
|
||||
|
||||
inline bool is_nop() const;
|
||||
bool is_jump();
|
||||
bool is_general_jump();
|
||||
inline bool is_cond_jump();
|
||||
@ -393,6 +394,11 @@ public:
|
||||
static void insert(address code_pos);
|
||||
};
|
||||
|
||||
inline bool NativeInstruction::is_nop() const{
|
||||
uint32_t insn = *(uint32_t*)addr_at(0);
|
||||
return insn == 0xd503201f;
|
||||
}
|
||||
|
||||
inline bool NativeInstruction::is_jump() {
|
||||
uint32_t insn = *(uint32_t*)addr_at(0);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user