OLD | NEW |
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: 3 |
16 parameter count: 1 | 16 parameter count: 1 |
17 bytecode array length: 24 | 17 bytecode array length: 24 |
18 bytecodes: [ | 18 bytecodes: [ |
19 /* 30 E> */ B(StackCheck), | 19 /* 30 E> */ B(StackCheck), |
20 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), | 20 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), |
21 B(Mov), R(2), R(0), | 21 B(Mov), R(2), R(0), |
22 /* 63 S> */ B(LdaSmi), U8(10), | 22 /* 63 S> */ B(LdaSmi), I8(10), |
23 B(Star), R(1), | 23 B(Star), R(1), |
24 /* 67 S> */ B(TestUndetectable), R(0), | 24 /* 67 S> */ B(TestUndetectable), R(0), |
25 B(JumpIfFalse), U8(6), | 25 B(JumpIfFalse), U8(6), |
26 /* 88 S> */ B(LdaSmi), U8(20), | 26 /* 88 S> */ B(LdaSmi), I8(20), |
27 B(Star), R(1), | 27 B(Star), R(1), |
28 /* 97 S> */ B(Ldar), R(1), | 28 /* 97 S> */ B(Ldar), R(1), |
29 /* 107 S> */ B(Return), | 29 /* 107 S> */ B(Return), |
30 ] | 30 ] |
31 constant pool: [ | 31 constant pool: [ |
32 FIXED_ARRAY_TYPE, | 32 FIXED_ARRAY_TYPE, |
33 ] | 33 ] |
34 handlers: [ | 34 handlers: [ |
35 ] | 35 ] |
36 | 36 |
37 --- | 37 --- |
38 snippet: " | 38 snippet: " |
39 var obj_a = {val:1}; | 39 var obj_a = {val:1}; |
40 var b = 10; | 40 var b = 10; |
41 if (obj_a == undefined) { b = 20;} | 41 if (obj_a == undefined) { b = 20;} |
42 return b; | 42 return b; |
43 " | 43 " |
44 frame size: 3 | 44 frame size: 3 |
45 parameter count: 1 | 45 parameter count: 1 |
46 bytecode array length: 24 | 46 bytecode array length: 24 |
47 bytecodes: [ | 47 bytecodes: [ |
48 /* 30 E> */ B(StackCheck), | 48 /* 30 E> */ B(StackCheck), |
49 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), | 49 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), |
50 B(Mov), R(2), R(0), | 50 B(Mov), R(2), R(0), |
51 /* 63 S> */ B(LdaSmi), U8(10), | 51 /* 63 S> */ B(LdaSmi), I8(10), |
52 B(Star), R(1), | 52 B(Star), R(1), |
53 /* 67 S> */ B(TestUndetectable), R(0), | 53 /* 67 S> */ B(TestUndetectable), R(0), |
54 B(JumpIfFalse), U8(6), | 54 B(JumpIfFalse), U8(6), |
55 /* 93 S> */ B(LdaSmi), U8(20), | 55 /* 93 S> */ B(LdaSmi), I8(20), |
56 B(Star), R(1), | 56 B(Star), R(1), |
57 /* 102 S> */ B(Ldar), R(1), | 57 /* 102 S> */ B(Ldar), R(1), |
58 /* 112 S> */ B(Return), | 58 /* 112 S> */ B(Return), |
59 ] | 59 ] |
60 constant pool: [ | 60 constant pool: [ |
61 FIXED_ARRAY_TYPE, | 61 FIXED_ARRAY_TYPE, |
62 ] | 62 ] |
63 handlers: [ | 63 handlers: [ |
64 ] | 64 ] |
65 | 65 |
66 --- | 66 --- |
67 snippet: " | 67 snippet: " |
68 var obj_a = {val:1}; | 68 var obj_a = {val:1}; |
69 var b = 10; | 69 var b = 10; |
70 if (obj_a != null) { b = 20;} | 70 if (obj_a != null) { b = 20;} |
71 return b; | 71 return b; |
72 " | 72 " |
73 frame size: 3 | 73 frame size: 3 |
74 parameter count: 1 | 74 parameter count: 1 |
75 bytecode array length: 24 | 75 bytecode array length: 24 |
76 bytecodes: [ | 76 bytecodes: [ |
77 /* 30 E> */ B(StackCheck), | 77 /* 30 E> */ B(StackCheck), |
78 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), | 78 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), |
79 B(Mov), R(2), R(0), | 79 B(Mov), R(2), R(0), |
80 /* 63 S> */ B(LdaSmi), U8(10), | 80 /* 63 S> */ B(LdaSmi), I8(10), |
81 B(Star), R(1), | 81 B(Star), R(1), |
82 /* 67 S> */ B(TestUndetectable), R(0), | 82 /* 67 S> */ B(TestUndetectable), R(0), |
83 B(JumpIfTrue), U8(6), | 83 B(JumpIfTrue), U8(6), |
84 /* 88 S> */ B(LdaSmi), U8(20), | 84 /* 88 S> */ B(LdaSmi), I8(20), |
85 B(Star), R(1), | 85 B(Star), R(1), |
86 /* 97 S> */ B(Ldar), R(1), | 86 /* 97 S> */ B(Ldar), R(1), |
87 /* 107 S> */ B(Return), | 87 /* 107 S> */ B(Return), |
88 ] | 88 ] |
89 constant pool: [ | 89 constant pool: [ |
90 FIXED_ARRAY_TYPE, | 90 FIXED_ARRAY_TYPE, |
91 ] | 91 ] |
92 handlers: [ | 92 handlers: [ |
93 ] | 93 ] |
94 | 94 |
95 --- | 95 --- |
96 snippet: " | 96 snippet: " |
97 var obj_a = {val:1}; | 97 var obj_a = {val:1}; |
98 var b = 10; | 98 var b = 10; |
99 if (obj_a != undefined) { b = 20;} | 99 if (obj_a != undefined) { b = 20;} |
100 return b; | 100 return b; |
101 " | 101 " |
102 frame size: 3 | 102 frame size: 3 |
103 parameter count: 1 | 103 parameter count: 1 |
104 bytecode array length: 24 | 104 bytecode array length: 24 |
105 bytecodes: [ | 105 bytecodes: [ |
106 /* 30 E> */ B(StackCheck), | 106 /* 30 E> */ B(StackCheck), |
107 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), | 107 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), |
108 B(Mov), R(2), R(0), | 108 B(Mov), R(2), R(0), |
109 /* 63 S> */ B(LdaSmi), U8(10), | 109 /* 63 S> */ B(LdaSmi), I8(10), |
110 B(Star), R(1), | 110 B(Star), R(1), |
111 /* 67 S> */ B(TestUndetectable), R(0), | 111 /* 67 S> */ B(TestUndetectable), R(0), |
112 B(JumpIfTrue), U8(6), | 112 B(JumpIfTrue), U8(6), |
113 /* 93 S> */ B(LdaSmi), U8(20), | 113 /* 93 S> */ B(LdaSmi), I8(20), |
114 B(Star), R(1), | 114 B(Star), R(1), |
115 /* 102 S> */ B(Ldar), R(1), | 115 /* 102 S> */ B(Ldar), R(1), |
116 /* 112 S> */ B(Return), | 116 /* 112 S> */ B(Return), |
117 ] | 117 ] |
118 constant pool: [ | 118 constant pool: [ |
119 FIXED_ARRAY_TYPE, | 119 FIXED_ARRAY_TYPE, |
120 ] | 120 ] |
121 handlers: [ | 121 handlers: [ |
122 ] | 122 ] |
123 | 123 |
124 --- | 124 --- |
125 snippet: " | 125 snippet: " |
126 var obj_a = {val:1}; | 126 var obj_a = {val:1}; |
127 var b = 10; | 127 var b = 10; |
128 if (obj_a === null) { b = 20;} | 128 if (obj_a === null) { b = 20;} |
129 return b; | 129 return b; |
130 " | 130 " |
131 frame size: 3 | 131 frame size: 3 |
132 parameter count: 1 | 132 parameter count: 1 |
133 bytecode array length: 24 | 133 bytecode array length: 24 |
134 bytecodes: [ | 134 bytecodes: [ |
135 /* 30 E> */ B(StackCheck), | 135 /* 30 E> */ B(StackCheck), |
136 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), | 136 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), |
137 B(Mov), R(2), R(0), | 137 B(Mov), R(2), R(0), |
138 /* 63 S> */ B(LdaSmi), U8(10), | 138 /* 63 S> */ B(LdaSmi), I8(10), |
139 B(Star), R(1), | 139 B(Star), R(1), |
140 /* 67 S> */ B(TestNull), R(0), | 140 /* 67 S> */ B(TestNull), R(0), |
141 B(JumpIfFalse), U8(6), | 141 B(JumpIfFalse), U8(6), |
142 /* 89 S> */ B(LdaSmi), U8(20), | 142 /* 89 S> */ B(LdaSmi), I8(20), |
143 B(Star), R(1), | 143 B(Star), R(1), |
144 /* 98 S> */ B(Ldar), R(1), | 144 /* 98 S> */ B(Ldar), R(1), |
145 /* 108 S> */ B(Return), | 145 /* 108 S> */ B(Return), |
146 ] | 146 ] |
147 constant pool: [ | 147 constant pool: [ |
148 FIXED_ARRAY_TYPE, | 148 FIXED_ARRAY_TYPE, |
149 ] | 149 ] |
150 handlers: [ | 150 handlers: [ |
151 ] | 151 ] |
152 | 152 |
153 --- | 153 --- |
154 snippet: " | 154 snippet: " |
155 var obj_a = {val:1}; | 155 var obj_a = {val:1}; |
156 var b = 10; | 156 var b = 10; |
157 if (obj_a === undefined) { b = 20;} | 157 if (obj_a === undefined) { b = 20;} |
158 return b; | 158 return b; |
159 " | 159 " |
160 frame size: 3 | 160 frame size: 3 |
161 parameter count: 1 | 161 parameter count: 1 |
162 bytecode array length: 24 | 162 bytecode array length: 24 |
163 bytecodes: [ | 163 bytecodes: [ |
164 /* 30 E> */ B(StackCheck), | 164 /* 30 E> */ B(StackCheck), |
165 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), | 165 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), |
166 B(Mov), R(2), R(0), | 166 B(Mov), R(2), R(0), |
167 /* 63 S> */ B(LdaSmi), U8(10), | 167 /* 63 S> */ B(LdaSmi), I8(10), |
168 B(Star), R(1), | 168 B(Star), R(1), |
169 /* 67 S> */ B(TestUndefined), R(0), | 169 /* 67 S> */ B(TestUndefined), R(0), |
170 B(JumpIfFalse), U8(6), | 170 B(JumpIfFalse), U8(6), |
171 /* 94 S> */ B(LdaSmi), U8(20), | 171 /* 94 S> */ B(LdaSmi), I8(20), |
172 B(Star), R(1), | 172 B(Star), R(1), |
173 /* 103 S> */ B(Ldar), R(1), | 173 /* 103 S> */ B(Ldar), R(1), |
174 /* 113 S> */ B(Return), | 174 /* 113 S> */ B(Return), |
175 ] | 175 ] |
176 constant pool: [ | 176 constant pool: [ |
177 FIXED_ARRAY_TYPE, | 177 FIXED_ARRAY_TYPE, |
178 ] | 178 ] |
179 handlers: [ | 179 handlers: [ |
180 ] | 180 ] |
181 | 181 |
182 --- | 182 --- |
183 snippet: " | 183 snippet: " |
184 var obj_a = {val:1}; | 184 var obj_a = {val:1}; |
185 var b = 10; | 185 var b = 10; |
186 if (obj_a !== null) { b = 20;} | 186 if (obj_a !== null) { b = 20;} |
187 return b; | 187 return b; |
188 " | 188 " |
189 frame size: 3 | 189 frame size: 3 |
190 parameter count: 1 | 190 parameter count: 1 |
191 bytecode array length: 24 | 191 bytecode array length: 24 |
192 bytecodes: [ | 192 bytecodes: [ |
193 /* 30 E> */ B(StackCheck), | 193 /* 30 E> */ B(StackCheck), |
194 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), | 194 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), |
195 B(Mov), R(2), R(0), | 195 B(Mov), R(2), R(0), |
196 /* 63 S> */ B(LdaSmi), U8(10), | 196 /* 63 S> */ B(LdaSmi), I8(10), |
197 B(Star), R(1), | 197 B(Star), R(1), |
198 /* 67 S> */ B(TestNull), R(0), | 198 /* 67 S> */ B(TestNull), R(0), |
199 B(JumpIfTrue), U8(6), | 199 B(JumpIfTrue), U8(6), |
200 /* 89 S> */ B(LdaSmi), U8(20), | 200 /* 89 S> */ B(LdaSmi), I8(20), |
201 B(Star), R(1), | 201 B(Star), R(1), |
202 /* 98 S> */ B(Ldar), R(1), | 202 /* 98 S> */ B(Ldar), R(1), |
203 /* 108 S> */ B(Return), | 203 /* 108 S> */ B(Return), |
204 ] | 204 ] |
205 constant pool: [ | 205 constant pool: [ |
206 FIXED_ARRAY_TYPE, | 206 FIXED_ARRAY_TYPE, |
207 ] | 207 ] |
208 handlers: [ | 208 handlers: [ |
209 ] | 209 ] |
210 | 210 |
211 --- | 211 --- |
212 snippet: " | 212 snippet: " |
213 var obj_a = {val:1}; | 213 var obj_a = {val:1}; |
214 var b = 10; | 214 var b = 10; |
215 if (obj_a !== undefined) { b = 20;} | 215 if (obj_a !== undefined) { b = 20;} |
216 return b; | 216 return b; |
217 " | 217 " |
218 frame size: 3 | 218 frame size: 3 |
219 parameter count: 1 | 219 parameter count: 1 |
220 bytecode array length: 24 | 220 bytecode array length: 24 |
221 bytecodes: [ | 221 bytecodes: [ |
222 /* 30 E> */ B(StackCheck), | 222 /* 30 E> */ B(StackCheck), |
223 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), | 223 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), |
224 B(Mov), R(2), R(0), | 224 B(Mov), R(2), R(0), |
225 /* 63 S> */ B(LdaSmi), U8(10), | 225 /* 63 S> */ B(LdaSmi), I8(10), |
226 B(Star), R(1), | 226 B(Star), R(1), |
227 /* 67 S> */ B(TestUndefined), R(0), | 227 /* 67 S> */ B(TestUndefined), R(0), |
228 B(JumpIfTrue), U8(6), | 228 B(JumpIfTrue), U8(6), |
229 /* 94 S> */ B(LdaSmi), U8(20), | 229 /* 94 S> */ B(LdaSmi), I8(20), |
230 B(Star), R(1), | 230 B(Star), R(1), |
231 /* 103 S> */ B(Ldar), R(1), | 231 /* 103 S> */ B(Ldar), R(1), |
232 /* 113 S> */ B(Return), | 232 /* 113 S> */ B(Return), |
233 ] | 233 ] |
234 constant pool: [ | 234 constant pool: [ |
235 FIXED_ARRAY_TYPE, | 235 FIXED_ARRAY_TYPE, |
236 ] | 236 ] |
237 handlers: [ | 237 handlers: [ |
238 ] | 238 ] |
239 | 239 |
OLD | NEW |