OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 wrap: no | 6 wrap: no |
7 test function name: f | 7 test function name: f |
8 | 8 |
9 --- | 9 --- |
10 snippet: " | 10 snippet: " |
11 function f(a) { return a.func(); } | 11 function f(a) { return a.func(); } |
12 f(new (function Obj() { this.func = function() { return; }})()) | 12 f(new (function Obj() { this.func = function() { return; }})()) |
13 " | 13 " |
14 frame size: 1 | 14 frame size: 1 |
15 parameter count: 2 | 15 parameter count: 2 |
16 bytecode array length: 13 | 16 bytecode array length: 13 |
17 bytecodes: [ | 17 bytecodes: [ |
18 /* 10 E> */ B(StackCheck), | 18 /* 10 E> */ B(StackCheck), |
19 /* 16 S> */ B(Nop), | 19 /* 16 S> */ B(Nop), |
20 /* 24 E> */ B(LdrNamedProperty), R(arg0), U8(0), U8(4), R(0), | 20 /* 24 E> */ B(LdrNamedProperty), R(arg0), U8(0), U8(4), R(0), |
21 /* 25 E> */ B(Call), R(0), R(arg0), U8(1), U8(2), | 21 /* 25 E> */ B(CallProperty), R(0), R(arg0), U8(1), U8(2), |
22 /* 33 S> */ B(Return), | 22 /* 33 S> */ B(Return), |
23 ] | 23 ] |
24 constant pool: [ | 24 constant pool: [ |
25 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], | 25 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], |
26 ] | 26 ] |
27 handlers: [ | 27 handlers: [ |
28 ] | 28 ] |
29 | 29 |
30 --- | 30 --- |
31 snippet: " | 31 snippet: " |
32 function f(a, b, c) { return a.func(b, c); } | 32 function f(a, b, c) { return a.func(b, c); } |
33 f(new (function Obj() { this.func = function() { return; }})(), 1, 2) | 33 f(new (function Obj() { this.func = function() { return; }})(), 1, 2) |
34 " | 34 " |
35 frame size: 4 | 35 frame size: 4 |
36 parameter count: 4 | 36 parameter count: 4 |
37 bytecode array length: 24 | 37 bytecode array length: 24 |
38 bytecodes: [ | 38 bytecodes: [ |
39 /* 10 E> */ B(StackCheck), | 39 /* 10 E> */ B(StackCheck), |
40 /* 22 S> */ B(Nop), | 40 /* 22 S> */ B(Nop), |
41 /* 30 E> */ B(LdrNamedProperty), R(arg0), U8(0), U8(4), R(0), | 41 /* 30 E> */ B(LdrNamedProperty), R(arg0), U8(0), U8(4), R(0), |
42 B(Ldar), R(0), | 42 B(Ldar), R(0), |
43 B(Mov), R(arg0), R(1), | 43 B(Mov), R(arg0), R(1), |
44 B(Mov), R(arg1), R(2), | 44 B(Mov), R(arg1), R(2), |
45 B(Mov), R(arg2), R(3), | 45 B(Mov), R(arg2), R(3), |
46 /* 31 E> */ B(Call), R(0), R(1), U8(3), U8(2), | 46 /* 31 E> */ B(CallProperty), R(0), R(1), U8(3), U8(2), |
47 /* 43 S> */ B(Return), | 47 /* 43 S> */ B(Return), |
48 ] | 48 ] |
49 constant pool: [ | 49 constant pool: [ |
50 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], | 50 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], |
51 ] | 51 ] |
52 handlers: [ | 52 handlers: [ |
53 ] | 53 ] |
54 | 54 |
55 --- | 55 --- |
56 snippet: " | 56 snippet: " |
57 function f(a, b) { return a.func(b + b, b); } | 57 function f(a, b) { return a.func(b + b, b); } |
58 f(new (function Obj() { this.func = function() { return; }})(), 1) | 58 f(new (function Obj() { this.func = function() { return; }})(), 1) |
59 " | 59 " |
60 frame size: 4 | 60 frame size: 4 |
61 parameter count: 3 | 61 parameter count: 3 |
62 bytecode array length: 26 | 62 bytecode array length: 26 |
63 bytecodes: [ | 63 bytecodes: [ |
64 /* 10 E> */ B(StackCheck), | 64 /* 10 E> */ B(StackCheck), |
65 /* 19 S> */ B(Nop), | 65 /* 19 S> */ B(Nop), |
66 /* 27 E> */ B(LdrNamedProperty), R(arg0), U8(0), U8(4), R(0), | 66 /* 27 E> */ B(LdrNamedProperty), R(arg0), U8(0), U8(4), R(0), |
67 B(Ldar), R(arg1), | 67 B(Ldar), R(arg1), |
68 /* 37 E> */ B(Add), R(arg1), U8(6), | 68 /* 37 E> */ B(Add), R(arg1), U8(6), |
69 B(Star), R(2), | 69 B(Star), R(2), |
70 B(Mov), R(arg0), R(1), | 70 B(Mov), R(arg0), R(1), |
71 B(Mov), R(arg1), R(3), | 71 B(Mov), R(arg1), R(3), |
72 /* 28 E> */ B(Call), R(0), R(1), U8(3), U8(2), | 72 /* 28 E> */ B(CallProperty), R(0), R(1), U8(3), U8(2), |
73 /* 44 S> */ B(Return), | 73 /* 44 S> */ B(Return), |
74 ] | 74 ] |
75 constant pool: [ | 75 constant pool: [ |
76 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], | 76 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], |
77 ] | 77 ] |
78 handlers: [ | 78 handlers: [ |
79 ] | 79 ] |
80 | 80 |
81 --- | 81 --- |
82 snippet: " | 82 snippet: " |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 /* 1133 S> */ B(Nop), | 468 /* 1133 S> */ B(Nop), |
469 /* 1134 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(250), | 469 /* 1134 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(250), |
470 /* 1142 S> */ B(Nop), | 470 /* 1142 S> */ B(Nop), |
471 /* 1143 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(252), | 471 /* 1143 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(252), |
472 /* 1151 S> */ B(Nop), | 472 /* 1151 S> */ B(Nop), |
473 /* 1152 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(254), | 473 /* 1152 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(254), |
474 /* 1160 S> */ B(Nop), | 474 /* 1160 S> */ B(Nop), |
475 /* 1161 E> */ B(Wide), B(LdaNamedProperty), R16(arg0), U16(0), U16(256), | 475 /* 1161 E> */ B(Wide), B(LdaNamedProperty), R16(arg0), U16(0), U16(256), |
476 /* 1169 S> */ B(Nop), | 476 /* 1169 S> */ B(Nop), |
477 /* 1177 E> */ B(Wide), B(LdrNamedProperty), R16(arg0), U16(0), U16(260), R16(0
), | 477 /* 1177 E> */ B(Wide), B(LdrNamedProperty), R16(arg0), U16(0), U16(260), R16(0
), |
478 /* 1178 E> */ B(Wide), B(Call), R16(0), R16(arg0), U16(1), U16(258), | 478 /* 1178 E> */ B(Wide), B(CallProperty), R16(0), R16(arg0), U16(1), U16(258), |
479 /* 1186 S> */ B(Return), | 479 /* 1186 S> */ B(Return), |
480 ] | 480 ] |
481 constant pool: [ | 481 constant pool: [ |
482 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], | 482 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], |
483 ] | 483 ] |
484 handlers: [ | 484 handlers: [ |
485 ] | 485 ] |
486 | 486 |
OLD | NEW |