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

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

Issue 2504153002: [TypeFeedbackVector] Root literal arrays in function literals slots (Closed)
Patch Set: REBASE. 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 class Person { 10 class Person {
11 constructor(name) { this.name = name; } 11 constructor(name) { this.name = name; }
12 speak() { console.log(this.name + ' is speaking.'); } 12 speak() { console.log(this.name + ' is speaking.'); }
13 } 13 }
14 " 14 "
15 frame size: 9 15 frame size: 9
16 parameter count: 1 16 parameter count: 1
17 bytecode array length: 75 17 bytecode array length: 77
18 bytecodes: [ 18 bytecodes: [
19 B(LdaTheHole), 19 B(LdaTheHole),
20 B(Star), R(2), 20 B(Star), R(2),
21 /* 30 E> */ B(StackCheck), 21 /* 30 E> */ B(StackCheck),
22 B(LdaTheHole), 22 B(LdaTheHole),
23 B(Star), R(0), 23 B(Star), R(0),
24 /* 34 S> */ B(LdaTheHole), 24 /* 34 S> */ B(LdaTheHole),
25 B(Star), R(3), 25 B(Star), R(3),
26 B(CreateClosure), U8(0), U8(2), 26 B(CreateClosure), U8(0), U8(2), U8(2),
27 B(Star), R(4), 27 B(Star), R(4),
28 B(LdaSmi), U8(34), 28 B(LdaSmi), U8(34),
29 B(Star), R(5), 29 B(Star), R(5),
30 B(Wide), B(LdaSmi), U16(148), 30 B(Wide), B(LdaSmi), U16(148),
31 B(Star), R(6), 31 B(Star), R(6),
32 B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4), 32 B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4),
33 B(Star), R(3), 33 B(Star), R(3),
34 B(LdaNamedProperty), R(3), U8(1), U8(2), 34 B(LdaNamedProperty), R(3), U8(1), U8(4),
35 B(Star), R(4), 35 B(Star), R(4),
36 B(LdaConstant), U8(2), 36 B(LdaConstant), U8(2),
37 B(ToName), R(6), 37 B(ToName), R(6),
38 B(CreateClosure), U8(3), U8(2), 38 B(CreateClosure), U8(3), U8(3), U8(2),
39 B(Star), R(7), 39 B(Star), R(7),
40 B(LdaSmi), U8(2), 40 B(LdaSmi), U8(2),
41 B(Star), R(8), 41 B(Star), R(8),
42 B(LdaZero), 42 B(LdaZero),
43 B(StaDataPropertyInLiteral), R(4), R(6), R(7), R(8), 43 B(StaDataPropertyInLiteral), R(4), R(6), R(7), R(8),
44 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U 8(1), 44 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U 8(1),
45 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), 45 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1),
46 B(Star), R(0), 46 B(Star), R(0),
47 B(Star), R(1), 47 B(Star), R(1),
48 B(Star), R(2), 48 B(Star), R(2),
(...skipping 11 matching lines...) Expand all
60 60
61 --- 61 ---
62 snippet: " 62 snippet: "
63 class person { 63 class person {
64 constructor(name) { this.name = name; } 64 constructor(name) { this.name = name; }
65 speak() { console.log(this.name + ' is speaking.'); } 65 speak() { console.log(this.name + ' is speaking.'); }
66 } 66 }
67 " 67 "
68 frame size: 9 68 frame size: 9
69 parameter count: 1 69 parameter count: 1
70 bytecode array length: 75 70 bytecode array length: 77
71 bytecodes: [ 71 bytecodes: [
72 B(LdaTheHole), 72 B(LdaTheHole),
73 B(Star), R(2), 73 B(Star), R(2),
74 /* 30 E> */ B(StackCheck), 74 /* 30 E> */ B(StackCheck),
75 B(LdaTheHole), 75 B(LdaTheHole),
76 B(Star), R(0), 76 B(Star), R(0),
77 /* 34 S> */ B(LdaTheHole), 77 /* 34 S> */ B(LdaTheHole),
78 B(Star), R(3), 78 B(Star), R(3),
79 B(CreateClosure), U8(0), U8(2), 79 B(CreateClosure), U8(0), U8(2), U8(2),
80 B(Star), R(4), 80 B(Star), R(4),
81 B(LdaSmi), U8(34), 81 B(LdaSmi), U8(34),
82 B(Star), R(5), 82 B(Star), R(5),
83 B(Wide), B(LdaSmi), U16(148), 83 B(Wide), B(LdaSmi), U16(148),
84 B(Star), R(6), 84 B(Star), R(6),
85 B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4), 85 B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4),
86 B(Star), R(3), 86 B(Star), R(3),
87 B(LdaNamedProperty), R(3), U8(1), U8(2), 87 B(LdaNamedProperty), R(3), U8(1), U8(4),
88 B(Star), R(4), 88 B(Star), R(4),
89 B(LdaConstant), U8(2), 89 B(LdaConstant), U8(2),
90 B(ToName), R(6), 90 B(ToName), R(6),
91 B(CreateClosure), U8(3), U8(2), 91 B(CreateClosure), U8(3), U8(3), U8(2),
92 B(Star), R(7), 92 B(Star), R(7),
93 B(LdaSmi), U8(2), 93 B(LdaSmi), U8(2),
94 B(Star), R(8), 94 B(Star), R(8),
95 B(LdaZero), 95 B(LdaZero),
96 B(StaDataPropertyInLiteral), R(4), R(6), R(7), R(8), 96 B(StaDataPropertyInLiteral), R(4), R(6), R(7), R(8),
97 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U 8(1), 97 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U 8(1),
98 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), 98 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1),
99 B(Star), R(0), 99 B(Star), R(0),
100 B(Star), R(1), 100 B(Star), R(1),
101 B(Star), R(2), 101 B(Star), R(2),
(...skipping 13 matching lines...) Expand all
115 snippet: " 115 snippet: "
116 var n0 = 'a'; 116 var n0 = 'a';
117 var n1 = 'b'; 117 var n1 = 'b';
118 class N { 118 class N {
119 [n0]() { return n0; } 119 [n0]() { return n0; }
120 static [n1]() { return n1; } 120 static [n1]() { return n1; }
121 } 121 }
122 " 122 "
123 frame size: 10 123 frame size: 10
124 parameter count: 1 124 parameter count: 1
125 bytecode array length: 119 125 bytecode array length: 122
126 bytecodes: [ 126 bytecodes: [
127 B(CreateFunctionContext), U8(2), 127 B(CreateFunctionContext), U8(2),
128 B(PushContext), R(3), 128 B(PushContext), R(3),
129 B(LdaTheHole), 129 B(LdaTheHole),
130 B(Star), R(2), 130 B(Star), R(2),
131 /* 30 E> */ B(StackCheck), 131 /* 30 E> */ B(StackCheck),
132 /* 43 S> */ B(LdaConstant), U8(0), 132 /* 43 S> */ B(LdaConstant), U8(0),
133 /* 43 E> */ B(StaCurrentContextSlot), U8(4), 133 /* 43 E> */ B(StaCurrentContextSlot), U8(4),
134 /* 57 S> */ B(LdaConstant), U8(1), 134 /* 57 S> */ B(LdaConstant), U8(1),
135 /* 57 E> */ B(StaCurrentContextSlot), U8(5), 135 /* 57 E> */ B(StaCurrentContextSlot), U8(5),
136 B(LdaTheHole), 136 B(LdaTheHole),
137 B(Star), R(0), 137 B(Star), R(0),
138 /* 62 S> */ B(LdaTheHole), 138 /* 62 S> */ B(LdaTheHole),
139 B(Star), R(4), 139 B(Star), R(4),
140 B(CreateClosure), U8(2), U8(2), 140 B(CreateClosure), U8(2), U8(2), U8(2),
141 B(Star), R(5), 141 B(Star), R(5),
142 B(LdaSmi), U8(62), 142 B(LdaSmi), U8(62),
143 B(Star), R(6), 143 B(Star), R(6),
144 B(Wide), B(LdaSmi), U16(128), 144 B(Wide), B(LdaSmi), U16(128),
145 B(Star), R(7), 145 B(Star), R(7),
146 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), 146 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4),
147 B(Star), R(4), 147 B(Star), R(4),
148 B(LdaNamedProperty), R(4), U8(3), U8(2), 148 B(LdaNamedProperty), R(4), U8(3), U8(5),
149 B(Star), R(5), 149 B(Star), R(5),
150 B(LdaCurrentContextSlot), U8(4), 150 B(LdaCurrentContextSlot), U8(4),
151 /* 75 E> */ B(ToName), R(7), 151 /* 75 E> */ B(ToName), R(7),
152 B(CreateClosure), U8(4), U8(2), 152 B(CreateClosure), U8(4), U8(3), U8(2),
153 B(Star), R(8), 153 B(Star), R(8),
154 B(LdaSmi), U8(2), 154 B(LdaSmi), U8(2),
155 B(Star), R(9), 155 B(Star), R(9),
156 B(LdaSmi), U8(1), 156 B(LdaSmi), U8(1),
157 B(StaDataPropertyInLiteral), R(5), R(7), R(8), R(9), 157 B(StaDataPropertyInLiteral), R(5), R(7), R(8), R(9),
158 B(LdaCurrentContextSlot), U8(5), 158 B(LdaCurrentContextSlot), U8(5),
159 /* 106 E> */ B(ToName), R(7), 159 /* 106 E> */ B(ToName), R(7),
160 B(LdaConstant), U8(3), 160 B(LdaConstant), U8(3),
161 B(TestEqualStrict), R(7), U8(0), 161 B(TestEqualStrict), R(7), U8(0),
162 B(Mov), R(4), R(6), 162 B(Mov), R(4), R(6),
163 B(JumpIfToBooleanFalse), U8(7), 163 B(JumpIfToBooleanFalse), U8(7),
164 B(CallRuntime), U16(Runtime::kThrowStaticPrototypeError), R(0), U8(0), 164 B(CallRuntime), U16(Runtime::kThrowStaticPrototypeError), R(0), U8(0),
165 B(CreateClosure), U8(5), U8(2), 165 B(CreateClosure), U8(5), U8(4), U8(2),
166 B(Star), R(8), 166 B(Star), R(8),
167 B(LdaSmi), U8(1), 167 B(LdaSmi), U8(1),
168 B(StaDataPropertyInLiteral), R(6), R(7), R(8), R(9), 168 B(StaDataPropertyInLiteral), R(6), R(7), R(8), R(9),
169 B(CallRuntime), U16(Runtime::kInstallClassNameAccessorWithCheck) , R(4), U8(1), 169 B(CallRuntime), U16(Runtime::kInstallClassNameAccessorWithCheck) , R(4), U8(1),
170 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1), 170 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1),
171 B(Star), R(0), 171 B(Star), R(0),
172 B(Star), R(1), 172 B(Star), R(1),
173 B(Star), R(2), 173 B(Star), R(2),
174 B(LdaUndefined), 174 B(LdaUndefined),
175 /* 129 S> */ B(Return), 175 /* 129 S> */ B(Return),
(...skipping 10 matching lines...) Expand all
186 ] 186 ]
187 187
188 --- 188 ---
189 snippet: " 189 snippet: "
190 var count = 0; 190 var count = 0;
191 class C { constructor() { count++; }} 191 class C { constructor() { count++; }}
192 return new C(); 192 return new C();
193 " 193 "
194 frame size: 8 194 frame size: 8
195 parameter count: 1 195 parameter count: 1
196 bytecode array length: 66 196 bytecode array length: 67
197 bytecodes: [ 197 bytecodes: [
198 B(CreateFunctionContext), U8(1), 198 B(CreateFunctionContext), U8(1),
199 B(PushContext), R(3), 199 B(PushContext), R(3),
200 B(LdaTheHole), 200 B(LdaTheHole),
201 B(Star), R(2), 201 B(Star), R(2),
202 /* 30 E> */ B(StackCheck), 202 /* 30 E> */ B(StackCheck),
203 /* 46 S> */ B(LdaZero), 203 /* 46 S> */ B(LdaZero),
204 /* 46 E> */ B(StaCurrentContextSlot), U8(4), 204 /* 46 E> */ B(StaCurrentContextSlot), U8(4),
205 B(LdaTheHole), 205 B(LdaTheHole),
206 B(Star), R(0), 206 B(Star), R(0),
207 /* 49 S> */ B(LdaTheHole), 207 /* 49 S> */ B(LdaTheHole),
208 B(Star), R(4), 208 B(Star), R(4),
209 B(CreateClosure), U8(0), U8(2), 209 B(CreateClosure), U8(0), U8(2), U8(2),
210 B(Star), R(5), 210 B(Star), R(5),
211 B(LdaSmi), U8(49), 211 B(LdaSmi), U8(49),
212 B(Star), R(6), 212 B(Star), R(6),
213 B(LdaSmi), U8(86), 213 B(LdaSmi), U8(86),
214 B(Star), R(7), 214 B(Star), R(7),
215 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), 215 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4),
216 B(Star), R(4), 216 B(Star), R(4),
217 B(LdaNamedProperty), R(4), U8(1), U8(2), 217 B(LdaNamedProperty), R(4), U8(1), U8(3),
218 B(Star), R(5), 218 B(Star), R(5),
219 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(4), U 8(1), 219 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(4), U 8(1),
220 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1), 220 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1),
221 B(Star), R(0), 221 B(Star), R(0),
222 B(Star), R(1), 222 B(Star), R(1),
223 B(Star), R(2), 223 B(Star), R(2),
224 /* 87 S> */ B(Nop), 224 /* 87 S> */ B(Nop),
225 /* 94 E> */ B(New), R(2), R(0), U8(0), U8(4), 225 /* 94 E> */ B(New), R(2), R(0), U8(0), U8(5),
226 /* 103 S> */ B(Return), 226 /* 103 S> */ B(Return),
227 ] 227 ]
228 constant pool: [ 228 constant pool: [
229 SHARED_FUNCTION_INFO_TYPE, 229 SHARED_FUNCTION_INFO_TYPE,
230 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], 230 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"],
231 ] 231 ]
232 handlers: [ 232 handlers: [
233 ] 233 ]
234 234
235 --- 235 ---
236 snippet: " 236 snippet: "
237 (class {}) 237 (class {})
238 class E { static name () {}} 238 class E { static name () {}}
239 " 239 "
240 frame size: 10 240 frame size: 10
241 parameter count: 1 241 parameter count: 1
242 bytecode array length: 104 242 bytecode array length: 107
243 bytecodes: [ 243 bytecodes: [
244 B(LdaTheHole), 244 B(LdaTheHole),
245 B(Star), R(3), 245 B(Star), R(3),
246 /* 30 E> */ B(StackCheck), 246 /* 30 E> */ B(StackCheck),
247 /* 35 S> */ B(LdaTheHole), 247 /* 35 S> */ B(LdaTheHole),
248 B(Star), R(4), 248 B(Star), R(4),
249 B(CreateClosure), U8(0), U8(2), 249 B(CreateClosure), U8(0), U8(2), U8(2),
250 B(Star), R(5), 250 B(Star), R(5),
251 B(LdaSmi), U8(35), 251 B(LdaSmi), U8(35),
252 B(Star), R(6), 252 B(Star), R(6),
253 B(LdaSmi), U8(43), 253 B(LdaSmi), U8(43),
254 B(Star), R(7), 254 B(Star), R(7),
255 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), 255 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4),
256 B(Star), R(4), 256 B(Star), R(4),
257 B(LdaNamedProperty), R(4), U8(1), U8(2), 257 B(LdaNamedProperty), R(4), U8(1), U8(3),
258 B(Star), R(5), 258 B(Star), R(5),
259 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1), 259 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1),
260 B(Star), R(1), 260 B(Star), R(1),
261 B(LdaTheHole), 261 B(LdaTheHole),
262 B(Star), R(0), 262 B(Star), R(0),
263 /* 45 S> */ B(LdaTheHole), 263 /* 45 S> */ B(LdaTheHole),
264 B(Star), R(4), 264 B(Star), R(4),
265 B(CreateClosure), U8(2), U8(2), 265 B(CreateClosure), U8(2), U8(5), U8(2),
266 B(Star), R(5), 266 B(Star), R(5),
267 B(LdaSmi), U8(45), 267 B(LdaSmi), U8(45),
268 B(Star), R(6), 268 B(Star), R(6),
269 B(LdaSmi), U8(73), 269 B(LdaSmi), U8(73),
270 B(Star), R(7), 270 B(Star), R(7),
271 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), 271 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4),
272 B(Star), R(4), 272 B(Star), R(4),
273 B(LdaNamedProperty), R(4), U8(1), U8(4), 273 B(LdaNamedProperty), R(4), U8(1), U8(7),
274 B(Star), R(5), 274 B(Star), R(5),
275 B(LdaConstant), U8(3), 275 B(LdaConstant), U8(3),
276 B(ToName), R(7), 276 B(ToName), R(7),
277 B(CreateClosure), U8(4), U8(2), 277 B(CreateClosure), U8(4), U8(6), U8(2),
278 B(Star), R(8), 278 B(Star), R(8),
279 B(LdaSmi), U8(2), 279 B(LdaSmi), U8(2),
280 B(Star), R(9), 280 B(Star), R(9),
281 B(LdaZero), 281 B(LdaZero),
282 B(StaDataPropertyInLiteral), R(4), R(7), R(8), R(9), 282 B(StaDataPropertyInLiteral), R(4), R(7), R(8), R(9),
283 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1), 283 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1),
284 B(Star), R(0), 284 B(Star), R(0),
285 B(Star), R(2), 285 B(Star), R(2),
286 B(Star), R(3), 286 B(Star), R(3),
287 B(LdaUndefined), 287 B(LdaUndefined),
288 /* 74 S> */ B(Return), 288 /* 74 S> */ B(Return),
289 ] 289 ]
290 constant pool: [ 290 constant pool: [
291 SHARED_FUNCTION_INFO_TYPE, 291 SHARED_FUNCTION_INFO_TYPE,
292 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], 292 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"],
293 SHARED_FUNCTION_INFO_TYPE, 293 SHARED_FUNCTION_INFO_TYPE,
294 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], 294 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"],
295 SHARED_FUNCTION_INFO_TYPE, 295 SHARED_FUNCTION_INFO_TYPE,
296 ] 296 ]
297 handlers: [ 297 handlers: [
298 ] 298 ]
299 299
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698