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

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

Issue 2209633002: [Interpreter] Assign feedback slots for binary operations and use them in ignition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased the patch. 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: yes 8 wrap: yes
9 9
10 --- 10 ---
11 snippet: " 11 snippet: "
12 var a = 1; return ++a; 12 var a = 1; return ++a;
13 " 13 "
14 frame size: 1 14 frame size: 1
15 parameter count: 1 15 parameter count: 1
16 bytecode array length: 9 16 bytecode array length: 10
17 bytecodes: [ 17 bytecodes: [
18 /* 30 E> */ B(StackCheck), 18 /* 30 E> */ B(StackCheck),
19 /* 42 S> */ B(LdaSmi), U8(1), 19 /* 42 S> */ B(LdaSmi), U8(1),
20 B(Star), R(0), 20 B(Star), R(0),
21 /* 45 S> */ B(Inc), 21 /* 45 S> */ B(Inc), U8(1),
22 B(Star), R(0), 22 B(Star), R(0),
23 /* 57 S> */ B(Return), 23 /* 57 S> */ B(Return),
24 ] 24 ]
25 constant pool: [ 25 constant pool: [
26 ] 26 ]
27 handlers: [ 27 handlers: [
28 ] 28 ]
29 29
30 --- 30 ---
31 snippet: " 31 snippet: "
32 var a = 1; return a++; 32 var a = 1; return a++;
33 " 33 "
34 frame size: 2 34 frame size: 2
35 parameter count: 1 35 parameter count: 1
36 bytecode array length: 13 36 bytecode array length: 14
37 bytecodes: [ 37 bytecodes: [
38 /* 30 E> */ B(StackCheck), 38 /* 30 E> */ B(StackCheck),
39 /* 42 S> */ B(LdaSmi), U8(1), 39 /* 42 S> */ B(LdaSmi), U8(1),
40 B(Star), R(0), 40 B(Star), R(0),
41 /* 45 S> */ B(ToNumber), R(1), 41 /* 45 S> */ B(ToNumber), R(1),
42 B(Inc), 42 B(Inc), U8(1),
43 B(Star), R(0), 43 B(Star), R(0),
44 B(Ldar), R(1), 44 B(Ldar), R(1),
45 /* 57 S> */ B(Return), 45 /* 57 S> */ B(Return),
46 ] 46 ]
47 constant pool: [ 47 constant pool: [
48 ] 48 ]
49 handlers: [ 49 handlers: [
50 ] 50 ]
51 51
52 --- 52 ---
53 snippet: " 53 snippet: "
54 var a = 1; return --a; 54 var a = 1; return --a;
55 " 55 "
56 frame size: 1 56 frame size: 1
57 parameter count: 1 57 parameter count: 1
58 bytecode array length: 9 58 bytecode array length: 10
59 bytecodes: [ 59 bytecodes: [
60 /* 30 E> */ B(StackCheck), 60 /* 30 E> */ B(StackCheck),
61 /* 42 S> */ B(LdaSmi), U8(1), 61 /* 42 S> */ B(LdaSmi), U8(1),
62 B(Star), R(0), 62 B(Star), R(0),
63 /* 45 S> */ B(Dec), 63 /* 45 S> */ B(Dec), U8(1),
64 B(Star), R(0), 64 B(Star), R(0),
65 /* 57 S> */ B(Return), 65 /* 57 S> */ B(Return),
66 ] 66 ]
67 constant pool: [ 67 constant pool: [
68 ] 68 ]
69 handlers: [ 69 handlers: [
70 ] 70 ]
71 71
72 --- 72 ---
73 snippet: " 73 snippet: "
74 var a = 1; return a--; 74 var a = 1; return a--;
75 " 75 "
76 frame size: 2 76 frame size: 2
77 parameter count: 1 77 parameter count: 1
78 bytecode array length: 13 78 bytecode array length: 14
79 bytecodes: [ 79 bytecodes: [
80 /* 30 E> */ B(StackCheck), 80 /* 30 E> */ B(StackCheck),
81 /* 42 S> */ B(LdaSmi), U8(1), 81 /* 42 S> */ B(LdaSmi), U8(1),
82 B(Star), R(0), 82 B(Star), R(0),
83 /* 45 S> */ B(ToNumber), R(1), 83 /* 45 S> */ B(ToNumber), R(1),
84 B(Dec), 84 B(Dec), U8(1),
85 B(Star), R(0), 85 B(Star), R(0),
86 B(Ldar), R(1), 86 B(Ldar), R(1),
87 /* 57 S> */ B(Return), 87 /* 57 S> */ B(Return),
88 ] 88 ]
89 constant pool: [ 89 constant pool: [
90 ] 90 ]
91 handlers: [ 91 handlers: [
92 ] 92 ]
93 93
94 --- 94 ---
95 snippet: " 95 snippet: "
96 var a = { val: 1 }; return a.val++; 96 var a = { val: 1 }; return a.val++;
97 " 97 "
98 frame size: 3 98 frame size: 3
99 parameter count: 1 99 parameter count: 1
100 bytecode array length: 23 100 bytecode array length: 24
101 bytecodes: [ 101 bytecodes: [
102 /* 30 E> */ B(StackCheck), 102 /* 30 E> */ B(StackCheck),
103 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), 103 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1),
104 B(Star), R(1), 104 B(Star), R(1),
105 B(Star), R(0), 105 B(Star), R(0),
106 /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(1), 106 /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(1),
107 B(ToNumber), R(2), 107 B(ToNumber), R(2),
108 B(Inc), 108 B(Inc), U8(5),
109 /* 66 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(3), 109 /* 66 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(3),
110 B(Ldar), R(2), 110 B(Ldar), R(2),
111 /* 70 S> */ B(Return), 111 /* 70 S> */ B(Return),
112 ] 112 ]
113 constant pool: [ 113 constant pool: [
114 InstanceType::FIXED_ARRAY_TYPE, 114 InstanceType::FIXED_ARRAY_TYPE,
115 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 115 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
116 ] 116 ]
117 handlers: [ 117 handlers: [
118 ] 118 ]
119 119
120 --- 120 ---
121 snippet: " 121 snippet: "
122 var a = { val: 1 }; return --a.val; 122 var a = { val: 1 }; return --a.val;
123 " 123 "
124 frame size: 2 124 frame size: 2
125 parameter count: 1 125 parameter count: 1
126 bytecode array length: 19 126 bytecode array length: 20
127 bytecodes: [ 127 bytecodes: [
128 /* 30 E> */ B(StackCheck), 128 /* 30 E> */ B(StackCheck),
129 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), 129 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1),
130 B(Star), R(1), 130 B(Star), R(1),
131 B(Star), R(0), 131 B(Star), R(0),
132 /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(1), 132 /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(1),
133 B(Dec), 133 B(Dec), U8(5),
134 /* 65 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(3), 134 /* 65 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(3),
135 /* 70 S> */ B(Return), 135 /* 70 S> */ B(Return),
136 ] 136 ]
137 constant pool: [ 137 constant pool: [
138 InstanceType::FIXED_ARRAY_TYPE, 138 InstanceType::FIXED_ARRAY_TYPE,
139 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 139 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
140 ] 140 ]
141 handlers: [ 141 handlers: [
142 ] 142 ]
143 143
144 --- 144 ---
145 snippet: " 145 snippet: "
146 var name = 'var'; var a = { val: 1 }; return a[name]--; 146 var name = 'var'; var a = { val: 1 }; return a[name]--;
147 " 147 "
148 frame size: 5 148 frame size: 5
149 parameter count: 1 149 parameter count: 1
150 bytecode array length: 28 150 bytecode array length: 29
151 bytecodes: [ 151 bytecodes: [
152 /* 30 E> */ B(StackCheck), 152 /* 30 E> */ B(StackCheck),
153 /* 45 S> */ B(LdaConstant), U8(0), 153 /* 45 S> */ B(LdaConstant), U8(0),
154 B(Star), R(0), 154 B(Star), R(0),
155 /* 60 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), 155 /* 60 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1),
156 B(Star), R(2), 156 B(Star), R(2),
157 B(Star), R(1), 157 B(Star), R(1),
158 /* 72 S> */ B(Ldar), R(0), 158 /* 72 S> */ B(Ldar), R(0),
159 /* 81 E> */ B(LdaKeyedProperty), R(1), U8(1), 159 /* 81 E> */ B(LdaKeyedProperty), R(1), U8(1),
160 B(ToNumber), R(4), 160 B(ToNumber), R(4),
161 B(Dec), 161 B(Dec), U8(5),
162 /* 86 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(3), 162 /* 86 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(3),
163 B(Ldar), R(4), 163 B(Ldar), R(4),
164 /* 90 S> */ B(Return), 164 /* 90 S> */ B(Return),
165 ] 165 ]
166 constant pool: [ 166 constant pool: [
167 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 167 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
168 InstanceType::FIXED_ARRAY_TYPE, 168 InstanceType::FIXED_ARRAY_TYPE,
169 ] 169 ]
170 handlers: [ 170 handlers: [
171 ] 171 ]
172 172
173 --- 173 ---
174 snippet: " 174 snippet: "
175 var name = 'var'; var a = { val: 1 }; return ++a[name]; 175 var name = 'var'; var a = { val: 1 }; return ++a[name];
176 " 176 "
177 frame size: 3 177 frame size: 3
178 parameter count: 1 178 parameter count: 1
179 bytecode array length: 24 179 bytecode array length: 25
180 bytecodes: [ 180 bytecodes: [
181 /* 30 E> */ B(StackCheck), 181 /* 30 E> */ B(StackCheck),
182 /* 45 S> */ B(LdaConstant), U8(0), 182 /* 45 S> */ B(LdaConstant), U8(0),
183 B(Star), R(0), 183 B(Star), R(0),
184 /* 60 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), 184 /* 60 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1),
185 B(Star), R(2), 185 B(Star), R(2),
186 B(Star), R(1), 186 B(Star), R(1),
187 /* 72 S> */ B(Ldar), R(0), 187 /* 72 S> */ B(Ldar), R(0),
188 /* 83 E> */ B(LdaKeyedProperty), R(1), U8(1), 188 /* 83 E> */ B(LdaKeyedProperty), R(1), U8(1),
189 B(Inc), 189 B(Inc), U8(5),
190 /* 87 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(3), 190 /* 87 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(3),
191 /* 90 S> */ B(Return), 191 /* 90 S> */ B(Return),
192 ] 192 ]
193 constant pool: [ 193 constant pool: [
194 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 194 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
195 InstanceType::FIXED_ARRAY_TYPE, 195 InstanceType::FIXED_ARRAY_TYPE,
196 ] 196 ]
197 handlers: [ 197 handlers: [
198 ] 198 ]
199 199
200 --- 200 ---
201 snippet: " 201 snippet: "
202 var a = 1; var b = function() { return a }; return ++a; 202 var a = 1; var b = function() { return a }; return ++a;
203 " 203 "
204 frame size: 2 204 frame size: 2
205 parameter count: 1 205 parameter count: 1
206 bytecode array length: 23 206 bytecode array length: 24
207 bytecodes: [ 207 bytecodes: [
208 B(CreateFunctionContext), U8(1), 208 B(CreateFunctionContext), U8(1),
209 B(PushContext), R(1), 209 B(PushContext), R(1),
210 /* 30 E> */ B(StackCheck), 210 /* 30 E> */ B(StackCheck),
211 /* 42 S> */ B(LdaSmi), U8(1), 211 /* 42 S> */ B(LdaSmi), U8(1),
212 /* 42 E> */ B(StaContextSlot), R(context), U8(4), 212 /* 42 E> */ B(StaContextSlot), R(context), U8(4),
213 /* 53 S> */ B(CreateClosure), U8(0), U8(2), 213 /* 53 S> */ B(CreateClosure), U8(0), U8(2),
214 B(Star), R(0), 214 B(Star), R(0),
215 /* 78 S> */ B(LdaContextSlot), R(context), U8(4), 215 /* 78 S> */ B(LdaContextSlot), R(context), U8(4),
216 B(Inc), 216 B(Inc), U8(1),
217 /* 87 E> */ B(StaContextSlot), R(context), U8(4), 217 /* 87 E> */ B(StaContextSlot), R(context), U8(4),
218 /* 90 S> */ B(Return), 218 /* 90 S> */ B(Return),
219 ] 219 ]
220 constant pool: [ 220 constant pool: [
221 InstanceType::SHARED_FUNCTION_INFO_TYPE, 221 InstanceType::SHARED_FUNCTION_INFO_TYPE,
222 ] 222 ]
223 handlers: [ 223 handlers: [
224 ] 224 ]
225 225
226 --- 226 ---
227 snippet: " 227 snippet: "
228 var a = 1; var b = function() { return a }; return a--; 228 var a = 1; var b = function() { return a }; return a--;
229 " 229 "
230 frame size: 3 230 frame size: 3
231 parameter count: 1 231 parameter count: 1
232 bytecode array length: 27 232 bytecode array length: 28
233 bytecodes: [ 233 bytecodes: [
234 B(CreateFunctionContext), U8(1), 234 B(CreateFunctionContext), U8(1),
235 B(PushContext), R(1), 235 B(PushContext), R(1),
236 /* 30 E> */ B(StackCheck), 236 /* 30 E> */ B(StackCheck),
237 /* 42 S> */ B(LdaSmi), U8(1), 237 /* 42 S> */ B(LdaSmi), U8(1),
238 /* 42 E> */ B(StaContextSlot), R(context), U8(4), 238 /* 42 E> */ B(StaContextSlot), R(context), U8(4),
239 /* 53 S> */ B(CreateClosure), U8(0), U8(2), 239 /* 53 S> */ B(CreateClosure), U8(0), U8(2),
240 B(Star), R(0), 240 B(Star), R(0),
241 /* 78 S> */ B(LdaContextSlot), R(context), U8(4), 241 /* 78 S> */ B(LdaContextSlot), R(context), U8(4),
242 B(ToNumber), R(2), 242 B(ToNumber), R(2),
243 B(Dec), 243 B(Dec), U8(1),
244 /* 86 E> */ B(StaContextSlot), R(context), U8(4), 244 /* 86 E> */ B(StaContextSlot), R(context), U8(4),
245 B(Ldar), R(2), 245 B(Ldar), R(2),
246 /* 90 S> */ B(Return), 246 /* 90 S> */ B(Return),
247 ] 247 ]
248 constant pool: [ 248 constant pool: [
249 InstanceType::SHARED_FUNCTION_INFO_TYPE, 249 InstanceType::SHARED_FUNCTION_INFO_TYPE,
250 ] 250 ]
251 handlers: [ 251 handlers: [
252 ] 252 ]
253 253
254 --- 254 ---
255 snippet: " 255 snippet: "
256 var idx = 1; var a = [1, 2]; return a[idx++] = 2; 256 var idx = 1; var a = [1, 2]; return a[idx++] = 2;
257 " 257 "
258 frame size: 4 258 frame size: 4
259 parameter count: 1 259 parameter count: 1
260 bytecode array length: 25 260 bytecode array length: 26
261 bytecodes: [ 261 bytecodes: [
262 /* 30 E> */ B(StackCheck), 262 /* 30 E> */ B(StackCheck),
263 /* 44 S> */ B(LdaSmi), U8(1), 263 /* 44 S> */ B(LdaSmi), U8(1),
264 B(Star), R(0), 264 B(Star), R(0),
265 /* 55 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), 265 /* 55 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3),
266 B(Star), R(1), 266 B(Star), R(1),
267 /* 63 S> */ B(Ldar), R(0), 267 /* 63 S> */ B(Ldar), R(0),
268 B(ToNumber), R(3), 268 B(ToNumber), R(3),
269 B(Inc), 269 B(Inc), U8(1),
270 B(Star), R(0), 270 B(Star), R(0),
271 B(LdaSmi), U8(2), 271 B(LdaSmi), U8(2),
272 /* 79 E> */ B(StaKeyedPropertySloppy), R(1), R(3), U8(1), 272 /* 79 E> */ B(StaKeyedPropertySloppy), R(1), R(3), U8(2),
273 /* 84 S> */ B(Return), 273 /* 84 S> */ B(Return),
274 ] 274 ]
275 constant pool: [ 275 constant pool: [
276 InstanceType::FIXED_ARRAY_TYPE, 276 InstanceType::FIXED_ARRAY_TYPE,
277 ] 277 ]
278 handlers: [ 278 handlers: [
279 ] 279 ]
280 280
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698