invoke relocation pass in js optimizer