auto and size_t in allocator slow paths
commit2c4c84b53ddbb78c8c310e7a1ec2ee837a3c16b7
authorEdwin Smith <smith@fb.com>
Tue, 31 Oct 2017 19:36:52 +0000 (31 12:36 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 31 Oct 2017 19:47:11 +0000 (31 12:47 -0700)
tree48461c4912bf8a4d7e68f453655460cb2bc9764d
parent9ffad392691944050a7a63aee8ef6e41683d48a5
auto and size_t in allocator slow paths

Summary:
This shaves a few instructions where we had to zero-extend,
and generally makes it easier to reason about the code without
worrying about 32-bit overflow. Any variable added to a pointer,
or used as an index, already needed to be zero extended anyway.

Reviewed By: alexeyt

Differential Revision: D6196990

fbshipit-source-id: 622e45d88917580fd8b9d5c07ef255abf6cdc54e
hphp/runtime/base/memory-manager.cpp
hphp/runtime/base/memory-manager.h