Emit varrays for serialized attributes instead of arrays
commitb159dc68fa100c8aad7afa3b647c16e8d9a7cdc9
authorHunter Goldstein <hgoldstein@fb.com>
Wed, 19 Sep 2018 23:27:26 +0000 (19 16:27 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 19 Sep 2018 23:34:12 +0000 (19 16:34 -0700)
tree190c6c454bb517109f5a0562f980c53bb34cab6f
parent1967439072bdbe89fdf2b4c0f9226ce377a8597e
Emit varrays for serialized attributes instead of arrays

Summary: Attributes are currently stored as serialized arrays. Instead, because they are always vector like, store them as serialized varrays.

Reviewed By: jjgriego

Differential Revision: D9731153

fbshipit-source-id: fd2aee1a6f6272f8a032081e1dcfc15fc0049990
hphp/hack/src/hhbc/ast_constant_folder.ml
hphp/hack/src/hhbc/emit_adata.ml
hphp/hack/src/hhbc/emit_attribute.ml
hphp/hack/src/hhbc/emit_body.ml
hphp/runtime/ext/reflection/ext_reflection_hni.php
hphp/runtime/vm/as.cpp
hphp/runtime/vm/func-emitter.cpp
hphp/runtime/vm/preclass-emitter.cpp
hphp/test/slow/dv_array_hack_arr/ext_reflection/reflection_class.php.expect
hphp/test/slow/dv_array_hack_arr/ext_reflection/reflection_func.php.expect