Mercurial > hg > truffle
diff src/share/vm/opto/matcher.hpp @ 2401:7e88bdae86ec
7029017: Additional architecture support for c2 compiler
Summary: Enables cross building of a c2 VM. Support masking of shift counts when the processor architecture mandates it.
Reviewed-by: kvn, never
author | roland |
---|---|
date | Fri, 25 Mar 2011 09:35:39 +0100 |
parents | 2f644f85485d |
children | 1d1603768966 |
line wrap: on
line diff
--- a/src/share/vm/opto/matcher.hpp Fri Mar 25 18:19:22 2011 -0400 +++ b/src/share/vm/opto/matcher.hpp Fri Mar 25 09:35:39 2011 +0100 @@ -427,6 +427,11 @@ // Do ints take an entire long register or just half? static const bool int_in_long; + // Do the processor's shift instructions only use the low 5/6 bits + // of the count for 32/64 bit ints? If not we need to do the masking + // ourselves. + static const bool need_masked_shift_count; + // This routine is run whenever a graph fails to match. // If it returns, the compiler should bailout to interpreter without error. // In non-product mode, SoftMatchFailure is false to detect non-canonical