7195816: NPG: Crash in c1_ValueType - ShouldNotReachHere

C1 needs knowledge of T_METADATA at the LIR level.

Reviewed-by: kvn, coleenp
This commit is contained in:
Roland Westrelin 2012-09-11 16:20:57 +02:00
parent b979c4ebe0
commit 08757b8a99
19 changed files with 242 additions and 34 deletions

View file

@ -2067,6 +2067,12 @@ LIR_Opr LinearScan::calc_operand_for_interval(const Interval* interval) {
return LIR_OprFact::single_cpu_address(assigned_reg);
}
case T_METADATA: {
assert(assigned_reg >= pd_first_cpu_reg && assigned_reg <= pd_last_cpu_reg, "no cpu register");
assert(interval->assigned_regHi() == any_reg, "must not have hi register");
return LIR_OprFact::single_cpu_metadata(assigned_reg);
}
#ifdef __SOFTFP__
case T_FLOAT: // fall through
#endif // __SOFTFP__