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

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

Powered by Google App Engine
This is Rietveld 408576698