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: number | 6 pool type: number |
7 execute: yes | 7 execute: yes |
8 wrap: yes | 8 wrap: yes |
9 | 9 |
10 --- | 10 --- |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 handlers: [ | 68 handlers: [ |
69 ] | 69 ] |
70 | 70 |
71 --- | 71 --- |
72 snippet: " | 72 snippet: " |
73 var x = 101; | 73 var x = 101; |
74 return void(x * 3); | 74 return void(x * 3); |
75 " | 75 " |
76 frame size: 1 | 76 frame size: 1 |
77 parameter count: 1 | 77 parameter count: 1 |
78 bytecode array length: 11 | 78 bytecode array length: 12 |
79 bytecodes: [ | 79 bytecodes: [ |
80 /* 30 E> */ B(StackCheck), | 80 /* 30 E> */ B(StackCheck), |
81 /* 42 S> */ B(LdaSmi), U8(101), | 81 /* 42 S> */ B(LdaSmi), U8(101), |
82 B(Star), R(0), | 82 B(Star), R(0), |
83 /* 47 S> */ B(LdaSmi), U8(3), | 83 /* 47 S> */ B(LdaSmi), U8(3), |
84 B(Mul), R(0), | 84 B(Mul), R(0), U8(1), |
85 B(LdaUndefined), | 85 B(LdaUndefined), |
86 /* 67 S> */ B(Return), | 86 /* 67 S> */ B(Return), |
87 ] | 87 ] |
88 constant pool: [ | 88 constant pool: [ |
89 ] | 89 ] |
90 handlers: [ | 90 handlers: [ |
91 ] | 91 ] |
92 | 92 |
93 --- | 93 --- |
94 snippet: " | 94 snippet: " |
95 var x = 1234; | 95 var x = 1234; |
96 var y = void (x * x - 1); | 96 var y = void (x * x - 1); |
97 return y; | 97 return y; |
98 " | 98 " |
99 frame size: 4 | 99 frame size: 4 |
100 parameter count: 1 | 100 parameter count: 1 |
101 bytecode array length: 21 | 101 bytecode array length: 22 |
102 bytecodes: [ | 102 bytecodes: [ |
103 /* 30 E> */ B(StackCheck), | 103 /* 30 E> */ B(StackCheck), |
104 /* 42 S> */ B(Wide), B(LdaSmi), U16(1234), | 104 /* 42 S> */ B(Wide), B(LdaSmi), U16(1234), |
105 B(Star), R(0), | 105 B(Star), R(0), |
106 /* 56 S> */ B(Nop), | 106 /* 56 S> */ B(Nop), |
107 /* 66 E> */ B(Mul), R(0), | 107 /* 66 E> */ B(Mul), R(0), U8(1), |
108 B(Star), R(3), | 108 B(Star), R(3), |
109 B(SubSmi), U8(1), R(3), | 109 B(SubSmi), U8(1), R(3), |
110 B(LdrUndefined), R(1), | 110 B(LdrUndefined), R(1), |
111 B(Ldar), R(1), | 111 B(Ldar), R(1), |
112 /* 74 S> */ B(Nop), | 112 /* 74 S> */ B(Nop), |
113 /* 84 S> */ B(Return), | 113 /* 84 S> */ B(Return), |
114 ] | 114 ] |
115 constant pool: [ | 115 constant pool: [ |
116 ] | 116 ] |
117 handlers: [ | 117 handlers: [ |
118 ] | 118 ] |
119 | 119 |
120 --- | 120 --- |
121 snippet: " | 121 snippet: " |
122 var x = 13; | 122 var x = 13; |
123 return ~x; | 123 return ~x; |
124 " | 124 " |
125 frame size: 1 | 125 frame size: 1 |
126 parameter count: 1 | 126 parameter count: 1 |
127 bytecode array length: 10 | 127 bytecode array length: 11 |
128 bytecodes: [ | 128 bytecodes: [ |
129 /* 30 E> */ B(StackCheck), | 129 /* 30 E> */ B(StackCheck), |
130 /* 42 S> */ B(LdaSmi), U8(13), | 130 /* 42 S> */ B(LdaSmi), U8(13), |
131 B(Star), R(0), | 131 B(Star), R(0), |
132 /* 46 S> */ B(LdaSmi), U8(-1), | 132 /* 46 S> */ B(LdaSmi), U8(-1), |
133 B(BitwiseXor), R(0), | 133 B(BitwiseXor), R(0), U8(1), |
134 /* 57 S> */ B(Return), | 134 /* 57 S> */ B(Return), |
135 ] | 135 ] |
136 constant pool: [ | 136 constant pool: [ |
137 ] | 137 ] |
138 handlers: [ | 138 handlers: [ |
139 ] | 139 ] |
140 | 140 |
141 --- | 141 --- |
142 snippet: " | 142 snippet: " |
143 var x = 13; | 143 var x = 13; |
144 return +x; | 144 return +x; |
145 " | 145 " |
146 frame size: 1 | 146 frame size: 1 |
147 parameter count: 1 | 147 parameter count: 1 |
148 bytecode array length: 10 | 148 bytecode array length: 11 |
149 bytecodes: [ | 149 bytecodes: [ |
150 /* 30 E> */ B(StackCheck), | 150 /* 30 E> */ B(StackCheck), |
151 /* 42 S> */ B(LdaSmi), U8(13), | 151 /* 42 S> */ B(LdaSmi), U8(13), |
152 B(Star), R(0), | 152 B(Star), R(0), |
153 /* 46 S> */ B(LdaConstant), U8(0), | 153 /* 46 S> */ B(LdaConstant), U8(0), |
154 B(Mul), R(0), | 154 B(Mul), R(0), U8(1), |
155 /* 57 S> */ B(Return), | 155 /* 57 S> */ B(Return), |
156 ] | 156 ] |
157 constant pool: [ | 157 constant pool: [ |
158 1, | 158 1, |
159 ] | 159 ] |
160 handlers: [ | 160 handlers: [ |
161 ] | 161 ] |
162 | 162 |
163 --- | 163 --- |
164 snippet: " | 164 snippet: " |
165 var x = 13; | 165 var x = 13; |
166 return -x; | 166 return -x; |
167 " | 167 " |
168 frame size: 1 | 168 frame size: 1 |
169 parameter count: 1 | 169 parameter count: 1 |
170 bytecode array length: 10 | 170 bytecode array length: 11 |
171 bytecodes: [ | 171 bytecodes: [ |
172 /* 30 E> */ B(StackCheck), | 172 /* 30 E> */ B(StackCheck), |
173 /* 42 S> */ B(LdaSmi), U8(13), | 173 /* 42 S> */ B(LdaSmi), U8(13), |
174 B(Star), R(0), | 174 B(Star), R(0), |
175 /* 46 S> */ B(LdaSmi), U8(-1), | 175 /* 46 S> */ B(LdaSmi), U8(-1), |
176 B(Mul), R(0), | 176 B(Mul), R(0), U8(1), |
177 /* 57 S> */ B(Return), | 177 /* 57 S> */ B(Return), |
178 ] | 178 ] |
179 constant pool: [ | 179 constant pool: [ |
180 ] | 180 ] |
181 handlers: [ | 181 handlers: [ |
182 ] | 182 ] |
183 | 183 |
OLD | NEW |