Lines Matching refs:location

67 static bool CheckType(DataType::Type type, Location location) {  in CheckType()  argument
68 if (location.IsFpuRegister() in CheckType()
69 || (location.IsUnallocated() && (location.GetPolicy() == Location::kRequiresFpuRegister))) { in CheckType()
71 } else if (location.IsRegister() || in CheckType()
72 (location.IsUnallocated() && (location.GetPolicy() == Location::kRequiresRegister))) { in CheckType()
74 } else if (location.IsRegisterPair()) { in CheckType()
76 } else if (location.IsFpuRegisterPair()) { in CheckType()
78 } else if (location.IsStackSlot()) { in CheckType()
82 } else if (location.IsDoubleStackSlot()) { in CheckType()
84 } else if (location.IsConstant()) { in CheckType()
85 if (location.GetConstant()->IsIntConstant()) { in CheckType()
87 } else if (location.GetConstant()->IsNullConstant()) { in CheckType()
89 } else if (location.GetConstant()->IsLongConstant()) { in CheckType()
91 } else if (location.GetConstant()->IsFloatConstant()) { in CheckType()
94 return location.GetConstant()->IsDoubleConstant() in CheckType()
98 return location.IsInvalid() || (location.GetPolicy() == Location::kAny); in CheckType()
930 void CodeGenerator::BlockIfInRegister(Location location, bool is_out) const { in BlockIfInRegister() argument
934 if (location.IsRegister()) { in BlockIfInRegister()
935 DCHECK(is_out || !blocked_core_registers_[location.reg()]); in BlockIfInRegister()
936 blocked_core_registers_[location.reg()] = true; in BlockIfInRegister()
937 } else if (location.IsFpuRegister()) { in BlockIfInRegister()
938 DCHECK(is_out || !blocked_fpu_registers_[location.reg()]); in BlockIfInRegister()
939 blocked_fpu_registers_[location.reg()] = true; in BlockIfInRegister()
940 } else if (location.IsFpuRegisterPair()) { in BlockIfInRegister()
941 DCHECK(is_out || !blocked_fpu_registers_[location.AsFpuRegisterPairLow<int>()]); in BlockIfInRegister()
942 blocked_fpu_registers_[location.AsFpuRegisterPairLow<int>()] = true; in BlockIfInRegister()
943 DCHECK(is_out || !blocked_fpu_registers_[location.AsFpuRegisterPairHigh<int>()]); in BlockIfInRegister()
944 blocked_fpu_registers_[location.AsFpuRegisterPairHigh<int>()] = true; in BlockIfInRegister()
945 } else if (location.IsRegisterPair()) { in BlockIfInRegister()
946 DCHECK(is_out || !blocked_core_registers_[location.AsRegisterPairLow<int>()]); in BlockIfInRegister()
947 blocked_core_registers_[location.AsRegisterPairLow<int>()] = true; in BlockIfInRegister()
948 DCHECK(is_out || !blocked_core_registers_[location.AsRegisterPairHigh<int>()]); in BlockIfInRegister()
949 blocked_core_registers_[location.AsRegisterPairHigh<int>()] = true; in BlockIfInRegister()
1264 Location location = environment->GetLocationAt(i); in RecordPcInfo() local
1265 DCHECK(location.IsStackSlot() || in RecordPcInfo()
1266 location.IsDoubleStackSlot() || in RecordPcInfo()
1267 location.IsConstant() || in RecordPcInfo()
1268 location.IsInvalid()); in RecordPcInfo()
1269 if (location.IsStackSlot() || location.IsDoubleStackSlot()) { in RecordPcInfo()
1270 DCHECK_LT(location.GetStackIndex(), static_cast<int32_t>(GetFrameSize())); in RecordPcInfo()
1331 Location location = current_phi->GetLocations()->Out(); in RecordCatchBlockInfo() local
1332 switch (location.GetKind()) { in RecordCatchBlockInfo()
1335 DexRegisterLocation::Kind::kInStack, location.GetStackIndex()); in RecordCatchBlockInfo()
1340 DexRegisterLocation::Kind::kInStack, location.GetStackIndex()); in RecordCatchBlockInfo()
1342 DexRegisterLocation::Kind::kInStack, location.GetHighStackIndex(kVRegSize)); in RecordCatchBlockInfo()
1349 LOG(FATAL) << "Unexpected kind " << location.GetKind(); in RecordCatchBlockInfo()
1376 Location location = environment->GetLocationAt(i); in EmitVRegInfo() local
1377 switch (location.GetKind()) { in EmitVRegInfo()
1379 DCHECK_EQ(current, location.GetConstant()); in EmitVRegInfo()
1406 stack_map_stream->AddDexRegisterEntry(Kind::kInStack, location.GetStackIndex()); in EmitVRegInfo()
1411 stack_map_stream->AddDexRegisterEntry(Kind::kInStack, location.GetStackIndex()); in EmitVRegInfo()
1413 Kind::kInStack, location.GetHighStackIndex(kVRegSize)); in EmitVRegInfo()
1420 int id = location.reg(); in EmitVRegInfo()
1441 int id = location.reg(); in EmitVRegInfo()
1462 int low = location.low(); in EmitVRegInfo()
1463 int high = location.high(); in EmitVRegInfo()
1483 int low = location.low(); in EmitVRegInfo()
1484 int high = location.high(); in EmitVRegInfo()
1508 LOG(FATAL) << "Unexpected kind " << location.GetKind(); in EmitVRegInfo()