[hack] Factor out various usages of get/set_all_locals
[hack] Factor out various usages of get/set_all_locals

Summary:
It's a common pattern. This factoring makes it clearer that the set
of all_locals is a monotonically increasing set (which makes sense since it's
supposed to record all the local variables that have been encountered in our
pass over the function body.)

Reviewed By: dlreeves

Differential Revision: D2909525

fb-gh-sync-id: a576e598d895b1e8c9b34ecb6e6359b04883e2eb
shipit-source-id: a576e598d895b1e8c9b34ecb6e6359b04883e2eb

facebook/flow,cesarandreu/flow,graue/flow,ForbesLindesay/flow,graue/flow,samwgoldman/flow,AprilArcus/flow,jdelStrother/flow,MichaelDeBoey/flow,ForbesLindesay/flow,mroch/flow,AgentME/flow,JonathanUsername/flow,gabelevi/flow,claudiopro/flow,jamesgpearce/flow,jdelStrother/flow,ylu1317/flow,mroch/flow,ylu1317/flow,shiftcars/flow,fletcherw/flow,nmote/flow,AgentME/flow,facebook/flow,samwgoldman/flow,jgrund/flow,chenglou/flow,chenglou/flow,popham/flow,MichaelDeBoey/flow,TiddoLangerak/flow,samwgoldman/flow,fletcherw/flow,jgrund/flow,jamesgpearce/flow,MichaelDeBoey/flow,mroch/flow,samwgoldman/flow,facebook/flow,nmote/flow,AprilArcus/flow,popham/flow,nmote/flow,ForbesLindesay/flow,jeffmo/flow,cesarandreu/flow,mroch/flow,facebook/flow,JonathanUsername/flow,claudiopro/flow,nmote/flow,mroch/flow,samwgoldman/flow,gabro/flow,shiftcars/flow,jeffmo/flow,jamesgpearce/flow,jeffmo/flow,d14b3l/flow,d14b3l/flow,ForbesLindesay/flow,graue/flow,gabro/flow,jgrund/flow,jgrund/flow,JonathanUsername/flow,JonathanUsername/flow,cesarandreu/flow,nmote/flow,popham/flow,JonathanUsername/flow,TiddoLangerak/flow,MichaelDeBoey/flow,popham/flow,fletcherw/flow,mroch/flow,jeffmo/flow,jeffmo/flow,gabelevi/flow,jeffmo/flow,popham/flow,ylu1317/flow,AprilArcus/flow,claudiopro/flow,d14b3l/flow,popham/flow,nmote/flow,jgrund/flow,MichaelDeBoey/flow,fletcherw/flow,d14b3l/flow,jgrund/flow,chenglou/flow,jdelStrother/flow,nmote/flow,facebook/flow,gabelevi/flow,fletcherw/flow,shiftcars/flow,jdelStrother/flow,jdelStrother/flow,AprilArcus/flow,jamesgpearce/flow,claudiopro/flow,chenglou/flow,shiftcars/flow,jamesgpearce/flow,TiddoLangerak/flow,facebook/flow,ForbesLindesay/flow,jdelStrother/flow,d14b3l/flow,gabelevi/flow,TiddoLangerak/flow,d14b3l/flow,JonathanUsername/flow,AprilArcus/flow,JonathanUsername/flow,chenglou/flow,AprilArcus/flow,popham/flow,AgentME/flow,graue/flow,shiftcars/flow,gabelevi/flow,AgentME/flow,samwgoldman/flow,jamesgpearce/flow,shiftcars/flow,TiddoLangerak/flow,samwgoldman/flow,jamesgpearce/flow,chenglou/flow,ylu1317/flow,mroch/flow,graue/flow,facebook/flow,cesarandreu/flow,ylu1317/flow,AgentME/flow,claudiopro/flow,gabro/flow,gabro/flow,gabro/flow,graue/flow,fletcherw/flow,gabro/flow,ForbesLindesay/flow,gabelevi/flow,gabelevi/flow