Summary: | [ES6] Arrow function. Some not used byte code is emited | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | GSkachkov <gskachkov> | ||||||
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | commit-queue, keith_miller, mark.lam, msaboff, saam | ||||||
Priority: | P2 | ||||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 140855 | ||||||||
Attachments: |
|
Description
GSkachkov
2016-02-24 04:10:51 PST
Also TDZ is emited for 'this' in arrow function that is invoked in class method Created attachment 272552 [details]
Patch
Patch comming
(In reply to comment #1) > Also TDZ is emited for 'this' in arrow function that is invoked in class > method I've checked and seems that this TDZ is not related to the arrow function. It always add when we're accessing to the 'superProperty' Created attachment 272579 [details]
Patch
Fix typo
Comment on attachment 272579 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=272579&action=review > Source/JavaScriptCore/ChangeLog:13 > + 1.create_lexical_environment not emited always for arrow function, only if some of > + features(this/super/arguments/eval) is used inside of the arrow function. > + 2.load 'this' from arrow function scope in constructor is done only if super > + contains in arrow function Nice! Comment on attachment 272579 [details] Patch Clearing flags on attachment: 272579 Committed r197410: <http://trac.webkit.org/changeset/197410> All reviewed patches have been landed. Closing bug. |