Eliminate ArrayData::Vsize
commit4b3b3e62d9e338b06fa8052a560c64688571b2fc
authorShaunak Kishore <kshaunak@fb.com>
Wed, 2 Sep 2020 20:06:30 +0000 (2 13:06 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 2 Sep 2020 20:09:06 +0000 (2 13:09 -0700)
tree850e08d4f107a63bb7bf7c74164fa3752348ada9
parent4fc9eb294ca1069c7ea274460de40d1b4ecf555f
Eliminate ArrayData::Vsize

Summary: All four of our array layouts now maintain the size in m_size. We can drop vsize() and getSize() and have everyone call size().

Differential Revision: D23468483

fbshipit-source-id: b34e8ab8b0210967fde2311cff7b76252a540d9e
20 files changed:
hphp/runtime/base/array-data-inl.h
hphp/runtime/base/array-data.cpp
hphp/runtime/base/array-data.h
hphp/runtime/base/bespoke-array.cpp
hphp/runtime/base/bespoke-array.h
hphp/runtime/base/bespoke/layout.h
hphp/runtime/base/bespoke/logging-array.cpp
hphp/runtime/base/bespoke/logging-array.h
hphp/runtime/base/bespoke/logging-profile.h
hphp/runtime/base/mixed-array.cpp
hphp/runtime/base/mixed-array.h
hphp/runtime/base/packed-array-defs.h
hphp/runtime/base/packed-array.cpp
hphp/runtime/base/packed-array.h
hphp/runtime/base/set-array.cpp
hphp/runtime/base/set-array.h
hphp/runtime/ext/async_mysql/ext_async_mysql.cpp
hphp/runtime/vm/iter.cpp
hphp/runtime/vm/jit/array-iter-profile.cpp
hphp/runtime/vm/jit/translator-runtime.cpp