Track sizeof(Type) and friends
commit21099645e050333a1a3a333f58da65f86da7dfc5
authorShaunak Kishore <kshaunak@fb.com>
Sun, 14 Jun 2020 16:18:07 +0000 (14 09:18 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Sun, 14 Jun 2020 16:20:29 +0000 (14 09:20 -0700)
treedb863cd63ab76daeb6721bfc655a904aa4aa8121
parent8eb12fb0fb6666e8849c8ef0089154ebcdcf8a47
Track sizeof(Type) and friends

Summary:
I'm going to land a stack of diffs to cut the size of HHBBC's Type by 3x, from 48 bytes to 16 bytes. My guess is that this will cut HHBBC memory usage by double-digit percentages, since Type is so fundamental. Will try out full repo builds with the stack to confirm.

In this first diff, we simply add static assertions to track the sizes of Type and some of its components.

Reviewed By: ricklavoie

Differential Revision: D22036132

fbshipit-source-id: 5259d41d33f1a2051e6337762c1a4c0ed5e86dcb
hphp/hhbbc/type-system.cpp