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

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

Issue 2459513002: [ignition] Add bytecodes for loads/stores in the current context (Closed)
Patch Set: s/LocalContext/CurrentContext/g Created 4 years, 1 month 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 {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
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: 11 123 frame size: 11
124 parameter count: 1 124 parameter count: 1
125 bytecode array length: 128 125 bytecode array length: 120
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(StaContextSlot), R(context), U8(4), U8(0), 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(StaContextSlot), R(context), U8(5), U8(0), 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),
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(LdrNamedProperty), R(4), U8(3), U8(2), R(5), 148 B(LdrNamedProperty), R(4), U8(3), U8(2), R(5),
149 /* 75 E> */ B(LdaContextSlot), R(context), U8(4), U8(0), 149 /* 75 E> */ B(LdaCurrentContextSlot), U8(4),
150 B(ToName), R(7), 150 B(ToName), R(7),
151 B(CreateClosure), U8(4), U8(2), 151 B(CreateClosure), U8(4), U8(2),
152 B(Star), R(8), 152 B(Star), R(8),
153 B(LdaSmi), U8(2), 153 B(LdaSmi), U8(2),
154 B(Star), R(9), 154 B(Star), R(9),
155 B(LdaSmi), U8(1), 155 B(LdaSmi), U8(1),
156 B(Star), R(10), 156 B(Star), R(10),
157 B(Mov), R(5), R(6), 157 B(Mov), R(5), R(6),
158 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(6) , U8(5), 158 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(6) , U8(5),
159 /* 106 E> */ B(LdaContextSlot), R(context), U8(5), U8(0), 159 /* 106 E> */ B(LdaCurrentContextSlot), U8(5),
160 B(ToName), R(7), 160 B(ToName), R(7),
161 B(LdaConstant), U8(3), 161 B(LdaConstant), U8(3),
162 B(TestEqualStrict), R(7), U8(0), 162 B(TestEqualStrict), R(7), U8(0),
163 B(Mov), R(4), R(6), 163 B(Mov), R(4), R(6),
164 B(JumpIfToBooleanFalse), U8(7), 164 B(JumpIfToBooleanFalse), U8(7),
165 B(CallRuntime), U16(Runtime::kThrowStaticPrototypeError), R(0), U8(0), 165 B(CallRuntime), U16(Runtime::kThrowStaticPrototypeError), R(0), U8(0),
166 B(CreateClosure), U8(5), U8(2), 166 B(CreateClosure), U8(5), U8(2),
167 B(Star), R(8), 167 B(Star), R(8),
168 B(LdaSmi), U8(1), 168 B(LdaSmi), U8(1),
169 B(Star), R(10), 169 B(Star), R(10),
(...skipping 17 matching lines...) Expand all
187 ] 187 ]
188 188
189 --- 189 ---
190 snippet: " 190 snippet: "
191 var count = 0; 191 var count = 0;
192 class C { constructor() { count++; }} 192 class C { constructor() { count++; }}
193 return new C(); 193 return new C();
194 " 194 "
195 frame size: 8 195 frame size: 8
196 parameter count: 1 196 parameter count: 1
197 bytecode array length: 62 197 bytecode array length: 60
198 bytecodes: [ 198 bytecodes: [
199 B(CreateFunctionContext), U8(1), 199 B(CreateFunctionContext), U8(1),
200 B(PushContext), R(3), 200 B(PushContext), R(3),
201 B(LdaTheHole), 201 B(LdaTheHole),
202 B(Star), R(2), 202 B(Star), R(2),
203 /* 30 E> */ B(StackCheck), 203 /* 30 E> */ B(StackCheck),
204 /* 46 S> */ B(LdaZero), 204 /* 46 S> */ B(LdaZero),
205 /* 46 E> */ B(StaContextSlot), R(context), U8(4), U8(0), 205 /* 46 E> */ B(StaCurrentContextSlot), U8(4),
206 B(LdaTheHole), 206 B(LdaTheHole),
207 B(Star), R(0), 207 B(Star), R(0),
208 /* 49 S> */ B(LdaTheHole), 208 /* 49 S> */ B(LdaTheHole),
209 B(Star), R(4), 209 B(Star), R(4),
210 B(CreateClosure), U8(0), U8(2), 210 B(CreateClosure), U8(0), U8(2),
211 B(Star), R(5), 211 B(Star), R(5),
212 B(LdaSmi), U8(49), 212 B(LdaSmi), U8(49),
213 B(Star), R(6), 213 B(Star), R(6),
214 B(LdaSmi), U8(86), 214 B(LdaSmi), U8(86),
215 B(Star), R(7), 215 B(Star), R(7),
216 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), 216 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4),
217 B(Star), R(4), 217 B(Star), R(4),
218 B(LdrNamedProperty), R(4), U8(1), U8(2), R(5), 218 B(LdrNamedProperty), R(4), U8(1), U8(2), R(5),
219 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1), 219 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1),
220 B(Star), R(0), 220 B(Star), R(0),
221 B(Star), R(1), 221 B(Star), R(1),
222 B(Star), R(2), 222 B(Star), R(2),
223 /* 87 S> */ B(Nop), 223 /* 87 S> */ B(Nop),
224 /* 94 E> */ B(New), R(2), R(0), U8(0), U8(4), 224 /* 94 E> */ B(New), R(2), R(0), U8(0), U8(4),
225 /* 103 S> */ B(Return), 225 /* 103 S> */ B(Return),
226 ] 226 ]
227 constant pool: [ 227 constant pool: [
228 SHARED_FUNCTION_INFO_TYPE, 228 SHARED_FUNCTION_INFO_TYPE,
229 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], 229 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"],
230 ] 230 ]
231 handlers: [ 231 handlers: [
232 ] 232 ]
233 233
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698