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

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

Issue 2111923002: [interpreter] Introduce binary op bytecodes for Smi operand. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 5 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: number 6 pool type: number
7 execute: yes 7 execute: yes
8 wrap: yes 8 wrap: yes
9 9
10 --- 10 ---
(...skipping 14 matching lines...) Expand all
25 ] 25 ]
26 handlers: [ 26 handlers: [
27 ] 27 ]
28 28
29 --- 29 ---
30 snippet: " 30 snippet: "
31 var x = 0; return x + 3; 31 var x = 0; return x + 3;
32 " 32 "
33 frame size: 1 33 frame size: 1
34 parameter count: 1 34 parameter count: 1
35 bytecode array length: 9 35 bytecode array length: 8
36 bytecodes: [ 36 bytecodes: [
37 /* 30 E> */ B(StackCheck), 37 /* 30 E> */ B(StackCheck),
38 /* 42 S> */ B(LdaZero), 38 /* 42 S> */ B(LdaZero),
39 B(Star), R(0), 39 B(Star), R(0),
40 /* 45 S> */ B(LdaSmi), U8(3), 40 /* 45 S> */ B(AddSmi), U8(3), R(0),
41 B(Add), R(0),
42 /* 59 S> */ B(Return), 41 /* 59 S> */ B(Return),
43 ] 42 ]
44 constant pool: [ 43 constant pool: [
45 ] 44 ]
46 handlers: [ 45 handlers: [
47 ] 46 ]
48 47
49 --- 48 ---
50 snippet: " 49 snippet: "
51 var x = 0; return x - 3; 50 var x = 0; return x - 3;
52 " 51 "
53 frame size: 1 52 frame size: 1
54 parameter count: 1 53 parameter count: 1
55 bytecode array length: 9 54 bytecode array length: 8
56 bytecodes: [ 55 bytecodes: [
57 /* 30 E> */ B(StackCheck), 56 /* 30 E> */ B(StackCheck),
58 /* 42 S> */ B(LdaZero), 57 /* 42 S> */ B(LdaZero),
59 B(Star), R(0), 58 B(Star), R(0),
60 /* 45 S> */ B(LdaSmi), U8(3), 59 /* 45 S> */ B(SubSmi), U8(3), R(0),
61 B(Sub), R(0),
62 /* 59 S> */ B(Return), 60 /* 59 S> */ B(Return),
63 ] 61 ]
64 constant pool: [ 62 constant pool: [
65 ] 63 ]
66 handlers: [ 64 handlers: [
67 ] 65 ]
68 66
69 --- 67 ---
70 snippet: " 68 snippet: "
71 var x = 4; return x * 3; 69 var x = 4; return x * 3;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 ] 123 ]
126 handlers: [ 124 handlers: [
127 ] 125 ]
128 126
129 --- 127 ---
130 snippet: " 128 snippet: "
131 var x = 1; return x | 2; 129 var x = 1; return x | 2;
132 " 130 "
133 frame size: 1 131 frame size: 1
134 parameter count: 1 132 parameter count: 1
135 bytecode array length: 10 133 bytecode array length: 9
136 bytecodes: [ 134 bytecodes: [
137 /* 30 E> */ B(StackCheck), 135 /* 30 E> */ B(StackCheck),
138 /* 42 S> */ B(LdaSmi), U8(1), 136 /* 42 S> */ B(LdaSmi), U8(1),
139 B(Star), R(0), 137 B(Star), R(0),
140 /* 45 S> */ B(LdaSmi), U8(2), 138 /* 45 S> */ B(BitwiseOrSmi), U8(2), R(0),
141 B(BitwiseOr), R(0),
142 /* 59 S> */ B(Return), 139 /* 59 S> */ B(Return),
143 ] 140 ]
144 constant pool: [ 141 constant pool: [
145 ] 142 ]
146 handlers: [ 143 handlers: [
147 ] 144 ]
148 145
149 --- 146 ---
150 snippet: " 147 snippet: "
151 var x = 1; return x ^ 2; 148 var x = 1; return x ^ 2;
(...skipping 13 matching lines...) Expand all
165 ] 162 ]
166 handlers: [ 163 handlers: [
167 ] 164 ]
168 165
169 --- 166 ---
170 snippet: " 167 snippet: "
171 var x = 1; return x & 2; 168 var x = 1; return x & 2;
172 " 169 "
173 frame size: 1 170 frame size: 1
174 parameter count: 1 171 parameter count: 1
175 bytecode array length: 10 172 bytecode array length: 9
176 bytecodes: [ 173 bytecodes: [
177 /* 30 E> */ B(StackCheck), 174 /* 30 E> */ B(StackCheck),
178 /* 42 S> */ B(LdaSmi), U8(1), 175 /* 42 S> */ B(LdaSmi), U8(1),
179 B(Star), R(0), 176 B(Star), R(0),
180 /* 45 S> */ B(LdaSmi), U8(2), 177 /* 45 S> */ B(BitwiseAndSmi), U8(2), R(0),
181 B(BitwiseAnd), R(0),
182 /* 59 S> */ B(Return), 178 /* 59 S> */ B(Return),
183 ] 179 ]
184 constant pool: [ 180 constant pool: [
185 ] 181 ]
186 handlers: [ 182 handlers: [
187 ] 183 ]
188 184
189 --- 185 ---
190 snippet: " 186 snippet: "
191 var x = 10; return x << 3; 187 var x = 10; return x << 3;
192 " 188 "
193 frame size: 1 189 frame size: 1
194 parameter count: 1 190 parameter count: 1
195 bytecode array length: 10 191 bytecode array length: 9
196 bytecodes: [ 192 bytecodes: [
197 /* 30 E> */ B(StackCheck), 193 /* 30 E> */ B(StackCheck),
198 /* 42 S> */ B(LdaSmi), U8(10), 194 /* 42 S> */ B(LdaSmi), U8(10),
199 B(Star), R(0), 195 B(Star), R(0),
200 /* 46 S> */ B(LdaSmi), U8(3), 196 /* 46 S> */ B(ShiftLeftSmi), U8(3), R(0),
201 B(ShiftLeft), R(0),
202 /* 61 S> */ B(Return), 197 /* 61 S> */ B(Return),
203 ] 198 ]
204 constant pool: [ 199 constant pool: [
205 ] 200 ]
206 handlers: [ 201 handlers: [
207 ] 202 ]
208 203
209 --- 204 ---
210 snippet: " 205 snippet: "
211 var x = 10; return x >> 3; 206 var x = 10; return x >> 3;
212 " 207 "
213 frame size: 1 208 frame size: 1
214 parameter count: 1 209 parameter count: 1
215 bytecode array length: 10 210 bytecode array length: 9
216 bytecodes: [ 211 bytecodes: [
217 /* 30 E> */ B(StackCheck), 212 /* 30 E> */ B(StackCheck),
218 /* 42 S> */ B(LdaSmi), U8(10), 213 /* 42 S> */ B(LdaSmi), U8(10),
219 B(Star), R(0), 214 B(Star), R(0),
220 /* 46 S> */ B(LdaSmi), U8(3), 215 /* 46 S> */ B(ShiftRightSmi), U8(3), R(0),
221 B(ShiftRight), R(0),
222 /* 61 S> */ B(Return), 216 /* 61 S> */ B(Return),
223 ] 217 ]
224 constant pool: [ 218 constant pool: [
225 ] 219 ]
226 handlers: [ 220 handlers: [
227 ] 221 ]
228 222
229 --- 223 ---
230 snippet: " 224 snippet: "
231 var x = 10; return x >>> 3; 225 var x = 10; return x >>> 3;
(...skipping 26 matching lines...) Expand all
258 /* 42 S> */ B(LdaZero), 252 /* 42 S> */ B(LdaZero),
259 B(Star), R(0), 253 B(Star), R(0),
260 /* 45 S> */ B(LdaSmi), U8(3), 254 /* 45 S> */ B(LdaSmi), U8(3),
261 /* 60 S> */ B(Return), 255 /* 60 S> */ B(Return),
262 ] 256 ]
263 constant pool: [ 257 constant pool: [
264 ] 258 ]
265 handlers: [ 259 handlers: [
266 ] 260 ]
267 261
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698