OLD | NEW |
(Empty) | |
| 1 # |
| 2 # Autogenerated by generate-bytecode-expectations |
| 3 # |
| 4 |
| 5 --- |
| 6 pool type: mixed |
| 7 execute: yes |
| 8 wrap: yes |
| 9 |
| 10 --- |
| 11 snippet: " |
| 12 for (var p of [0, 1, 2]) {} |
| 13 " |
| 14 frame size: 7 |
| 15 parameter count: 1 |
| 16 bytecode array length: 86 |
| 17 bytecodes: [ |
| 18 B(StackCheck), |
| 19 B(CreateArrayLiteral), U8(0), U8(0), U8(3), |
| 20 B(Star), R(5), |
| 21 B(LdaConstant), U8(1), |
| 22 B(KeyedLoadIC), R(5), U8(3), |
| 23 B(Star), R(4), |
| 24 B(Call), R(4), R(5), U8(1), U8(1), |
| 25 B(Star), R(1), |
| 26 B(Ldar), R(1), |
| 27 B(Star), R(6), |
| 28 B(LoadIC), R(6), U8(2), U8(7), |
| 29 B(Star), R(5), |
| 30 B(Call), R(5), R(6), U8(1), U8(5), |
| 31 B(Star), R(2), |
| 32 B(Star), R(4), |
| 33 B(CallRuntime), U16(Runtime::k_IsJSReceiver), R(4), U8(1), |
| 34 B(LogicalNot), |
| 35 B(JumpIfFalse), U8(11), |
| 36 B(Ldar), R(2), |
| 37 B(Star), R(4), |
| 38 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(4), U8(1), |
| 39 B(Ldar), R(2), |
| 40 B(Star), R(4), |
| 41 B(LoadIC), R(4), U8(3), U8(9), |
| 42 B(JumpIfToBooleanTrue), U8(19), |
| 43 B(Ldar), R(2), |
| 44 B(Star), R(4), |
| 45 B(LoadIC), R(4), U8(4), U8(11), |
| 46 B(Star), R(0), |
| 47 B(StackCheck), |
| 48 B(Ldar), R(0), |
| 49 B(Star), R(3), |
| 50 B(Jump), U8(-61), |
| 51 B(LdaUndefined), |
| 52 B(Return), |
| 53 ] |
| 54 constant pool: [ |
| 55 InstanceType::FIXED_ARRAY_TYPE, |
| 56 InstanceType::SYMBOL_TYPE, |
| 57 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 58 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 59 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 60 ] |
| 61 handlers: [ |
| 62 ] |
| 63 |
| 64 --- |
| 65 snippet: " |
| 66 var x = 'potatoes'; |
| 67 for (var p of x) { return p; } |
| 68 " |
| 69 frame size: 8 |
| 70 parameter count: 1 |
| 71 bytecode array length: 85 |
| 72 bytecodes: [ |
| 73 B(StackCheck), |
| 74 B(LdaConstant), U8(0), |
| 75 B(Star), R(3), |
| 76 B(Star), R(6), |
| 77 B(LdaConstant), U8(1), |
| 78 B(KeyedLoadIC), R(6), U8(3), |
| 79 B(Star), R(5), |
| 80 B(Call), R(5), R(6), U8(1), U8(1), |
| 81 B(Star), R(1), |
| 82 B(Ldar), R(1), |
| 83 B(Star), R(7), |
| 84 B(LoadIC), R(7), U8(2), U8(7), |
| 85 B(Star), R(6), |
| 86 B(Call), R(6), R(7), U8(1), U8(5), |
| 87 B(Star), R(2), |
| 88 B(Star), R(5), |
| 89 B(CallRuntime), U16(Runtime::k_IsJSReceiver), R(5), U8(1), |
| 90 B(LogicalNot), |
| 91 B(JumpIfFalse), U8(11), |
| 92 B(Ldar), R(2), |
| 93 B(Star), R(5), |
| 94 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(5), U8(1), |
| 95 B(Ldar), R(2), |
| 96 B(Star), R(5), |
| 97 B(LoadIC), R(5), U8(3), U8(9), |
| 98 B(JumpIfToBooleanTrue), U8(18), |
| 99 B(Ldar), R(2), |
| 100 B(Star), R(5), |
| 101 B(LoadIC), R(5), U8(4), U8(11), |
| 102 B(Star), R(0), |
| 103 B(StackCheck), |
| 104 B(Ldar), R(0), |
| 105 B(Star), R(4), |
| 106 B(Return), |
| 107 B(LdaUndefined), |
| 108 B(Return), |
| 109 ] |
| 110 constant pool: [ |
| 111 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 112 InstanceType::SYMBOL_TYPE, |
| 113 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 114 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 115 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 116 ] |
| 117 handlers: [ |
| 118 ] |
| 119 |
| 120 --- |
| 121 snippet: " |
| 122 for (var x of [10, 20, 30]) { |
| 123 if (x == 10) continue; |
| 124 if (x == 20) break; |
| 125 } |
| 126 " |
| 127 frame size: 7 |
| 128 parameter count: 1 |
| 129 bytecode array length: 108 |
| 130 bytecodes: [ |
| 131 B(StackCheck), |
| 132 B(CreateArrayLiteral), U8(0), U8(0), U8(3), |
| 133 B(Star), R(5), |
| 134 B(LdaConstant), U8(1), |
| 135 B(KeyedLoadIC), R(5), U8(3), |
| 136 B(Star), R(4), |
| 137 B(Call), R(4), R(5), U8(1), U8(1), |
| 138 B(Star), R(1), |
| 139 B(Ldar), R(1), |
| 140 B(Star), R(6), |
| 141 B(LoadIC), R(6), U8(2), U8(7), |
| 142 B(Star), R(5), |
| 143 B(Call), R(5), R(6), U8(1), U8(5), |
| 144 B(Star), R(2), |
| 145 B(Star), R(4), |
| 146 B(CallRuntime), U16(Runtime::k_IsJSReceiver), R(4), U8(1), |
| 147 B(LogicalNot), |
| 148 B(JumpIfFalse), U8(11), |
| 149 B(Ldar), R(2), |
| 150 B(Star), R(4), |
| 151 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(4), U8(1), |
| 152 B(Ldar), R(2), |
| 153 B(Star), R(4), |
| 154 B(LoadIC), R(4), U8(3), U8(9), |
| 155 B(JumpIfToBooleanTrue), U8(41), |
| 156 B(Ldar), R(2), |
| 157 B(Star), R(4), |
| 158 B(LoadIC), R(4), U8(4), U8(11), |
| 159 B(Star), R(0), |
| 160 B(StackCheck), |
| 161 B(Ldar), R(0), |
| 162 B(Star), R(3), |
| 163 B(Star), R(4), |
| 164 B(LdaSmi8), U8(10), |
| 165 B(TestEqual), R(4), |
| 166 B(JumpIfFalse), U8(4), |
| 167 B(Jump), U8(-69), |
| 168 B(Ldar), R(3), |
| 169 B(Star), R(4), |
| 170 B(LdaSmi8), U8(20), |
| 171 B(TestEqual), R(4), |
| 172 B(JumpIfFalse), U8(4), |
| 173 B(Jump), U8(4), |
| 174 B(Jump), U8(-83), |
| 175 B(LdaUndefined), |
| 176 B(Return), |
| 177 ] |
| 178 constant pool: [ |
| 179 InstanceType::FIXED_ARRAY_TYPE, |
| 180 InstanceType::SYMBOL_TYPE, |
| 181 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 182 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 183 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 184 ] |
| 185 handlers: [ |
| 186 ] |
| 187 |
| 188 --- |
| 189 snippet: " |
| 190 var x = { 'a': 1, 'b': 2 }; |
| 191 for (x['a'] of [1,2,3]) { return x['a']; } |
| 192 " |
| 193 frame size: 6 |
| 194 parameter count: 1 |
| 195 bytecode array length: 103 |
| 196 bytecodes: [ |
| 197 B(StackCheck), |
| 198 B(CreateObjectLiteral), U8(0), U8(0), U8(9), |
| 199 B(Star), R(3), |
| 200 B(Star), R(2), |
| 201 B(CreateArrayLiteral), U8(1), U8(1), U8(3), |
| 202 B(Star), R(4), |
| 203 B(LdaConstant), U8(2), |
| 204 B(KeyedLoadIC), R(4), U8(3), |
| 205 B(Star), R(3), |
| 206 B(Call), R(3), R(4), U8(1), U8(1), |
| 207 B(Star), R(0), |
| 208 B(Ldar), R(0), |
| 209 B(Star), R(5), |
| 210 B(LoadIC), R(5), U8(3), U8(7), |
| 211 B(Star), R(4), |
| 212 B(Call), R(4), R(5), U8(1), U8(5), |
| 213 B(Star), R(1), |
| 214 B(Star), R(3), |
| 215 B(CallRuntime), U16(Runtime::k_IsJSReceiver), R(3), U8(1), |
| 216 B(LogicalNot), |
| 217 B(JumpIfFalse), U8(11), |
| 218 B(Ldar), R(1), |
| 219 B(Star), R(3), |
| 220 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(3), U8(1), |
| 221 B(Ldar), R(1), |
| 222 B(Star), R(3), |
| 223 B(LoadIC), R(3), U8(4), U8(9), |
| 224 B(JumpIfToBooleanTrue), U8(28), |
| 225 B(Ldar), R(2), |
| 226 B(Star), R(3), |
| 227 B(Ldar), R(1), |
| 228 B(Star), R(4), |
| 229 B(LoadIC), R(4), U8(5), U8(11), |
| 230 B(StoreICSloppy), R(3), U8(6), U8(13), |
| 231 B(StackCheck), |
| 232 B(Ldar), R(2), |
| 233 B(Star), R(3), |
| 234 B(LoadIC), R(3), U8(6), U8(15), |
| 235 B(Return), |
| 236 B(LdaUndefined), |
| 237 B(Return), |
| 238 ] |
| 239 constant pool: [ |
| 240 InstanceType::FIXED_ARRAY_TYPE, |
| 241 InstanceType::FIXED_ARRAY_TYPE, |
| 242 InstanceType::SYMBOL_TYPE, |
| 243 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 244 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 245 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 246 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 247 ] |
| 248 handlers: [ |
| 249 ] |
| 250 |
OLD | NEW |