Personification, it is giving stars the humanly characteristic of dancing.
The verb that is being used in the given sentence above is "has eaten". The principal part of the verb being used is a past participle. The past participle of the verb is used when the action has been completed some time in the past. This action "has eaten" all of the grapes was done and completed in the past.
C, he smiles into the hayloft dim and the brown hay smiles back at him. A personification is when you give a human attribute or action, like smiling, to an inanimate object, like hay.