Skip to content

Commit 57183b8

Browse files
fix repeated tagged-to-i deopt
the comp_pivot variables were occasionally being used before being initialized. the tagged-to-i operation would bail because of NaN being introduced when they were used.
1 parent fae5d8d commit 57183b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/compile_sort.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ function createQuickSort(order, dtype, insertionSort) {
230230
"ptr0",
231231
"ptr1",
232232
"ptr2",
233-
"comp_pivot1",
234-
"comp_pivot2",
235-
"comp"
233+
"comp_pivot1=0",
234+
"comp_pivot2=0",
235+
"comp=0"
236236
]
237237

238238
if(order.length > 1) {

0 commit comments

Comments
 (0)