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

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

Issue 2187523002: [interpreter] Add CreateFunctionContext bytecode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@fncontextstubslotparam
Patch Set: fix bytecode graph builder Created 4 years, 4 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: f 9 test function name: f
10 10
11 --- 11 ---
12 snippet: " 12 snippet: "
13 function* f() { } 13 function* f() { }
14 f(); 14 f();
15 " 15 "
16 frame size: 11 16 frame size: 11
17 parameter count: 1 17 parameter count: 1
18 bytecode array length: 200 18 bytecode array length: 197
19 bytecodes: [ 19 bytecodes: [
20 B(Ldar), R(new_target), 20 B(Ldar), R(new_target),
21 B(JumpIfUndefined), U8(20), 21 B(JumpIfUndefined), U8(20),
22 B(ResumeGenerator), R(new_target), 22 B(ResumeGenerator), R(new_target),
23 B(Star), R(1), 23 B(Star), R(1),
24 B(LdaZero), 24 B(LdaZero),
25 B(TestEqualStrict), R(1), 25 B(TestEqualStrict), R(1),
26 B(JumpIfTrue), U8(56), 26 B(JumpIfTrue), U8(53),
27 B(LdaSmi), U8(75), 27 B(LdaSmi), U8(75),
28 B(Star), R(2), 28 B(Star), R(2),
29 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 29 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
30 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1), 30 B(CreateFunctionContext), U8(2),
31 B(PushContext), R(0), 31 B(PushContext), R(0),
32 B(Ldar), R(this), 32 B(Ldar), R(this),
33 B(StaContextSlot), R(context), U8(4), 33 B(StaContextSlot), R(context), U8(4),
34 /* 11 E> */ B(StackCheck), 34 /* 11 E> */ B(StackCheck),
35 B(Mov), R(context), R(4), 35 B(Mov), R(context), R(4),
36 /* 11 E> */ B(LdrContextSlot), R(context), U8(4), R(6), 36 /* 11 E> */ B(LdrContextSlot), R(context), U8(4), R(6),
37 B(Ldar), R(6), 37 B(Ldar), R(6),
38 B(Mov), R(closure), R(5), 38 B(Mov), R(closure), R(5),
39 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(5), U8 (2), 39 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(5), U8 (2),
40 B(StaContextSlot), R(context), U8(5), 40 B(StaContextSlot), R(context), U8(5),
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 B(Ldar), R(3), 101 B(Ldar), R(3),
102 /* 16 S> */ B(Return), 102 /* 16 S> */ B(Return),
103 B(Ldar), R(3), 103 B(Ldar), R(3),
104 B(ReThrow), 104 B(ReThrow),
105 B(LdaUndefined), 105 B(LdaUndefined),
106 /* 16 S> */ B(Return), 106 /* 16 S> */ B(Return),
107 ] 107 ]
108 constant pool: [ 108 constant pool: [
109 ] 109 ]
110 handlers: [ 110 handlers: [
111 [38, 137, 143], 111 [35, 134, 140],
112 ] 112 ]
113 113
114 --- 114 ---
115 snippet: " 115 snippet: "
116 function* f() { yield 42 } 116 function* f() { yield 42 }
117 f(); 117 f();
118 " 118 "
119 frame size: 11 119 frame size: 11
120 parameter count: 1 120 parameter count: 1
121 bytecode array length: 293 121 bytecode array length: 290
122 bytecodes: [ 122 bytecodes: [
123 B(Ldar), R(new_target), 123 B(Ldar), R(new_target),
124 B(JumpIfUndefined), U8(26), 124 B(JumpIfUndefined), U8(26),
125 B(ResumeGenerator), R(new_target), 125 B(ResumeGenerator), R(new_target),
126 B(Star), R(1), 126 B(Star), R(1),
127 B(LdaZero), 127 B(LdaZero),
128 B(TestEqualStrict), R(1), 128 B(TestEqualStrict), R(1),
129 B(JumpIfTrue), U8(62), 129 B(JumpIfTrue), U8(59),
130 B(LdaSmi), U8(1), 130 B(LdaSmi), U8(1),
131 B(TestEqualStrict), R(1), 131 B(TestEqualStrict), R(1),
132 B(JumpIfTrueConstant), U8(0), 132 B(JumpIfTrueConstant), U8(0),
133 B(LdaSmi), U8(75), 133 B(LdaSmi), U8(75),
134 B(Star), R(2), 134 B(Star), R(2),
135 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 135 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
136 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1), 136 B(CreateFunctionContext), U8(2),
137 B(PushContext), R(0), 137 B(PushContext), R(0),
138 B(Ldar), R(this), 138 B(Ldar), R(this),
139 B(StaContextSlot), R(context), U8(4), 139 B(StaContextSlot), R(context), U8(4),
140 /* 11 E> */ B(StackCheck), 140 /* 11 E> */ B(StackCheck),
141 B(Mov), R(context), R(4), 141 B(Mov), R(context), R(4),
142 /* 11 E> */ B(LdrContextSlot), R(context), U8(4), R(6), 142 /* 11 E> */ B(LdrContextSlot), R(context), U8(4), R(6),
143 B(Ldar), R(6), 143 B(Ldar), R(6),
144 B(Mov), R(closure), R(5), 144 B(Mov), R(closure), R(5),
145 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(5), U8 (2), 145 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(5), U8 (2),
146 B(StaContextSlot), R(context), U8(5), 146 B(StaContextSlot), R(context), U8(5),
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 /* 25 S> */ B(Return), 247 /* 25 S> */ B(Return),
248 B(Ldar), R(3), 248 B(Ldar), R(3),
249 B(ReThrow), 249 B(ReThrow),
250 B(LdaUndefined), 250 B(LdaUndefined),
251 /* 25 S> */ B(Return), 251 /* 25 S> */ B(Return),
252 ] 252 ]
253 constant pool: [ 253 constant pool: [
254 kInstanceTypeDontCare, 254 kInstanceTypeDontCare,
255 ] 255 ]
256 handlers: [ 256 handlers: [
257 [44, 221, 227], 257 [41, 218, 224],
258 ] 258 ]
259 259
260 --- 260 ---
261 snippet: " 261 snippet: "
262 function* f() { for (let x of [42]) yield x } 262 function* f() { for (let x of [42]) yield x }
263 f(); 263 f();
264 " 264 "
265 frame size: 18 265 frame size: 18
266 parameter count: 1 266 parameter count: 1
267 bytecode array length: 772 267 bytecode array length: 769
268 bytecodes: [ 268 bytecodes: [
269 B(Ldar), R(new_target), 269 B(Ldar), R(new_target),
270 B(JumpIfUndefined), U8(26), 270 B(JumpIfUndefined), U8(26),
271 B(ResumeGenerator), R(new_target), 271 B(ResumeGenerator), R(new_target),
272 B(Star), R(4), 272 B(Star), R(4),
273 B(LdaZero), 273 B(LdaZero),
274 B(TestEqualStrict), R(4), 274 B(TestEqualStrict), R(4),
275 B(JumpIfTrue), U8(62), 275 B(JumpIfTrue), U8(59),
276 B(LdaSmi), U8(1), 276 B(LdaSmi), U8(1),
277 B(TestEqualStrict), R(4), 277 B(TestEqualStrict), R(4),
278 B(JumpIfTrueConstant), U8(3), 278 B(JumpIfTrueConstant), U8(3),
279 B(LdaSmi), U8(75), 279 B(LdaSmi), U8(75),
280 B(Star), R(5), 280 B(Star), R(5),
281 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), 281 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1),
282 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1), 282 B(CreateFunctionContext), U8(9),
283 B(PushContext), R(0), 283 B(PushContext), R(0),
284 B(Ldar), R(this), 284 B(Ldar), R(this),
285 B(StaContextSlot), R(context), U8(4), 285 B(StaContextSlot), R(context), U8(4),
286 /* 11 E> */ B(StackCheck), 286 /* 11 E> */ B(StackCheck),
287 B(Mov), R(context), R(7), 287 B(Mov), R(context), R(7),
288 /* 11 E> */ B(LdrContextSlot), R(context), U8(4), R(9), 288 /* 11 E> */ B(LdrContextSlot), R(context), U8(4), R(9),
289 B(Ldar), R(9), 289 B(Ldar), R(9),
290 B(Mov), R(closure), R(8), 290 B(Mov), R(closure), R(8),
291 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(8), U8 (2), 291 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(8), U8 (2),
292 B(StaContextSlot), R(context), U8(5), 292 B(StaContextSlot), R(context), U8(5),
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 kInstanceTypeDontCare, 591 kInstanceTypeDontCare,
592 kInstanceTypeDontCare, 592 kInstanceTypeDontCare,
593 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 593 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
594 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 594 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
595 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 595 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
596 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 596 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
597 kInstanceTypeDontCare, 597 kInstanceTypeDontCare,
598 kInstanceTypeDontCare, 598 kInstanceTypeDontCare,
599 ] 599 ]
600 handlers: [ 600 handlers: [
601 [44, 691, 697], 601 [41, 688, 694],
602 [150, 445, 451], 602 [147, 442, 448],
603 [153, 399, 401], 603 [150, 396, 398],
604 [548, 560, 562], 604 [545, 557, 559],
605 ] 605 ]
606 606
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698