mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 04:39:07 -10:00
This is largely plumbing, and lots of it. The main complication is that function tables historically have had two representations: one optimized representation for tables that don't escape out of the instance, and one fatter representation for tables that do (and that must contain instance pointers). With multiple tables, we may table.copy from a function table with one representation to one with the other representation, in the limit this means changing the representation of the skinny table to be fat. However, at the time when we discover this, code may already have been generated that knows about the skinny representation, so we can't actually perform such a representation change. A somewhat reasonable solution to this is to just make all function tables fat - we're going to be changing things soonish anyway, when we make anyfunc / funcref a first-class type.