void AStarGridCell::copy(AStarGridCell& aStarGridCell) { this->cellCoordinates = aStarGridCell.cellCoordinates; this->cellGridPosition = aStarGridCell.cellGridPosition; this->cost = aStarGridCell.cost; this->targetCoordinates = aStarGridCell.targetCoordinates; this->gCost = aStarGridCell.gCost; if(aStarGridCell.getSuccessors().size() > 0){ setSuccessors(aStarGridCell.getSuccessors()); } }
Value* BasicBlock::appendNewControlValue(Procedure& proc, Opcode opcode, Origin origin, Value* predicate, const FrequentedBlock& taken, const FrequentedBlock& notTaken) { RELEASE_ASSERT(opcode == Branch); setSuccessors(taken, notTaken); return appendNew<Value>(proc, opcode, origin, predicate); }
Value* BasicBlock::appendNewControlValue(Procedure& proc, Opcode opcode, Origin origin, const FrequentedBlock& target) { RELEASE_ASSERT(opcode == Jump); setSuccessors(target); return appendNew<Value>(proc, opcode, origin); }