Lines Matching refs:constant
424 HFloatConstant* SsaBuilder::GetFloatEquivalent(HIntConstant* constant) { in GetFloatEquivalent() argument
426 HFloatConstant* result = constant->GetNext()->AsFloatConstant(); in GetFloatEquivalent()
428 HGraph* graph = constant->GetBlock()->GetGraph(); in GetFloatEquivalent()
430 result = new (allocator) HFloatConstant(bit_cast<float, int32_t>(constant->GetValue())); in GetFloatEquivalent()
431 constant->GetBlock()->InsertInstructionBefore(result, constant->GetNext()); in GetFloatEquivalent()
436 DCHECK_EQ((bit_cast<int32_t, float>(result->GetValue())), constant->GetValue()); in GetFloatEquivalent()
447 HDoubleConstant* SsaBuilder::GetDoubleEquivalent(HLongConstant* constant) { in GetDoubleEquivalent() argument
449 HDoubleConstant* result = constant->GetNext()->AsDoubleConstant(); in GetDoubleEquivalent()
451 HGraph* graph = constant->GetBlock()->GetGraph(); in GetDoubleEquivalent()
453 result = new (allocator) HDoubleConstant(bit_cast<double, int64_t>(constant->GetValue())); in GetDoubleEquivalent()
454 constant->GetBlock()->InsertInstructionBefore(result, constant->GetNext()); in GetDoubleEquivalent()
459 DCHECK_EQ((bit_cast<int64_t, double>(result->GetValue())), constant->GetValue()); in GetDoubleEquivalent()