OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 pool type: string | 6 pool type: string |
7 execute: yes | 7 execute: yes |
8 wrap: no | 8 wrap: no |
9 test function name: f | 9 test function name: f |
10 | 10 |
11 --- | 11 --- |
12 snippet: " | 12 snippet: " |
13 function f(a) { return a.func(); } | 13 function f(a) { return a.func(); } |
14 f(new (function Obj() { this.func = function() { return; }})()) | 14 f(new (function Obj() { this.func = function() { return; }})()) |
15 " | 15 " |
16 frame size: 2 | 16 frame size: 2 |
17 parameter count: 2 | 17 parameter count: 2 |
18 bytecode array length: 17 | 18 bytecode array length: 16 |
19 bytecodes: [ | 19 bytecodes: [ |
20 /* 10 E> */ B(StackCheck), | 20 /* 10 E> */ B(StackCheck), |
21 /* 16 S> */ B(Ldar), R(arg0), | 21 /* 16 S> */ B(Ldar), R(arg0), |
22 B(Star), R(1), | 22 B(Star), R(1), |
23 /* 24 E> */ B(LoadIC), R(1), U8(0), U8(3), | 23 /* 24 E> */ B(LdrNamedProperty), R(1), U8(0), U8(3), R(0), |
24 B(Star), R(0), | |
25 /* 25 E> */ B(Call), R(0), R(1), U8(1), U8(1), | 24 /* 25 E> */ B(Call), R(0), R(1), U8(1), U8(1), |
26 /* 33 S> */ B(Return), | 25 /* 33 S> */ B(Return), |
27 ] | 26 ] |
28 constant pool: [ | 27 constant pool: [ |
29 "func", | 28 "func", |
30 ] | 29 ] |
31 handlers: [ | 30 handlers: [ |
32 ] | 31 ] |
33 | 32 |
34 --- | 33 --- |
35 snippet: " | 34 snippet: " |
36 function f(a, b, c) { return a.func(b, c); } | 35 function f(a, b, c) { return a.func(b, c); } |
37 f(new (function Obj() { this.func = function() { return; }})(), 1, 2) | 36 f(new (function Obj() { this.func = function() { return; }})(), 1, 2) |
38 " | 37 " |
39 frame size: 4 | 38 frame size: 4 |
40 parameter count: 4 | 39 parameter count: 4 |
41 bytecode array length: 25 | 40 bytecode array length: 24 |
42 bytecodes: [ | 41 bytecodes: [ |
43 /* 10 E> */ B(StackCheck), | 42 /* 10 E> */ B(StackCheck), |
44 /* 22 S> */ B(Ldar), R(arg0), | 43 /* 22 S> */ B(Ldar), R(arg0), |
45 B(Star), R(1), | 44 B(Star), R(1), |
46 /* 30 E> */ B(LoadIC), R(1), U8(0), U8(3), | 45 /* 30 E> */ B(LdrNamedProperty), R(1), U8(0), U8(3), R(0), |
47 B(Star), R(0), | |
48 /* 36 E> */ B(Ldar), R(arg1), | 46 /* 36 E> */ B(Ldar), R(arg1), |
49 B(Star), R(2), | 47 B(Star), R(2), |
50 /* 39 E> */ B(Ldar), R(arg2), | 48 /* 39 E> */ B(Ldar), R(arg2), |
51 B(Star), R(3), | 49 B(Star), R(3), |
52 /* 31 E> */ B(Call), R(0), R(1), U8(3), U8(1), | 50 /* 31 E> */ B(Call), R(0), R(1), U8(3), U8(1), |
53 /* 43 S> */ B(Return), | 51 /* 43 S> */ B(Return), |
54 ] | 52 ] |
55 constant pool: [ | 53 constant pool: [ |
56 "func", | 54 "func", |
57 ] | 55 ] |
58 handlers: [ | 56 handlers: [ |
59 ] | 57 ] |
60 | 58 |
61 --- | 59 --- |
62 snippet: " | 60 snippet: " |
63 function f(a, b) { return a.func(b + b, b); } | 61 function f(a, b) { return a.func(b + b, b); } |
64 f(new (function Obj() { this.func = function() { return; }})(), 1) | 62 f(new (function Obj() { this.func = function() { return; }})(), 1) |
65 " | 63 " |
66 frame size: 4 | 64 frame size: 4 |
67 parameter count: 3 | 65 parameter count: 3 |
68 bytecode array length: 31 | 66 bytecode array length: 30 |
69 bytecodes: [ | 67 bytecodes: [ |
70 /* 10 E> */ B(StackCheck), | 68 /* 10 E> */ B(StackCheck), |
71 /* 19 S> */ B(Ldar), R(arg0), | 69 /* 19 S> */ B(Ldar), R(arg0), |
72 B(Star), R(1), | 70 B(Star), R(1), |
73 /* 27 E> */ B(LoadIC), R(1), U8(0), U8(3), | 71 /* 27 E> */ B(LdrNamedProperty), R(1), U8(0), U8(3), R(0), |
74 B(Star), R(0), | |
75 /* 33 E> */ B(Ldar), R(arg1), | 72 /* 33 E> */ B(Ldar), R(arg1), |
76 B(Star), R(3), | 73 B(Star), R(3), |
77 /* 37 E> */ B(Ldar), R(arg1), | 74 /* 37 E> */ B(Ldar), R(arg1), |
78 B(Add), R(3), | 75 B(Add), R(3), |
79 B(Star), R(2), | 76 B(Star), R(2), |
80 /* 40 E> */ B(Ldar), R(arg1), | 77 /* 40 E> */ B(Ldar), R(arg1), |
81 B(Star), R(3), | 78 B(Star), R(3), |
82 /* 28 E> */ B(Call), R(0), R(1), U8(3), U8(1), | 79 /* 28 E> */ B(Call), R(0), R(1), U8(3), U8(1), |
83 /* 44 S> */ B(Return), | 80 /* 44 S> */ B(Return), |
84 ] | 81 ] |
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 B(Star), R(0), | 603 B(Star), R(0), |
607 /* 1143 E> */ B(LoadIC), R(0), U8(0), U8(251), | 604 /* 1143 E> */ B(LoadIC), R(0), U8(0), U8(251), |
608 /* 1151 S> */ B(Ldar), R(arg0), | 605 /* 1151 S> */ B(Ldar), R(arg0), |
609 B(Star), R(0), | 606 B(Star), R(0), |
610 /* 1152 E> */ B(LoadIC), R(0), U8(0), U8(253), | 607 /* 1152 E> */ B(LoadIC), R(0), U8(0), U8(253), |
611 /* 1160 S> */ B(Ldar), R(arg0), | 608 /* 1160 S> */ B(Ldar), R(arg0), |
612 B(Star), R(0), | 609 B(Star), R(0), |
613 /* 1161 E> */ B(LoadIC), R(0), U8(0), U8(255), | 610 /* 1161 E> */ B(LoadIC), R(0), U8(0), U8(255), |
614 /* 1169 S> */ B(Ldar), R(arg0), | 611 /* 1169 S> */ B(Ldar), R(arg0), |
615 B(Star), R(1), | 612 B(Star), R(1), |
616 /* 1177 E> */ B(Wide), B(LoadIC), R16(1), U16(0), U16(259), | 613 /* 1177 E> */ B(Wide), B(LdrNamedProperty), R16(1), U16(0), U16(259), R16(0), |
617 B(Star), R(0), | |
618 /* 1178 E> */ B(Wide), B(Call), R16(0), R16(1), U16(1), U16(257), | 614 /* 1178 E> */ B(Wide), B(Call), R16(0), R16(1), U16(1), U16(257), |
619 /* 1186 S> */ B(Return), | 615 /* 1186 S> */ B(Return), |
620 ] | 616 ] |
621 constant pool: [ | 617 constant pool: [ |
622 "func", | 618 "func", |
623 ] | 619 ] |
624 handlers: [ | 620 handlers: [ |
625 ] | 621 ] |
626 | 622 |
OLD | NEW |