Repository navigation
Commit 7a76e97
committed
[JSC] Extract CheckArray from TypedArraySet
https://bugs.webkit.org/show_bug.cgi?id=327802
rdar://190197037
Reviewed by Sosuke Suzuki.
323823@main introduced TypedArraySet in DFG / FTL. It is using
CheckArray for base, but array type checking for source is done in
TypedArraySet. But that check is what CheckArray does.
CheckArray is having better support in the pipeline like type check
hoisting. So this patch extracts this checking part as CheckArray and
removing it from TypedArraySet.
* Source/JavaScriptCore/dfg/DFGAbstractInterpreterInlines.h:
(JSC::DFG::AbstractInterpreter<AbstractStateType>::executeEffects):
* Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::handleIntrinsicCall):
* Source/JavaScriptCore/dfg/DFGFixupPhase.cpp:
(JSC::DFG::FixupPhase::fixupNode):
* Source/JavaScriptCore/dfg/DFGSafeToExecute.h:
(JSC::DFG::safeToExecute):
* Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileTypedArraySet):
* Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileCompareStrictEq):
Canonical link: https://commits.webkit.org/324005@main1 parent bde098c commit 7a76e97
6 files changed
Lines changed: 7 additions & 10 deletions
File tree
- Source/JavaScriptCore
- dfg
- ftl
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5910 | 5910 | | |
5911 | 5911 | | |
5912 | 5912 | | |
5913 | | - | |
5914 | | - | |
5915 | | - | |
5916 | | - | |
| 5913 | + | |
5917 | 5914 | | |
5918 | | - | |
5919 | 5915 | | |
5920 | 5916 | | |
5921 | 5917 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3165 | 3165 | | |
3166 | 3166 | | |
3167 | 3167 | | |
| 3168 | + | |
3168 | 3169 | | |
3169 | 3170 | | |
3170 | 3171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3745 | 3745 | | |
3746 | 3746 | | |
3747 | 3747 | | |
3748 | | - | |
| 3748 | + | |
3749 | 3749 | | |
3750 | 3750 | | |
3751 | 3751 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | | - | |
463 | | - | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
464 | 466 | | |
465 | 467 | | |
466 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8325 | 8325 | | |
8326 | 8326 | | |
8327 | 8327 | | |
8328 | | - | |
8329 | 8328 | | |
8330 | 8329 | | |
8331 | 8330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22447 | 22447 | | |
22448 | 22448 | | |
22449 | 22449 | | |
22450 | | - | |
22451 | 22450 | | |
22452 | 22451 | | |
22453 | 22452 | | |
| |||
0 commit comments