Add a dedicated VectorInit helper for vector-shaped arrays.
commit45ac3b1d99623f35ad26dc262c8c1f07e385a0fa
authorEdwin Smith <smith@fb.com>
Fri, 26 Jul 2013 23:28:45 +0000 (26 16:28 -0700)
committerSara Golemon <sgolemon@fb.com>
Mon, 5 Aug 2013 21:42:14 +0000 (5 14:42 -0700)
treeb188f17b0d3522233042dc4b5ffe23c60b4ae70e
parent838df510120c4e7928f29902dfe43efb400f6189
Add a dedicated VectorInit helper for vector-shaped arrays.

This replaces ArrayInit's vectorInit constructor.  When we
know we're making a vector-shaped array, there's no need to
internally use the general array api; ArrayInit provides the
api, internally we do what's fastest.

Differential Revision: D903252
16 files changed:
hphp/runtime/base/array_init.cpp
hphp/runtime/base/array_init.h
hphp/runtime/base/builtin_functions.cpp
hphp/runtime/base/complex_types.h
hphp/runtime/base/hphp_array.cpp
hphp/runtime/base/shared_map.cpp
hphp/runtime/base/shared_variant.cpp
hphp/runtime/base/shared_variant.h
hphp/runtime/base/type-array.cpp
hphp/runtime/base/type-string.h
hphp/runtime/debugger/cmd/cmd_config.cpp
hphp/runtime/debugger/cmd/cmd_eval.cpp
hphp/runtime/debugger/cmd/cmd_interrupt.cpp
hphp/runtime/debugger/cmd/cmd_print.cpp
hphp/runtime/ext/ext_collections.cpp
hphp/runtime/ext/ext_options.cpp