Lines Matching refs:instruction
423 void CodeGeneratorX86::Move(HInstruction* instruction, Location location, HInstruction* move_for) { in Move() argument
424 if (instruction->AsIntConstant() != nullptr) { in Move()
425 Immediate imm(instruction->AsIntConstant()->GetValue()); in Move()
431 } else if (instruction->AsLongConstant() != nullptr) { in Move()
432 int64_t value = instruction->AsLongConstant()->GetValue(); in Move()
440 } else if (instruction->AsLoadLocal() != nullptr) { in Move()
441 switch (instruction->GetType()) { in Move()
448 Move32(location, Location::StackSlot(GetStackSlot(instruction->AsLoadLocal()->GetLocal()))); in Move()
453 GetStackSlot(instruction->AsLoadLocal()->GetLocal()))); in Move()
457 LOG(FATAL) << "Unimplemented local type " << instruction->GetType(); in Move()
460 DCHECK((instruction->GetNext() == move_for) || instruction->GetNext()->IsTemporary()); in Move()
461 switch (instruction->GetType()) { in Move()
468 Move32(location, instruction->GetLocations()->Out()); in Move()
472 Move64(location, instruction->GetLocations()->Out()); in Move()
476 LOG(FATAL) << "Unimplemented type " << instruction->GetType(); in Move()
536 HIntConstant* instruction = rhs.GetConstant()->AsIntConstant(); in VisitIf() local
537 Immediate imm(instruction->AsIntConstant()->GetValue()); in VisitIf()
608 HConstant* instruction = locations->InAt(1).GetConstant(); in VisitCondition() local
609 Immediate imm(instruction->AsIntConstant()->GetValue()); in VisitCondition()
840 HConstant* instruction = locations->InAt(1).GetConstant(); in VisitAdd() local
841 Immediate imm(instruction->AsIntConstant()->GetValue()); in VisitAdd()
913 HConstant* instruction = locations->InAt(1).GetConstant(); in VisitSub() local
914 Immediate imm(instruction->AsIntConstant()->GetValue()); in VisitSub()
952 void LocationsBuilderX86::VisitNewInstance(HNewInstance* instruction) { in VisitNewInstance() argument
954 LocationSummary* locations = new (GetGraph()->GetArena()) LocationSummary(instruction); in VisitNewInstance()
959 instruction->SetLocations(locations); in VisitNewInstance()
962 void InstructionCodeGeneratorX86::VisitNewInstance(HNewInstance* instruction) { in VisitNewInstance() argument
965 __ movl(calling_convention.GetRegisterAt(0), Immediate(instruction->GetTypeIndex())); in VisitNewInstance()
970 codegen_->RecordPcInfo(instruction->GetDexPc()); in VisitNewInstance()
974 void LocationsBuilderX86::VisitParameterValue(HParameterValue* instruction) { in VisitParameterValue() argument
975 LocationSummary* locations = new (GetGraph()->GetArena()) LocationSummary(instruction); in VisitParameterValue()
976 Location location = parameter_visitor_.GetNextLocation(instruction->GetType()); in VisitParameterValue()
983 instruction->SetLocations(locations); in VisitParameterValue()
986 void InstructionCodeGeneratorX86::VisitParameterValue(HParameterValue* instruction) { in VisitParameterValue() argument
989 void LocationsBuilderX86::VisitNot(HNot* instruction) { in VisitNot() argument
990 LocationSummary* locations = new (GetGraph()->GetArena()) LocationSummary(instruction); in VisitNot()
993 instruction->SetLocations(locations); in VisitNot()
996 void InstructionCodeGeneratorX86::VisitNot(HNot* instruction) { in VisitNot() argument
997 LocationSummary* locations = instruction->GetLocations(); in VisitNot()
1053 void LocationsBuilderX86::VisitPhi(HPhi* instruction) { in VisitPhi() argument
1054 LocationSummary* locations = new (GetGraph()->GetArena()) LocationSummary(instruction); in VisitPhi()
1055 for (size_t i = 0, e = instruction->InputCount(); i < e; ++i) { in VisitPhi()
1059 instruction->SetLocations(locations); in VisitPhi()
1062 void InstructionCodeGeneratorX86::VisitPhi(HPhi* instruction) { in VisitPhi() argument
1066 void LocationsBuilderX86::VisitInstanceFieldSet(HInstanceFieldSet* instruction) { in VisitInstanceFieldSet() argument
1067 LocationSummary* locations = new (GetGraph()->GetArena()) LocationSummary(instruction); in VisitInstanceFieldSet()
1069 Primitive::Type field_type = instruction->InputAt(1)->GetType(); in VisitInstanceFieldSet()
1082 instruction->SetLocations(locations); in VisitInstanceFieldSet()
1085 void InstructionCodeGeneratorX86::VisitInstanceFieldSet(HInstanceFieldSet* instruction) { in VisitInstanceFieldSet() argument
1086 LocationSummary* locations = instruction->GetLocations(); in VisitInstanceFieldSet()
1088 uint32_t offset = instruction->GetFieldOffset().Uint32Value(); in VisitInstanceFieldSet()
1089 Primitive::Type field_type = instruction->InputAt(1)->GetType(); in VisitInstanceFieldSet()
1147 void LocationsBuilderX86::VisitInstanceFieldGet(HInstanceFieldGet* instruction) { in VisitInstanceFieldGet() argument
1148 LocationSummary* locations = new (GetGraph()->GetArena()) LocationSummary(instruction); in VisitInstanceFieldGet()
1151 instruction->SetLocations(locations); in VisitInstanceFieldGet()
1154 void InstructionCodeGeneratorX86::VisitInstanceFieldGet(HInstanceFieldGet* instruction) { in VisitInstanceFieldGet() argument
1155 LocationSummary* locations = instruction->GetLocations(); in VisitInstanceFieldGet()
1157 uint32_t offset = instruction->GetFieldOffset().Uint32Value(); in VisitInstanceFieldGet()
1159 switch (instruction->GetType()) { in VisitInstanceFieldGet()
1201 LOG(FATAL) << "Unimplemented register type " << instruction->GetType(); in VisitInstanceFieldGet()
1204 LOG(FATAL) << "Unreachable type " << instruction->GetType(); in VisitInstanceFieldGet()
1208 void LocationsBuilderX86::VisitNullCheck(HNullCheck* instruction) { in VisitNullCheck() argument
1209 LocationSummary* locations = new (GetGraph()->GetArena()) LocationSummary(instruction); in VisitNullCheck()
1213 instruction->SetLocations(locations); in VisitNullCheck()
1216 void InstructionCodeGeneratorX86::VisitNullCheck(HNullCheck* instruction) { in VisitNullCheck() argument
1218 new (GetGraph()->GetArena()) NullCheckSlowPathX86(instruction->GetDexPc()); in VisitNullCheck()
1221 LocationSummary* locations = instruction->GetLocations(); in VisitNullCheck()
1234 void LocationsBuilderX86::VisitArrayGet(HArrayGet* instruction) { in VisitArrayGet() argument
1235 LocationSummary* locations = new (GetGraph()->GetArena()) LocationSummary(instruction); in VisitArrayGet()
1237 locations->SetInAt(1, Location::RegisterOrConstant(instruction->InputAt(1))); in VisitArrayGet()
1239 instruction->SetLocations(locations); in VisitArrayGet()
1242 void InstructionCodeGeneratorX86::VisitArrayGet(HArrayGet* instruction) { in VisitArrayGet() argument
1243 LocationSummary* locations = instruction->GetLocations(); in VisitArrayGet()
1247 switch (instruction->GetType()) { in VisitArrayGet()
1327 LOG(FATAL) << "Unimplemented register type " << instruction->GetType(); in VisitArrayGet()
1330 LOG(FATAL) << "Unreachable type " << instruction->GetType(); in VisitArrayGet()
1334 void LocationsBuilderX86::VisitArraySet(HArraySet* instruction) { in VisitArraySet() argument
1335 LocationSummary* locations = new (GetGraph()->GetArena()) LocationSummary(instruction); in VisitArraySet()
1336 Primitive::Type value_type = instruction->InputAt(2)->GetType(); in VisitArraySet()
1345 locations->SetInAt(1, Location::RegisterOrConstant(instruction->InputAt(1))); in VisitArraySet()
1354 instruction->SetLocations(locations); in VisitArraySet()
1357 void InstructionCodeGeneratorX86::VisitArraySet(HArraySet* instruction) { in VisitArraySet() argument
1358 LocationSummary* locations = instruction->GetLocations(); in VisitArraySet()
1361 Primitive::Type value_type = instruction->InputAt(2)->GetType(); in VisitArraySet()
1405 codegen_->RecordPcInfo(instruction->GetDexPc()); in VisitArraySet()
1427 LOG(FATAL) << "Unimplemented register type " << instruction->GetType(); in VisitArraySet()
1430 LOG(FATAL) << "Unreachable type " << instruction->GetType(); in VisitArraySet()
1434 void LocationsBuilderX86::VisitArrayLength(HArrayLength* instruction) { in VisitArrayLength() argument
1435 LocationSummary* locations = new (GetGraph()->GetArena()) LocationSummary(instruction); in VisitArrayLength()
1438 instruction->SetLocations(locations); in VisitArrayLength()
1441 void InstructionCodeGeneratorX86::VisitArrayLength(HArrayLength* instruction) { in VisitArrayLength() argument
1442 LocationSummary* locations = instruction->GetLocations(); in VisitArrayLength()
1449 void LocationsBuilderX86::VisitBoundsCheck(HBoundsCheck* instruction) { in VisitBoundsCheck() argument
1450 LocationSummary* locations = new (GetGraph()->GetArena()) LocationSummary(instruction); in VisitBoundsCheck()
1455 instruction->SetLocations(locations); in VisitBoundsCheck()
1458 void InstructionCodeGeneratorX86::VisitBoundsCheck(HBoundsCheck* instruction) { in VisitBoundsCheck() argument
1459 LocationSummary* locations = instruction->GetLocations(); in VisitBoundsCheck()
1461 instruction->GetDexPc(), locations->InAt(0), locations->InAt(1)); in VisitBoundsCheck()
1479 void LocationsBuilderX86::VisitParallelMove(HParallelMove* instruction) { in VisitParallelMove() argument
1483 void InstructionCodeGeneratorX86::VisitParallelMove(HParallelMove* instruction) { in VisitParallelMove() argument
1484 codegen_->GetMoveResolver()->EmitNativeCode(instruction); in VisitParallelMove()
1520 HIntConstant* instruction = source.GetConstant()->AsIntConstant(); in EmitMove() local
1521 Immediate imm(instruction->AsIntConstant()->GetValue()); in EmitMove()