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

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

Issue 2614373002: [FeedbackVector] Infrastructure for literal arrays in the vector. (Closed)
Patch Set: Release compile fix. Created 3 years, 11 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 wrap: yes 6 wrap: yes
7 7
8 --- 8 ---
9 snippet: " 9 snippet: "
10 return { }; 10 return { };
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 ] 89 ]
90 handlers: [ 90 handlers: [
91 ] 91 ]
92 92
93 --- 93 ---
94 snippet: " 94 snippet: "
95 return { func: function() { } }; 95 return { func: function() { } };
96 " 96 "
97 frame size: 1 97 frame size: 1
98 parameter count: 1 98 parameter count: 1
99 bytecode array length: 16 99 bytecode array length: 17
100 bytecodes: [ 100 bytecodes: [
101 /* 30 E> */ B(StackCheck), 101 /* 30 E> */ B(StackCheck),
102 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0), 102 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0),
103 B(CreateClosure), U8(1), U8(2), 103 B(CreateClosure), U8(1), U8(2), U8(2),
104 B(StaNamedPropertySloppy), R(0), U8(2), U8(2), 104 B(StaNamedPropertySloppy), R(0), U8(2), U8(3),
105 B(Ldar), R(0), 105 B(Ldar), R(0),
106 /* 67 S> */ B(Return), 106 /* 67 S> */ B(Return),
107 ] 107 ]
108 constant pool: [ 108 constant pool: [
109 FIXED_ARRAY_TYPE, 109 FIXED_ARRAY_TYPE,
110 SHARED_FUNCTION_INFO_TYPE, 110 SHARED_FUNCTION_INFO_TYPE,
111 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], 111 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"],
112 ] 112 ]
113 handlers: [ 113 handlers: [
114 ] 114 ]
115 115
116 --- 116 ---
117 snippet: " 117 snippet: "
118 return { func(a) { return a; } }; 118 return { func(a) { return a; } };
119 " 119 "
120 frame size: 1 120 frame size: 1
121 parameter count: 1 121 parameter count: 1
122 bytecode array length: 16 122 bytecode array length: 17
123 bytecodes: [ 123 bytecodes: [
124 /* 30 E> */ B(StackCheck), 124 /* 30 E> */ B(StackCheck),
125 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0), 125 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0),
126 B(CreateClosure), U8(1), U8(2), 126 B(CreateClosure), U8(1), U8(2), U8(2),
127 B(StaNamedPropertySloppy), R(0), U8(2), U8(2), 127 B(StaNamedPropertySloppy), R(0), U8(2), U8(3),
128 B(Ldar), R(0), 128 B(Ldar), R(0),
129 /* 68 S> */ B(Return), 129 /* 68 S> */ B(Return),
130 ] 130 ]
131 constant pool: [ 131 constant pool: [
132 FIXED_ARRAY_TYPE, 132 FIXED_ARRAY_TYPE,
133 SHARED_FUNCTION_INFO_TYPE, 133 SHARED_FUNCTION_INFO_TYPE,
134 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], 134 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"],
135 ] 135 ]
136 handlers: [ 136 handlers: [
137 ] 137 ]
138 138
139 --- 139 ---
140 snippet: " 140 snippet: "
141 return { get a() { return 2; } }; 141 return { get a() { return 2; } };
142 " 142 "
143 frame size: 6 143 frame size: 6
144 parameter count: 1 144 parameter count: 1
145 bytecode array length: 32 145 bytecode array length: 33
146 bytecodes: [ 146 bytecodes: [
147 /* 30 E> */ B(StackCheck), 147 /* 30 E> */ B(StackCheck),
148 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0), 148 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0),
149 B(LdaConstant), U8(1), 149 B(LdaConstant), U8(1),
150 B(Star), R(2), 150 B(Star), R(2),
151 B(CreateClosure), U8(2), U8(2), 151 B(CreateClosure), U8(2), U8(2), U8(2),
152 B(Star), R(3), 152 B(Star), R(3),
153 B(LdaNull), 153 B(LdaNull),
154 B(Star), R(4), 154 B(Star), R(4),
155 B(LdaZero), 155 B(LdaZero),
156 B(Star), R(5), 156 B(Star), R(5),
157 B(Mov), R(0), R(1), 157 B(Mov), R(0), R(1),
158 B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5), 158 B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5),
159 B(Ldar), R(1), 159 B(Ldar), R(1),
160 /* 68 S> */ B(Return), 160 /* 68 S> */ B(Return),
161 ] 161 ]
162 constant pool: [ 162 constant pool: [
163 FIXED_ARRAY_TYPE, 163 FIXED_ARRAY_TYPE,
164 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], 164 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
165 SHARED_FUNCTION_INFO_TYPE, 165 SHARED_FUNCTION_INFO_TYPE,
166 ] 166 ]
167 handlers: [ 167 handlers: [
168 ] 168 ]
169 169
170 --- 170 ---
171 snippet: " 171 snippet: "
172 return { get a() { return this.x; }, set a(val) { this.x = val } }; 172 return { get a() { return this.x; }, set a(val) { this.x = val } };
173 " 173 "
174 frame size: 6 174 frame size: 6
175 parameter count: 1 175 parameter count: 1
176 bytecode array length: 34 176 bytecode array length: 36
177 bytecodes: [ 177 bytecodes: [
178 /* 30 E> */ B(StackCheck), 178 /* 30 E> */ B(StackCheck),
179 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0), 179 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0),
180 B(LdaConstant), U8(1), 180 B(LdaConstant), U8(1),
181 B(Star), R(2), 181 B(Star), R(2),
182 B(CreateClosure), U8(2), U8(2), 182 B(CreateClosure), U8(2), U8(2), U8(2),
183 B(Star), R(3), 183 B(Star), R(3),
184 B(CreateClosure), U8(3), U8(2), 184 B(CreateClosure), U8(3), U8(3), U8(2),
185 B(Star), R(4), 185 B(Star), R(4),
186 B(LdaZero), 186 B(LdaZero),
187 B(Star), R(5), 187 B(Star), R(5),
188 B(Mov), R(0), R(1), 188 B(Mov), R(0), R(1),
189 B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5), 189 B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5),
190 B(Ldar), R(1), 190 B(Ldar), R(1),
191 /* 102 S> */ B(Return), 191 /* 102 S> */ B(Return),
192 ] 192 ]
193 constant pool: [ 193 constant pool: [
194 FIXED_ARRAY_TYPE, 194 FIXED_ARRAY_TYPE,
195 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], 195 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
196 SHARED_FUNCTION_INFO_TYPE, 196 SHARED_FUNCTION_INFO_TYPE,
197 SHARED_FUNCTION_INFO_TYPE, 197 SHARED_FUNCTION_INFO_TYPE,
198 ] 198 ]
199 handlers: [ 199 handlers: [
200 ] 200 ]
201 201
202 --- 202 ---
203 snippet: " 203 snippet: "
204 return { set b(val) { this.y = val } }; 204 return { set b(val) { this.y = val } };
205 " 205 "
206 frame size: 6 206 frame size: 6
207 parameter count: 1 207 parameter count: 1
208 bytecode array length: 32 208 bytecode array length: 33
209 bytecodes: [ 209 bytecodes: [
210 /* 30 E> */ B(StackCheck), 210 /* 30 E> */ B(StackCheck),
211 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0), 211 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0),
212 B(LdaConstant), U8(1), 212 B(LdaConstant), U8(1),
213 B(Star), R(2), 213 B(Star), R(2),
214 B(LdaNull), 214 B(LdaNull),
215 B(Star), R(3), 215 B(Star), R(3),
216 B(CreateClosure), U8(2), U8(2), 216 B(CreateClosure), U8(2), U8(2), U8(2),
217 B(Star), R(4), 217 B(Star), R(4),
218 B(LdaZero), 218 B(LdaZero),
219 B(Star), R(5), 219 B(Star), R(5),
220 B(Mov), R(0), R(1), 220 B(Mov), R(0), R(1),
221 B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5), 221 B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5),
222 B(Ldar), R(1), 222 B(Ldar), R(1),
223 /* 74 S> */ B(Return), 223 /* 74 S> */ B(Return),
224 ] 224 ]
225 constant pool: [ 225 constant pool: [
226 FIXED_ARRAY_TYPE, 226 FIXED_ARRAY_TYPE,
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 ] 364 ]
365 handlers: [ 365 handlers: [
366 ] 366 ]
367 367
368 --- 368 ---
369 snippet: " 369 snippet: "
370 var n = 'name'; return { [n]: 'val', get a() { }, set a(b) {} }; 370 var n = 'name'; return { [n]: 'val', get a() { }, set a(b) {} };
371 " 371 "
372 frame size: 6 372 frame size: 6
373 parameter count: 1 373 parameter count: 1
374 bytecode array length: 61 374 bytecode array length: 63
375 bytecodes: [ 375 bytecodes: [
376 /* 30 E> */ B(StackCheck), 376 /* 30 E> */ B(StackCheck),
377 /* 42 S> */ B(LdaConstant), U8(0), 377 /* 42 S> */ B(LdaConstant), U8(0),
378 B(Star), R(0), 378 B(Star), R(0),
379 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(1), 379 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(1),
380 /* 60 E> */ B(ToName), R(2), 380 /* 60 E> */ B(ToName), R(2),
381 B(LdaConstant), U8(2), 381 B(LdaConstant), U8(2),
382 B(Star), R(3), 382 B(Star), R(3),
383 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(2), 383 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(4),
384 B(LdaConstant), U8(3), 384 B(LdaConstant), U8(3),
385 B(ToName), R(3), 385 B(ToName), R(3),
386 B(CreateClosure), U8(4), U8(2), 386 B(CreateClosure), U8(4), U8(2), U8(2),
387 B(Star), R(4), 387 B(Star), R(4),
388 B(LdaZero), 388 B(LdaZero),
389 B(Star), R(5), 389 B(Star), R(5),
390 B(Mov), R(1), R(2), 390 B(Mov), R(1), R(2),
391 B(CallRuntime), U16(Runtime::kDefineGetterPropertyUnchecked), R( 2), U8(4), 391 B(CallRuntime), U16(Runtime::kDefineGetterPropertyUnchecked), R( 2), U8(4),
392 B(LdaConstant), U8(3), 392 B(LdaConstant), U8(3),
393 B(ToName), R(3), 393 B(ToName), R(3),
394 B(CreateClosure), U8(5), U8(2), 394 B(CreateClosure), U8(5), U8(3), U8(2),
395 B(Star), R(4), 395 B(Star), R(4),
396 B(LdaZero), 396 B(LdaZero),
397 B(Star), R(5), 397 B(Star), R(5),
398 B(CallRuntime), U16(Runtime::kDefineSetterPropertyUnchecked), R( 2), U8(4), 398 B(CallRuntime), U16(Runtime::kDefineSetterPropertyUnchecked), R( 2), U8(4),
399 B(Ldar), R(2), 399 B(Ldar), R(2),
400 /* 99 S> */ B(Return), 400 /* 99 S> */ B(Return),
401 ] 401 ]
402 constant pool: [ 402 constant pool: [
403 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], 403 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"],
404 FIXED_ARRAY_TYPE, 404 FIXED_ARRAY_TYPE,
405 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], 405 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"],
406 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], 406 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
407 SHARED_FUNCTION_INFO_TYPE, 407 SHARED_FUNCTION_INFO_TYPE,
408 SHARED_FUNCTION_INFO_TYPE, 408 SHARED_FUNCTION_INFO_TYPE,
409 ] 409 ]
410 handlers: [ 410 handlers: [
411 ] 411 ]
412 412
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698