-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathbug4587739.js
47 lines (43 loc) · 1.93 KB
/
bug4587739.js
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
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
//Arch: X86
//Flavor: chk
//reduced switches: -mic:1 -off:simplejit -off:memop
//noRepro switches1: -mic:1 -off:simplejit -off:memop -off:InterpreterProfile
//noRepro switches2: -mic:1 -off:simplejit -off:memop -off:DynamicProfile
//noRepro switches3: -mic:1 -off:simplejit -off:memop -off:EliminateArrayAccessHelperCall
//noRepro switches4: -mic:1 -off:simplejit -off:memop -off:JsArraySegmentHoist
//noRepro switches5: -mic:1 -off:simplejit -off:memop -off:ArraySegmentHoist
//noRepro switches6: -mic:1 -off:simplejit -off:memop -off:ArrayCheckHoist
//noRepro switches7: -mic:1 -off:simplejit -off:memop -off:AggressiveIntTypeSpec
//noRepro switches8: -mic:1 -off:simplejit -off:memop -off:TypeSpec
//noRepro switches9: -mic:1 -off:simplejit -off:memop -off:BoundCheckHoist
//noRepro switches10: -mic:1 -off:simplejit -off:memop -off:BoundCheckElimination
//noRepro switches11: -mic:1 -off:simplejit -off:memop -off:TrackRelativeIntBounds
//noRepro switches12: -mic:1 -off:simplejit -off:memop -off:PathDependentValues
var int = true;
function test() {
var start = int ? 1 : -5;
var end = start + 8;
for (var i = start; i < end; i++) {
a[i] = 3;
}
int = false;
}
var a = Array(10);
a.fill();
test();
test();
a[0];
print("PASSED");
// === Output ===
// command: ch.exe -mic:1 -off:simplejit -off:memop bug4587739.js
// exitcode: C0000420
// stdout:
//
// stderr:
// ASSERTION 14340: (lib\runtime\language\profilinghelpers.cpp, line 136) head->left == 0
// Failure: (head->left == 0)
// FATAL ERROR: ch.exe failed due to exception code c0000420