for decades , by the light of smoky torches , ghwerig patiently carved and polished , muttering all the while the spells and incantations which would infuse this priceless gem with all the power for good or ill of the troll-gods .