File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -1211,7 +1211,7 @@ namespace Js
1211
1211
/* allow one op of the modulus to be optimized - anyway */
1212
1212
if (divideTypeInfo[profileId].IsUninitialized ())
1213
1213
{
1214
- divideTypeInfo[profileId] = ValueType::GetInt (true );
1214
+ divideTypeInfo[profileId] = isModByPowerOf2 ? ValueType::GetInt (true ) : ValueType::Float ;
1215
1215
}
1216
1216
else
1217
1217
{
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
+ var protoObj1 = { } ;
6
+ var arrObj0 = { } ;
7
+ var uic8 = new Uint8ClampedArray ( 256 ) ;
8
+ var IntArr0 = [ ] ;
9
+ arrObj0 [ undefined ] = protoObj1 ;
10
+ arrObj0 . length = undefined ;
11
+ function v43 ( ) {
12
+ for ( var _strvar0 in uic8 ) {
13
+ for ( var _strvar0 in arrObj0 ) {
14
+ arrObj0 [ _strvar0 ] = 1 [ 1 ] ;
15
+ if ( ! arrObj0 [ 0 ] ) {
16
+ IntArr0 [ - 1 % 2147483647 >= 0 ? 1 : 0 ] = 1 ;
17
+ arrObj0 [ 0 ] = 1 ;
18
+ }
19
+ }
20
+ }
21
+ }
22
+ v43 ( ) ;
23
+ if ( IntArr0 [ 1 ] === undefined ) {
24
+ print ( "Passed" ) ;
25
+ }
Original file line number Diff line number Diff line change 1550
1550
<tags >exclude_dynapogo,exclude_nonative</tags >
1551
1551
</default >
1552
1552
</test >
1553
+ <test >
1554
+ <default >
1555
+ <files >rembug.js</files >
1556
+ <compile-flags >-maxinterpretcount:1 -maxsimplejitruncount:1 -loopinterpretcount:1 -oopjit- -bgjit-</compile-flags >
1557
+ </default >
1558
+ </test >
1553
1559
</regress-exe >
You can’t perform that action at this time.
0 commit comments