Mercurial > hg > graal-compiler
diff src/cpu/x86/vm/nativeInst_x86.cpp @ 116:018d5b58dd4f
6537506: Provide a mechanism for specifying Java-level USDT-like dtrace probes
Summary: Initial checkin of JSDT code
Reviewed-by: acorn, sbohne
author | kamg |
---|---|
date | Thu, 17 Apr 2008 22:18:15 -0400 |
parents | a61af66fc99e |
children | d1605aabd0a1 |
line wrap: on
line diff
--- a/src/cpu/x86/vm/nativeInst_x86.cpp Wed Apr 16 17:36:29 2008 -0400 +++ b/src/cpu/x86/vm/nativeInst_x86.cpp Thu Apr 17 22:18:15 2008 -0400 @@ -472,3 +472,7 @@ else return addr_at(0) + length + sbyte_at(offset); } + +bool NativeInstruction::is_dtrace_trap() { + return (*(int32_t*)this & 0xff) == 0xcc; +}