| 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   var x = 0; | 
|  | 13   label: { | 
|  | 14     x = x + 1; | 
|  | 15     break label; | 
|  | 16     x = x + 1; | 
|  | 17   } | 
|  | 18   return x; | 
|  | 19 " | 
|  | 20 frame size: 2  # in multiples of sizeof(void*) | 
|  | 21 parameter count: 1 | 
|  | 22 bytecodes: [ | 
|  | 23   B(StackCheck), | 
|  | 24   B(LdaZero), | 
|  | 25   B(Star), R(0), | 
|  | 26   B(Star), R(1), | 
|  | 27   B(LdaSmi8), U8(1), | 
|  | 28   B(Add), R(1), | 
|  | 29   B(Star), R(0), | 
|  | 30   B(Jump), U8(2), | 
|  | 31   B(Ldar), R(0), | 
|  | 32   B(Return), | 
|  | 33 ] | 
|  | 34 constant pool: [ | 
|  | 35 ] | 
|  | 36 handlers: [ | 
|  | 37 ] | 
|  | 38 | 
|  | 39 --- | 
|  | 40 snippet: " | 
|  | 41   var sum = 0; | 
|  | 42   outer: { | 
|  | 43     for (var x = 0; x < 10; ++x) { | 
|  | 44       for (var y = 0; y < 3; ++y) { | 
|  | 45         ++sum; | 
|  | 46         if (x + y == 12) { break outer; } | 
|  | 47       } | 
|  | 48     } | 
|  | 49   } | 
|  | 50   return sum; | 
|  | 51 " | 
|  | 52 frame size: 5  # in multiples of sizeof(void*) | 
|  | 53 parameter count: 1 | 
|  | 54 bytecodes: [ | 
|  | 55   B(StackCheck), | 
|  | 56   B(LdaZero), | 
|  | 57   B(Star), R(0), | 
|  | 58   B(LdaZero), | 
|  | 59   B(Star), R(1), | 
|  | 60   B(Ldar), R(1), | 
|  | 61   B(Star), R(3), | 
|  | 62   B(LdaSmi8), U8(10), | 
|  | 63   B(TestLessThan), R(3), | 
|  | 64   B(JumpIfFalse), U8(57), | 
|  | 65   B(StackCheck), | 
|  | 66   B(LdaZero), | 
|  | 67   B(Star), R(2), | 
|  | 68   B(Ldar), R(2), | 
|  | 69   B(Star), R(3), | 
|  | 70   B(LdaSmi8), U8(3), | 
|  | 71   B(TestLessThan), R(3), | 
|  | 72   B(JumpIfFalse), U8(35), | 
|  | 73   B(StackCheck), | 
|  | 74   B(Ldar), R(0), | 
|  | 75   B(ToNumber), | 
|  | 76   B(Inc), | 
|  | 77   B(Star), R(0), | 
|  | 78   B(Ldar), R(1), | 
|  | 79   B(Star), R(3), | 
|  | 80   B(Ldar), R(2), | 
|  | 81   B(Add), R(3), | 
|  | 82   B(Star), R(4), | 
|  | 83   B(LdaSmi8), U8(12), | 
|  | 84   B(TestEqual), R(4), | 
|  | 85   B(JumpIfFalse), U8(4), | 
|  | 86   B(Jump), U8(18), | 
|  | 87   B(Ldar), R(2), | 
|  | 88   B(ToNumber), | 
|  | 89   B(Inc), | 
|  | 90   B(Star), R(2), | 
|  | 91   B(Jump), U8(-41), | 
|  | 92   B(Ldar), R(1), | 
|  | 93   B(ToNumber), | 
|  | 94   B(Inc), | 
|  | 95   B(Star), R(1), | 
|  | 96   B(Jump), U8(-63), | 
|  | 97   B(Ldar), R(0), | 
|  | 98   B(Return), | 
|  | 99 ] | 
|  | 100 constant pool: [ | 
|  | 101 ] | 
|  | 102 handlers: [ | 
|  | 103 ] | 
|  | 104 | 
|  | 105 --- | 
|  | 106 snippet: " | 
|  | 107   outer: { | 
|  | 108     let y = 10;  function f() { return y; } | 
|  | 109     break outer; | 
|  | 110   } | 
|  | 111 " | 
|  | 112 frame size: 5  # in multiples of sizeof(void*) | 
|  | 113 parameter count: 1 | 
|  | 114 bytecodes: [ | 
|  | 115   B(StackCheck), | 
|  | 116   B(LdaConstant), U8(0), | 
|  | 117   B(Star), R(3), | 
|  | 118   B(Ldar), R(closure), | 
|  | 119   B(Star), R(4), | 
|  | 120   B(CallRuntime), U16(464), R(3), U8(2), | 
|  | 121   B(PushContext), R(2), | 
|  | 122   B(LdaTheHole), | 
|  | 123   B(StaContextSlot), R(context), U8(4), | 
|  | 124   B(CreateClosure), U8(1), U8(0), | 
|  | 125   B(Star), R(0), | 
|  | 126   B(LdaSmi8), U8(10), | 
|  | 127   B(StaContextSlot), R(context), U8(4), | 
|  | 128   B(Ldar), R(0), | 
|  | 129   B(JumpIfNotHole), U8(11), | 
|  | 130   B(LdaConstant), U8(2), | 
|  | 131   B(Star), R(3), | 
|  | 132   B(CallRuntime), U16(257), R(3), U8(1), | 
|  | 133   B(Star), R(1), | 
|  | 134   B(Jump), U8(2), | 
|  | 135   B(PopContext), R(2), | 
|  | 136   B(LdaUndefined), | 
|  | 137   B(Return), | 
|  | 138 ] | 
|  | 139 constant pool: [ | 
|  | 140   InstanceType::FIXED_ARRAY_TYPE, | 
|  | 141   InstanceType::SHARED_FUNCTION_INFO_TYPE, | 
|  | 142   InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 
|  | 143 ] | 
|  | 144 handlers: [ | 
|  | 145 ] | 
|  | 146 | 
|  | 147 --- | 
|  | 148 snippet: " | 
|  | 149   let x = 1; | 
|  | 150   outer: { | 
|  | 151     inner: { | 
|  | 152      let y = 2; | 
|  | 153       function f() { return x + y; } | 
|  | 154       if (y) break outer; | 
|  | 155       y = 3; | 
|  | 156     } | 
|  | 157   } | 
|  | 158   x = 4; | 
|  | 159 " | 
|  | 160 frame size: 6  # in multiples of sizeof(void*) | 
|  | 161 parameter count: 1 | 
|  | 162 bytecodes: [ | 
|  | 163   B(CallRuntime), U16(461), R(closure), U8(1), | 
|  | 164   B(PushContext), R(2), | 
|  | 165   B(LdaTheHole), | 
|  | 166   B(StaContextSlot), R(context), U8(4), | 
|  | 167   B(StackCheck), | 
|  | 168   B(LdaSmi8), U8(1), | 
|  | 169   B(StaContextSlot), R(context), U8(4), | 
|  | 170   B(LdaConstant), U8(0), | 
|  | 171   B(Star), R(4), | 
|  | 172   B(Ldar), R(closure), | 
|  | 173   B(Star), R(5), | 
|  | 174   B(CallRuntime), U16(464), R(4), U8(2), | 
|  | 175   B(PushContext), R(3), | 
|  | 176   B(LdaTheHole), | 
|  | 177   B(StaContextSlot), R(context), U8(4), | 
|  | 178   B(CreateClosure), U8(1), U8(0), | 
|  | 179   B(Star), R(0), | 
|  | 180   B(LdaSmi8), U8(2), | 
|  | 181   B(StaContextSlot), R(context), U8(4), | 
|  | 182   B(Ldar), R(0), | 
|  | 183   B(JumpIfNotHole), U8(11), | 
|  | 184   B(LdaConstant), U8(2), | 
|  | 185   B(Star), R(4), | 
|  | 186   B(CallRuntime), U16(257), R(4), U8(1), | 
|  | 187   B(Star), R(1), | 
|  | 188   B(LdaContextSlot), R(context), U8(4), | 
|  | 189   B(JumpIfNotHole), U8(11), | 
|  | 190   B(LdaConstant), U8(3), | 
|  | 191   B(Star), R(4), | 
|  | 192   B(CallRuntime), U16(257), R(4), U8(1), | 
|  | 193   B(JumpIfToBooleanFalse), U8(6), | 
|  | 194   B(PopContext), R(3), | 
|  | 195   B(Jump), U8(27), | 
|  | 196   B(LdaSmi8), U8(3), | 
|  | 197   B(Star), R(4), | 
|  | 198   B(LdaContextSlot), R(context), U8(4), | 
|  | 199   B(JumpIfNotHole), U8(11), | 
|  | 200   B(LdaConstant), U8(3), | 
|  | 201   B(Star), R(5), | 
|  | 202   B(CallRuntime), U16(257), R(5), U8(1), | 
|  | 203   B(Ldar), R(4), | 
|  | 204   B(StaContextSlot), R(context), U8(4), | 
|  | 205   B(PopContext), R(3), | 
|  | 206   B(LdaSmi8), U8(4), | 
|  | 207   B(Star), R(4), | 
|  | 208   B(LdaContextSlot), R(context), U8(4), | 
|  | 209   B(JumpIfNotHole), U8(11), | 
|  | 210   B(LdaConstant), U8(4), | 
|  | 211   B(Star), R(5), | 
|  | 212   B(CallRuntime), U16(257), R(5), U8(1), | 
|  | 213   B(Ldar), R(4), | 
|  | 214   B(StaContextSlot), R(context), U8(4), | 
|  | 215   B(LdaUndefined), | 
|  | 216   B(Return), | 
|  | 217 ] | 
|  | 218 constant pool: [ | 
|  | 219   InstanceType::FIXED_ARRAY_TYPE, | 
|  | 220   InstanceType::SHARED_FUNCTION_INFO_TYPE, | 
|  | 221   InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 
|  | 222   InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 
|  | 223   InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 
|  | 224 ] | 
|  | 225 handlers: [ | 
|  | 226 ] | 
|  | 227 | 
| OLD | NEW | 
|---|