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

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

Issue 2165953002: [interpreter] Add a register operand to ToNumber (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: comments 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: mixed 6 pool type: mixed
7 execute: yes 7 execute: yes
8 wrap: yes 8 wrap: yes
9 9
10 --- 10 ---
(...skipping 15 matching lines...) Expand all
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: 14 36 bytecode array length: 13
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), 41 /* 45 S> */ B(ToNumber), R(1),
42 B(Star), R(1),
43 B(Inc), 42 B(Inc),
44 B(Star), R(0), 43 B(Star), R(0),
45 B(Ldar), R(1), 44 B(Ldar), R(1),
46 /* 57 S> */ B(Return), 45 /* 57 S> */ B(Return),
47 ] 46 ]
48 constant pool: [ 47 constant pool: [
49 ] 48 ]
50 handlers: [ 49 handlers: [
51 ] 50 ]
52 51
(...skipping 16 matching lines...) Expand all
69 ] 68 ]
70 handlers: [ 69 handlers: [
71 ] 70 ]
72 71
73 --- 72 ---
74 snippet: " 73 snippet: "
75 var a = 1; return a--; 74 var a = 1; return a--;
76 " 75 "
77 frame size: 2 76 frame size: 2
78 parameter count: 1 77 parameter count: 1
79 bytecode array length: 14 78 bytecode array length: 13
80 bytecodes: [ 79 bytecodes: [
81 /* 30 E> */ B(StackCheck), 80 /* 30 E> */ B(StackCheck),
82 /* 42 S> */ B(LdaSmi), U8(1), 81 /* 42 S> */ B(LdaSmi), U8(1),
83 B(Star), R(0), 82 B(Star), R(0),
84 /* 45 S> */ B(ToNumber), 83 /* 45 S> */ B(ToNumber), R(1),
85 B(Star), R(1),
86 B(Dec), 84 B(Dec),
87 B(Star), R(0), 85 B(Star), R(0),
88 B(Ldar), R(1), 86 B(Ldar), R(1),
89 /* 57 S> */ B(Return), 87 /* 57 S> */ B(Return),
90 ] 88 ]
91 constant pool: [ 89 constant pool: [
92 ] 90 ]
93 handlers: [ 91 handlers: [
94 ] 92 ]
95 93
96 --- 94 ---
97 snippet: " 95 snippet: "
98 var a = { val: 1 }; return a.val++; 96 var a = { val: 1 }; return a.val++;
99 " 97 "
100 frame size: 3 98 frame size: 3
101 parameter count: 1 99 parameter count: 1
102 bytecode array length: 24 100 bytecode array length: 23
103 bytecodes: [ 101 bytecodes: [
104 /* 30 E> */ B(StackCheck), 102 /* 30 E> */ B(StackCheck),
105 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), 103 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1),
106 B(Star), R(1), 104 B(Star), R(1),
107 B(Star), R(0), 105 B(Star), R(0),
108 /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(1), 106 /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(1),
109 B(ToNumber), 107 B(ToNumber), R(2),
110 B(Star), R(2),
111 B(Inc), 108 B(Inc),
112 /* 66 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(3), 109 /* 66 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(3),
113 B(Ldar), R(2), 110 B(Ldar), R(2),
114 /* 70 S> */ B(Return), 111 /* 70 S> */ B(Return),
115 ] 112 ]
116 constant pool: [ 113 constant pool: [
117 InstanceType::FIXED_ARRAY_TYPE, 114 InstanceType::FIXED_ARRAY_TYPE,
118 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 115 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
119 ] 116 ]
120 handlers: [ 117 handlers: [
(...skipping 22 matching lines...) Expand all
143 ] 140 ]
144 handlers: [ 141 handlers: [
145 ] 142 ]
146 143
147 --- 144 ---
148 snippet: " 145 snippet: "
149 var name = 'var'; var a = { val: 1 }; return a[name]--; 146 var name = 'var'; var a = { val: 1 }; return a[name]--;
150 " 147 "
151 frame size: 5 148 frame size: 5
152 parameter count: 1 149 parameter count: 1
153 bytecode array length: 29 150 bytecode array length: 28
154 bytecodes: [ 151 bytecodes: [
155 /* 30 E> */ B(StackCheck), 152 /* 30 E> */ B(StackCheck),
156 /* 45 S> */ B(LdaConstant), U8(0), 153 /* 45 S> */ B(LdaConstant), U8(0),
157 B(Star), R(0), 154 B(Star), R(0),
158 /* 60 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), 155 /* 60 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1),
159 B(Star), R(2), 156 B(Star), R(2),
160 B(Star), R(1), 157 B(Star), R(1),
161 /* 72 S> */ B(Ldar), R(0), 158 /* 72 S> */ B(Ldar), R(0),
162 /* 81 E> */ B(LdaKeyedProperty), R(1), U8(1), 159 /* 81 E> */ B(LdaKeyedProperty), R(1), U8(1),
163 B(ToNumber), 160 B(ToNumber), R(4),
164 B(Star), R(4),
165 B(Dec), 161 B(Dec),
166 /* 86 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(3), 162 /* 86 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(3),
167 B(Ldar), R(4), 163 B(Ldar), R(4),
168 /* 90 S> */ B(Return), 164 /* 90 S> */ B(Return),
169 ] 165 ]
170 constant pool: [ 166 constant pool: [
171 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 167 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
172 InstanceType::FIXED_ARRAY_TYPE, 168 InstanceType::FIXED_ARRAY_TYPE,
173 ] 169 ]
174 handlers: [ 170 handlers: [
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 ] 222 ]
227 handlers: [ 223 handlers: [
228 ] 224 ]
229 225
230 --- 226 ---
231 snippet: " 227 snippet: "
232 var a = 1; var b = function() { return a }; return a--; 228 var a = 1; var b = function() { return a }; return a--;
233 " 229 "
234 frame size: 3 230 frame size: 3
235 parameter count: 1 231 parameter count: 1
236 bytecode array length: 31 232 bytecode array length: 30
237 bytecodes: [ 233 bytecodes: [
238 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1), 234 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1),
239 B(PushContext), R(1), 235 B(PushContext), R(1),
240 /* 30 E> */ B(StackCheck), 236 /* 30 E> */ B(StackCheck),
241 /* 42 S> */ B(LdaSmi), U8(1), 237 /* 42 S> */ B(LdaSmi), U8(1),
242 /* 42 E> */ B(StaContextSlot), R(context), U8(4), 238 /* 42 E> */ B(StaContextSlot), R(context), U8(4),
243 /* 53 S> */ B(CreateClosure), U8(0), U8(2), 239 /* 53 S> */ B(CreateClosure), U8(0), U8(2),
244 B(Star), R(0), 240 B(Star), R(0),
245 /* 78 S> */ B(LdaContextSlot), R(context), U8(4), 241 /* 78 S> */ B(LdaContextSlot), R(context), U8(4),
246 B(ToNumber), 242 B(ToNumber), R(2),
247 B(Star), R(2),
248 B(Dec), 243 B(Dec),
249 /* 86 E> */ B(StaContextSlot), R(context), U8(4), 244 /* 86 E> */ B(StaContextSlot), R(context), U8(4),
250 B(Ldar), R(2), 245 B(Ldar), R(2),
251 /* 90 S> */ B(Return), 246 /* 90 S> */ B(Return),
252 ] 247 ]
253 constant pool: [ 248 constant pool: [
254 InstanceType::SHARED_FUNCTION_INFO_TYPE, 249 InstanceType::SHARED_FUNCTION_INFO_TYPE,
255 ] 250 ]
256 handlers: [ 251 handlers: [
257 ] 252 ]
258 253
259 --- 254 ---
260 snippet: " 255 snippet: "
261 var idx = 1; var a = [1, 2]; return a[idx++] = 2; 256 var idx = 1; var a = [1, 2]; return a[idx++] = 2;
262 " 257 "
263 frame size: 4 258 frame size: 4
264 parameter count: 1 259 parameter count: 1
265 bytecode array length: 26 260 bytecode array length: 25
266 bytecodes: [ 261 bytecodes: [
267 /* 30 E> */ B(StackCheck), 262 /* 30 E> */ B(StackCheck),
268 /* 44 S> */ B(LdaSmi), U8(1), 263 /* 44 S> */ B(LdaSmi), U8(1),
269 B(Star), R(0), 264 B(Star), R(0),
270 /* 55 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), 265 /* 55 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3),
271 B(Star), R(1), 266 B(Star), R(1),
272 /* 63 S> */ B(Ldar), R(0), 267 /* 63 S> */ B(Ldar), R(0),
273 B(ToNumber), 268 B(ToNumber), R(3),
274 B(Star), R(3),
275 B(Inc), 269 B(Inc),
276 B(Star), R(0), 270 B(Star), R(0),
277 B(LdaSmi), U8(2), 271 B(LdaSmi), U8(2),
278 /* 79 E> */ B(StaKeyedPropertySloppy), R(1), R(3), U8(1), 272 /* 79 E> */ B(StaKeyedPropertySloppy), R(1), R(3), U8(1),
279 /* 84 S> */ B(Return), 273 /* 84 S> */ B(Return),
280 ] 274 ]
281 constant pool: [ 275 constant pool: [
282 InstanceType::FIXED_ARRAY_TYPE, 276 InstanceType::FIXED_ARRAY_TYPE,
283 ] 277 ]
284 handlers: [ 278 handlers: [
285 ] 279 ]
286 280
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698