Summary: | ScopedArguments overflow storage needs to be in the JSValue gigacage | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Filip Pizlo <fpizlo> | ||||
Component: | JavaScriptCore | Assignee: | Filip Pizlo <fpizlo> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | ggaren, jfbastien, keith_miller, mark.lam, msaboff, saam, webkit-bug-importer, ysuzuki | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Bug Depends on: | 174919 | ||||||
Bug Blocks: | 174917 | ||||||
Attachments: |
|
Description
Filip Pizlo
2017-07-27 19:46:22 PDT
Created attachment 317982 [details]
the patch
Comment on attachment 317982 [details]
the patch
r=me
Does polymorphic access also access scoped arguments for “length”?
(In reply to Saam Barati from comment #2) > Comment on attachment 317982 [details] > the patch > > r=me > Does polymorphic access also access scoped arguments for “length”? Yeah. Since that's not an indexed access, we don't have to do caging there. We could do it, but then we'd be wagging the dog. The objective here is to make indexed accesses never go outside of a cage. Therefore, we but the object being accessed into a cage. This does not mean that all non-indexed accesses to that object need caging. I don't think that the upside of doing that would be worth the perf. (In reply to Filip Pizlo from comment #3) > (In reply to Saam Barati from comment #2) > > Comment on attachment 317982 [details] > > the patch > > > > r=me > > Does polymorphic access also access scoped arguments for “length”? > > Yeah. Since that's not an indexed access, we don't have to do caging there. > We could do it, but then we'd be wagging the dog. > > The objective here is to make indexed accesses never go outside of a cage. > > Therefore, we but the object being accessed into a cage. > > This does not mean that all non-indexed accesses to that object need caging. > I don't think that the upside of doing that would be worth the perf. Makes sense. We had this conversation before in a different context, I just forgot :) |