Two more instances making erase faster.
commit075f4e57d8f89121924e221310e23cea4f6a8c2a
authorEdwin Smith <smith@fb.com>
Fri, 23 May 2014 20:12:18 +0000 (23 13:12 -0700)
committerJoelMarcey <joelm@fb.com>
Wed, 28 May 2014 19:22:21 +0000 (28 12:22 -0700)
tree75adcdd7ef5d569dc5cdd601126d7e363e4a628e
parentb0d553fc18eb724e1d431a422c8979c5e6ac48f1
Two more instances making erase faster.

Summary: Its faster to copy the last element down than to shift
all the elements, since active and inactive are unordered.
Factored out an erase() helper to do it.

Reviewed By: @ottoni

Differential Revision: D1347033
hphp/runtime/vm/jit/xls.cpp