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}; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 --- |
| 125 snippet: " |
| 126 var obj_a = {val:1}; |
| 127 var b = 10; |
| 128 if (obj_a === null) { b = 20;} |
| 129 return b; |
| 130 " |
| 131 frame size: 3 |
| 132 parameter count: 1 |
| 133 bytecode array length: 24 |
| 134 bytecodes: [ |
| 135 /* 30 E> */ B(StackCheck), |
| 136 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), |
| 137 B(Mov), R(2), R(0), |
| 138 /* 63 S> */ B(LdaSmi), U8(10), |
| 139 B(Star), R(1), |
| 140 /* 67 S> */ B(TestNull), R(0), |
| 141 B(JumpIfFalse), U8(6), |
| 142 /* 89 S> */ B(LdaSmi), U8(20), |
| 143 B(Star), R(1), |
| 144 /* 98 S> */ B(Ldar), R(1), |
| 145 /* 108 S> */ B(Return), |
| 146 ] |
| 147 constant pool: [ |
| 148 FIXED_ARRAY_TYPE, |
| 149 ] |
| 150 handlers: [ |
| 151 ] |
| 152 |
| 153 --- |
| 154 snippet: " |
| 155 var obj_a = {val:1}; |
| 156 var b = 10; |
| 157 if (obj_a === undefined) { b = 20;} |
| 158 return b; |
| 159 " |
| 160 frame size: 3 |
| 161 parameter count: 1 |
| 162 bytecode array length: 24 |
| 163 bytecodes: [ |
| 164 /* 30 E> */ B(StackCheck), |
| 165 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), |
| 166 B(Mov), R(2), R(0), |
| 167 /* 63 S> */ B(LdaSmi), U8(10), |
| 168 B(Star), R(1), |
| 169 /* 67 S> */ B(TestUndefined), R(0), |
| 170 B(JumpIfFalse), U8(6), |
| 171 /* 94 S> */ B(LdaSmi), U8(20), |
| 172 B(Star), R(1), |
| 173 /* 103 S> */ B(Ldar), R(1), |
| 174 /* 113 S> */ B(Return), |
| 175 ] |
| 176 constant pool: [ |
| 177 FIXED_ARRAY_TYPE, |
| 178 ] |
| 179 handlers: [ |
| 180 ] |
| 181 |
| 182 --- |
| 183 snippet: " |
| 184 var obj_a = {val:1}; |
| 185 var b = 10; |
| 186 if (obj_a !== null) { b = 20;} |
| 187 return b; |
| 188 " |
| 189 frame size: 3 |
| 190 parameter count: 1 |
| 191 bytecode array length: 24 |
| 192 bytecodes: [ |
| 193 /* 30 E> */ B(StackCheck), |
| 194 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), |
| 195 B(Mov), R(2), R(0), |
| 196 /* 63 S> */ B(LdaSmi), U8(10), |
| 197 B(Star), R(1), |
| 198 /* 67 S> */ B(TestNull), R(0), |
| 199 B(JumpIfTrue), U8(6), |
| 200 /* 89 S> */ B(LdaSmi), U8(20), |
| 201 B(Star), R(1), |
| 202 /* 98 S> */ B(Ldar), R(1), |
| 203 /* 108 S> */ B(Return), |
| 204 ] |
| 205 constant pool: [ |
| 206 FIXED_ARRAY_TYPE, |
| 207 ] |
| 208 handlers: [ |
| 209 ] |
| 210 |
| 211 --- |
| 212 snippet: " |
| 213 var obj_a = {val:1}; |
| 214 var b = 10; |
| 215 if (obj_a !== undefined) { b = 20;} |
| 216 return b; |
| 217 " |
| 218 frame size: 3 |
| 219 parameter count: 1 |
| 220 bytecode array length: 24 |
| 221 bytecodes: [ |
| 222 /* 30 E> */ B(StackCheck), |
| 223 /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2), |
| 224 B(Mov), R(2), R(0), |
| 225 /* 63 S> */ B(LdaSmi), U8(10), |
| 226 B(Star), R(1), |
| 227 /* 67 S> */ B(TestUndefined), R(0), |
| 228 B(JumpIfTrue), U8(6), |
| 229 /* 94 S> */ B(LdaSmi), U8(20), |
| 230 B(Star), R(1), |
| 231 /* 103 S> */ B(Ldar), R(1), |
| 232 /* 113 S> */ B(Return), |
| 233 ] |
| 234 constant pool: [ |
| 235 FIXED_ARRAY_TYPE, |
| 236 ] |
| 237 handlers: [ |
| 238 ] |
| 239 |
OLD | NEW |