Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/AssignmentsInBinaryExpression.golden

Issue 2555263002: [Interpreter] Add expression positions to BinaryOps. (Closed)
Patch Set: Move test file Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 var x = 0, y = 1; 10 var x = 0, y = 1;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 frame size: 2 67 frame size: 2
68 parameter count: 1 68 parameter count: 1
69 bytecode array length: 28 69 bytecode array length: 28
70 bytecodes: [ 70 bytecodes: [
71 /* 30 E> */ B(StackCheck), 71 /* 30 E> */ B(StackCheck),
72 /* 42 S> */ B(LdaSmi), U8(55), 72 /* 42 S> */ B(LdaSmi), U8(55),
73 B(Star), R(0), 73 B(Star), R(0),
74 /* 46 S> */ B(LdaSmi), U8(100), 74 /* 46 S> */ B(LdaSmi), U8(100),
75 B(Mov), R(0), R(1), 75 B(Mov), R(0), R(1),
76 B(Star), R(0), 76 B(Star), R(0),
77 /* 57 E> */ B(Add), R(1), U8(2), 77 /* 52 E> */ B(Add), R(1), U8(2),
78 B(Star), R(1), 78 B(Star), R(1),
79 B(LdaSmi), U8(101), 79 B(LdaSmi), U8(101),
80 B(Star), R(0), 80 B(Star), R(0),
81 /* 69 E> */ B(Add), R(1), U8(3), 81 /* 64 E> */ B(Add), R(1), U8(3),
82 B(Star), R(0), 82 B(Star), R(0),
83 /* 77 S> */ B(Nop), 83 /* 77 S> */ B(Nop),
84 /* 87 S> */ B(Return), 84 /* 87 S> */ B(Return),
85 ] 85 ]
86 constant pool: [ 86 constant pool: [
87 ] 87 ]
88 handlers: [ 88 handlers: [
89 ] 89 ]
90 90
91 --- 91 ---
92 snippet: " 92 snippet: "
93 var x = 55; 93 var x = 55;
94 x = (x = 56) - x + (x = 57); 94 x = (x = 56) - x + (x = 57);
95 x++; 95 x++;
96 return x; 96 return x;
97 " 97 "
98 frame size: 2 98 frame size: 2
99 parameter count: 1 99 parameter count: 1
100 bytecode array length: 29 100 bytecode array length: 29
101 bytecodes: [ 101 bytecodes: [
102 /* 30 E> */ B(StackCheck), 102 /* 30 E> */ B(StackCheck),
103 /* 42 S> */ B(LdaSmi), U8(55), 103 /* 42 S> */ B(LdaSmi), U8(55),
104 B(Star), R(0), 104 B(Star), R(0),
105 /* 46 S> */ B(LdaSmi), U8(56), 105 /* 46 S> */ B(LdaSmi), U8(56),
106 B(Star), R(0), 106 B(Star), R(0),
107 /* 61 E> */ B(Sub), R(0), U8(2), 107 /* 59 E> */ B(Sub), R(0), U8(2),
108 B(Star), R(1), 108 B(Star), R(1),
109 B(LdaSmi), U8(57), 109 B(LdaSmi), U8(57),
110 B(Star), R(0), 110 B(Star), R(0),
111 /* 68 E> */ B(Add), R(1), U8(3), 111 /* 63 E> */ B(Add), R(1), U8(3),
112 B(Star), R(0), 112 B(Star), R(0),
113 /* 75 S> */ B(Inc), U8(4), 113 /* 75 S> */ B(Inc), U8(4),
114 B(Star), R(0), 114 B(Star), R(0),
115 /* 80 S> */ B(Nop), 115 /* 80 S> */ B(Nop),
116 /* 90 S> */ B(Return), 116 /* 90 S> */ B(Return),
117 ] 117 ]
118 constant pool: [ 118 constant pool: [
119 ] 119 ]
120 handlers: [ 120 handlers: [
121 ] 121 ]
122 122
123 --- 123 ---
124 snippet: " 124 snippet: "
125 var x = 55; 125 var x = 55;
126 var y = x + (x = 1) + (x = 2) + (x = 3); 126 var y = x + (x = 1) + (x = 2) + (x = 3);
127 return y; 127 return y;
128 " 128 "
129 frame size: 3 129 frame size: 3
130 parameter count: 1 130 parameter count: 1
131 bytecode array length: 37 131 bytecode array length: 37
132 bytecodes: [ 132 bytecodes: [
133 /* 30 E> */ B(StackCheck), 133 /* 30 E> */ B(StackCheck),
134 /* 42 S> */ B(LdaSmi), U8(55), 134 /* 42 S> */ B(LdaSmi), U8(55),
135 B(Star), R(0), 135 B(Star), R(0),
136 /* 76 S> */ B(LdaSmi), U8(1), 136 /* 76 S> */ B(LdaSmi), U8(1),
137 B(Mov), R(0), R(2), 137 B(Mov), R(0), R(2),
138 B(Star), R(0), 138 B(Star), R(0),
139 /* 61 E> */ B(Add), R(2), U8(2), 139 /* 56 E> */ B(Add), R(2), U8(2),
140 B(Star), R(2), 140 B(Star), R(2),
141 B(LdaSmi), U8(2), 141 B(LdaSmi), U8(2),
142 B(Star), R(0), 142 B(Star), R(0),
143 /* 71 E> */ B(Add), R(2), U8(3), 143 /* 66 E> */ B(Add), R(2), U8(3),
144 B(Star), R(2), 144 B(Star), R(2),
145 B(LdaSmi), U8(3), 145 B(LdaSmi), U8(3),
146 B(Star), R(0), 146 B(Star), R(0),
147 /* 81 E> */ B(Add), R(2), U8(4), 147 /* 76 E> */ B(Add), R(2), U8(4),
148 B(Star), R(1), 148 B(Star), R(1),
149 /* 87 S> */ B(Nop), 149 /* 87 S> */ B(Nop),
150 /* 97 S> */ B(Return), 150 /* 97 S> */ B(Return),
151 ] 151 ]
152 constant pool: [ 152 constant pool: [
153 ] 153 ]
154 handlers: [ 154 handlers: [
155 ] 155 ]
156 156
157 --- 157 ---
158 snippet: " 158 snippet: "
159 var x = 55; 159 var x = 55;
160 var x = x + (x = 1) + (x = 2) + (x = 3); 160 var x = x + (x = 1) + (x = 2) + (x = 3);
161 return x; 161 return x;
162 " 162 "
163 frame size: 2 163 frame size: 2
164 parameter count: 1 164 parameter count: 1
165 bytecode array length: 37 165 bytecode array length: 37
166 bytecodes: [ 166 bytecodes: [
167 /* 30 E> */ B(StackCheck), 167 /* 30 E> */ B(StackCheck),
168 /* 42 S> */ B(LdaSmi), U8(55), 168 /* 42 S> */ B(LdaSmi), U8(55),
169 B(Star), R(0), 169 B(Star), R(0),
170 /* 76 S> */ B(LdaSmi), U8(1), 170 /* 76 S> */ B(LdaSmi), U8(1),
171 B(Mov), R(0), R(1), 171 B(Mov), R(0), R(1),
172 B(Star), R(0), 172 B(Star), R(0),
173 /* 61 E> */ B(Add), R(1), U8(2), 173 /* 56 E> */ B(Add), R(1), U8(2),
174 B(Star), R(1), 174 B(Star), R(1),
175 B(LdaSmi), U8(2), 175 B(LdaSmi), U8(2),
176 B(Star), R(0), 176 B(Star), R(0),
177 /* 71 E> */ B(Add), R(1), U8(3), 177 /* 66 E> */ B(Add), R(1), U8(3),
178 B(Star), R(1), 178 B(Star), R(1),
179 B(LdaSmi), U8(3), 179 B(LdaSmi), U8(3),
180 B(Star), R(0), 180 B(Star), R(0),
181 /* 81 E> */ B(Add), R(1), U8(4), 181 /* 76 E> */ B(Add), R(1), U8(4),
182 B(Star), R(0), 182 B(Star), R(0),
183 /* 87 S> */ B(Nop), 183 /* 87 S> */ B(Nop),
184 /* 97 S> */ B(Return), 184 /* 97 S> */ B(Return),
185 ] 185 ]
186 constant pool: [ 186 constant pool: [
187 ] 187 ]
188 handlers: [ 188 handlers: [
189 ] 189 ]
190 190
191 --- 191 ---
192 snippet: " 192 snippet: "
193 var x = 10, y = 20; 193 var x = 10, y = 20;
194 return x + (x = 1) + (x + 1) * (y = 2) + (y = 3) + (x = 4) + (y = 5) + y; 194 return x + (x = 1) + (x + 1) * (y = 2) + (y = 3) + (x = 4) + (y = 5) + y;
195 " 195 "
196 frame size: 4 196 frame size: 4
197 parameter count: 1 197 parameter count: 1
198 bytecode array length: 72 198 bytecode array length: 72
199 bytecodes: [ 199 bytecodes: [
200 /* 30 E> */ B(StackCheck), 200 /* 30 E> */ B(StackCheck),
201 /* 42 S> */ B(LdaSmi), U8(10), 201 /* 42 S> */ B(LdaSmi), U8(10),
202 B(Star), R(0), 202 B(Star), R(0),
203 /* 50 S> */ B(LdaSmi), U8(20), 203 /* 50 S> */ B(LdaSmi), U8(20),
204 B(Star), R(1), 204 B(Star), R(1),
205 /* 54 S> */ B(LdaSmi), U8(1), 205 /* 54 S> */ B(LdaSmi), U8(1),
206 B(Mov), R(0), R(2), 206 B(Mov), R(0), R(2),
207 B(Star), R(0), 207 B(Star), R(0),
208 /* 68 E> */ B(Add), R(2), U8(2), 208 /* 63 E> */ B(Add), R(2), U8(2),
209 B(Star), R(2), 209 B(Star), R(2),
210 /* 76 E> */ B(AddSmi), U8(1), R(0), U8(3), 210 /* 78 E> */ B(AddSmi), U8(1), R(0), U8(3),
211 B(Star), R(3), 211 B(Star), R(3),
212 B(LdaSmi), U8(2), 212 B(LdaSmi), U8(2),
213 B(Star), R(1), 213 B(Star), R(1),
214 /* 88 E> */ B(Mul), R(3), U8(4), 214 /* 83 E> */ B(Mul), R(3), U8(4),
215 B(Add), R(2), U8(5), 215 /* 73 E> */ B(Add), R(2), U8(5),
216 B(Star), R(2), 216 B(Star), R(2),
217 B(LdaSmi), U8(3), 217 B(LdaSmi), U8(3),
218 B(Star), R(1), 218 B(Star), R(1),
219 /* 98 E> */ B(Add), R(2), U8(6), 219 /* 93 E> */ B(Add), R(2), U8(6),
220 B(Star), R(2), 220 B(Star), R(2),
221 B(LdaSmi), U8(4), 221 B(LdaSmi), U8(4),
222 B(Star), R(0), 222 B(Star), R(0),
223 /* 108 E> */ B(Add), R(2), U8(7), 223 /* 103 E> */ B(Add), R(2), U8(7),
224 B(Star), R(2), 224 B(Star), R(2),
225 B(LdaSmi), U8(5), 225 B(LdaSmi), U8(5),
226 B(Star), R(1), 226 B(Star), R(1),
227 /* 118 E> */ B(Add), R(2), U8(8), 227 /* 113 E> */ B(Add), R(2), U8(8),
228 B(Star), R(2), 228 B(Star), R(2),
229 B(Ldar), R(1), 229 B(Ldar), R(1),
230 /* 125 E> */ B(Add), R(2), U8(9), 230 /* 123 E> */ B(Add), R(2), U8(9),
231 /* 128 S> */ B(Return), 231 /* 128 S> */ B(Return),
232 ] 232 ]
233 constant pool: [ 233 constant pool: [
234 ] 234 ]
235 handlers: [ 235 handlers: [
236 ] 236 ]
237 237
238 --- 238 ---
239 snippet: " 239 snippet: "
240 var x = 17; 240 var x = 17;
241 return 1 + x + (x++) + (++x); 241 return 1 + x + (x++) + (++x);
242 " 242 "
243 frame size: 3 243 frame size: 3
244 parameter count: 1 244 parameter count: 1
245 bytecode array length: 43 245 bytecode array length: 43
246 bytecodes: [ 246 bytecodes: [
247 /* 30 E> */ B(StackCheck), 247 /* 30 E> */ B(StackCheck),
248 /* 42 S> */ B(LdaSmi), U8(17), 248 /* 42 S> */ B(LdaSmi), U8(17),
249 B(Star), R(0), 249 B(Star), R(0),
250 /* 46 S> */ B(LdaSmi), U8(1), 250 /* 46 S> */ B(LdaSmi), U8(1),
251 B(Star), R(1), 251 B(Star), R(1),
252 B(Ldar), R(0), 252 B(Ldar), R(0),
253 /* 57 E> */ B(Add), R(1), U8(2), 253 /* 55 E> */ B(Add), R(1), U8(2),
254 B(Star), R(1), 254 B(Star), R(1),
255 B(Ldar), R(0), 255 B(Ldar), R(0),
256 B(ToNumber), R(2), 256 B(ToNumber), R(2),
257 B(Ldar), R(2), 257 B(Ldar), R(2),
258 B(Inc), U8(3), 258 B(Inc), U8(3),
259 B(Star), R(0), 259 B(Star), R(0),
260 B(Ldar), R(2), 260 B(Ldar), R(2),
261 /* 63 E> */ B(Add), R(1), U8(4), 261 /* 59 E> */ B(Add), R(1), U8(4),
262 B(Star), R(1), 262 B(Star), R(1),
263 B(Ldar), R(0), 263 B(Ldar), R(0),
264 B(Inc), U8(5), 264 B(Inc), U8(5),
265 B(Star), R(0), 265 B(Star), R(0),
266 /* 72 E> */ B(Add), R(1), U8(6), 266 /* 67 E> */ B(Add), R(1), U8(6),
267 /* 76 S> */ B(Return), 267 /* 76 S> */ B(Return),
268 ] 268 ]
269 constant pool: [ 269 constant pool: [
270 ] 270 ]
271 handlers: [ 271 handlers: [
272 ] 272 ]
273 273
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698