Repository navigation
Commit f0f45f1
committed
[JSC]
https://bugs.webkit.org/post_bug.cgi
Reviewed by Yusuke Suzuki.
When the offset is not Int32 in the graph (e.g. a value loaded from a
Float64Array, or a constant undefined), Int32Use on TypedArraySet exits
unconditionally with Uncountable. The same happens for CellUse when the
source is proven not to be a cell. The parser did not check this exit kind,
so every recompilation picked the intrinsic again and kept exiting.
This patch checks Uncountable exit sites too, as CharCodeAt does.
Test: JSTests/stress/typed-array-set-intrinsic-non-int32-argument.js
* JSTests/stress/typed-array-set-intrinsic-non-int32-argument.js: Added.
(shouldBe):
(makeSet.const.set new):
(makeSet):
* Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::handleIntrinsicCall):
Canonical link: https://commits.webkit.org/323905@mainTypedArraySet intrinsic should not be used again after an Uncountable exit1 parent 1411a8e commit f0f45f1
2 files changed
Lines changed: 53 additions & 0 deletions
File tree
- JSTests/stress
- Source/JavaScriptCore/dfg
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3150 | 3150 | | |
3151 | 3151 | | |
3152 | 3152 | | |
| 3153 | + | |
3153 | 3154 | | |
3154 | 3155 | | |
3155 | 3156 | | |
| |||
0 commit comments