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

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

Issue 1998203002: [Interpreter] Preserve source positions in peephole optimizer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Nitlet on last patch set. 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: yes 8 wrap: yes
9 9
10 --- 10 ---
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 handlers: [ 58 handlers: [
59 ] 59 ]
60 60
61 --- 61 ---
62 snippet: " 62 snippet: "
63 var x = 'potatoes'; 63 var x = 'potatoes';
64 for (var p in x) { return p; } 64 for (var p in x) { return p; }
65 " 65 "
66 frame size: 8 66 frame size: 8
67 parameter count: 1 67 parameter count: 1
68 bytecode array length: 45 68 bytecode array length: 46
69 bytecodes: [ 69 bytecodes: [
70 /* 30 E> */ B(StackCheck), 70 /* 30 E> */ B(StackCheck),
71 /* 42 S> */ B(LdaConstant), U8(0), 71 /* 42 S> */ B(LdaConstant), U8(0),
72 /* 42 E> */ B(Star), R(1), 72 B(Star), R(1),
73 /* 68 S> */ B(JumpIfUndefined), U8(38), 73 /* 68 S> */ B(JumpIfUndefined), U8(39),
74 B(JumpIfNull), U8(36), 74 B(JumpIfNull), U8(37),
75 B(ToObject), 75 B(ToObject),
76 B(Star), R(3), 76 B(Star), R(3),
77 B(ForInPrepare), R(4), 77 B(ForInPrepare), R(4),
78 B(LdaZero), 78 B(LdaZero),
79 B(Star), R(7), 79 B(Star), R(7),
80 /* 63 S> */ B(ForInDone), R(7), R(6), 80 /* 63 S> */ B(ForInDone), R(7), R(6),
81 B(JumpIfTrue), U8(23), 81 B(JumpIfTrue), U8(24),
82 B(ForInNext), R(3), R(7), R(4), U8(1), 82 B(ForInNext), R(3), R(7), R(4), U8(1),
83 B(JumpIfUndefined), U8(10), 83 B(JumpIfUndefined), U8(11),
84 B(Star), R(0), 84 B(Star), R(0),
85 /* 54 E> */ B(StackCheck), 85 /* 54 E> */ B(StackCheck),
86 B(Ldar), R(0), 86 B(Ldar), R(0),
87 B(Star), R(2), 87 B(Star), R(2),
88 /* 73 S> */ B(Nop),
88 /* 85 S> */ B(Return), 89 /* 85 S> */ B(Return),
89 B(ForInStep), R(7), 90 B(ForInStep), R(7),
90 B(Star), R(7), 91 B(Star), R(7),
91 B(Jump), U8(-24), 92 B(Jump), U8(-25),
92 B(LdaUndefined), 93 B(LdaUndefined),
93 /* 85 S> */ B(Return), 94 /* 85 S> */ B(Return),
94 ] 95 ]
95 constant pool: [ 96 constant pool: [
96 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 97 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
97 ] 98 ]
98 handlers: [ 99 handlers: [
99 ] 100 ]
100 101
101 --- 102 ---
102 snippet: " 103 snippet: "
103 var x = 0; 104 var x = 0;
104 for (var p in [1,2,3]) { x += p; } 105 for (var p in [1,2,3]) { x += p; }
105 " 106 "
106 frame size: 9 107 frame size: 9
107 parameter count: 1 108 parameter count: 1
108 bytecode array length: 57 109 bytecode array length: 57
109 bytecodes: [ 110 bytecodes: [
110 /* 30 E> */ B(StackCheck), 111 /* 30 E> */ B(StackCheck),
111 /* 42 S> */ B(LdaZero), 112 /* 42 S> */ B(LdaZero),
112 /* 42 E> */ B(Star), R(1), 113 B(Star), R(1),
113 /* 59 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), 114 /* 59 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3),
114 B(JumpIfUndefined), U8(47), 115 B(JumpIfUndefined), U8(47),
115 B(JumpIfNull), U8(45), 116 B(JumpIfNull), U8(45),
116 B(ToObject), 117 B(ToObject),
117 B(Star), R(3), 118 B(Star), R(3),
118 B(ForInPrepare), R(4), 119 B(ForInPrepare), R(4),
119 B(LdaZero), 120 B(LdaZero),
120 B(Star), R(7), 121 B(Star), R(7),
121 /* 54 S> */ B(ForInDone), R(7), R(6), 122 /* 54 S> */ B(ForInDone), R(7), R(6),
122 B(JumpIfTrue), U8(32), 123 B(JumpIfTrue), U8(32),
(...skipping 28 matching lines...) Expand all
151 if (x['a'] == 20) break; 152 if (x['a'] == 20) break;
152 } 153 }
153 " 154 "
154 frame size: 8 155 frame size: 8
155 parameter count: 1 156 parameter count: 1
156 bytecode array length: 94 157 bytecode array length: 94
157 bytecodes: [ 158 bytecodes: [
158 /* 30 E> */ B(StackCheck), 159 /* 30 E> */ B(StackCheck),
159 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), 160 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1),
160 B(Star), R(1), 161 B(Star), R(1),
161 /* 42 E> */ B(Star), R(0), 162 B(Star), R(0),
162 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3), 163 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3),
163 B(JumpIfUndefined), U8(79), 164 B(JumpIfUndefined), U8(79),
164 B(JumpIfNull), U8(77), 165 B(JumpIfNull), U8(77),
165 B(ToObject), 166 B(ToObject),
166 B(Star), R(1), 167 B(Star), R(1),
167 B(ForInPrepare), R(2), 168 B(ForInPrepare), R(2),
168 B(LdaZero), 169 B(LdaZero),
169 B(Star), R(5), 170 B(Star), R(5),
170 /* 68 S> */ B(ForInDone), R(5), R(4), 171 /* 68 S> */ B(ForInDone), R(5), R(4),
171 B(JumpIfTrue), U8(64), 172 B(JumpIfTrue), U8(64),
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 snippet: " 212 snippet: "
212 var x = [ 10, 11, 12 ] ; 213 var x = [ 10, 11, 12 ] ;
213 for (x[0] in [1,2,3]) { return x[3]; } 214 for (x[0] in [1,2,3]) { return x[3]; }
214 " 215 "
215 frame size: 9 216 frame size: 9
216 parameter count: 1 217 parameter count: 1
217 bytecode array length: 69 218 bytecode array length: 69
218 bytecodes: [ 219 bytecodes: [
219 /* 30 E> */ B(StackCheck), 220 /* 30 E> */ B(StackCheck),
220 /* 42 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), 221 /* 42 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3),
221 /* 42 E> */ B(Star), R(0), 222 B(Star), R(0),
222 /* 72 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3), 223 /* 72 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3),
223 B(JumpIfUndefined), U8(56), 224 B(JumpIfUndefined), U8(56),
224 B(JumpIfNull), U8(54), 225 B(JumpIfNull), U8(54),
225 B(ToObject), 226 B(ToObject),
226 B(Star), R(1), 227 B(Star), R(1),
227 B(ForInPrepare), R(2), 228 B(ForInPrepare), R(2),
228 B(LdaZero), 229 B(LdaZero),
229 B(Star), R(5), 230 B(Star), R(5),
230 /* 65 S> */ B(ForInDone), R(5), R(4), 231 /* 65 S> */ B(ForInDone), R(5), R(4),
231 B(JumpIfTrue), U8(41), 232 B(JumpIfTrue), U8(41),
(...skipping 18 matching lines...) Expand all
250 B(LdaUndefined), 251 B(LdaUndefined),
251 /* 98 S> */ B(Return), 252 /* 98 S> */ B(Return),
252 ] 253 ]
253 constant pool: [ 254 constant pool: [
254 InstanceType::FIXED_ARRAY_TYPE, 255 InstanceType::FIXED_ARRAY_TYPE,
255 InstanceType::FIXED_ARRAY_TYPE, 256 InstanceType::FIXED_ARRAY_TYPE,
256 ] 257 ]
257 handlers: [ 258 handlers: [
258 ] 259 ]
259 260
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698