PageRenderTime 16ms CodeModel.GetById 11ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/js/src/jit-test/tests/jaeger/bug625718-3.js

http://github.com/zpao/v8monkey
JavaScript | 52 lines | 50 code | 2 blank | 0 comment | 2 complexity | ddb36c8350a456ddbb9084fc0aeaf1f5 MD5 | raw file
 1var o0 = [];
 2var o1 = new String("foobarbaz");
 3var o2 = {};
 4var o3 = new String("foobarbaz");
 5var o4 = {};
 6var o5 = Math;
 7var o6 = {};
 8var o7 = new String("foobarbaz");
 9var o8 = new String("foobarbaz");
10var o9 = Math;
11var o10 = Math;
12var o11 = function() {};
13var o12 = {};
14var o13 = new String("foobarbaz");
15var o14 = {};
16
17function f1(o) { return o.length;};
18function f2(o) { o.g2 = function() {};};
19function f3(o) { return o.g10;};
20function f4(o) { o.g4 = function() {};};
21function f5(o) { return o == o14;};
22function f6(o) { o[3] = o;};
23function f7(o) { o[3] = undefined;};
24function f8(o) { o[3] = undefined;};
25function f9(o) { return o.length;};
26function f10(o) { return o.__proto__; };
27
28for(var i=0; i<20; i++) {
29    f9(o11);
30    f6(o0);
31    f2(o1);
32    f2(o6);
33    f7(o6);
34    f8(o11);
35    f2(o5);
36    f7(o9);
37    f7(o12);
38    f6(o4);
39    f5(o1);
40    f4(o1);
41    f8(o8);
42    f6(o5);
43    f2(o0);
44    f10(o7);
45    f3(o3);
46    f4(o1);
47    f9(o3);
48    f4(o11);
49    f4(o0);
50    f2(o4);
51    f4(o10);
52}