| Commit-Queue | +1 |
WDYT, is this a good approach? This basically duplicates small bits of `lookup.cc`, which I'm not too happy about, but it does provide significant speedups, so perhaps the complexity is justifiable? I'm open to massaging / widening / restricting the fast path if you think that improves the situation.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// perspective it'd be fine to just bail out of the fast path; but theAn earlier local version of this patch did that, but making sure that we don't screw things up when bailing out was messy and brittle, so I've changed it to this now and I think that's simpler and more robust.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
lgtm with comments
// here, but that would have a significant performance cost, so for nowProbably not that big if we had `strict_function_with_NAME_AND_readonly_prototype_map` (it's just a two liner to add it).
if (fast_path) {I guess we should invalidate the prototype's validity cell at the end of all stores just in case someone already relies on it (on both throwing and non-throwing paths).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +1 |
Thanks for the review and the great comments! I've addressed them; and it turned out that including the bug fix we discussed offline in this CL was really easy; but updating the test lost the +1. PTAL.
// here, but that would have a significant performance cost, so for nowProbably not that big if we had `strict_function_with_NAME_AND_readonly_prototype_map` (it's just a two liner to add it).
Thanks for that idea! Added it to the comment in case we need it in the future.
I guess we should invalidate the prototype's validity cell at the end of all stores just in case someone already relies on it (on both throwing and non-throwing paths).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Commit-Queue | +2 |
lgtm
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[wasm-custom-desc] Fast path for installing methods
This patch adds a fast path for the common case of installing
non-conflicting methods on previously-empty prototype objects.
This saves about 10ms for 100K methods.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |