Lines Matching refs:constant

519   static int8_t GetInt8ValueOf(HConstant* constant) {  in GetInt8ValueOf()  argument
520 DCHECK(constant->IsIntConstant()); in GetInt8ValueOf()
521 return constant->AsIntConstant()->GetValue(); in GetInt8ValueOf()
524 static int16_t GetInt16ValueOf(HConstant* constant) { in GetInt16ValueOf() argument
525 DCHECK(constant->IsIntConstant()); in GetInt16ValueOf()
526 return constant->AsIntConstant()->GetValue(); in GetInt16ValueOf()
529 static int32_t GetInt32ValueOf(HConstant* constant) { in GetInt32ValueOf() argument
530 if (constant->IsIntConstant()) { in GetInt32ValueOf()
531 return constant->AsIntConstant()->GetValue(); in GetInt32ValueOf()
532 } else if (constant->IsNullConstant()) { in GetInt32ValueOf()
535 DCHECK(constant->IsFloatConstant()); in GetInt32ValueOf()
536 return bit_cast<int32_t, float>(constant->AsFloatConstant()->GetValue()); in GetInt32ValueOf()
540 static int64_t GetInt64ValueOf(HConstant* constant) { in GetInt64ValueOf() argument
541 if (constant->IsIntConstant()) { in GetInt64ValueOf()
542 return constant->AsIntConstant()->GetValue(); in GetInt64ValueOf()
543 } else if (constant->IsNullConstant()) { in GetInt64ValueOf()
545 } else if (constant->IsFloatConstant()) { in GetInt64ValueOf()
546 return bit_cast<int32_t, float>(constant->AsFloatConstant()->GetValue()); in GetInt64ValueOf()
547 } else if (constant->IsLongConstant()) { in GetInt64ValueOf()
548 return constant->AsLongConstant()->GetValue(); in GetInt64ValueOf()
550 DCHECK(constant->IsDoubleConstant()); in GetInt64ValueOf()
551 return bit_cast<int64_t, double>(constant->AsDoubleConstant()->GetValue()); in GetInt64ValueOf()