Skip to content

Simplify private pointers

Philip Chimento requested to merge simplify-private-pointers into master

In several places we allocate a struct to put into a JSObject's private slot, and the struct only consists of one pointer. If we just put that pointer directly into the private slot, then we save 8 bytes per object as well as avoid allocating / freeing the extra struct. This can be done in param.cpp and all the Cairo types.

Merge request reports