Mercurial > hg > graal-jvmci-8
diff src/share/vm/code/codeBlob.hpp @ 2059:9508a52cbd32
Add deoptimization blob support.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Wed, 19 Jan 2011 15:48:15 +0100 |
parents | f95d63e2154a |
children | 98fa88528319 |
line wrap: on
line diff
--- a/src/share/vm/code/codeBlob.hpp Tue Jan 18 10:19:59 2011 +0100 +++ b/src/share/vm/code/codeBlob.hpp Wed Jan 19 15:48:15 2011 +0100 @@ -352,6 +352,10 @@ int _unpack_with_exception_in_tls; + // (tw) Offset when C1X calls uncommon_trap. + int _uncommon_trap_offset; + + // Creation support DeoptimizationBlob( CodeBuffer* cb, @@ -407,6 +411,14 @@ assert(code_contains(code_begin() + _unpack_with_exception_in_tls), "must be PC inside codeblob"); } address unpack_with_exception_in_tls() const { return code_begin() + _unpack_with_exception_in_tls; } + + // (tw) Offset when C1X calls uncommon_trap. + void set_uncommon_trap_offset(int offset) { + _uncommon_trap_offset = offset; + assert(contains(code_begin() + _uncommon_trap_offset), "must be PC inside codeblob"); + } + address uncommon_trap() const { return code_begin() + _uncommon_trap_offset; } + };