File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -20072,6 +20072,8 @@ void Lowerer::GenerateFastArrayIsIn(IR::Instr * instr)
20072
20072
20073
20073
if (
20074
20074
!src1->GetValueType().IsLikelyInt() ||
20075
+ // Do not do a fast path if we know for sure we don't have an int
20076
+ src1->IsNotInt() ||
20075
20077
!src2->GetValueType().IsLikelyArray() ||
20076
20078
!src2->GetValueType().HasNoMissingValues())
20077
20079
{
Original file line number Diff line number Diff line change
1
+ //-------------------------------------------------------------------------------------------------------
2
+ // Copyright (C) Microsoft. All rights reserved.
3
+ // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4
+ //-------------------------------------------------------------------------------------------------------
5
+
6
+ function test0 ( ) {
7
+ for ( var vnlgev in [ 1 . __parent__ = '' ] ) {
8
+ }
9
+ // Value too big to be a tagged int on 32 bit platforms
10
+ return 1518500249 in [ ] ;
11
+ }
12
+ // Trigger jit
13
+ for ( let i = 0 ; i < 1000 ; ++ i ) {
14
+ test0 ( ) ;
15
+ }
16
+
17
+ console . log ( "pass" ) ;
Original file line number Diff line number Diff line change 764
764
<files >constructor_fastpath.js</files >
765
765
</default >
766
766
</test >
767
+ <test >
768
+ <default >
769
+ <files >bug16717501.js</files >
770
+ </default >
771
+ </test >
767
772
</regress-exe >
You can’t perform that action at this time.
0 commit comments