Make Vector use a packed array for its buffer
commit67acbb81d842c861afe64b0bb8380c28f34fd99e
authorDrew Paroski <andrewparoski@fb.com>
Thu, 29 May 2014 02:27:29 +0000 (28 19:27 -0700)
committerJoelMarcey <joelm@fb.com>
Wed, 4 Jun 2014 00:37:12 +0000 (3 17:37 -0700)
tree278e99962468ad6ecc807572b5dcaa3a6013ebcf
parentd523e6cdee261e241cf374a7140a539829ac4647
Make Vector use a packed array for its buffer

Summary: This diff changes Vector to use a PackedArray for its buffer instead of
using its own custom buffers.

This diff is based on top of D1337469.

Reviewed By: @elgenie

Differential Revision: D1335725
15 files changed:
hphp/runtime/base/array-data.h
hphp/runtime/base/packed-array-defs.h
hphp/runtime/ext/asio/gen_vector_wait_handle.cpp
hphp/runtime/ext/ext_collections.cpp
hphp/runtime/ext/ext_collections.h
hphp/runtime/vm/jit/code-gen-arm.cpp
hphp/runtime/vm/jit/code-gen-x64.cpp
hphp/runtime/vm/jit/ir.h
hphp/runtime/vm/jit/minstr-translator.cpp
hphp/test/slow/collection_classes/capacity.php.expectf
hphp/test/slow/collection_classes/large-vector.php [new file with mode: 0644]
hphp/test/slow/collection_classes/large-vector.php.expect [new file with mode: 0644]
hphp/test/slow/collection_classes/reserve.php.expect
hphp/test/slow/collection_classes/toArray.php [new file with mode: 0644]
hphp/test/slow/collection_classes/toArray.php.expect [new file with mode: 0644]