[Webkit-unassigned] [Bug 74708] Optimize access to block-scoped local variables
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 21 14:14:51 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=74708
--- Comment #3 from Andy Wingo <wingo at igalia.com> 2011-12-21 14:14:51 PST ---
(In reply to comment #2)
> In-band signaling is error-prone. It's not great that you had to add an explanatory comment to every call site.
>
> I'd prefer to see some refactoring here:
>
> (1) Rename findScopedProperty to resolve;
>
> (2) Change resolve to return an object, ResolveResult, describing what it found.
>
> (3) Add "I found a block-scoped variable" as a feature to ResolveResult.
>
> (4) Add optimizations to take advantage of (3).
Thanks for the review. I will work on a new patch that does this. Incidentally, V8's implementation of block-scoped lexicals drove a similar refactor within V8.
Andy
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list