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

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

Issue 2330473002: Class fields, part 3 (backends)
Patch Set: bytecode test Created 4 years, 3 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
« no previous file with comments | « src/parsing/parser-base.h ('k') | test/cctest/interpreter/generate-bytecode-expectations.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #
2 # Autogenerated by generate-bytecode-expectations.
3 #
4
5 ---
6 execute: yes
7 wrap: yes
8 class fields: yes
9
10 ---
11 snippet: "
12 return new class {
13 'a' = 0;
14 ['b'+'c'] = 1;
15 static d = 2;
16 }
17 "
18 frame size: 17
19 parameter count: 1
20 bytecode array length: 200
21 bytecodes: [
22 /* 30 E> */ B(StackCheck),
23 /* 34 S> */ B(Ldar), R(closure),
24 B(CreateBlockContext), U8(0),
25 B(PushContext), R(5),
26 B(LdaTheHole),
27 B(StaContextSlot), R(context), U8(4),
28 B(LdaTheHole),
29 B(StaContextSlot), R(context), U8(5),
30 B(LdaTheHole),
31 B(StaContextSlot), R(context), U8(7),
32 B(LdaTheHole),
33 B(StaContextSlot), R(context), U8(8),
34 /* 45 S> */ B(LdaTheHole),
35 B(Star), R(7),
36 B(CreateClosure), U8(1), U8(2),
37 B(Star), R(8),
38 B(LdaSmi), U8(45),
39 B(Star), R(9),
40 B(LdaSmi), U8(98),
41 B(Star), R(10),
42 B(CallRuntime), U16(Runtime::kDefineClass), R(7), U8(4),
43 B(Star), R(7),
44 B(LdrNamedProperty), R(7), U8(2), U8(6), R(8),
45 B(Ldar), R(8),
46 B(Mov), R(7), R(1),
47 B(LdaConstant), U8(3),
48 B(Star), R(14),
49 B(CallRuntime), U16(Runtime::kToName), R(14), U8(1),
50 B(StaContextSlot), R(context), U8(4),
51 B(LdaConstant), U8(4),
52 B(Star), R(15),
53 B(LdaConstant), U8(5),
54 B(Add), R(15), U8(3),
55 B(Star), R(14),
56 B(CallRuntime), U16(Runtime::kToName), R(14), U8(1),
57 B(StaContextSlot), R(context), U8(5),
58 B(LdaConstant), U8(6),
59 B(ToName), R(10),
60 B(CreateClosure), U8(7), U8(2),
61 B(Star), R(2),
62 B(LdaConstant), U8(8),
63 B(Star), R(16),
64 B(Ldar), R(7),
65 B(StaKeyedPropertyStrict), R(2), R(16), U8(4),
66 B(Mov), R(2), R(14),
67 B(Mov), R(7), R(15),
68 B(InvokeIntrinsic), U8(Runtime::k_Call), R(14), U8(2),
69 B(Star), R(11),
70 B(LdaSmi), U8(2),
71 B(Star), R(12),
72 B(LdaZero),
73 B(Star), R(13),
74 B(Mov), R(1), R(9),
75 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(9) , U8(5),
76 B(CallRuntime), U16(Runtime::kToFastProperties), R(7), U8(1),
77 B(Star), R(0),
78 B(CreateClosure), U8(9), U8(2),
79 B(StaContextSlot), R(context), U8(6),
80 B(CreateClosure), U8(10), U8(2),
81 B(Star), R(3),
82 B(LdaConstant), U8(8),
83 B(Star), R(8),
84 B(LdaNamedProperty), R(0), U8(2), U8(8),
85 B(StaKeyedPropertyStrict), R(3), R(8), U8(10),
86 B(Ldar), R(3),
87 B(StaContextSlot), R(context), U8(7),
88 B(CreateClosure), U8(11), U8(2),
89 B(Star), R(4),
90 B(LdaConstant), U8(8),
91 B(Star), R(8),
92 B(LdaNamedProperty), R(0), U8(2), U8(12),
93 B(StaKeyedPropertyStrict), R(4), R(8), U8(14),
94 B(Ldar), R(4),
95 B(StaContextSlot), R(context), U8(8),
96 B(PopContext), R(5),
97 B(Ldar), R(0),
98 /* 41 E> */ B(New), R(0), R(0), U8(0), U8(1),
99 /* 99 S> */ B(Return),
100 ]
101 constant pool: [
102 FIXED_ARRAY_TYPE,
103 SHARED_FUNCTION_INFO_TYPE,
104 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"],
105 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
106 ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
107 ONE_BYTE_INTERNALIZED_STRING_TYPE ["c"],
108 ONE_BYTE_INTERNALIZED_STRING_TYPE ["d"],
109 SHARED_FUNCTION_INFO_TYPE,
110 SYMBOL_TYPE,
111 SHARED_FUNCTION_INFO_TYPE,
112 SHARED_FUNCTION_INFO_TYPE,
113 SHARED_FUNCTION_INFO_TYPE,
114 ]
115 handlers: [
116 ]
117
118 ---
119 snippet: "
120 return new class extends class {} {
121 constructor(){ super() }
122 'a' = 0;
123 ['b'+'c'] = 1;
124 static d = 2;
125 }
126 "
127 frame size: 18
128 parameter count: 1
129 bytecode array length: 237
130 bytecodes: [
131 /* 30 E> */ B(StackCheck),
132 /* 34 S> */ B(Ldar), R(closure),
133 B(CreateBlockContext), U8(0),
134 B(PushContext), R(6),
135 B(LdaTheHole),
136 B(StaContextSlot), R(context), U8(4),
137 B(LdaTheHole),
138 B(StaContextSlot), R(context), U8(5),
139 B(LdaTheHole),
140 B(StaContextSlot), R(context), U8(7),
141 B(LdaTheHole),
142 B(StaContextSlot), R(context), U8(8),
143 /* 59 S> */ B(LdaTheHole),
144 B(Star), R(12),
145 B(CreateClosure), U8(1), U8(2),
146 B(Star), R(13),
147 B(LdaSmi), U8(59),
148 B(Star), R(14),
149 B(LdaSmi), U8(67),
150 B(Star), R(15),
151 B(CallRuntime), U16(Runtime::kDefineClass), R(12), U8(4),
152 B(Star), R(12),
153 B(LdrNamedProperty), R(12), U8(2), U8(3), R(13),
154 B(CallRuntime), U16(Runtime::kToFastProperties), R(12), U8(1),
155 B(Star), R(0),
156 /* 59 E> */ B(CreateClosure), U8(3), U8(2),
157 B(Star), R(9),
158 B(LdaSmi), U8(45),
159 B(Star), R(10),
160 B(Wide), B(LdaSmi), U16(142),
161 B(Star), R(11),
162 B(Mov), R(0), R(8),
163 B(CallRuntime), U16(Runtime::kDefineClass), R(8), U8(4),
164 B(Star), R(8),
165 B(LdrNamedProperty), R(8), U8(2), U8(8), R(9),
166 B(Ldar), R(9),
167 B(Mov), R(8), R(2),
168 B(LdaConstant), U8(4),
169 B(Star), R(15),
170 B(CallRuntime), U16(Runtime::kToName), R(15), U8(1),
171 B(StaContextSlot), R(context), U8(4),
172 B(LdaConstant), U8(5),
173 B(Star), R(16),
174 B(LdaConstant), U8(6),
175 B(Add), R(16), U8(5),
176 B(Star), R(15),
177 B(CallRuntime), U16(Runtime::kToName), R(15), U8(1),
178 B(StaContextSlot), R(context), U8(5),
179 B(LdaConstant), U8(7),
180 B(ToName), R(11),
181 B(CreateClosure), U8(8), U8(2),
182 B(Star), R(3),
183 B(LdaConstant), U8(9),
184 B(Star), R(17),
185 B(Ldar), R(8),
186 B(StaKeyedPropertyStrict), R(3), R(17), U8(6),
187 B(Mov), R(3), R(15),
188 B(Mov), R(8), R(16),
189 B(InvokeIntrinsic), U8(Runtime::k_Call), R(15), U8(2),
190 B(Star), R(12),
191 B(LdaSmi), U8(2),
192 B(Star), R(13),
193 B(LdaZero),
194 B(Star), R(14),
195 B(Mov), R(2), R(10),
196 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(10 ), U8(5),
197 B(CallRuntime), U16(Runtime::kToFastProperties), R(8), U8(1),
198 B(Star), R(1),
199 B(CreateClosure), U8(10), U8(2),
200 B(StaContextSlot), R(context), U8(6),
201 B(CreateClosure), U8(11), U8(2),
202 B(Star), R(4),
203 B(LdaConstant), U8(9),
204 B(Star), R(9),
205 B(LdaNamedProperty), R(1), U8(2), U8(10),
206 B(StaKeyedPropertyStrict), R(4), R(9), U8(12),
207 B(Ldar), R(4),
208 B(StaContextSlot), R(context), U8(7),
209 B(CreateClosure), U8(12), U8(2),
210 B(Star), R(5),
211 B(LdaConstant), U8(9),
212 B(Star), R(9),
213 B(LdaNamedProperty), R(1), U8(2), U8(14),
214 B(StaKeyedPropertyStrict), R(5), R(9), U8(16),
215 B(Ldar), R(5),
216 B(StaContextSlot), R(context), U8(8),
217 B(PopContext), R(6),
218 B(Ldar), R(1),
219 /* 41 E> */ B(New), R(1), R(0), U8(0), U8(1),
220 /* 143 S> */ B(Return),
221 ]
222 constant pool: [
223 FIXED_ARRAY_TYPE,
224 SHARED_FUNCTION_INFO_TYPE,
225 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"],
226 SHARED_FUNCTION_INFO_TYPE,
227 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
228 ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
229 ONE_BYTE_INTERNALIZED_STRING_TYPE ["c"],
230 ONE_BYTE_INTERNALIZED_STRING_TYPE ["d"],
231 SHARED_FUNCTION_INFO_TYPE,
232 SYMBOL_TYPE,
233 SHARED_FUNCTION_INFO_TYPE,
234 SHARED_FUNCTION_INFO_TYPE,
235 SHARED_FUNCTION_INFO_TYPE,
236 ]
237 handlers: [
238 ]
239
OLDNEW
« no previous file with comments | « src/parsing/parser-base.h ('k') | test/cctest/interpreter/generate-bytecode-expectations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698