• Home
  • Raw
  • Download

Lines Matching refs:location

71 static bool CheckType(Primitive::Type type, Location location) {  in CheckType()  argument
72 if (location.IsFpuRegister() in CheckType()
73 || (location.IsUnallocated() && (location.GetPolicy() == Location::kRequiresFpuRegister))) { in CheckType()
75 } else if (location.IsRegister() || in CheckType()
76 (location.IsUnallocated() && (location.GetPolicy() == Location::kRequiresRegister))) { in CheckType()
78 } else if (location.IsRegisterPair()) { in CheckType()
80 } else if (location.IsFpuRegisterPair()) { in CheckType()
82 } else if (location.IsStackSlot()) { in CheckType()
86 } else if (location.IsDoubleStackSlot()) { in CheckType()
88 } else if (location.IsConstant()) { in CheckType()
89 if (location.GetConstant()->IsIntConstant()) { in CheckType()
91 } else if (location.GetConstant()->IsNullConstant()) { in CheckType()
93 } else if (location.GetConstant()->IsLongConstant()) { in CheckType()
95 } else if (location.GetConstant()->IsFloatConstant()) { in CheckType()
98 return location.GetConstant()->IsDoubleConstant() in CheckType()
102 return location.IsInvalid() || (location.GetPolicy() == Location::kAny); in CheckType()
565 void CodeGenerator::BlockIfInRegister(Location location, bool is_out) const { in BlockIfInRegister() argument
569 if (location.IsRegister()) { in BlockIfInRegister()
570 DCHECK(is_out || !blocked_core_registers_[location.reg()]); in BlockIfInRegister()
571 blocked_core_registers_[location.reg()] = true; in BlockIfInRegister()
572 } else if (location.IsFpuRegister()) { in BlockIfInRegister()
573 DCHECK(is_out || !blocked_fpu_registers_[location.reg()]); in BlockIfInRegister()
574 blocked_fpu_registers_[location.reg()] = true; in BlockIfInRegister()
575 } else if (location.IsFpuRegisterPair()) { in BlockIfInRegister()
576 DCHECK(is_out || !blocked_fpu_registers_[location.AsFpuRegisterPairLow<int>()]); in BlockIfInRegister()
577 blocked_fpu_registers_[location.AsFpuRegisterPairLow<int>()] = true; in BlockIfInRegister()
578 DCHECK(is_out || !blocked_fpu_registers_[location.AsFpuRegisterPairHigh<int>()]); in BlockIfInRegister()
579 blocked_fpu_registers_[location.AsFpuRegisterPairHigh<int>()] = true; in BlockIfInRegister()
580 } else if (location.IsRegisterPair()) { in BlockIfInRegister()
581 DCHECK(is_out || !blocked_core_registers_[location.AsRegisterPairLow<int>()]); in BlockIfInRegister()
582 blocked_core_registers_[location.AsRegisterPairLow<int>()] = true; in BlockIfInRegister()
583 DCHECK(is_out || !blocked_core_registers_[location.AsRegisterPairHigh<int>()]); in BlockIfInRegister()
584 blocked_core_registers_[location.AsRegisterPairHigh<int>()] = true; in BlockIfInRegister()
875 Location location = environment->GetLocationAt(i); in RecordPcInfo() local
876 DCHECK(location.IsStackSlot() || in RecordPcInfo()
877 location.IsDoubleStackSlot() || in RecordPcInfo()
878 location.IsConstant() || in RecordPcInfo()
879 location.IsInvalid()); in RecordPcInfo()
880 if (location.IsStackSlot() || location.IsDoubleStackSlot()) { in RecordPcInfo()
881 DCHECK_LT(location.GetStackIndex(), static_cast<int32_t>(GetFrameSize())); in RecordPcInfo()
957 Location location = current_phi->GetLiveInterval()->ToLocation(); in RecordCatchBlockInfo() local
958 switch (location.GetKind()) { in RecordCatchBlockInfo()
961 DexRegisterLocation::Kind::kInStack, location.GetStackIndex()); in RecordCatchBlockInfo()
966 DexRegisterLocation::Kind::kInStack, location.GetStackIndex()); in RecordCatchBlockInfo()
968 DexRegisterLocation::Kind::kInStack, location.GetHighStackIndex(kVRegSize)); in RecordCatchBlockInfo()
975 LOG(FATAL) << "Unexpected kind " << location.GetKind(); in RecordCatchBlockInfo()
1006 Location location = environment->GetLocationAt(i); in EmitEnvironment() local
1007 switch (location.GetKind()) { in EmitEnvironment()
1009 DCHECK_EQ(current, location.GetConstant()); in EmitEnvironment()
1041 DexRegisterLocation::Kind::kInStack, location.GetStackIndex()); in EmitEnvironment()
1047 DexRegisterLocation::Kind::kInStack, location.GetStackIndex()); in EmitEnvironment()
1049 DexRegisterLocation::Kind::kInStack, location.GetHighStackIndex(kVRegSize)); in EmitEnvironment()
1056 int id = location.reg(); in EmitEnvironment()
1078 int id = location.reg(); in EmitEnvironment()
1101 int low = location.low(); in EmitEnvironment()
1102 int high = location.high(); in EmitEnvironment()
1122 int low = location.low(); in EmitEnvironment()
1123 int high = location.high(); in EmitEnvironment()
1147 LOG(FATAL) << "Unexpected kind " << location.GetKind(); in EmitEnvironment()