Lines Matching refs:constant
298 static int32_t GetInt32ValueOf(HConstant* constant) { in GetInt32ValueOf() argument
299 if (constant->IsIntConstant()) { in GetInt32ValueOf()
300 return constant->AsIntConstant()->GetValue(); in GetInt32ValueOf()
301 } else if (constant->IsNullConstant()) { in GetInt32ValueOf()
304 DCHECK(constant->IsFloatConstant()); in GetInt32ValueOf()
305 return bit_cast<int32_t, float>(constant->AsFloatConstant()->GetValue()); in GetInt32ValueOf()
309 static int64_t GetInt64ValueOf(HConstant* constant) { in GetInt64ValueOf() argument
310 if (constant->IsIntConstant()) { in GetInt64ValueOf()
311 return constant->AsIntConstant()->GetValue(); in GetInt64ValueOf()
312 } else if (constant->IsNullConstant()) { in GetInt64ValueOf()
314 } else if (constant->IsFloatConstant()) { in GetInt64ValueOf()
315 return bit_cast<int32_t, float>(constant->AsFloatConstant()->GetValue()); in GetInt64ValueOf()
316 } else if (constant->IsLongConstant()) { in GetInt64ValueOf()
317 return constant->AsLongConstant()->GetValue(); in GetInt64ValueOf()
319 DCHECK(constant->IsDoubleConstant()); in GetInt64ValueOf()
320 return bit_cast<int64_t, double>(constant->AsDoubleConstant()->GetValue()); in GetInt64ValueOf()