OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 wrap: yes | 6 wrap: yes |
7 | 7 |
8 --- | 8 --- |
9 snippet: " | 9 snippet: " |
10 Math.max(...[1, 2, 3]); | 10 Math.max(...[1, 2, 3]); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 ] | 60 ] |
61 handlers: [ | 61 handlers: [ |
62 ] | 62 ] |
63 | 63 |
64 --- | 64 --- |
65 snippet: " | 65 snippet: " |
66 Math.max(0, ...[1, 2, 3], 4); | 66 Math.max(0, ...[1, 2, 3], 4); |
67 " | 67 " |
68 frame size: 8 | 68 frame size: 8 |
69 parameter count: 1 | 69 parameter count: 1 |
70 bytecode array length: 60 | 70 bytecode array length: 64 |
71 bytecodes: [ | 71 bytecodes: [ |
72 /* 30 E> */ B(StackCheck), | 72 /* 30 E> */ B(StackCheck), |
73 /* 34 S> */ B(LdaUndefined), | 73 /* 34 S> */ B(LdaUndefined), |
74 B(Star), R(1), | 74 B(Star), R(1), |
75 /* 34 E> */ B(LdaGlobal), U8(0), U8(2), | 75 B(LdaConstant), U8(0), |
| 76 B(Star), R(2), |
| 77 /* 34 E> */ B(LdaGlobal), U8(1), U8(2), |
76 B(Star), R(0), | 78 B(Star), R(0), |
77 B(LdaNamedProperty), R(0), U8(1), U8(4), | 79 B(LdaNamedProperty), R(0), U8(2), U8(6), |
78 B(Star), R(2), | 80 B(Star), R(2), |
79 B(LdaUndefined), | 81 B(LdaUndefined), |
80 B(Star), R(4), | 82 B(Star), R(4), |
81 B(CreateArrayLiteral), U8(2), U8(6), U8(9), | 83 B(CreateArrayLiteral), U8(3), U8(8), U8(9), |
82 B(Star), R(5), | 84 B(Star), R(5), |
83 B(LdaUndefined), | 85 B(LdaUndefined), |
84 B(Star), R(6), | 86 B(Star), R(6), |
85 B(CreateArrayLiteral), U8(3), U8(7), U8(9), | 87 B(CreateArrayLiteral), U8(4), U8(9), U8(9), |
86 B(Star), R(7), | 88 B(Star), R(7), |
87 B(CallJSRuntime), U8(%spread_iterable), R(6), U8(2), | 89 B(CallJSRuntime), U8(%spread_iterable), R(6), U8(2), |
88 B(Star), R(6), | 90 B(Star), R(6), |
89 B(CreateArrayLiteral), U8(4), U8(8), U8(9), | 91 B(CreateArrayLiteral), U8(5), U8(10), U8(9), |
90 B(Star), R(7), | 92 B(Star), R(7), |
91 B(CallJSRuntime), U8(%spread_arguments), R(4), U8(4), | 93 B(CallJSRuntime), U8(%spread_arguments), R(4), U8(4), |
92 B(Star), R(4), | 94 B(Star), R(4), |
93 B(Mov), R(0), R(3), | 95 B(Mov), R(0), R(3), |
94 B(CallJSRuntime), U8(%reflect_apply), R(1), U8(4), | 96 B(CallJSRuntime), U8(%reflect_apply), R(1), U8(4), |
95 B(LdaUndefined), | 97 B(LdaUndefined), |
96 /* 64 S> */ B(Return), | 98 /* 64 S> */ B(Return), |
97 ] | 99 ] |
98 constant pool: [ | 100 constant pool: [ |
| 101 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
99 ONE_BYTE_INTERNALIZED_STRING_TYPE ["Math"], | 102 ONE_BYTE_INTERNALIZED_STRING_TYPE ["Math"], |
100 ONE_BYTE_INTERNALIZED_STRING_TYPE ["max"], | 103 ONE_BYTE_INTERNALIZED_STRING_TYPE ["max"], |
101 CONSTANT_ELEMENTS_PAIR_TYPE, | 104 CONSTANT_ELEMENTS_PAIR_TYPE, |
102 CONSTANT_ELEMENTS_PAIR_TYPE, | 105 CONSTANT_ELEMENTS_PAIR_TYPE, |
103 CONSTANT_ELEMENTS_PAIR_TYPE, | 106 CONSTANT_ELEMENTS_PAIR_TYPE, |
104 ] | 107 ] |
105 handlers: [ | 108 handlers: [ |
106 ] | 109 ] |
107 | 110 |
OLD | NEW |