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

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

Issue 2038323002: [interpreter] Filter expression positions at source. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@oth-0060-source-position-testing
Patch Set: Rebase Created 4 years, 6 months 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 pool type: string 6 pool type: string
7 execute: yes 7 execute: yes
8 wrap: yes 8 wrap: yes
9 9
10 --- 10 ---
11 snippet: " 11 snippet: "
12 var x = 0, y = 1; 12 var x = 0, y = 1;
13 return (x = 2, y = 3, x = 4, y = 5); 13 return (x = 2, y = 3, x = 4, y = 5);
14 " 14 "
15 frame size: 2 15 frame size: 2
16 parameter count: 1 16 parameter count: 1
17 bytecode array length: 25 17 bytecode array length: 25
18 bytecodes: [ 18 bytecodes: [
19 /* 30 E> */ B(StackCheck), 19 /* 30 E> */ B(StackCheck),
20 /* 42 S> */ B(LdaZero), 20 /* 42 S> */ B(LdaZero),
21 B(Star), R(0), 21 B(Star), R(0),
22 /* 49 S> */ B(LdaSmi), U8(1), 22 /* 49 S> */ B(LdaSmi), U8(1),
23 B(Star), R(1), 23 B(Star), R(1),
24 /* 52 S> */ B(LdaSmi), U8(2), 24 /* 52 S> */ B(LdaSmi), U8(2),
25 /* 62 E> */ B(Star), R(0), 25 B(Star), R(0),
26 B(LdaSmi), U8(3), 26 B(LdaSmi), U8(3),
27 /* 69 E> */ B(Star), R(1), 27 B(Star), R(1),
28 B(LdaSmi), U8(4), 28 B(LdaSmi), U8(4),
29 /* 76 E> */ B(Star), R(0), 29 B(Star), R(0),
30 B(LdaSmi), U8(5), 30 B(LdaSmi), U8(5),
31 B(Star), R(1), 31 B(Star), R(1),
32 /* 89 S> */ B(Return), 32 /* 89 S> */ B(Return),
33 ] 33 ]
34 constant pool: [ 34 constant pool: [
35 ] 35 ]
36 handlers: [ 36 handlers: [
37 ] 37 ]
38 38
39 --- 39 ---
40 snippet: " 40 snippet: "
41 var x = 55; 41 var x = 55;
42 var y = (x = 100); 42 var y = (x = 100);
43 return y; 43 return y;
44 " 44 "
45 frame size: 2 45 frame size: 2
46 parameter count: 1 46 parameter count: 1
47 bytecode array length: 13 47 bytecode array length: 13
48 bytecodes: [ 48 bytecodes: [
49 /* 30 E> */ B(StackCheck), 49 /* 30 E> */ B(StackCheck),
50 /* 42 S> */ B(LdaSmi), U8(55), 50 /* 42 S> */ B(LdaSmi), U8(55),
51 B(Star), R(0), 51 B(Star), R(0),
52 /* 57 S> */ B(LdaSmi), U8(100), 52 /* 57 S> */ B(LdaSmi), U8(100),
53 /* 57 E> */ B(Star), R(0), 53 B(Star), R(0),
54 B(Star), R(1), 54 B(Star), R(1),
55 /* 65 S> */ B(Nop), 55 /* 65 S> */ B(Nop),
56 /* 75 S> */ B(Return), 56 /* 75 S> */ B(Return),
57 ] 57 ]
58 constant pool: [ 58 constant pool: [
59 ] 59 ]
60 handlers: [ 60 handlers: [
61 ] 61 ]
62 62
63 --- 63 ---
64 snippet: " 64 snippet: "
65 var x = 55; 65 var x = 55;
66 x = x + (x = 100) + (x = 101); 66 x = x + (x = 100) + (x = 101);
67 return x; 67 return x;
68 " 68 "
69 frame size: 3 69 frame size: 3
70 parameter count: 1 70 parameter count: 1
71 bytecode array length: 26 71 bytecode array length: 26
72 bytecodes: [ 72 bytecodes: [
73 /* 30 E> */ B(StackCheck), 73 /* 30 E> */ B(StackCheck),
74 /* 42 S> */ B(LdaSmi), U8(55), 74 /* 42 S> */ B(LdaSmi), U8(55),
75 B(Star), R(0), 75 B(Star), R(0),
76 /* 46 S> */ B(LdaSmi), U8(100), 76 /* 46 S> */ B(LdaSmi), U8(100),
77 B(Mov), R(0), R(1), 77 B(Mov), R(0), R(1),
78 /* 57 E> */ B(Star), R(0), 78 B(Star), R(0),
79 B(Add), R(1), 79 /* 57 E> */ B(Add), R(1),
80 B(Star), R(2), 80 B(Star), R(2),
81 B(LdaSmi), U8(101), 81 B(LdaSmi), U8(101),
82 /* 69 E> */ B(Star), R(0), 82 B(Star), R(0),
83 B(Add), R(2), 83 /* 69 E> */ B(Add), R(2),
84 B(Star), R(0), 84 B(Star), R(0),
85 /* 77 S> */ B(Nop), 85 /* 77 S> */ B(Nop),
86 /* 87 S> */ B(Return), 86 /* 87 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 = 55; 95 var x = 55;
96 x = (x = 56) - x + (x = 57); 96 x = (x = 56) - x + (x = 57);
97 x++; 97 x++;
98 return x; 98 return x;
99 " 99 "
100 frame size: 3 100 frame size: 3
101 parameter count: 1 101 parameter count: 1
102 bytecode array length: 29 102 bytecode array length: 29
103 bytecodes: [ 103 bytecodes: [
104 /* 30 E> */ B(StackCheck), 104 /* 30 E> */ B(StackCheck),
105 /* 42 S> */ B(LdaSmi), U8(55), 105 /* 42 S> */ B(LdaSmi), U8(55),
106 B(Star), R(0), 106 B(Star), R(0),
107 /* 46 S> */ B(LdaSmi), U8(56), 107 /* 46 S> */ B(LdaSmi), U8(56),
108 /* 53 E> */ B(Star), R(0), 108 B(Star), R(0),
109 /* 61 E> */ B(Sub), R(0), 109 /* 61 E> */ B(Sub), R(0),
110 B(Star), R(2), 110 B(Star), R(2),
111 B(LdaSmi), U8(57), 111 B(LdaSmi), U8(57),
112 /* 68 E> */ B(Star), R(0), 112 B(Star), R(0),
113 B(Add), R(2), 113 /* 68 E> */ B(Add), R(2),
114 B(Star), R(0), 114 B(Star), R(0),
115 /* 75 S> */ B(ToNumber), 115 /* 75 S> */ B(ToNumber),
116 B(Star), R(1), 116 B(Star), R(1),
117 B(Inc), 117 B(Inc),
118 B(Star), R(0), 118 B(Star), R(0),
119 /* 80 S> */ B(Nop), 119 /* 80 S> */ B(Nop),
120 /* 90 S> */ B(Return), 120 /* 90 S> */ B(Return),
121 ] 121 ]
122 constant pool: [ 122 constant pool: [
123 ] 123 ]
124 handlers: [ 124 handlers: [
125 ] 125 ]
126 126
127 --- 127 ---
128 snippet: " 128 snippet: "
129 var x = 55; 129 var x = 55;
130 var y = x + (x = 1) + (x = 2) + (x = 3); 130 var y = x + (x = 1) + (x = 2) + (x = 3);
131 return y; 131 return y;
132 " 132 "
133 frame size: 4 133 frame size: 4
134 parameter count: 1 134 parameter count: 1
135 bytecode array length: 34 135 bytecode array length: 34
136 bytecodes: [ 136 bytecodes: [
137 /* 30 E> */ B(StackCheck), 137 /* 30 E> */ B(StackCheck),
138 /* 42 S> */ B(LdaSmi), U8(55), 138 /* 42 S> */ B(LdaSmi), U8(55),
139 B(Star), R(0), 139 B(Star), R(0),
140 /* 76 S> */ B(LdaSmi), U8(1), 140 /* 76 S> */ B(LdaSmi), U8(1),
141 B(Mov), R(0), R(2), 141 B(Mov), R(0), R(2),
142 /* 61 E> */ B(Star), R(0), 142 B(Star), R(0),
143 B(Add), R(2), 143 /* 61 E> */ B(Add), R(2),
144 B(Star), R(3), 144 B(Star), R(3),
145 B(LdaSmi), U8(2), 145 B(LdaSmi), U8(2),
146 /* 71 E> */ B(Star), R(0), 146 B(Star), R(0),
147 B(Add), R(3), 147 /* 71 E> */ B(Add), R(3),
148 B(Star), R(2), 148 B(Star), R(2),
149 B(LdaSmi), U8(3), 149 B(LdaSmi), U8(3),
150 /* 81 E> */ B(Star), R(0), 150 B(Star), R(0),
151 B(Add), R(2), 151 /* 81 E> */ B(Add), R(2),
152 B(Star), R(1), 152 B(Star), R(1),
153 /* 87 S> */ B(Nop), 153 /* 87 S> */ B(Nop),
154 /* 97 S> */ B(Return), 154 /* 97 S> */ B(Return),
155 ] 155 ]
156 constant pool: [ 156 constant pool: [
157 ] 157 ]
158 handlers: [ 158 handlers: [
159 ] 159 ]
160 160
161 --- 161 ---
162 snippet: " 162 snippet: "
163 var x = 55; 163 var x = 55;
164 var x = x + (x = 1) + (x = 2) + (x = 3); 164 var x = x + (x = 1) + (x = 2) + (x = 3);
165 return x; 165 return x;
166 " 166 "
167 frame size: 3 167 frame size: 3
168 parameter count: 1 168 parameter count: 1
169 bytecode array length: 34 169 bytecode array length: 34
170 bytecodes: [ 170 bytecodes: [
171 /* 30 E> */ B(StackCheck), 171 /* 30 E> */ B(StackCheck),
172 /* 42 S> */ B(LdaSmi), U8(55), 172 /* 42 S> */ B(LdaSmi), U8(55),
173 B(Star), R(0), 173 B(Star), R(0),
174 /* 76 S> */ B(LdaSmi), U8(1), 174 /* 76 S> */ B(LdaSmi), U8(1),
175 B(Mov), R(0), R(1), 175 B(Mov), R(0), R(1),
176 /* 61 E> */ B(Star), R(0), 176 B(Star), R(0),
177 B(Add), R(1), 177 /* 61 E> */ B(Add), R(1),
178 B(Star), R(2), 178 B(Star), R(2),
179 B(LdaSmi), U8(2), 179 B(LdaSmi), U8(2),
180 /* 71 E> */ B(Star), R(0), 180 B(Star), R(0),
181 B(Add), R(2), 181 /* 71 E> */ B(Add), R(2),
182 B(Star), R(1), 182 B(Star), R(1),
183 B(LdaSmi), U8(3), 183 B(LdaSmi), U8(3),
184 /* 81 E> */ B(Star), R(0), 184 B(Star), R(0),
185 B(Add), R(1), 185 /* 81 E> */ B(Add), R(1),
186 B(Star), R(0), 186 B(Star), R(0),
187 /* 87 S> */ B(Nop), 187 /* 87 S> */ B(Nop),
188 /* 97 S> */ B(Return), 188 /* 97 S> */ B(Return),
189 ] 189 ]
190 constant pool: [ 190 constant pool: [
191 ] 191 ]
192 handlers: [ 192 handlers: [
193 ] 193 ]
194 194
195 --- 195 ---
196 snippet: " 196 snippet: "
197 var x = 10, y = 20; 197 var x = 10, y = 20;
198 return x + (x = 1) + (x + 1) * (y = 2) + (y = 3) + (x = 4) + (y = 5) + y; 198 return x + (x = 1) + (x + 1) * (y = 2) + (y = 3) + (x = 4) + (y = 5) + y;
199 " 199 "
200 frame size: 5 200 frame size: 5
201 parameter count: 1 201 parameter count: 1
202 bytecode array length: 65 202 bytecode array length: 65
203 bytecodes: [ 203 bytecodes: [
204 /* 30 E> */ B(StackCheck), 204 /* 30 E> */ B(StackCheck),
205 /* 42 S> */ B(LdaSmi), U8(10), 205 /* 42 S> */ B(LdaSmi), U8(10),
206 B(Star), R(0), 206 B(Star), R(0),
207 /* 50 S> */ B(LdaSmi), U8(20), 207 /* 50 S> */ B(LdaSmi), U8(20),
208 B(Star), R(1), 208 B(Star), R(1),
209 /* 54 S> */ B(LdaSmi), U8(1), 209 /* 54 S> */ B(LdaSmi), U8(1),
210 B(Mov), R(0), R(2), 210 B(Mov), R(0), R(2),
211 /* 68 E> */ B(Star), R(0), 211 B(Star), R(0),
212 B(Add), R(2), 212 /* 68 E> */ B(Add), R(2),
213 B(Star), R(3), 213 B(Star), R(3),
214 /* 76 E> */ B(LdaSmi), U8(1), 214 B(LdaSmi), U8(1),
215 B(Add), R(0), 215 /* 76 E> */ B(Add), R(0),
216 B(Star), R(4), 216 B(Star), R(4),
217 B(LdaSmi), U8(2), 217 B(LdaSmi), U8(2),
218 /* 88 E> */ B(Star), R(1), 218 B(Star), R(1),
219 B(Mul), R(4), 219 /* 88 E> */ B(Mul), R(4),
220 B(Add), R(3), 220 B(Add), R(3),
221 B(Star), R(2), 221 B(Star), R(2),
222 B(LdaSmi), U8(3), 222 B(LdaSmi), U8(3),
223 /* 98 E> */ B(Star), R(1), 223 B(Star), R(1),
224 B(Add), R(2), 224 /* 98 E> */ B(Add), R(2),
225 B(Star), R(3), 225 B(Star), R(3),
226 B(LdaSmi), U8(4), 226 B(LdaSmi), U8(4),
227 /* 108 E> */ B(Star), R(0), 227 B(Star), R(0),
228 B(Add), R(3), 228 /* 108 E> */ B(Add), R(3),
229 B(Star), R(2), 229 B(Star), R(2),
230 B(LdaSmi), U8(5), 230 B(LdaSmi), U8(5),
231 /* 118 E> */ B(Star), R(1), 231 B(Star), R(1),
232 B(Add), R(2), 232 /* 118 E> */ B(Add), R(2),
233 B(Star), R(3), 233 B(Star), R(3),
234 /* 125 E> */ B(Ldar), R(1), 234 B(Ldar), R(1),
235 B(Add), R(3), 235 /* 125 E> */ B(Add), R(3),
236 /* 128 S> */ B(Return), 236 /* 128 S> */ B(Return),
237 ] 237 ]
238 constant pool: [ 238 constant pool: [
239 ] 239 ]
240 handlers: [ 240 handlers: [
241 ] 241 ]
242 242
243 --- 243 ---
244 snippet: " 244 snippet: "
245 var x = 17; 245 var x = 17;
246 return 1 + x + (x++) + (++x); 246 return 1 + x + (x++) + (++x);
247 " 247 "
248 frame size: 4 248 frame size: 4
249 parameter count: 1 249 parameter count: 1
250 bytecode array length: 37 250 bytecode array length: 37
251 bytecodes: [ 251 bytecodes: [
252 /* 30 E> */ B(StackCheck), 252 /* 30 E> */ B(StackCheck),
253 /* 42 S> */ B(LdaSmi), U8(17), 253 /* 42 S> */ B(LdaSmi), U8(17),
254 B(Star), R(0), 254 B(Star), R(0),
255 /* 46 S> */ B(LdaSmi), U8(1), 255 /* 46 S> */ B(LdaSmi), U8(1),
256 B(Star), R(1), 256 B(Star), R(1),
257 /* 57 E> */ B(Ldar), R(0), 257 B(Ldar), R(0),
258 B(Add), R(1), 258 /* 57 E> */ B(Add), R(1),
259 B(Star), R(2), 259 B(Star), R(2),
260 B(Ldar), R(0), 260 B(Ldar), R(0),
261 B(ToNumber), 261 B(ToNumber),
262 B(Star), R(1), 262 B(Star), R(1),
263 B(Inc), 263 B(Inc),
264 /* 63 E> */ B(Star), R(0), 264 B(Star), R(0),
265 B(Ldar), R(1), 265 B(Ldar), R(1),
266 B(Add), R(2), 266 /* 63 E> */ B(Add), R(2),
267 B(Star), R(3), 267 B(Star), R(3),
268 B(Ldar), R(0), 268 B(Ldar), R(0),
269 B(Inc), 269 B(Inc),
270 /* 72 E> */ B(Star), R(0), 270 B(Star), R(0),
271 B(Add), R(3), 271 /* 72 E> */ B(Add), R(3),
272 /* 76 S> */ B(Return), 272 /* 76 S> */ B(Return),
273 ] 273 ]
274 constant pool: [ 274 constant pool: [
275 ] 275 ]
276 handlers: [ 276 handlers: [
277 ] 277 ]
278 278
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698