Lines Matching defs:constant

540     // constant member (like other "inputs" of this slow path),
906 // patch needs to point to the embedded constant which occupies the last 4 bytes.
1136 HConstant* constant = source.GetConstant();
1137 if (constant->IsLongConstant()) {
1138 Load64BitValue(dest, constant->AsLongConstant()->GetValue());
1140 Load32BitValue(dest, GetInt32ValueOf(constant));
1153 HConstant* constant = source.GetConstant();
1154 int64_t value = CodeGenerator::GetInt64ValueOf(constant);
1155 if (constant->IsFloatConstant()) {
1174 HConstant* constant = source.GetConstant();
1175 int32_t value = GetInt32ValueOf(constant);
1191 HConstant* constant = source.GetConstant();
1193 if (constant->IsDoubleConstant()) {
1194 value = bit_cast<int64_t, double>(constant->AsDoubleConstant()->GetValue());
1196 DCHECK(constant->IsLongConstant());
1197 value = constant->AsLongConstant()->GetValue();
1479 int32_t constant = CodeGenerator::GetInt32ValueOf(rhs.GetConstant());
1480 codegen_->Compare32BitValue(lhs.AsRegister<CpuRegister>(), constant);
1686 int32_t constant = CodeGenerator::GetInt32ValueOf(rhs.GetConstant());
1687 codegen_->Compare32BitValue(lhs.AsRegister<CpuRegister>(), constant);
1941 void LocationsBuilderX86_64::VisitIntConstant(HIntConstant* constant) {
1943 new (GetGraph()->GetArena()) LocationSummary(constant, LocationSummary::kNoCall);
1944 locations->SetOut(Location::ConstantLocation(constant));
1947 void InstructionCodeGeneratorX86_64::VisitIntConstant(HIntConstant* constant ATTRIBUTE_UNUSED) {
1951 void LocationsBuilderX86_64::VisitNullConstant(HNullConstant* constant) {
1953 new (GetGraph()->GetArena()) LocationSummary(constant, LocationSummary::kNoCall);
1954 locations->SetOut(Location::ConstantLocation(constant));
1957 void InstructionCodeGeneratorX86_64::VisitNullConstant(HNullConstant* constant ATTRIBUTE_UNUSED) {
1961 void LocationsBuilderX86_64::VisitLongConstant(HLongConstant* constant) {
1963 new (GetGraph()->GetArena()) LocationSummary(constant, LocationSummary::kNoCall);
1964 locations->SetOut(Location::ConstantLocation(constant));
1967 void InstructionCodeGeneratorX86_64::VisitLongConstant(HLongConstant* constant ATTRIBUTE_UNUSED) {
1971 void LocationsBuilderX86_64::VisitFloatConstant(HFloatConstant* constant) {
1973 new (GetGraph()->GetArena()) LocationSummary(constant, LocationSummary::kNoCall);
1974 locations->SetOut(Location::ConstantLocation(constant));
1977 void InstructionCodeGeneratorX86_64::VisitFloatConstant(HFloatConstant* constant ATTRIBUTE_UNUSED) {
1981 void LocationsBuilderX86_64::VisitDoubleConstant(HDoubleConstant* constant) {
1983 new (GetGraph()->GetArena()) LocationSummary(constant, LocationSummary::kNoCall);
1984 locations->SetOut(Location::ConstantLocation(constant));
1988 HDoubleConstant* constant ATTRIBUTE_UNUSED) {
2877 // We can use a leaq or addq if the constant can fit in an immediate.
3126 // The constant may have ended up in a register, so test explicitly to avoid
3142 // The constant may have ended up in a register, so test explicitly to avoid
3150 // Have to use the constant area.
3823 // The shift count needs to be in CL (unless it is a constant).
5017 // We have to reverse the jump condition because the length is the constant.
5154 HConstant* constant = source.GetConstant();
5155 if (constant->IsIntConstant() || constant->IsNullConstant()) {
5156 int32_t value = CodeGenerator::GetInt32ValueOf(constant);
5167 } else if (constant->IsLongConstant()) {
5168 int64_t value = constant->AsLongConstant()->GetValue();
5175 } else if (constant->IsFloatConstant()) {
5176 float fp_value = constant->AsFloatConstant()->GetValue();
5186 DCHECK(constant->IsDoubleConstant()) << constant->DebugName();
5187 double fp_value = constant->AsDoubleConstant()->GetValue();
6554 // Load the address of the jump table in the constant area.
6635 // Can move directly as an int32 constant.
6645 * Class to handle late fixup of offsets into constant area.
6668 // Location in constant area that the fixup refers to.
6674 * constant area.
6710 // Generate the constant area if needed.
6722 // And now add the constant area to the generated code.