| OLD | NEW | 
|---|
| 1 # | 1 # | 
| 2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. | 
| 3 # | 3 # | 
| 4 | 4 | 
| 5 --- | 5 --- | 
| 6 pool type: mixed | 6 pool type: mixed | 
| 7 execute: yes | 7 execute: yes | 
| 8 wrap: yes | 8 wrap: yes | 
| 9 | 9 | 
| 10 --- | 10 --- | 
| 11 snippet: " | 11 snippet: " | 
| 12   class Person { | 12   class Person { | 
| 13     constructor(name) { this.name = name; } | 13     constructor(name) { this.name = name; } | 
| 14     speak() { console.log(this.name + ' is speaking.'); } | 14     speak() { console.log(this.name + ' is speaking.'); } | 
| 15   } | 15   } | 
| 16 " | 16 " | 
| 17 frame size: 9 | 17 frame size: 9 | 
| 18 parameter count: 1 | 18 parameter count: 1 | 
| 19 bytecode array length: 74 | 19 bytecode array length: 72 | 
| 20 bytecodes: [ | 20 bytecodes: [ | 
| 21                 B(LdaTheHole), | 21                 B(LdaTheHole), | 
| 22                 B(Star), R(1), | 22                 B(Star), R(1), | 
| 23   /*   30 E> */ B(StackCheck), | 23   /*   30 E> */ B(StackCheck), | 
| 24                 B(LdaTheHole), | 24                 B(LdaTheHole), | 
| 25                 B(Star), R(0), | 25                 B(Star), R(0), | 
| 26                 B(LdaTheHole), | 26                 B(LdaTheHole), | 
| 27                 B(Star), R(2), | 27                 B(Star), R(2), | 
| 28                 B(CreateClosure), U8(0), U8(0), | 28                 B(CreateClosure), U8(0), U8(0), | 
| 29                 B(Star), R(3), | 29                 B(Star), R(3), | 
| 30                 B(LdaSmi), U8(34), | 30                 B(LdaSmi), U8(34), | 
| 31                 B(Star), R(4), | 31                 B(Star), R(4), | 
| 32                 B(Wide), B(LdaSmi), U16(148), | 32                 B(Wide), B(LdaSmi), U16(148), | 
| 33                 B(Star), R(5), | 33                 B(Star), R(5), | 
| 34                 B(CallRuntime), U16(Runtime::kDefineClass), R(2), U8(4), | 34                 B(CallRuntime), U16(Runtime::kDefineClass), R(2), U8(4), | 
| 35                 B(Star), R(2), | 35                 B(Star), R(2), | 
| 36                 B(LdrNamedProperty), R(2), U8(1), U8(1), R(3), | 36                 B(LdrNamedProperty), R(2), U8(1), U8(1), R(3), | 
| 37                 B(Ldar), R(3), |  | 
| 38                 B(Mov), R(3), R(4), |  | 
| 39                 B(LdaConstant), U8(2), | 37                 B(LdaConstant), U8(2), | 
| 40                 B(Star), R(5), | 38                 B(Star), R(5), | 
| 41                 B(CreateClosure), U8(3), U8(0), | 39                 B(CreateClosure), U8(3), U8(0), | 
| 42                 B(Star), R(6), | 40                 B(Star), R(6), | 
| 43                 B(LdaSmi), U8(2), | 41                 B(LdaSmi), U8(2), | 
| 44                 B(Star), R(7), | 42                 B(Star), R(7), | 
| 45                 B(LdaZero), | 43                 B(LdaZero), | 
| 46                 B(Star), R(8), | 44                 B(Star), R(8), | 
|  | 45                 B(Mov), R(3), R(4), | 
| 47                 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(4)
     , U8(5), | 46                 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(4)
     , U8(5), | 
| 48                 B(CallRuntime), U16(Runtime::kToFastProperties), R(2), U8(1), | 47                 B(CallRuntime), U16(Runtime::kToFastProperties), R(2), U8(1), | 
| 49                 B(Star), R(0), | 48                 B(Star), R(0), | 
| 50   /*   34 E> */ B(Star), R(1), | 49   /*   34 E> */ B(Star), R(1), | 
| 51                 B(LdaUndefined), | 50                 B(LdaUndefined), | 
| 52   /*  149 S> */ B(Return), | 51   /*  149 S> */ B(Return), | 
| 53 ] | 52 ] | 
| 54 constant pool: [ | 53 constant pool: [ | 
| 55   InstanceType::SHARED_FUNCTION_INFO_TYPE, | 54   InstanceType::SHARED_FUNCTION_INFO_TYPE, | 
| 56   InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 55   InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 
| 57   InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 56   InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 
| 58   InstanceType::SHARED_FUNCTION_INFO_TYPE, | 57   InstanceType::SHARED_FUNCTION_INFO_TYPE, | 
| 59 ] | 58 ] | 
| 60 handlers: [ | 59 handlers: [ | 
| 61 ] | 60 ] | 
| 62 | 61 | 
| 63 --- | 62 --- | 
| 64 snippet: " | 63 snippet: " | 
| 65   class person { | 64   class person { | 
| 66     constructor(name) { this.name = name; } | 65     constructor(name) { this.name = name; } | 
| 67     speak() { console.log(this.name + ' is speaking.'); } | 66     speak() { console.log(this.name + ' is speaking.'); } | 
| 68   } | 67   } | 
| 69 " | 68 " | 
| 70 frame size: 9 | 69 frame size: 9 | 
| 71 parameter count: 1 | 70 parameter count: 1 | 
| 72 bytecode array length: 74 | 71 bytecode array length: 72 | 
| 73 bytecodes: [ | 72 bytecodes: [ | 
| 74                 B(LdaTheHole), | 73                 B(LdaTheHole), | 
| 75                 B(Star), R(1), | 74                 B(Star), R(1), | 
| 76   /*   30 E> */ B(StackCheck), | 75   /*   30 E> */ B(StackCheck), | 
| 77                 B(LdaTheHole), | 76                 B(LdaTheHole), | 
| 78                 B(Star), R(0), | 77                 B(Star), R(0), | 
| 79                 B(LdaTheHole), | 78                 B(LdaTheHole), | 
| 80                 B(Star), R(2), | 79                 B(Star), R(2), | 
| 81                 B(CreateClosure), U8(0), U8(0), | 80                 B(CreateClosure), U8(0), U8(0), | 
| 82                 B(Star), R(3), | 81                 B(Star), R(3), | 
| 83                 B(LdaSmi), U8(34), | 82                 B(LdaSmi), U8(34), | 
| 84                 B(Star), R(4), | 83                 B(Star), R(4), | 
| 85                 B(Wide), B(LdaSmi), U16(148), | 84                 B(Wide), B(LdaSmi), U16(148), | 
| 86                 B(Star), R(5), | 85                 B(Star), R(5), | 
| 87                 B(CallRuntime), U16(Runtime::kDefineClass), R(2), U8(4), | 86                 B(CallRuntime), U16(Runtime::kDefineClass), R(2), U8(4), | 
| 88                 B(Star), R(2), | 87                 B(Star), R(2), | 
| 89                 B(LdrNamedProperty), R(2), U8(1), U8(1), R(3), | 88                 B(LdrNamedProperty), R(2), U8(1), U8(1), R(3), | 
| 90                 B(Ldar), R(3), |  | 
| 91                 B(Mov), R(3), R(4), |  | 
| 92                 B(LdaConstant), U8(2), | 89                 B(LdaConstant), U8(2), | 
| 93                 B(Star), R(5), | 90                 B(Star), R(5), | 
| 94                 B(CreateClosure), U8(3), U8(0), | 91                 B(CreateClosure), U8(3), U8(0), | 
| 95                 B(Star), R(6), | 92                 B(Star), R(6), | 
| 96                 B(LdaSmi), U8(2), | 93                 B(LdaSmi), U8(2), | 
| 97                 B(Star), R(7), | 94                 B(Star), R(7), | 
| 98                 B(LdaZero), | 95                 B(LdaZero), | 
| 99                 B(Star), R(8), | 96                 B(Star), R(8), | 
|  | 97                 B(Mov), R(3), R(4), | 
| 100                 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(4)
     , U8(5), | 98                 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(4)
     , U8(5), | 
| 101                 B(CallRuntime), U16(Runtime::kToFastProperties), R(2), U8(1), | 99                 B(CallRuntime), U16(Runtime::kToFastProperties), R(2), U8(1), | 
| 102                 B(Star), R(0), | 100                 B(Star), R(0), | 
| 103   /*   34 E> */ B(Star), R(1), | 101   /*   34 E> */ B(Star), R(1), | 
| 104                 B(LdaUndefined), | 102                 B(LdaUndefined), | 
| 105   /*  149 S> */ B(Return), | 103   /*  149 S> */ B(Return), | 
| 106 ] | 104 ] | 
| 107 constant pool: [ | 105 constant pool: [ | 
| 108   InstanceType::SHARED_FUNCTION_INFO_TYPE, | 106   InstanceType::SHARED_FUNCTION_INFO_TYPE, | 
| 109   InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 107   InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 
| 110   InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 108   InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 
| 111   InstanceType::SHARED_FUNCTION_INFO_TYPE, | 109   InstanceType::SHARED_FUNCTION_INFO_TYPE, | 
| 112 ] | 110 ] | 
| 113 handlers: [ | 111 handlers: [ | 
| 114 ] | 112 ] | 
| 115 | 113 | 
| 116 --- | 114 --- | 
| 117 snippet: " | 115 snippet: " | 
| 118   var n0 = 'a'; | 116   var n0 = 'a'; | 
| 119   var n1 = 'b'; | 117   var n1 = 'b'; | 
| 120   class N { | 118   class N { | 
| 121     [n0]() { return n0; } | 119     [n0]() { return n0; } | 
| 122     static [n1]() { return n1; } | 120     static [n1]() { return n1; } | 
| 123   } | 121   } | 
| 124 " | 122 " | 
| 125 frame size: 10 | 123 frame size: 10 | 
| 126 parameter count: 1 | 124 parameter count: 1 | 
| 127 bytecode array length: 128 | 125 bytecode array length: 126 | 
| 128 bytecodes: [ | 126 bytecodes: [ | 
| 129                 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U
     8(1), | 127                 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U
     8(1), | 
| 130                 B(PushContext), R(2), | 128                 B(PushContext), R(2), | 
| 131                 B(LdaTheHole), | 129                 B(LdaTheHole), | 
| 132                 B(Star), R(1), | 130                 B(Star), R(1), | 
| 133   /*   30 E> */ B(StackCheck), | 131   /*   30 E> */ B(StackCheck), | 
| 134   /*   43 S> */ B(LdaConstant), U8(0), | 132   /*   43 S> */ B(LdaConstant), U8(0), | 
| 135   /*   43 E> */ B(StaContextSlot), R(context), U8(4), | 133   /*   43 E> */ B(StaContextSlot), R(context), U8(4), | 
| 136   /*   57 S> */ B(LdaConstant), U8(1), | 134   /*   57 S> */ B(LdaConstant), U8(1), | 
| 137   /*   57 E> */ B(StaContextSlot), R(context), U8(5), | 135   /*   57 E> */ B(StaContextSlot), R(context), U8(5), | 
| 138                 B(LdaTheHole), | 136                 B(LdaTheHole), | 
| 139                 B(Star), R(0), | 137                 B(Star), R(0), | 
| 140                 B(LdaTheHole), | 138                 B(LdaTheHole), | 
| 141                 B(Star), R(3), | 139                 B(Star), R(3), | 
| 142                 B(CreateClosure), U8(2), U8(0), | 140                 B(CreateClosure), U8(2), U8(0), | 
| 143                 B(Star), R(4), | 141                 B(Star), R(4), | 
| 144                 B(LdaSmi), U8(62), | 142                 B(LdaSmi), U8(62), | 
| 145                 B(Star), R(5), | 143                 B(Star), R(5), | 
| 146                 B(Wide), B(LdaSmi), U16(128), | 144                 B(Wide), B(LdaSmi), U16(128), | 
| 147                 B(Star), R(6), | 145                 B(Star), R(6), | 
| 148                 B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4), | 146                 B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4), | 
| 149                 B(Star), R(3), | 147                 B(Star), R(3), | 
| 150                 B(LdrNamedProperty), R(3), U8(3), U8(1), R(4), | 148                 B(LdrNamedProperty), R(3), U8(3), U8(1), R(4), | 
| 151                 B(Ldar), R(4), |  | 
| 152                 B(Mov), R(4), R(5), |  | 
| 153   /*   75 E> */ B(LdaContextSlot), R(context), U8(4), | 149   /*   75 E> */ B(LdaContextSlot), R(context), U8(4), | 
| 154                 B(ToName), | 150                 B(ToName), | 
| 155                 B(Star), R(6), | 151                 B(Star), R(6), | 
| 156                 B(CreateClosure), U8(4), U8(0), | 152                 B(CreateClosure), U8(4), U8(0), | 
| 157                 B(Star), R(7), | 153                 B(Star), R(7), | 
| 158                 B(LdaSmi), U8(2), | 154                 B(LdaSmi), U8(2), | 
| 159                 B(Star), R(8), | 155                 B(Star), R(8), | 
| 160                 B(LdaSmi), U8(1), | 156                 B(LdaSmi), U8(1), | 
| 161                 B(Star), R(9), | 157                 B(Star), R(9), | 
|  | 158                 B(Mov), R(4), R(5), | 
| 162                 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(5)
     , U8(5), | 159                 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(5)
     , U8(5), | 
| 163                 B(Mov), R(3), R(5), |  | 
| 164   /*  106 E> */ B(LdaContextSlot), R(context), U8(5), | 160   /*  106 E> */ B(LdaContextSlot), R(context), U8(5), | 
| 165                 B(ToName), | 161                 B(ToName), | 
| 166                 B(Star), R(6), | 162                 B(Star), R(6), | 
| 167                 B(LdaConstant), U8(3), | 163                 B(LdaConstant), U8(3), | 
| 168                 B(TestEqualStrict), R(6), | 164                 B(TestEqualStrict), R(6), | 
| 169                 B(JumpIfFalse), U8(7), | 165                 B(Mov), R(3), R(5), | 
|  | 166                 B(JumpIfToBooleanFalse), U8(7), | 
| 170                 B(CallRuntime), U16(Runtime::kThrowStaticPrototypeError), R(0), 
     U8(0), | 167                 B(CallRuntime), U16(Runtime::kThrowStaticPrototypeError), R(0), 
     U8(0), | 
| 171                 B(CreateClosure), U8(5), U8(0), | 168                 B(CreateClosure), U8(5), U8(0), | 
| 172                 B(Star), R(7), | 169                 B(Star), R(7), | 
| 173                 B(LdaSmi), U8(1), | 170                 B(LdaSmi), U8(1), | 
| 174                 B(Star), R(9), | 171                 B(Star), R(9), | 
| 175                 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(5)
     , U8(5), | 172                 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(5)
     , U8(5), | 
| 176                 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), | 173                 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), | 
| 177                 B(Star), R(0), | 174                 B(Star), R(0), | 
| 178   /*   62 E> */ B(Star), R(1), | 175   /*   62 E> */ B(Star), R(1), | 
| 179                 B(LdaUndefined), | 176                 B(LdaUndefined), | 
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 232   /*  103 S> */ B(Return), | 229   /*  103 S> */ B(Return), | 
| 233 ] | 230 ] | 
| 234 constant pool: [ | 231 constant pool: [ | 
| 235   InstanceType::SHARED_FUNCTION_INFO_TYPE, | 232   InstanceType::SHARED_FUNCTION_INFO_TYPE, | 
| 236   InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 233   InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 
| 237   InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 234   InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 
| 238 ] | 235 ] | 
| 239 handlers: [ | 236 handlers: [ | 
| 240 ] | 237 ] | 
| 241 | 238 | 
| OLD | NEW | 
|---|