Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate a monomorphic version .createReadOnly for each class model
The VScode Deopt explorer showed that `.createReadOnly` inside the class model `register` function was getting deoptimized because it closes over too-wide a variety of `klass` variable references. We're closing over it so it is correct, but to v8, the callsite is still the same I guess, so it has to deoptimize to pull the right value for the closure! Removing this deoptimization added about 10% to the large root benchmark for me!
- Loading branch information