Repository navigation
Commit b51df8f
committed
[JSC] Ensure PolymorphicCallNode is unlinked when it is detached from CallLinkInfo
https://bugs.webkit.org/show_bug.cgi?id=294469
rdar://153330169
Reviewed by Yijia Huang and Keith Miller.
Let's ensure that PolymorphicCallNode is unlinked when it is detached
from owner CallLinkInfo eagerly before it gets destroyed.
* Source/JavaScriptCore/bytecode/CallLinkInfo.cpp:
(JSC::CallLinkInfo::clearStub):
* Source/JavaScriptCore/jit/PolymorphicCallStubRoutine.cpp:
(JSC::PolymorphicCallNode::unlinkForcefully):
(JSC::PolymorphicCallStubRoutine::unlinkForcefully):
(JSC::PolymorphicCallNode::clear): Deleted.
(JSC::PolymorphicCallStubRoutine::clearCallNodesFor): Deleted.
* Source/JavaScriptCore/jit/PolymorphicCallStubRoutine.h:
Canonical link: https://commits.webkit.org/296216@main1 parent 66f5068 commit b51df8f
3 files changed
Lines changed: 8 additions & 6 deletions
File tree
- Source/JavaScriptCore
- bytecode
- jit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
153 | | - | |
| 155 | + | |
154 | 156 | | |
155 | 157 | | |
156 | | - | |
| 158 | + | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
0 commit comments