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

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

Issue 1947403002: [interpreter] Introduce bytecode generation pipeline. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Attempt to fix compilation with gcc/msvc and introduce nop to simplify source positions in peephole… Created 4 years, 7 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 pool type: mixed 6 pool type: mixed
7 execute: yes 7 execute: yes
8 wrap: no 8 wrap: no
9 test function name: test 9 test function name: test
10 10
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 constructor(x) { this.x_ = x; } 129 constructor(x) { this.x_ = x; }
130 } 130 }
131 class B extends A { 131 class B extends A {
132 constructor() { super(1); this.y_ = 2; } 132 constructor() { super(1); this.y_ = 2; }
133 } 133 }
134 test = new B().constructor; 134 test = new B().constructor;
135 })(); 135 })();
136 " 136 "
137 frame size: 5 137 frame size: 5
138 parameter count: 1 138 parameter count: 1
139 bytecode array length: 106 139 bytecode array length: 107
140 bytecodes: [ 140 bytecodes: [
141 B(Ldar), R(closure), 141 B(Ldar), R(closure),
142 B(Star), R(1), 142 B(Star), R(1),
143 B(Ldar), R(new_target), 143 B(Ldar), R(new_target),
144 B(Star), R(0), 144 B(Star), R(0),
145 B(StackCheck), 145 B(StackCheck),
146 B(Ldar), R(1), 146 B(Ldar), R(1),
147 B(JumpIfNotHole), U8(11), 147 B(JumpIfNotHole), U8(11),
148 B(LdaConstant), U8(0), 148 B(LdaConstant), U8(0),
149 B(Star), R(3), 149 B(Star), R(3),
(...skipping 11 matching lines...) Expand all
161 B(New), R(2), R(3), U8(1), 161 B(New), R(2), R(3), U8(1),
162 B(Star), R(2), 162 B(Star), R(2),
163 B(Ldar), R(this), 163 B(Ldar), R(this),
164 B(JumpIfNotHole), U8(4), 164 B(JumpIfNotHole), U8(4),
165 B(Jump), U8(11), 165 B(Jump), U8(11),
166 B(LdaConstant), U8(2), 166 B(LdaConstant), U8(2),
167 B(Star), R(3), 167 B(Star), R(3),
168 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 168 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
169 B(Ldar), R(2), 169 B(Ldar), R(2),
170 B(Star), R(this), 170 B(Star), R(this),
171 B(Nop),
171 B(JumpIfNotHole), U8(11), 172 B(JumpIfNotHole), U8(11),
172 B(LdaConstant), U8(2), 173 B(LdaConstant), U8(2),
173 B(Star), R(2), 174 B(Star), R(2),
174 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), 175 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
175 B(Star), R(2), 176 B(Star), R(2),
176 B(LdaSmi), U8(2), 177 B(LdaSmi), U8(2),
177 B(StoreICStrict), R(2), U8(3), U8(4), 178 B(StoreICStrict), R(2), U8(3), U8(4),
178 B(Ldar), R(this), 179 B(Ldar), R(this),
179 B(JumpIfNotHole), U8(11), 180 B(JumpIfNotHole), U8(11),
180 B(LdaConstant), U8(2), 181 B(LdaConstant), U8(2),
(...skipping 18 matching lines...) Expand all
199 constructor() { this.x_ = 1; } 200 constructor() { this.x_ = 1; }
200 } 201 }
201 class B extends A { 202 class B extends A {
202 constructor() { super(); this.y_ = 2; } 203 constructor() { super(); this.y_ = 2; }
203 } 204 }
204 test = new B().constructor; 205 test = new B().constructor;
205 })(); 206 })();
206 " 207 "
207 frame size: 4 208 frame size: 4
208 parameter count: 1 209 parameter count: 1
209 bytecode array length: 102 210 bytecode array length: 103
210 bytecodes: [ 211 bytecodes: [
211 B(Ldar), R(closure), 212 B(Ldar), R(closure),
212 B(Star), R(1), 213 B(Star), R(1),
213 B(Ldar), R(new_target), 214 B(Ldar), R(new_target),
214 B(Star), R(0), 215 B(Star), R(0),
215 B(StackCheck), 216 B(StackCheck),
216 B(Ldar), R(1), 217 B(Ldar), R(1),
217 B(JumpIfNotHole), U8(11), 218 B(JumpIfNotHole), U8(11),
218 B(LdaConstant), U8(0), 219 B(LdaConstant), U8(0),
219 B(Star), R(3), 220 B(Star), R(3),
220 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 221 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
221 B(Star), R(2), 222 B(Star), R(2),
222 B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1), 223 B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1),
223 B(Star), R(2), 224 B(Star), R(2),
224 B(Ldar), R(0), 225 B(Ldar), R(0),
225 B(JumpIfNotHole), U8(11), 226 B(JumpIfNotHole), U8(11),
226 B(LdaConstant), U8(1), 227 B(LdaConstant), U8(1),
227 B(Star), R(3), 228 B(Star), R(3),
228 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 229 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
229 B(New), R(2), R(0), U8(0), 230 B(New), R(2), R(0), U8(0),
230 B(Star), R(2), 231 B(Star), R(2),
231 B(Ldar), R(this), 232 B(Ldar), R(this),
232 B(JumpIfNotHole), U8(4), 233 B(JumpIfNotHole), U8(4),
233 B(Jump), U8(11), 234 B(Jump), U8(11),
234 B(LdaConstant), U8(2), 235 B(LdaConstant), U8(2),
235 B(Star), R(3), 236 B(Star), R(3),
236 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 237 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
237 B(Ldar), R(2), 238 B(Ldar), R(2),
238 B(Star), R(this), 239 B(Star), R(this),
240 B(Nop),
239 B(JumpIfNotHole), U8(11), 241 B(JumpIfNotHole), U8(11),
240 B(LdaConstant), U8(2), 242 B(LdaConstant), U8(2),
241 B(Star), R(2), 243 B(Star), R(2),
242 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), 244 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
243 B(Star), R(2), 245 B(Star), R(2),
244 B(LdaSmi), U8(2), 246 B(LdaSmi), U8(2),
245 B(StoreICStrict), R(2), U8(3), U8(4), 247 B(StoreICStrict), R(2), U8(3), U8(4),
246 B(Ldar), R(this), 248 B(Ldar), R(this),
247 B(JumpIfNotHole), U8(11), 249 B(JumpIfNotHole), U8(11),
248 B(LdaConstant), U8(2), 250 B(LdaConstant), U8(2),
249 B(Star), R(2), 251 B(Star), R(2),
250 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), 252 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
251 B(Return), 253 B(Return),
252 ] 254 ]
253 constant pool: [ 255 constant pool: [
254 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 256 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
255 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 257 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
256 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 258 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
257 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 259 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
258 ] 260 ]
259 handlers: [ 261 handlers: [
260 ] 262 ]
261 263
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698