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

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

Issue 2677163003: WIP: type profiling. (Closed)
Patch Set: Rebaseline. Created 3 years, 10 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 wrap: yes 6 wrap: yes
7 7
8 --- 8 ---
9 snippet: " 9 snippet: "
10 var obj_a = {val:1}; 10 var obj_a = {val:1};
11 var b = 10; 11 var b = 10;
12 if (obj_a == null) { b = 20;} 12 if (obj_a == null) { b = 20;}
13 return b; 13 return b;
14 " 14 "
15 frame size: 3 15 frame size: 4
16 parameter count: 1 16 parameter count: 1
17 bytecode array length: 24 17 bytecode array length: 36
18 bytecodes: [ 18 bytecodes: [
19 /* 30 E> */ B(StackCheck), 19 /* 30 E> */ B(StackCheck),
20 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(2), 20 /* 46 S> */ B(LdaConstant), U8(0),
21 B(Mov), R(2), R(0), 21 B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(3),
22 /* 63 S> */ B(LdaSmi), I8(10), 22 B(Star), R(2),
23 B(Mov), R(3), R(0),
24 /* 63 S> */ B(LdaConstant), U8(2),
25 B(Star), R(2),
26 B(LdaSmi), I8(10),
23 B(Star), R(1), 27 B(Star), R(1),
24 /* 67 S> */ B(TestUndetectable), R(0), 28 /* 67 S> */ B(TestUndetectable), R(0),
25 B(JumpIfFalse), U8(6), 29 B(JumpIfFalse), U8(10),
26 /* 88 S> */ B(LdaSmi), I8(20), 30 /* 88 S> */ B(LdaConstant), U8(2),
31 B(Star), R(2),
32 B(LdaSmi), I8(20),
27 B(Star), R(1), 33 B(Star), R(1),
28 /* 97 S> */ B(Ldar), R(1), 34 /* 97 S> */ B(Ldar), R(1),
29 /* 107 S> */ B(Return), 35 /* 107 S> */ B(Return),
30 ] 36 ]
31 constant pool: [ 37 constant pool: [
38 ONE_BYTE_INTERNALIZED_STRING_TYPE ["obj_a"],
32 FIXED_ARRAY_TYPE, 39 FIXED_ARRAY_TYPE,
40 ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
33 ] 41 ]
34 handlers: [ 42 handlers: [
35 ] 43 ]
36 44
37 --- 45 ---
38 snippet: " 46 snippet: "
39 var obj_a = {val:1}; 47 var obj_a = {val:1};
40 var b = 10; 48 var b = 10;
41 if (obj_a == undefined) { b = 20;} 49 if (obj_a == undefined) { b = 20;}
42 return b; 50 return b;
43 " 51 "
44 frame size: 3 52 frame size: 4
45 parameter count: 1 53 parameter count: 1
46 bytecode array length: 24 54 bytecode array length: 36
47 bytecodes: [ 55 bytecodes: [
48 /* 30 E> */ B(StackCheck), 56 /* 30 E> */ B(StackCheck),
49 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(2), 57 /* 46 S> */ B(LdaConstant), U8(0),
50 B(Mov), R(2), R(0), 58 B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(3),
51 /* 63 S> */ B(LdaSmi), I8(10), 59 B(Star), R(2),
60 B(Mov), R(3), R(0),
61 /* 63 S> */ B(LdaConstant), U8(2),
62 B(Star), R(2),
63 B(LdaSmi), I8(10),
52 B(Star), R(1), 64 B(Star), R(1),
53 /* 67 S> */ B(TestUndetectable), R(0), 65 /* 67 S> */ B(TestUndetectable), R(0),
54 B(JumpIfFalse), U8(6), 66 B(JumpIfFalse), U8(10),
55 /* 93 S> */ B(LdaSmi), I8(20), 67 /* 93 S> */ B(LdaConstant), U8(2),
68 B(Star), R(2),
69 B(LdaSmi), I8(20),
56 B(Star), R(1), 70 B(Star), R(1),
57 /* 102 S> */ B(Ldar), R(1), 71 /* 102 S> */ B(Ldar), R(1),
58 /* 112 S> */ B(Return), 72 /* 112 S> */ B(Return),
59 ] 73 ]
60 constant pool: [ 74 constant pool: [
75 ONE_BYTE_INTERNALIZED_STRING_TYPE ["obj_a"],
61 FIXED_ARRAY_TYPE, 76 FIXED_ARRAY_TYPE,
77 ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
62 ] 78 ]
63 handlers: [ 79 handlers: [
64 ] 80 ]
65 81
66 --- 82 ---
67 snippet: " 83 snippet: "
68 var obj_a = {val:1}; 84 var obj_a = {val:1};
69 var b = 10; 85 var b = 10;
70 if (obj_a != null) { b = 20;} 86 if (obj_a != null) { b = 20;}
71 return b; 87 return b;
72 " 88 "
73 frame size: 3 89 frame size: 4
74 parameter count: 1 90 parameter count: 1
75 bytecode array length: 24 91 bytecode array length: 36
76 bytecodes: [ 92 bytecodes: [
77 /* 30 E> */ B(StackCheck), 93 /* 30 E> */ B(StackCheck),
78 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(2), 94 /* 46 S> */ B(LdaConstant), U8(0),
79 B(Mov), R(2), R(0), 95 B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(3),
80 /* 63 S> */ B(LdaSmi), I8(10), 96 B(Star), R(2),
97 B(Mov), R(3), R(0),
98 /* 63 S> */ B(LdaConstant), U8(2),
99 B(Star), R(2),
100 B(LdaSmi), I8(10),
81 B(Star), R(1), 101 B(Star), R(1),
82 /* 67 S> */ B(TestUndetectable), R(0), 102 /* 67 S> */ B(TestUndetectable), R(0),
83 B(JumpIfTrue), U8(6), 103 B(JumpIfTrue), U8(10),
84 /* 88 S> */ B(LdaSmi), I8(20), 104 /* 88 S> */ B(LdaConstant), U8(2),
105 B(Star), R(2),
106 B(LdaSmi), I8(20),
85 B(Star), R(1), 107 B(Star), R(1),
86 /* 97 S> */ B(Ldar), R(1), 108 /* 97 S> */ B(Ldar), R(1),
87 /* 107 S> */ B(Return), 109 /* 107 S> */ B(Return),
88 ] 110 ]
89 constant pool: [ 111 constant pool: [
112 ONE_BYTE_INTERNALIZED_STRING_TYPE ["obj_a"],
90 FIXED_ARRAY_TYPE, 113 FIXED_ARRAY_TYPE,
114 ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
91 ] 115 ]
92 handlers: [ 116 handlers: [
93 ] 117 ]
94 118
95 --- 119 ---
96 snippet: " 120 snippet: "
97 var obj_a = {val:1}; 121 var obj_a = {val:1};
98 var b = 10; 122 var b = 10;
99 if (obj_a != undefined) { b = 20;} 123 if (obj_a != undefined) { b = 20;}
100 return b; 124 return b;
101 " 125 "
102 frame size: 3 126 frame size: 4
103 parameter count: 1 127 parameter count: 1
104 bytecode array length: 24 128 bytecode array length: 36
105 bytecodes: [ 129 bytecodes: [
106 /* 30 E> */ B(StackCheck), 130 /* 30 E> */ B(StackCheck),
107 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(2), 131 /* 46 S> */ B(LdaConstant), U8(0),
108 B(Mov), R(2), R(0), 132 B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(3),
109 /* 63 S> */ B(LdaSmi), I8(10), 133 B(Star), R(2),
134 B(Mov), R(3), R(0),
135 /* 63 S> */ B(LdaConstant), U8(2),
136 B(Star), R(2),
137 B(LdaSmi), I8(10),
110 B(Star), R(1), 138 B(Star), R(1),
111 /* 67 S> */ B(TestUndetectable), R(0), 139 /* 67 S> */ B(TestUndetectable), R(0),
112 B(JumpIfTrue), U8(6), 140 B(JumpIfTrue), U8(10),
113 /* 93 S> */ B(LdaSmi), I8(20), 141 /* 93 S> */ B(LdaConstant), U8(2),
142 B(Star), R(2),
143 B(LdaSmi), I8(20),
114 B(Star), R(1), 144 B(Star), R(1),
115 /* 102 S> */ B(Ldar), R(1), 145 /* 102 S> */ B(Ldar), R(1),
116 /* 112 S> */ B(Return), 146 /* 112 S> */ B(Return),
117 ] 147 ]
118 constant pool: [ 148 constant pool: [
149 ONE_BYTE_INTERNALIZED_STRING_TYPE ["obj_a"],
119 FIXED_ARRAY_TYPE, 150 FIXED_ARRAY_TYPE,
151 ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
120 ] 152 ]
121 handlers: [ 153 handlers: [
122 ] 154 ]
123 155
124 --- 156 ---
125 snippet: " 157 snippet: "
126 var obj_a = {val:1}; 158 var obj_a = {val:1};
127 var b = 10; 159 var b = 10;
128 if (obj_a === null) { b = 20;} 160 if (obj_a === null) { b = 20;}
129 return b; 161 return b;
130 " 162 "
131 frame size: 3 163 frame size: 4
132 parameter count: 1 164 parameter count: 1
133 bytecode array length: 24 165 bytecode array length: 36
134 bytecodes: [ 166 bytecodes: [
135 /* 30 E> */ B(StackCheck), 167 /* 30 E> */ B(StackCheck),
136 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(2), 168 /* 46 S> */ B(LdaConstant), U8(0),
137 B(Mov), R(2), R(0), 169 B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(3),
138 /* 63 S> */ B(LdaSmi), I8(10), 170 B(Star), R(2),
171 B(Mov), R(3), R(0),
172 /* 63 S> */ B(LdaConstant), U8(2),
173 B(Star), R(2),
174 B(LdaSmi), I8(10),
139 B(Star), R(1), 175 B(Star), R(1),
140 /* 67 S> */ B(TestNull), R(0), 176 /* 67 S> */ B(TestNull), R(0),
141 B(JumpIfFalse), U8(6), 177 B(JumpIfFalse), U8(10),
142 /* 89 S> */ B(LdaSmi), I8(20), 178 /* 89 S> */ B(LdaConstant), U8(2),
179 B(Star), R(2),
180 B(LdaSmi), I8(20),
143 B(Star), R(1), 181 B(Star), R(1),
144 /* 98 S> */ B(Ldar), R(1), 182 /* 98 S> */ B(Ldar), R(1),
145 /* 108 S> */ B(Return), 183 /* 108 S> */ B(Return),
146 ] 184 ]
147 constant pool: [ 185 constant pool: [
186 ONE_BYTE_INTERNALIZED_STRING_TYPE ["obj_a"],
148 FIXED_ARRAY_TYPE, 187 FIXED_ARRAY_TYPE,
188 ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
149 ] 189 ]
150 handlers: [ 190 handlers: [
151 ] 191 ]
152 192
153 --- 193 ---
154 snippet: " 194 snippet: "
155 var obj_a = {val:1}; 195 var obj_a = {val:1};
156 var b = 10; 196 var b = 10;
157 if (obj_a === undefined) { b = 20;} 197 if (obj_a === undefined) { b = 20;}
158 return b; 198 return b;
159 " 199 "
160 frame size: 3 200 frame size: 4
161 parameter count: 1 201 parameter count: 1
162 bytecode array length: 24 202 bytecode array length: 36
163 bytecodes: [ 203 bytecodes: [
164 /* 30 E> */ B(StackCheck), 204 /* 30 E> */ B(StackCheck),
165 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(2), 205 /* 46 S> */ B(LdaConstant), U8(0),
166 B(Mov), R(2), R(0), 206 B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(3),
167 /* 63 S> */ B(LdaSmi), I8(10), 207 B(Star), R(2),
208 B(Mov), R(3), R(0),
209 /* 63 S> */ B(LdaConstant), U8(2),
210 B(Star), R(2),
211 B(LdaSmi), I8(10),
168 B(Star), R(1), 212 B(Star), R(1),
169 /* 67 S> */ B(TestUndefined), R(0), 213 /* 67 S> */ B(TestUndefined), R(0),
170 B(JumpIfFalse), U8(6), 214 B(JumpIfFalse), U8(10),
171 /* 94 S> */ B(LdaSmi), I8(20), 215 /* 94 S> */ B(LdaConstant), U8(2),
216 B(Star), R(2),
217 B(LdaSmi), I8(20),
172 B(Star), R(1), 218 B(Star), R(1),
173 /* 103 S> */ B(Ldar), R(1), 219 /* 103 S> */ B(Ldar), R(1),
174 /* 113 S> */ B(Return), 220 /* 113 S> */ B(Return),
175 ] 221 ]
176 constant pool: [ 222 constant pool: [
223 ONE_BYTE_INTERNALIZED_STRING_TYPE ["obj_a"],
177 FIXED_ARRAY_TYPE, 224 FIXED_ARRAY_TYPE,
225 ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
178 ] 226 ]
179 handlers: [ 227 handlers: [
180 ] 228 ]
181 229
182 --- 230 ---
183 snippet: " 231 snippet: "
184 var obj_a = {val:1}; 232 var obj_a = {val:1};
185 var b = 10; 233 var b = 10;
186 if (obj_a !== null) { b = 20;} 234 if (obj_a !== null) { b = 20;}
187 return b; 235 return b;
188 " 236 "
189 frame size: 3 237 frame size: 4
190 parameter count: 1 238 parameter count: 1
191 bytecode array length: 24 239 bytecode array length: 36
192 bytecodes: [ 240 bytecodes: [
193 /* 30 E> */ B(StackCheck), 241 /* 30 E> */ B(StackCheck),
194 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(2), 242 /* 46 S> */ B(LdaConstant), U8(0),
195 B(Mov), R(2), R(0), 243 B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(3),
196 /* 63 S> */ B(LdaSmi), I8(10), 244 B(Star), R(2),
245 B(Mov), R(3), R(0),
246 /* 63 S> */ B(LdaConstant), U8(2),
247 B(Star), R(2),
248 B(LdaSmi), I8(10),
197 B(Star), R(1), 249 B(Star), R(1),
198 /* 67 S> */ B(TestNull), R(0), 250 /* 67 S> */ B(TestNull), R(0),
199 B(JumpIfTrue), U8(6), 251 B(JumpIfTrue), U8(10),
200 /* 89 S> */ B(LdaSmi), I8(20), 252 /* 89 S> */ B(LdaConstant), U8(2),
253 B(Star), R(2),
254 B(LdaSmi), I8(20),
201 B(Star), R(1), 255 B(Star), R(1),
202 /* 98 S> */ B(Ldar), R(1), 256 /* 98 S> */ B(Ldar), R(1),
203 /* 108 S> */ B(Return), 257 /* 108 S> */ B(Return),
204 ] 258 ]
205 constant pool: [ 259 constant pool: [
260 ONE_BYTE_INTERNALIZED_STRING_TYPE ["obj_a"],
206 FIXED_ARRAY_TYPE, 261 FIXED_ARRAY_TYPE,
262 ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
207 ] 263 ]
208 handlers: [ 264 handlers: [
209 ] 265 ]
210 266
211 --- 267 ---
212 snippet: " 268 snippet: "
213 var obj_a = {val:1}; 269 var obj_a = {val:1};
214 var b = 10; 270 var b = 10;
215 if (obj_a !== undefined) { b = 20;} 271 if (obj_a !== undefined) { b = 20;}
216 return b; 272 return b;
217 " 273 "
218 frame size: 3 274 frame size: 4
219 parameter count: 1 275 parameter count: 1
220 bytecode array length: 24 276 bytecode array length: 36
221 bytecodes: [ 277 bytecodes: [
222 /* 30 E> */ B(StackCheck), 278 /* 30 E> */ B(StackCheck),
223 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(2), 279 /* 46 S> */ B(LdaConstant), U8(0),
224 B(Mov), R(2), R(0), 280 B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(3),
225 /* 63 S> */ B(LdaSmi), I8(10), 281 B(Star), R(2),
282 B(Mov), R(3), R(0),
283 /* 63 S> */ B(LdaConstant), U8(2),
284 B(Star), R(2),
285 B(LdaSmi), I8(10),
226 B(Star), R(1), 286 B(Star), R(1),
227 /* 67 S> */ B(TestUndefined), R(0), 287 /* 67 S> */ B(TestUndefined), R(0),
228 B(JumpIfTrue), U8(6), 288 B(JumpIfTrue), U8(10),
229 /* 94 S> */ B(LdaSmi), I8(20), 289 /* 94 S> */ B(LdaConstant), U8(2),
290 B(Star), R(2),
291 B(LdaSmi), I8(20),
230 B(Star), R(1), 292 B(Star), R(1),
231 /* 103 S> */ B(Ldar), R(1), 293 /* 103 S> */ B(Ldar), R(1),
232 /* 113 S> */ B(Return), 294 /* 113 S> */ B(Return),
233 ] 295 ]
234 constant pool: [ 296 constant pool: [
297 ONE_BYTE_INTERNALIZED_STRING_TYPE ["obj_a"],
235 FIXED_ARRAY_TYPE, 298 FIXED_ARRAY_TYPE,
299 ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
236 ] 300 ]
237 handlers: [ 301 handlers: [
238 ] 302 ]
239 303
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698