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

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

Issue 2216023003: [interpreter] Add register output to ObjectLiteral (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: comments Created 4 years, 4 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: mixed 6 pool type: mixed
7 execute: yes 7 execute: yes
8 wrap: yes 8 wrap: yes
9 9
10 --- 10 ---
11 snippet: " 11 snippet: "
12 return { }; 12 return { };
13 " 13 "
14 frame size: 1 14 frame size: 1
15 parameter count: 1 15 parameter count: 1
16 bytecode array length: 8 16 bytecode array length: 9
17 bytecodes: [ 17 bytecodes: [
18 /* 30 E> */ B(StackCheck), 18 /* 30 E> */ B(StackCheck),
19 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(35), 19 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(35), R(0),
20 B(Star), R(0), 20 B(Ldar), R(0),
21 /* 46 S> */ B(Return), 21 /* 46 S> */ B(Return),
22 ] 22 ]
23 constant pool: [ 23 constant pool: [
24 InstanceType::FIXED_ARRAY_TYPE, 24 InstanceType::FIXED_ARRAY_TYPE,
25 ] 25 ]
26 handlers: [ 26 handlers: [
27 ] 27 ]
28 28
29 --- 29 ---
30 snippet: " 30 snippet: "
31 return { name: 'string', val: 9.2 }; 31 return { name: 'string', val: 9.2 };
32 " 32 "
33 frame size: 1 33 frame size: 1
34 parameter count: 1 34 parameter count: 1
35 bytecode array length: 8 35 bytecode array length: 9
36 bytecodes: [ 36 bytecodes: [
37 /* 30 E> */ B(StackCheck), 37 /* 30 E> */ B(StackCheck),
38 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), 38 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0),
39 B(Star), R(0), 39 B(Ldar), R(0),
40 /* 71 S> */ B(Return), 40 /* 71 S> */ B(Return),
41 ] 41 ]
42 constant pool: [ 42 constant pool: [
43 InstanceType::FIXED_ARRAY_TYPE, 43 InstanceType::FIXED_ARRAY_TYPE,
44 ] 44 ]
45 handlers: [ 45 handlers: [
46 ] 46 ]
47 47
48 --- 48 ---
49 snippet: " 49 snippet: "
50 var a = 1; return { name: 'string', val: a }; 50 var a = 1; return { name: 'string', val: a };
51 " 51 "
52 frame size: 2 52 frame size: 2
53 parameter count: 1 53 parameter count: 1
54 bytecode array length: 20 54 bytecode array length: 17
55 bytecodes: [ 55 bytecodes: [
56 /* 30 E> */ B(StackCheck), 56 /* 30 E> */ B(StackCheck),
57 /* 42 S> */ B(LdaSmi), U8(1), 57 /* 42 S> */ B(LdaSmi), U8(1),
58 B(Star), R(0), 58 B(Star), R(0),
59 /* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), 59 /* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1),
60 B(Star), R(1),
61 B(Ldar), R(0),
62 /* 75 E> */ B(StaNamedPropertySloppy), R(1), U8(1), U8(1), 60 /* 75 E> */ B(StaNamedPropertySloppy), R(1), U8(1), U8(1),
63 B(Ldar), R(1), 61 B(Ldar), R(1),
64 /* 80 S> */ B(Return), 62 /* 80 S> */ B(Return),
65 ] 63 ]
66 constant pool: [ 64 constant pool: [
67 InstanceType::FIXED_ARRAY_TYPE, 65 InstanceType::FIXED_ARRAY_TYPE,
68 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 66 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
69 ] 67 ]
70 handlers: [ 68 handlers: [
71 ] 69 ]
72 70
73 --- 71 ---
74 snippet: " 72 snippet: "
75 var a = 1; return { val: a, val: a + 1 }; 73 var a = 1; return { val: a, val: a + 1 };
76 " 74 "
77 frame size: 2 75 frame size: 2
78 parameter count: 1 76 parameter count: 1
79 bytecode array length: 21 77 bytecode array length: 20
80 bytecodes: [ 78 bytecodes: [
81 /* 30 E> */ B(StackCheck), 79 /* 30 E> */ B(StackCheck),
82 /* 42 S> */ B(LdaSmi), U8(1), 80 /* 42 S> */ B(LdaSmi), U8(1),
83 B(Star), R(0), 81 B(Star), R(0),
84 /* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), 82 /* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1),
85 B(Star), R(1),
86 /* 67 E> */ B(AddSmi), U8(1), R(0), 83 /* 67 E> */ B(AddSmi), U8(1), R(0),
87 B(StaNamedPropertySloppy), R(1), U8(1), U8(1), 84 B(StaNamedPropertySloppy), R(1), U8(1), U8(1),
88 B(Ldar), R(1), 85 B(Ldar), R(1),
89 /* 76 S> */ B(Return), 86 /* 76 S> */ B(Return),
90 ] 87 ]
91 constant pool: [ 88 constant pool: [
92 InstanceType::FIXED_ARRAY_TYPE, 89 InstanceType::FIXED_ARRAY_TYPE,
93 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 90 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
94 ] 91 ]
95 handlers: [ 92 handlers: [
96 ] 93 ]
97 94
98 --- 95 ---
99 snippet: " 96 snippet: "
100 return { func: function() { } }; 97 return { func: function() { } };
101 " 98 "
102 frame size: 1 99 frame size: 1
103 parameter count: 1 100 parameter count: 1
104 bytecode array length: 17 101 bytecode array length: 16
105 bytecodes: [ 102 bytecodes: [
106 /* 30 E> */ B(StackCheck), 103 /* 30 E> */ B(StackCheck),
107 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), 104 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0),
108 B(Star), R(0),
109 B(CreateClosure), U8(1), U8(2), 105 B(CreateClosure), U8(1), U8(2),
110 B(StaNamedPropertySloppy), R(0), U8(2), U8(1), 106 B(StaNamedPropertySloppy), R(0), U8(2), U8(1),
111 B(Ldar), R(0), 107 B(Ldar), R(0),
112 /* 67 S> */ B(Return), 108 /* 67 S> */ B(Return),
113 ] 109 ]
114 constant pool: [ 110 constant pool: [
115 InstanceType::FIXED_ARRAY_TYPE, 111 InstanceType::FIXED_ARRAY_TYPE,
116 InstanceType::SHARED_FUNCTION_INFO_TYPE, 112 InstanceType::SHARED_FUNCTION_INFO_TYPE,
117 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 113 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
118 ] 114 ]
119 handlers: [ 115 handlers: [
120 ] 116 ]
121 117
122 --- 118 ---
123 snippet: " 119 snippet: "
124 return { func(a) { return a; } }; 120 return { func(a) { return a; } };
125 " 121 "
126 frame size: 1 122 frame size: 1
127 parameter count: 1 123 parameter count: 1
128 bytecode array length: 17 124 bytecode array length: 16
129 bytecodes: [ 125 bytecodes: [
130 /* 30 E> */ B(StackCheck), 126 /* 30 E> */ B(StackCheck),
131 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), 127 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0),
132 B(Star), R(0),
133 B(CreateClosure), U8(1), U8(2), 128 B(CreateClosure), U8(1), U8(2),
134 B(StaNamedPropertySloppy), R(0), U8(2), U8(1), 129 B(StaNamedPropertySloppy), R(0), U8(2), U8(1),
135 B(Ldar), R(0), 130 B(Ldar), R(0),
136 /* 68 S> */ B(Return), 131 /* 68 S> */ B(Return),
137 ] 132 ]
138 constant pool: [ 133 constant pool: [
139 InstanceType::FIXED_ARRAY_TYPE, 134 InstanceType::FIXED_ARRAY_TYPE,
140 InstanceType::SHARED_FUNCTION_INFO_TYPE, 135 InstanceType::SHARED_FUNCTION_INFO_TYPE,
141 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 136 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
142 ] 137 ]
143 handlers: [ 138 handlers: [
144 ] 139 ]
145 140
146 --- 141 ---
147 snippet: " 142 snippet: "
148 return { get a() { return 2; } }; 143 return { get a() { return 2; } };
149 " 144 "
150 frame size: 6 145 frame size: 6
151 parameter count: 1 146 parameter count: 1
152 bytecode array length: 33 147 bytecode array length: 32
153 bytecodes: [ 148 bytecodes: [
154 /* 30 E> */ B(StackCheck), 149 /* 30 E> */ B(StackCheck),
155 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), 150 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0),
156 B(Star), R(0),
157 B(LdaConstant), U8(1), 151 B(LdaConstant), U8(1),
158 B(Star), R(2), 152 B(Star), R(2),
159 B(CreateClosure), U8(2), U8(2), 153 B(CreateClosure), U8(2), U8(2),
160 B(Star), R(3), 154 B(Star), R(3),
161 B(LdaNull), 155 B(LdaNull),
162 B(Star), R(4), 156 B(Star), R(4),
163 B(LdaZero), 157 B(LdaZero),
164 B(Star), R(5), 158 B(Star), R(5),
165 B(Mov), R(0), R(1), 159 B(Mov), R(0), R(1),
166 B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5), 160 B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5),
167 B(Ldar), R(0), 161 B(Ldar), R(0),
168 /* 68 S> */ B(Return), 162 /* 68 S> */ B(Return),
169 ] 163 ]
170 constant pool: [ 164 constant pool: [
171 InstanceType::FIXED_ARRAY_TYPE, 165 InstanceType::FIXED_ARRAY_TYPE,
172 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 166 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
173 InstanceType::SHARED_FUNCTION_INFO_TYPE, 167 InstanceType::SHARED_FUNCTION_INFO_TYPE,
174 ] 168 ]
175 handlers: [ 169 handlers: [
176 ] 170 ]
177 171
178 --- 172 ---
179 snippet: " 173 snippet: "
180 return { get a() { return this.x; }, set a(val) { this.x = val } }; 174 return { get a() { return this.x; }, set a(val) { this.x = val } };
181 " 175 "
182 frame size: 6 176 frame size: 6
183 parameter count: 1 177 parameter count: 1
184 bytecode array length: 35 178 bytecode array length: 34
185 bytecodes: [ 179 bytecodes: [
186 /* 30 E> */ B(StackCheck), 180 /* 30 E> */ B(StackCheck),
187 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), 181 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0),
188 B(Star), R(0),
189 B(LdaConstant), U8(1), 182 B(LdaConstant), U8(1),
190 B(Star), R(2), 183 B(Star), R(2),
191 B(CreateClosure), U8(2), U8(2), 184 B(CreateClosure), U8(2), U8(2),
192 B(Star), R(3), 185 B(Star), R(3),
193 B(CreateClosure), U8(3), U8(2), 186 B(CreateClosure), U8(3), U8(2),
194 B(Star), R(4), 187 B(Star), R(4),
195 B(LdaZero), 188 B(LdaZero),
196 B(Star), R(5), 189 B(Star), R(5),
197 B(Mov), R(0), R(1), 190 B(Mov), R(0), R(1),
198 B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5), 191 B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5),
199 B(Ldar), R(0), 192 B(Ldar), R(0),
200 /* 102 S> */ B(Return), 193 /* 102 S> */ B(Return),
201 ] 194 ]
202 constant pool: [ 195 constant pool: [
203 InstanceType::FIXED_ARRAY_TYPE, 196 InstanceType::FIXED_ARRAY_TYPE,
204 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 197 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
205 InstanceType::SHARED_FUNCTION_INFO_TYPE, 198 InstanceType::SHARED_FUNCTION_INFO_TYPE,
206 InstanceType::SHARED_FUNCTION_INFO_TYPE, 199 InstanceType::SHARED_FUNCTION_INFO_TYPE,
207 ] 200 ]
208 handlers: [ 201 handlers: [
209 ] 202 ]
210 203
211 --- 204 ---
212 snippet: " 205 snippet: "
213 return { set b(val) { this.y = val } }; 206 return { set b(val) { this.y = val } };
214 " 207 "
215 frame size: 6 208 frame size: 6
216 parameter count: 1 209 parameter count: 1
217 bytecode array length: 33 210 bytecode array length: 32
218 bytecodes: [ 211 bytecodes: [
219 /* 30 E> */ B(StackCheck), 212 /* 30 E> */ B(StackCheck),
220 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), 213 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0),
221 B(Star), R(0),
222 B(LdaConstant), U8(1), 214 B(LdaConstant), U8(1),
223 B(Star), R(2), 215 B(Star), R(2),
224 B(LdaNull), 216 B(LdaNull),
225 B(Star), R(3), 217 B(Star), R(3),
226 B(CreateClosure), U8(2), U8(2), 218 B(CreateClosure), U8(2), U8(2),
227 B(Star), R(4), 219 B(Star), R(4),
228 B(LdaZero), 220 B(LdaZero),
229 B(Star), R(5), 221 B(Star), R(5),
230 B(Mov), R(0), R(1), 222 B(Mov), R(0), R(1),
231 B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5), 223 B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5),
232 B(Ldar), R(0), 224 B(Ldar), R(0),
233 /* 74 S> */ B(Return), 225 /* 74 S> */ B(Return),
234 ] 226 ]
235 constant pool: [ 227 constant pool: [
236 InstanceType::FIXED_ARRAY_TYPE, 228 InstanceType::FIXED_ARRAY_TYPE,
237 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 229 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
238 InstanceType::SHARED_FUNCTION_INFO_TYPE, 230 InstanceType::SHARED_FUNCTION_INFO_TYPE,
239 ] 231 ]
240 handlers: [ 232 handlers: [
241 ] 233 ]
242 234
243 --- 235 ---
244 snippet: " 236 snippet: "
245 var a = 1; return { 1: a }; 237 var a = 1; return { 1: a };
246 " 238 "
247 frame size: 6 239 frame size: 6
248 parameter count: 1 240 parameter count: 1
249 bytecode array length: 32 241 bytecode array length: 31
250 bytecodes: [ 242 bytecodes: [
251 /* 30 E> */ B(StackCheck), 243 /* 30 E> */ B(StackCheck),
252 /* 42 S> */ B(LdaSmi), U8(1), 244 /* 42 S> */ B(LdaSmi), U8(1),
253 B(Star), R(0), 245 B(Star), R(0),
254 /* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), 246 /* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1),
255 B(Star), R(1),
256 B(LdaSmi), U8(1), 247 B(LdaSmi), U8(1),
257 B(Star), R(3), 248 B(Star), R(3),
258 B(LdaZero), 249 B(LdaZero),
259 B(Star), R(5), 250 B(Star), R(5),
260 B(Mov), R(1), R(2), 251 B(Mov), R(1), R(2),
261 B(Mov), R(0), R(4), 252 B(Mov), R(0), R(4),
262 /* 57 E> */ B(CallRuntime), U16(Runtime::kSetProperty), R(2), U8(4), 253 /* 57 E> */ B(CallRuntime), U16(Runtime::kSetProperty), R(2), U8(4),
263 B(Ldar), R(1), 254 B(Ldar), R(1),
264 /* 62 S> */ B(Return), 255 /* 62 S> */ B(Return),
265 ] 256 ]
266 constant pool: [ 257 constant pool: [
267 InstanceType::FIXED_ARRAY_TYPE, 258 InstanceType::FIXED_ARRAY_TYPE,
268 ] 259 ]
269 handlers: [ 260 handlers: [
270 ] 261 ]
271 262
272 --- 263 ---
273 snippet: " 264 snippet: "
274 return { __proto__: null }; 265 return { __proto__: null };
275 " 266 "
276 frame size: 3 267 frame size: 3
277 parameter count: 1 268 parameter count: 1
278 bytecode array length: 21 269 bytecode array length: 20
279 bytecodes: [ 270 bytecodes: [
280 /* 30 E> */ B(StackCheck), 271 /* 30 E> */ B(StackCheck),
281 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(35), 272 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(35), R(0),
282 B(Star), R(0),
283 B(LdaNull), 273 B(LdaNull),
284 B(Star), R(2), 274 B(Star), R(2),
285 B(Mov), R(0), R(1), 275 B(Mov), R(0), R(1),
286 B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(1), U8(2) , 276 B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(1), U8(2) ,
287 B(Ldar), R(0), 277 B(Ldar), R(0),
288 /* 62 S> */ B(Return), 278 /* 62 S> */ B(Return),
289 ] 279 ]
290 constant pool: [ 280 constant pool: [
291 InstanceType::FIXED_ARRAY_TYPE, 281 InstanceType::FIXED_ARRAY_TYPE,
292 ] 282 ]
293 handlers: [ 283 handlers: [
294 ] 284 ]
295 285
296 --- 286 ---
297 snippet: " 287 snippet: "
298 var a = 'test'; return { [a]: 1 }; 288 var a = 'test'; return { [a]: 1 };
299 " 289 "
300 frame size: 7 290 frame size: 7
301 parameter count: 1 291 parameter count: 1
302 bytecode array length: 36 292 bytecode array length: 33
303 bytecodes: [ 293 bytecodes: [
304 /* 30 E> */ B(StackCheck), 294 /* 30 E> */ B(StackCheck),
305 /* 42 S> */ B(LdaConstant), U8(0), 295 /* 42 S> */ B(LdaConstant), U8(0),
306 B(Star), R(0), 296 B(Star), R(0),
307 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), 297 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(1),
308 B(Star), R(1),
309 B(Ldar), R(0),
310 /* 60 E> */ B(ToName), R(3), 298 /* 60 E> */ B(ToName), R(3),
311 B(LdaSmi), U8(1), 299 B(LdaSmi), U8(1),
312 B(Star), R(4), 300 B(Star), R(4),
313 B(LdaZero), 301 B(LdaZero),
314 B(Star), R(5), 302 B(Star), R(5),
315 B(LdaZero), 303 B(LdaZero),
316 B(Star), R(6), 304 B(Star), R(6),
317 B(Mov), R(1), R(2), 305 B(Mov), R(1), R(2),
318 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2) , U8(5), 306 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2) , U8(5),
319 B(Ldar), R(1), 307 B(Ldar), R(1),
320 /* 69 S> */ B(Return), 308 /* 69 S> */ B(Return),
321 ] 309 ]
322 constant pool: [ 310 constant pool: [
323 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 311 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
324 InstanceType::FIXED_ARRAY_TYPE, 312 InstanceType::FIXED_ARRAY_TYPE,
325 ] 313 ]
326 handlers: [ 314 handlers: [
327 ] 315 ]
328 316
329 --- 317 ---
330 snippet: " 318 snippet: "
331 var a = 'test'; return { val: a, [a]: 1 }; 319 var a = 'test'; return { val: a, [a]: 1 };
332 " 320 "
333 frame size: 7 321 frame size: 7
334 parameter count: 1 322 parameter count: 1
335 bytecode array length: 40 323 bytecode array length: 37
336 bytecodes: [ 324 bytecodes: [
337 /* 30 E> */ B(StackCheck), 325 /* 30 E> */ B(StackCheck),
338 /* 42 S> */ B(LdaConstant), U8(0), 326 /* 42 S> */ B(LdaConstant), U8(0),
339 B(Star), R(0), 327 B(Star), R(0),
340 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), 328 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), R(1),
341 B(Star), R(1),
342 B(Ldar), R(0),
343 /* 64 E> */ B(StaNamedPropertySloppy), R(1), U8(2), U8(1), 329 /* 64 E> */ B(StaNamedPropertySloppy), R(1), U8(2), U8(1),
344 /* 68 E> */ B(ToName), R(3), 330 /* 68 E> */ B(ToName), R(3),
345 B(LdaSmi), U8(1), 331 B(LdaSmi), U8(1),
346 B(Star), R(4), 332 B(Star), R(4),
347 B(LdaZero), 333 B(LdaZero),
348 B(Star), R(5), 334 B(Star), R(5),
349 B(LdaZero), 335 B(LdaZero),
350 B(Star), R(6), 336 B(Star), R(6),
351 B(Mov), R(1), R(2), 337 B(Mov), R(1), R(2),
352 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2) , U8(5), 338 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2) , U8(5),
353 B(Ldar), R(1), 339 B(Ldar), R(1),
354 /* 77 S> */ B(Return), 340 /* 77 S> */ B(Return),
355 ] 341 ]
356 constant pool: [ 342 constant pool: [
357 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 343 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
358 InstanceType::FIXED_ARRAY_TYPE, 344 InstanceType::FIXED_ARRAY_TYPE,
359 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 345 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
360 ] 346 ]
361 handlers: [ 347 handlers: [
362 ] 348 ]
363 349
364 --- 350 ---
365 snippet: " 351 snippet: "
366 var a = 'test'; return { [a]: 1, __proto__: {} }; 352 var a = 'test'; return { [a]: 1, __proto__: {} };
367 " 353 "
368 frame size: 7 354 frame size: 7
369 parameter count: 1 355 parameter count: 1
370 bytecode array length: 53 356 bytecode array length: 49
371 bytecodes: [ 357 bytecodes: [
372 /* 30 E> */ B(StackCheck), 358 /* 30 E> */ B(StackCheck),
373 /* 42 S> */ B(LdaConstant), U8(0), 359 /* 42 S> */ B(LdaConstant), U8(0),
374 B(Star), R(0), 360 B(Star), R(0),
375 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(1), U8(35), 361 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(1), U8(35), R(1),
376 B(Star), R(1),
377 B(Ldar), R(0),
378 /* 60 E> */ B(ToName), R(3), 362 /* 60 E> */ B(ToName), R(3),
379 B(LdaSmi), U8(1), 363 B(LdaSmi), U8(1),
380 B(Star), R(4), 364 B(Star), R(4),
381 B(LdaZero), 365 B(LdaZero),
382 B(Star), R(5), 366 B(Star), R(5),
383 B(LdaZero), 367 B(LdaZero),
384 B(Star), R(6), 368 B(Star), R(6),
385 B(Mov), R(1), R(2), 369 B(Mov), R(1), R(2),
386 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2) , U8(5), 370 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2) , U8(5),
387 B(CreateObjectLiteral), U8(1), U8(0), U8(35), 371 B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(4),
388 B(Star), R(4),
389 B(Mov), R(1), R(2), 372 B(Mov), R(1), R(2),
390 B(Mov), R(4), R(3), 373 B(Mov), R(4), R(3),
391 B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(2), U8(2) , 374 B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(2), U8(2) ,
392 B(Ldar), R(1), 375 B(Ldar), R(1),
393 /* 84 S> */ B(Return), 376 /* 84 S> */ B(Return),
394 ] 377 ]
395 constant pool: [ 378 constant pool: [
396 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 379 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
397 InstanceType::FIXED_ARRAY_TYPE, 380 InstanceType::FIXED_ARRAY_TYPE,
398 ] 381 ]
399 handlers: [ 382 handlers: [
400 ] 383 ]
401 384
402 --- 385 ---
403 snippet: " 386 snippet: "
404 var n = 'name'; return { [n]: 'val', get a() { }, set a(b) {} }; 387 var n = 'name'; return { [n]: 'val', get a() { }, set a(b) {} };
405 " 388 "
406 frame size: 7 389 frame size: 7
407 parameter count: 1 390 parameter count: 1
408 bytecode array length: 76 391 bytecode array length: 73
409 bytecodes: [ 392 bytecodes: [
410 /* 30 E> */ B(StackCheck), 393 /* 30 E> */ B(StackCheck),
411 /* 42 S> */ B(LdaConstant), U8(0), 394 /* 42 S> */ B(LdaConstant), U8(0),
412 B(Star), R(0), 395 B(Star), R(0),
413 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), 396 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(1),
414 B(Star), R(1),
415 B(Ldar), R(0),
416 /* 60 E> */ B(ToName), R(3), 397 /* 60 E> */ B(ToName), R(3),
417 B(LdaConstant), U8(2), 398 B(LdaConstant), U8(2),
418 B(Star), R(4), 399 B(Star), R(4),
419 B(LdaZero), 400 B(LdaZero),
420 B(Star), R(5), 401 B(Star), R(5),
421 B(LdaZero), 402 B(LdaZero),
422 B(Star), R(6), 403 B(Star), R(6),
423 B(Mov), R(1), R(2), 404 B(Mov), R(1), R(2),
424 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2) , U8(5), 405 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2) , U8(5),
425 B(LdaConstant), U8(3), 406 B(LdaConstant), U8(3),
(...skipping 19 matching lines...) Expand all
445 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 426 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
446 InstanceType::FIXED_ARRAY_TYPE, 427 InstanceType::FIXED_ARRAY_TYPE,
447 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 428 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
448 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 429 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
449 InstanceType::SHARED_FUNCTION_INFO_TYPE, 430 InstanceType::SHARED_FUNCTION_INFO_TYPE,
450 InstanceType::SHARED_FUNCTION_INFO_TYPE, 431 InstanceType::SHARED_FUNCTION_INFO_TYPE,
451 ] 432 ]
452 handlers: [ 433 handlers: [
453 ] 434 ]
454 435
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698