Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
103 lines (93 loc) · 3.1 KB

File metadata and controls

103 lines (93 loc) · 3.1 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
var shouldBailout = false;
var GiantPrintArray = [];
var reuseObjects = false;
var PolymorphicFuncObjArr = [];
var PolyFuncArr = [];
function GetPolymorphicFunction() {
if (PolyFuncArr.length > 1) {
var myFunc = PolyFuncArr.shift();
PolyFuncArr.push(myFunc);
return myFunc;
}
else {
return PolyFuncArr[0];
}
}
function GetObjectwithPolymorphicFunction() {
if (reuseObjects) {
if (PolymorphicFuncObjArr.length > 1) {
var myFunc = PolymorphicFuncObjArr.shift();
PolymorphicFuncObjArr.push(myFunc);
return myFunc
}
else {
return PolymorphicFuncObjArr[0];
}
}
else {
var obj = {};
obj.polyfunc = GetPolymorphicFunction();
PolymorphicFuncObjArr.push(obj)
return obj
}
};
function InitPolymorphicFunctionArray(args) {
PolyFuncArr = [];
for (var i = 0; i < args.length; i++) {
PolyFuncArr.push(args[i])
}
}
;
function test0() {
var obj0 = {};
var arrObj0 = {};
var ary = new Array(10);
var FloatArr0 = 1;
var h = 1;
var __loopvar0 = 0;
do {
__loopvar0++;
// Snippet: Array Check hoist for nested loop where bailout happens before 2nd loop.
var v4916 = 0;
arrObj0[5] = "temp";
for (var v4917 = 0 ; v4917 < 3 ; v4917++) {
for (var v4918 = 0 ; v4918 < 3 ; v4918++) {
v4916 += arrObj0[v4918 + v4917];
}
if (shouldBailout) {
Object.defineProperty(arrObj0, "5", { get: function () { GiantPrintArray.push("getter"); return 5; }, configurable: true });
}
for (var v4919 = 0 ; v4919 < 3 ; v4919++) {
v4916 += arrObj0[v4919 + v4917];
}
1
}
GiantPrintArray.push(v4916);
var __loopvar3 = 0;
do {
__loopvar3++;
litObj4 = { prop0: 1, prop1: (ary.shift()), prop2: (ary.pop()), prop3: 1, prop4: 1, prop5: 1, prop6: 1, prop7: 1 };
var uniqobj2 = { prop0: (ary[((shouldBailout ? (ary[1] = 'x') : undefined), 1)], 1, 1, 1), prop1: 1 };
} while ((1) && __loopvar3 < 3)
arrObj0 = Object.prototype;
var id29 = (ary.push((h ^= -4.00753612819473E+18), FloatArr0[(((174 >= 0 ? 174 : 0)) & 0XF)], obj0.prop2))
;
} while ((1) && __loopvar0 < 3)
for (var i = 0; i < GiantPrintArray.length; i++) {
WScript.Echo(GiantPrintArray[i]);
};
};
// generate profile
test0();
// Run Simple JIT
test0();
// run JITted code
runningJITtedCode = true;
test0();
// run code with bailouts enabled
shouldBailout = true;
test0();
Morty Proxy This is a proxified and sanitized view of the page, visit original site.