by Spivak · 6y ago · 0 comments
Also, the charecteristics of your test suite may be very different than how it is run in production.
So you’d need a heap snapshot or some way to link the generated code to a different heap.
Maybe not impossible, just hard enough that it’s not widespread.
EDIT: worth noting that other JS VMs like JSC have these APIs for bytecode too, but i can’t remember off hand whether they can do generated code too.
Still not impossible but I want to be clear on what exactly makes this hard. CPU model for example is not what makes it hard.
I assume this isn't literally using hardware watchpoints?