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 class A { constructor(...args) { this.args = args; } } | 10 class A { constructor(...args) { this.args = args; } } |
11 new A(...[1, 2, 3]); | 11 new A(...[1, 2, 3]); |
12 " | 12 " |
13 frame size: 8 | 13 frame size: 10 |
14 parameter count: 1 | 14 parameter count: 1 |
15 bytecode array length: 64 | 15 bytecode array length: 72 |
16 bytecodes: [ | 16 bytecodes: [ |
17 B(LdaTheHole), | 17 B(LdaTheHole), |
18 B(Star), R(2), | 18 B(Star), R(2), |
19 /* 30 E> */ B(StackCheck), | 19 /* 30 E> */ B(StackCheck), |
| 20 B(LdaConstant), U8(0), |
| 21 B(Star), R(3), |
20 B(LdaTheHole), | 22 B(LdaTheHole), |
21 B(Star), R(0), | 23 B(Star), R(0), |
22 /* 34 S> */ B(CreateClosure), U8(0), U8(2), U8(2), | 24 /* 34 S> */ B(LdaConstant), U8(1), |
23 B(Star), R(3), | 25 B(Star), R(4), |
| 26 B(CreateClosure), U8(2), U8(2), U8(2), |
| 27 B(Star), R(5), |
24 B(LdaTheHole), | 28 B(LdaTheHole), |
25 B(Star), R(4), | 29 B(Star), R(6), |
26 B(LdaSmi), I8(34), | 30 B(LdaSmi), I8(34), |
| 31 B(Star), R(8), |
| 32 B(LdaSmi), I8(88), |
| 33 B(Star), R(9), |
| 34 B(Mov), R(5), R(7), |
| 35 B(CallRuntime), U16(Runtime::kDefineClass), R(6), U8(4), |
27 B(Star), R(6), | 36 B(Star), R(6), |
28 B(LdaSmi), I8(88), | 37 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(5), U
8(1), |
29 B(Star), R(7), | 38 B(CallRuntime), U16(Runtime::kToFastProperties), R(5), U8(1), |
30 B(Mov), R(3), R(5), | |
31 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), | |
32 B(Star), R(4), | |
33 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U
8(1), | |
34 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), | |
35 B(Star), R(0), | 39 B(Star), R(0), |
36 B(Star), R(1), | 40 B(Star), R(1), |
37 B(Star), R(2), | 41 B(Star), R(2), |
38 /* 89 S> */ B(CreateArrayLiteral), U8(1), U8(5), U8(9), | 42 /* 89 S> */ B(CreateArrayLiteral), U8(3), U8(9), U8(9), |
39 B(Star), R(4), | 43 B(Star), R(4), |
40 B(Ldar), R(2), | 44 B(Ldar), R(2), |
41 /* 89 E> */ B(ConstructWithSpread), R(2), R(4), U8(1), | 45 /* 89 E> */ B(ConstructWithSpread), R(2), R(4), U8(1), |
42 B(LdaUndefined), | 46 B(LdaUndefined), |
43 /* 110 S> */ B(Return), | 47 /* 110 S> */ B(Return), |
44 ] | 48 ] |
45 constant pool: [ | 49 constant pool: [ |
| 50 ONE_BYTE_INTERNALIZED_STRING_TYPE ["A"], |
| 51 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
46 SHARED_FUNCTION_INFO_TYPE, | 52 SHARED_FUNCTION_INFO_TYPE, |
47 CONSTANT_ELEMENTS_PAIR_TYPE, | 53 CONSTANT_ELEMENTS_PAIR_TYPE, |
48 ] | 54 ] |
49 handlers: [ | 55 handlers: [ |
50 ] | 56 ] |
51 | 57 |
52 --- | 58 --- |
53 snippet: " | 59 snippet: " |
54 class A { constructor(...args) { this.args = args; } } | 60 class A { constructor(...args) { this.args = args; } } |
55 new A(0, ...[1, 2, 3]); | 61 new A(0, ...[1, 2, 3]); |
56 " | 62 " |
57 frame size: 8 | 63 frame size: 10 |
58 parameter count: 1 | 64 parameter count: 1 |
59 bytecode array length: 67 | 65 bytecode array length: 75 |
60 bytecodes: [ | 66 bytecodes: [ |
61 B(LdaTheHole), | 67 B(LdaTheHole), |
62 B(Star), R(2), | 68 B(Star), R(2), |
63 /* 30 E> */ B(StackCheck), | 69 /* 30 E> */ B(StackCheck), |
| 70 B(LdaConstant), U8(0), |
| 71 B(Star), R(3), |
64 B(LdaTheHole), | 72 B(LdaTheHole), |
65 B(Star), R(0), | 73 B(Star), R(0), |
66 /* 34 S> */ B(CreateClosure), U8(0), U8(2), U8(2), | 74 /* 34 S> */ B(LdaConstant), U8(1), |
67 B(Star), R(3), | 75 B(Star), R(4), |
| 76 B(CreateClosure), U8(2), U8(2), U8(2), |
| 77 B(Star), R(5), |
68 B(LdaTheHole), | 78 B(LdaTheHole), |
69 B(Star), R(4), | 79 B(Star), R(6), |
70 B(LdaSmi), I8(34), | 80 B(LdaSmi), I8(34), |
| 81 B(Star), R(8), |
| 82 B(LdaSmi), I8(88), |
| 83 B(Star), R(9), |
| 84 B(Mov), R(5), R(7), |
| 85 B(CallRuntime), U16(Runtime::kDefineClass), R(6), U8(4), |
71 B(Star), R(6), | 86 B(Star), R(6), |
72 B(LdaSmi), I8(88), | 87 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(5), U
8(1), |
73 B(Star), R(7), | 88 B(CallRuntime), U16(Runtime::kToFastProperties), R(5), U8(1), |
74 B(Mov), R(3), R(5), | |
75 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), | |
76 B(Star), R(4), | |
77 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U
8(1), | |
78 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), | |
79 B(Star), R(0), | 89 B(Star), R(0), |
80 B(Star), R(1), | 90 B(Star), R(1), |
81 B(Star), R(2), | 91 B(Star), R(2), |
82 /* 89 S> */ B(LdaZero), | 92 /* 89 S> */ B(LdaZero), |
83 B(Star), R(4), | 93 B(Star), R(4), |
84 B(CreateArrayLiteral), U8(1), U8(5), U8(9), | 94 B(CreateArrayLiteral), U8(3), U8(9), U8(9), |
85 B(Star), R(5), | 95 B(Star), R(5), |
86 B(Ldar), R(2), | 96 B(Ldar), R(2), |
87 /* 89 E> */ B(ConstructWithSpread), R(2), R(4), U8(2), | 97 /* 89 E> */ B(ConstructWithSpread), R(2), R(4), U8(2), |
88 B(LdaUndefined), | 98 B(LdaUndefined), |
89 /* 113 S> */ B(Return), | 99 /* 113 S> */ B(Return), |
90 ] | 100 ] |
91 constant pool: [ | 101 constant pool: [ |
| 102 ONE_BYTE_INTERNALIZED_STRING_TYPE ["A"], |
| 103 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
92 SHARED_FUNCTION_INFO_TYPE, | 104 SHARED_FUNCTION_INFO_TYPE, |
93 CONSTANT_ELEMENTS_PAIR_TYPE, | 105 CONSTANT_ELEMENTS_PAIR_TYPE, |
94 ] | 106 ] |
95 handlers: [ | 107 handlers: [ |
96 ] | 108 ] |
97 | 109 |
98 --- | 110 --- |
99 snippet: " | 111 snippet: " |
100 class A { constructor(...args) { this.args = args; } } | 112 class A { constructor(...args) { this.args = args; } } |
101 new A(0, ...[1, 2, 3], 4); | 113 new A(0, ...[1, 2, 3], 4); |
102 " | 114 " |
103 frame size: 9 | 115 frame size: 10 |
104 parameter count: 1 | 116 parameter count: 1 |
105 bytecode array length: 98 | 117 bytecode array length: 106 |
106 bytecodes: [ | 118 bytecodes: [ |
107 B(LdaTheHole), | 119 B(LdaTheHole), |
108 B(Star), R(2), | 120 B(Star), R(2), |
109 /* 30 E> */ B(StackCheck), | 121 /* 30 E> */ B(StackCheck), |
| 122 B(LdaConstant), U8(0), |
| 123 B(Star), R(3), |
110 B(LdaTheHole), | 124 B(LdaTheHole), |
111 B(Star), R(0), | 125 B(Star), R(0), |
112 /* 34 S> */ B(CreateClosure), U8(0), U8(2), U8(2), | 126 /* 34 S> */ B(LdaConstant), U8(1), |
113 B(Star), R(3), | 127 B(Star), R(4), |
| 128 B(CreateClosure), U8(2), U8(2), U8(2), |
| 129 B(Star), R(5), |
114 B(LdaTheHole), | 130 B(LdaTheHole), |
115 B(Star), R(4), | 131 B(Star), R(6), |
116 B(LdaSmi), I8(34), | 132 B(LdaSmi), I8(34), |
| 133 B(Star), R(8), |
| 134 B(LdaSmi), I8(88), |
| 135 B(Star), R(9), |
| 136 B(Mov), R(5), R(7), |
| 137 B(CallRuntime), U16(Runtime::kDefineClass), R(6), U8(4), |
117 B(Star), R(6), | 138 B(Star), R(6), |
118 B(LdaSmi), I8(88), | 139 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(5), U
8(1), |
119 B(Star), R(7), | 140 B(CallRuntime), U16(Runtime::kToFastProperties), R(5), U8(1), |
120 B(Mov), R(3), R(5), | |
121 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), | |
122 B(Star), R(4), | |
123 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U
8(1), | |
124 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), | |
125 B(Star), R(0), | 141 B(Star), R(0), |
126 B(Star), R(1), | 142 B(Star), R(1), |
127 B(Star), R(2), | 143 B(Star), R(2), |
128 /* 89 S> */ B(LdaUndefined), | 144 /* 89 S> */ B(LdaUndefined), |
129 B(Star), R(3), | 145 B(Star), R(3), |
130 B(LdaUndefined), | 146 B(LdaUndefined), |
131 B(Star), R(5), | 147 B(Star), R(5), |
132 /* 93 E> */ B(CreateArrayLiteral), U8(1), U8(3), U8(9), | 148 /* 93 E> */ B(CreateArrayLiteral), U8(3), U8(7), U8(9), |
133 B(Star), R(6), | 149 B(Star), R(6), |
134 B(LdaUndefined), | 150 B(LdaUndefined), |
135 B(Star), R(7), | 151 B(Star), R(7), |
136 B(CreateArrayLiteral), U8(2), U8(4), U8(9), | 152 B(CreateArrayLiteral), U8(4), U8(8), U8(9), |
137 B(Star), R(8), | 153 B(Star), R(8), |
138 B(CallJSRuntime), U8(%spread_iterable), R(7), U8(2), | 154 B(CallJSRuntime), U8(%spread_iterable), R(7), U8(2), |
139 B(Star), R(7), | 155 B(Star), R(7), |
140 B(CreateArrayLiteral), U8(3), U8(5), U8(9), | 156 B(CreateArrayLiteral), U8(5), U8(9), U8(9), |
141 B(Star), R(8), | 157 B(Star), R(8), |
142 B(CallJSRuntime), U8(%spread_arguments), R(5), U8(4), | 158 B(CallJSRuntime), U8(%spread_arguments), R(5), U8(4), |
143 B(Star), R(5), | 159 B(Star), R(5), |
144 B(Mov), R(1), R(4), | 160 B(Mov), R(1), R(4), |
145 B(CallJSRuntime), U8(%reflect_construct), R(3), U8(3), | 161 B(CallJSRuntime), U8(%reflect_construct), R(3), U8(3), |
146 B(LdaUndefined), | 162 B(LdaUndefined), |
147 /* 116 S> */ B(Return), | 163 /* 116 S> */ B(Return), |
148 ] | 164 ] |
149 constant pool: [ | 165 constant pool: [ |
| 166 ONE_BYTE_INTERNALIZED_STRING_TYPE ["A"], |
| 167 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
150 SHARED_FUNCTION_INFO_TYPE, | 168 SHARED_FUNCTION_INFO_TYPE, |
151 CONSTANT_ELEMENTS_PAIR_TYPE, | 169 CONSTANT_ELEMENTS_PAIR_TYPE, |
152 CONSTANT_ELEMENTS_PAIR_TYPE, | 170 CONSTANT_ELEMENTS_PAIR_TYPE, |
153 CONSTANT_ELEMENTS_PAIR_TYPE, | 171 CONSTANT_ELEMENTS_PAIR_TYPE, |
154 ] | 172 ] |
155 handlers: [ | 173 handlers: [ |
156 ] | 174 ] |
157 | 175 |
OLD | NEW |