Note を after 上 — the particle marks a path being traversed, not a direct object. 空を飛ぶ ('fly through the sky'), 道を歩く ('walk the street'), 海を泳ぐ ('swim the sea') all use を for the medium of motion. 上 ('above/on top of') combined with 太平洋 forms a locative noun phrase.