WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
174935
[WTF] Introduce Private Symbols
https://bugs.webkit.org/show_bug.cgi?id=174935
Summary
[WTF] Introduce Private Symbols
Yusuke Suzuki
Reported
2017-07-28 03:07:27 PDT
Upcoming proposal of class fields[1] requires private fields. The easiest way to implement it is adding a property with specially marked symbols. Currently, we have private symbols, which is used for internal use cases, and managed in the hash table. But this proposal will encourage users to create such private symbols more and more. So, I think introducing notion of Private and Internal into WTF SymbolImpl is simpler. We do not need to look up value from private symbol hash table no longer. SymbolImpl knows that it is a private/internal/public symbol. [1]:
https://github.com/tc39/proposal-class-fields
Attachments
Patch
(28.09 KB, patch)
2017-07-28 08:41 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Patch
(31.63 KB, patch)
2017-07-28 09:43 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2017-07-28 03:08:25 PDT
(In reply to Yusuke Suzuki from
comment #0
)
> Upcoming proposal of class fields[1] requires private fields. > The easiest way to implement it is adding a property with specially marked > symbols. > Currently, we have private symbols, which is used for internal use cases, > and managed in the hash table. > But this proposal will encourage users to create such private symbols more > and more. > > So, I think introducing notion of Private and Internal into WTF SymbolImpl > is simpler. > We do not need to look up value from private symbol hash table no longer. > SymbolImpl knows that it is a private/internal/public symbol. > > [1]:
https://github.com/tc39/proposal-class-fields
Note that class field proposal is now stage 3.
Yusuke Suzuki
Comment 2
2017-07-28 08:41:22 PDT
Created
attachment 316640
[details]
Patch
Yusuke Suzuki
Comment 3
2017-07-28 09:43:29 PDT
Created
attachment 316645
[details]
Patch
WebKit Commit Bot
Comment 4
2017-07-30 21:57:19 PDT
Comment on
attachment 316645
[details]
Patch Clearing flags on attachment: 316645 Committed
r220053
: <
http://trac.webkit.org/changeset/220053
>
WebKit Commit Bot
Comment 5
2017-07-30 21:57:21 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6
2017-07-30 21:58:50 PDT
<
rdar://problem/33618567
>
Yusuke Suzuki
Comment 7
2017-08-10 17:03:06 PDT
***
Bug 167574
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug