Repository navigation
Commit be58304
committed
[JSC]
https://bugs.webkit.org/show_bug.cgi?id=328788
Reviewed by Yusuke Suzuki.
`Identifier::add` and `add8` dereference the temporary RefPtr returned by
`AtomStringImpl::add` and build a Ref from the reference, which costs one extra
atomic ref and deref per call. Use `releaseNonNull()` instead.
* Source/JavaScriptCore/runtime/Identifier.cpp:
(JSC::Identifier::add8):
* Source/JavaScriptCore/runtime/IdentifierInlines.h:
(JSC::Identifier::add):
Canonical link: https://commits.webkit.org/324790@mainIdentifier::add should not ref and deref the returned AtomStringImpl
1 parent 969d069 commit be58304
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments