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]); |
11 " | 11 " |
12 frame size: 3 | 12 frame size: 3 |
13 parameter count: 1 | 13 parameter count: 1 |
14 bytecode array length: 24 | 14 bytecode array length: 24 |
15 bytecodes: [ | 15 bytecodes: [ |
16 /* 30 E> */ B(StackCheck), | 16 /* 30 E> */ B(StackCheck), |
17 /* 34 S> */ B(LdaGlobal), U8(0), U8(4), | 17 /* 34 S> */ B(LdaGlobal), U8(0), U8(4), |
18 B(Star), R(1), | 18 B(Star), R(1), |
19 /* 38 E> */ B(LdaNamedProperty), R(1), U8(1), U8(6), | 19 /* 38 E> */ B(LdaNamedProperty), R(1), U8(1), U8(6), |
20 B(Star), R(0), | 20 B(Star), R(0), |
21 B(CreateArrayLiteral), U8(2), U8(8), U8(9), | 21 B(CreateArrayLiteral), U8(2), U8(8), U8(9), |
22 B(Star), R(2), | 22 B(Star), R(2), |
23 /* 39 E> */ B(CallWithSpread), R(0), R(1), U8(2), | 23 /* 39 E> */ B(CallWithSpread), R(0), R(1), U8(2), |
24 B(LdaUndefined), | 24 B(LdaUndefined), |
25 /* 58 S> */ B(Return), | 25 /* 58 S> */ B(Return), |
26 ] | 26 ] |
27 constant pool: [ | 27 constant pool: [ |
28 ONE_BYTE_INTERNALIZED_STRING_TYPE ["Math"], | 28 ONE_BYTE_INTERNALIZED_STRING_TYPE ["Math"], |
29 ONE_BYTE_INTERNALIZED_STRING_TYPE ["max"], | 29 ONE_BYTE_INTERNALIZED_STRING_TYPE ["max"], |
30 CONSTANT_ELEMENTS_PAIR_TYPE, | 30 TUPLE2_TYPE, |
31 ] | 31 ] |
32 handlers: [ | 32 handlers: [ |
33 ] | 33 ] |
34 | 34 |
35 --- | 35 --- |
36 snippet: " | 36 snippet: " |
37 Math.max(0, ...[1, 2, 3]); | 37 Math.max(0, ...[1, 2, 3]); |
38 " | 38 " |
39 frame size: 4 | 39 frame size: 4 |
40 parameter count: 1 | 40 parameter count: 1 |
41 bytecode array length: 27 | 41 bytecode array length: 27 |
42 bytecodes: [ | 42 bytecodes: [ |
43 /* 30 E> */ B(StackCheck), | 43 /* 30 E> */ B(StackCheck), |
44 /* 34 S> */ B(LdaGlobal), U8(0), U8(4), | 44 /* 34 S> */ B(LdaGlobal), U8(0), U8(4), |
45 B(Star), R(1), | 45 B(Star), R(1), |
46 /* 38 E> */ B(LdaNamedProperty), R(1), U8(1), U8(6), | 46 /* 38 E> */ B(LdaNamedProperty), R(1), U8(1), U8(6), |
47 B(Star), R(0), | 47 B(Star), R(0), |
48 B(LdaZero), | 48 B(LdaZero), |
49 B(Star), R(2), | 49 B(Star), R(2), |
50 B(CreateArrayLiteral), U8(2), U8(8), U8(9), | 50 B(CreateArrayLiteral), U8(2), U8(8), U8(9), |
51 B(Star), R(3), | 51 B(Star), R(3), |
52 /* 39 E> */ B(CallWithSpread), R(0), R(1), U8(3), | 52 /* 39 E> */ B(CallWithSpread), R(0), R(1), U8(3), |
53 B(LdaUndefined), | 53 B(LdaUndefined), |
54 /* 61 S> */ B(Return), | 54 /* 61 S> */ B(Return), |
55 ] | 55 ] |
56 constant pool: [ | 56 constant pool: [ |
57 ONE_BYTE_INTERNALIZED_STRING_TYPE ["Math"], | 57 ONE_BYTE_INTERNALIZED_STRING_TYPE ["Math"], |
58 ONE_BYTE_INTERNALIZED_STRING_TYPE ["max"], | 58 ONE_BYTE_INTERNALIZED_STRING_TYPE ["max"], |
59 CONSTANT_ELEMENTS_PAIR_TYPE, | 59 TUPLE2_TYPE, |
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 |
(...skipping 21 matching lines...) Expand all Loading... |
91 B(CallJSRuntime), U8(%spread_arguments), R(4), U8(4), | 91 B(CallJSRuntime), U8(%spread_arguments), R(4), U8(4), |
92 B(Star), R(4), | 92 B(Star), R(4), |
93 B(Mov), R(0), R(3), | 93 B(Mov), R(0), R(3), |
94 B(CallJSRuntime), U8(%reflect_apply), R(1), U8(4), | 94 B(CallJSRuntime), U8(%reflect_apply), R(1), U8(4), |
95 B(LdaUndefined), | 95 B(LdaUndefined), |
96 /* 64 S> */ B(Return), | 96 /* 64 S> */ B(Return), |
97 ] | 97 ] |
98 constant pool: [ | 98 constant pool: [ |
99 ONE_BYTE_INTERNALIZED_STRING_TYPE ["Math"], | 99 ONE_BYTE_INTERNALIZED_STRING_TYPE ["Math"], |
100 ONE_BYTE_INTERNALIZED_STRING_TYPE ["max"], | 100 ONE_BYTE_INTERNALIZED_STRING_TYPE ["max"], |
101 CONSTANT_ELEMENTS_PAIR_TYPE, | 101 TUPLE2_TYPE, |
102 CONSTANT_ELEMENTS_PAIR_TYPE, | 102 TUPLE2_TYPE, |
103 CONSTANT_ELEMENTS_PAIR_TYPE, | 103 TUPLE2_TYPE, |
104 ] | 104 ] |
105 handlers: [ | 105 handlers: [ |
106 ] | 106 ] |
107 | 107 |
OLD | NEW |