Seems like virtualization is the way to go for JavaScript. Hypervisors such as XEN in HVM mode with modern processors don’t result in a large performance penalty, so I imagine Chrome will gravitate towards it for running untrusted code.
That seems feasible without significant performance loss in most cases.
There is still a fingerprinting issue though that might not be possible to fully remove without huge performance cost.