PageRenderTime 36ms CodeModel.GetById 33ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/js/src/jit-test/tests/jaeger/scriptedICs-1.js

http://github.com/zpao/v8monkey
JavaScript | 39 lines | 32 code | 6 blank | 1 comment | 3 complexity | dbe217b34a0bba2dd5ee56fc108bf1cd MD5 | raw file
 1T = 12;
 2
 3function arity2(q, w, r, t, y) {
 4    var Q1;
 5    var Q2;
 6    var Q3;
 7    var Q4;
 8    var Q5;
 9    var Q6;
10    var Q7;
11    var Q8;
12    var Q9;
13    T;
14    return arguments;
15}
16
17function arity(q, w, r) {
18    var Q1;
19    var Q2;
20    var Q3;
21    var Q4;
22    var Q5;
23    var Q6;
24    var Q7;
25    var Q8;
26    var Q9;
27    T;
28    return Q9;
29}
30
31for (var i = 0; i < 10; i++) {
32    arity();
33    if (i == 6)
34        arity = arity2;
35}
36
37/* Don't assert - stubs::CompileFunction must correct |regs.sp| */
38
39