Lines Matching defs:constant

519     // constant member (like other "inputs" of this slow path),
1012 HConstant* constant = source.GetConstant();
1013 int32_t value = GetInt32ValueOf(constant);
1075 HConstant* constant = source.GetConstant();
1077 if (constant->IsLongConstant()) {
1078 value = constant->AsLongConstant()->GetValue();
1080 DCHECK(constant->IsDoubleConstant());
1081 value = bit_cast<int64_t, double>(constant->AsDoubleConstant()->GetValue());
1437 int32_t constant = CodeGenerator::GetInt32ValueOf(rhs.GetConstant());
1438 codegen_->Compare32BitValue(lhs.AsRegister<Register>(), constant);
1519 // Cmov can't handle a constant value.
1795 void LocationsBuilderX86::VisitIntConstant(HIntConstant* constant) {
1797 new (GetGraph()->GetArena()) LocationSummary(constant, LocationSummary::kNoCall);
1798 locations->SetOut(Location::ConstantLocation(constant));
1801 void InstructionCodeGeneratorX86::VisitIntConstant(HIntConstant* constant ATTRIBUTE_UNUSED) {
1805 void LocationsBuilderX86::VisitNullConstant(HNullConstant* constant) {
1807 new (GetGraph()->GetArena()) LocationSummary(constant, LocationSummary::kNoCall);
1808 locations->SetOut(Location::ConstantLocation(constant));
1811 void InstructionCodeGeneratorX86::VisitNullConstant(HNullConstant* constant ATTRIBUTE_UNUSED) {
1815 void LocationsBuilderX86::VisitLongConstant(HLongConstant* constant) {
1817 new (GetGraph()->GetArena()) LocationSummary(constant, LocationSummary::kNoCall);
1818 locations->SetOut(Location::ConstantLocation(constant));
1821 void InstructionCodeGeneratorX86::VisitLongConstant(HLongConstant* constant ATTRIBUTE_UNUSED) {
1825 void LocationsBuilderX86::VisitFloatConstant(HFloatConstant* constant) {
1827 new (GetGraph()->GetArena()) LocationSummary(constant, LocationSummary::kNoCall);
1828 locations->SetOut(Location::ConstantLocation(constant));
1831 void InstructionCodeGeneratorX86::VisitFloatConstant(HFloatConstant* constant ATTRIBUTE_UNUSED) {
1835 void LocationsBuilderX86::VisitDoubleConstant(HDoubleConstant* constant) {
1837 new (GetGraph()->GetArena()) LocationSummary(constant, LocationSummary::kNoCall);
1838 locations->SetOut(Location::ConstantLocation(constant));
1841 void InstructionCodeGeneratorX86::VisitDoubleConstant(HDoubleConstant* constant ATTRIBUTE_UNUSED) {
2108 Register constant = locations->GetTemp(0).AsRegister<Register>();
2113 __ movl(constant, Immediate(INT32_C(0x80000000)));
2114 __ movd(mask, constant);
2996 // The constant may have ended up in a register, so test explicitly to avoid
3686 // The shift count needs to be in CL or a constant.
3746 // Shift by a constant.
3883 // The shift count needs to be in CL (unless it is a constant).
4474 // patch needs to point to the embedded constant which occupies the last 4 bytes.
5542 // We have to reverse the jump condition because the length is the constant.
5697 HConstant* constant = source.GetConstant();
5698 if (constant->IsIntConstant() || constant->IsNullConstant()) {
5699 int32_t value = CodeGenerator::GetInt32ValueOf(constant);
5710 } else if (constant->IsFloatConstant()) {
5711 float fp_value = constant->AsFloatConstant()->GetValue();
5730 } else if (constant->IsLongConstant()) {
5731 int64_t value = constant->AsLongConstant()->GetValue();
5744 DCHECK(constant->IsDoubleConstant());
5745 double dbl_value = constant->AsDoubleConstant()->GetValue();
7152 // Remember this offset for later use with constant area.
7183 LOG(FATAL) << "Unsupported x86 constant area type " << insn->GetType();
7214 LOG(FATAL) << "Unsupported x86 constant area type " << insn->GetType();
7219 * Class to handle late fixup of offsets into constant area.
7235 // The value to patch is the distance from the offset in the constant area
7244 // Location in constant area that the fixup refers to.
7250 * constant area.
7265 // instruction addressing the constant area.
7287 // Generate the constant area if needed.
7300 // And now add the constant area to the generated code.