| OLD | NEW |
| 1 # | 1 # |
| 2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
| 3 # | 3 # |
| 4 | 4 |
| 5 --- | 5 --- |
| 6 wrap: no | 6 wrap: no |
| 7 test function name: test | 7 test function name: test |
| 8 | 8 |
| 9 --- | 9 --- |
| 10 snippet: " | 10 snippet: " |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 get x() { return 1; } | 54 get x() { return 1; } |
| 55 set x(val) { return; } | 55 set x(val) { return; } |
| 56 } | 56 } |
| 57 class B extends A { | 57 class B extends A { |
| 58 method() { super.x = 2; return super.x; } | 58 method() { super.x = 2; return super.x; } |
| 59 } | 59 } |
| 60 test = new B().method; | 60 test = new B().method; |
| 61 test(); | 61 test(); |
| 62 })(); | 62 })(); |
| 63 " | 63 " |
| 64 frame size: 5 | 64 frame size: 6 |
| 65 parameter count: 1 | 65 parameter count: 1 |
| 66 bytecode array length: 47 | 66 bytecode array length: 50 |
| 67 bytecodes: [ | 67 bytecodes: [ |
| 68 B(Mov), R(closure), R(0), | 68 B(Mov), R(closure), R(0), |
| 69 /* 125 E> */ B(StackCheck), | 69 /* 125 E> */ B(StackCheck), |
| 70 /* 130 S> */ B(LdaConstant), U8(0), | 70 /* 130 S> */ B(LdaConstant), U8(0), |
| 71 /* 130 E> */ B(LdaKeyedProperty), R(closure), U8(2), | 71 /* 130 E> */ B(LdaKeyedProperty), R(closure), U8(2), |
| 72 B(Star), R(3), |
| 73 B(LdaConstant), U8(1), |
| 74 B(Star), R(1), |
| 75 B(LdaSmi), I8(2), |
| 76 B(Star), R(5), |
| 77 B(Mov), R(this), R(2), |
| 78 B(Mov), R(1), R(4), |
| 79 /* 138 E> */ B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(2), U8(4), |
| 80 /* 143 S> */ B(LdaConstant), U8(0), |
| 81 /* 150 E> */ B(LdaKeyedProperty), R(closure), U8(6), |
| 72 B(Star), R(2), | 82 B(Star), R(2), |
| 73 B(LdaConstant), U8(1), | 83 B(LdaConstant), U8(1), |
| 74 B(Star), R(3), | 84 B(Star), R(3), |
| 75 B(LdaSmi), I8(2), | |
| 76 B(Star), R(4), | |
| 77 B(Mov), R(this), R(1), | |
| 78 /* 138 E> */ B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(1), U8(4), | |
| 79 /* 143 S> */ B(LdaConstant), U8(0), | |
| 80 /* 150 E> */ B(LdaKeyedProperty), R(closure), U8(4), | |
| 81 B(Star), R(2), | |
| 82 B(LdaConstant), U8(1), | |
| 83 B(Star), R(3), | |
| 84 B(Mov), R(this), R(1), | 85 B(Mov), R(this), R(1), |
| 85 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(1), U8(3), | 86 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(1), U8(3), |
| 86 /* 159 S> */ B(Return), | 87 /* 159 S> */ B(Return), |
| 87 ] | 88 ] |
| 88 constant pool: [ | 89 constant pool: [ |
| 89 SYMBOL_TYPE, | 90 SYMBOL_TYPE, |
| 90 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], | 91 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
| 91 ] | 92 ] |
| 92 handlers: [ | 93 handlers: [ |
| 93 ] | 94 ] |
| 94 | 95 |
| 95 --- | 96 --- |
| 96 snippet: " | 97 snippet: " |
| 97 var test; | 98 var test; |
| 98 (function() { | 99 (function() { |
| 99 class A { | 100 class A { |
| 100 constructor(x) { this.x_ = x; } | 101 constructor(x) { this.x_ = x; } |
| 101 } | 102 } |
| 102 class B extends A { | 103 class B extends A { |
| 103 constructor() { super(1); this.y_ = 2; } | 104 constructor() { super(1); this.y_ = 2; } |
| 104 } | 105 } |
| 105 test = new B().constructor; | 106 test = new B().constructor; |
| 106 })(); | 107 })(); |
| 107 " | 108 " |
| 108 frame size: 4 | 109 frame size: 5 |
| 109 parameter count: 1 | 110 parameter count: 1 |
| 110 bytecode array length: 75 | 111 bytecode array length: 83 |
| 111 bytecodes: [ | 112 bytecodes: [ |
| 112 B(Mov), R(closure), R(1), | 113 B(Mov), R(closure), R(1), |
| 113 B(Mov), R(new_target), R(0), | 114 B(Mov), R(new_target), R(0), |
| 114 B(Ldar), R(new_target), | 115 B(Ldar), R(new_target), |
| 115 /* 113 E> */ B(StackCheck), | 116 /* 113 E> */ B(StackCheck), |
| 116 /* 118 S> */ B(Ldar), R(1), | 117 /* 118 S> */ B(LdaConstant), U8(0), |
| 117 B(GetSuperConstructor), R(2), | 118 B(Star), R(2), |
| 119 B(Ldar), R(1), |
| 120 /* 118 E> */ B(GetSuperConstructor), R(3), |
| 118 B(LdaSmi), I8(1), | 121 B(LdaSmi), I8(1), |
| 122 B(Star), R(4), |
| 123 B(Ldar), R(0), |
| 124 /* 118 E> */ B(Construct), R(3), R(4), U8(1), U8(2), |
| 119 B(Star), R(3), | 125 B(Star), R(3), |
| 120 B(Ldar), R(0), | |
| 121 /* 118 E> */ B(Construct), R(2), R(3), U8(1), U8(2), | |
| 122 B(Star), R(2), | |
| 123 B(Ldar), R(this), | 126 B(Ldar), R(this), |
| 124 B(JumpIfNotHole), U8(4), | 127 B(JumpIfNotHole), U8(4), |
| 125 B(Jump), U8(7), | 128 B(Jump), U8(7), |
| 126 /* 118 E> */ B(CallRuntime), U16(Runtime::kThrowSuperAlreadyCalledError), R(0
), U8(0), | 129 /* 118 E> */ B(CallRuntime), U16(Runtime::kThrowSuperAlreadyCalledError), R(0
), U8(0), |
| 127 B(Mov), R(2), R(this), | 130 B(Mov), R(3), R(this), |
| 128 /* 128 S> */ B(Ldar), R(this), | 131 /* 128 S> */ B(Ldar), R(this), |
| 129 B(JumpIfNotHole), U8(11), | 132 B(JumpIfNotHole), U8(11), |
| 130 B(LdaConstant), U8(0), | 133 B(LdaConstant), U8(0), |
| 131 B(Star), R(2), | 134 B(Star), R(3), |
| 132 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 135 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
| 136 B(Star), R(3), |
| 137 B(LdaConstant), U8(1), |
| 133 B(Star), R(2), | 138 B(Star), R(2), |
| 134 B(LdaSmi), I8(2), | 139 B(LdaSmi), I8(2), |
| 135 /* 136 E> */ B(StaNamedPropertyStrict), R(2), U8(1), U8(4), | 140 /* 136 E> */ B(StaNamedPropertyStrict), R(3), U8(1), U8(6), |
| 136 B(Ldar), R(this), | 141 B(Ldar), R(this), |
| 137 B(JumpIfNotHole), U8(11), | 142 B(JumpIfNotHole), U8(11), |
| 138 B(LdaConstant), U8(0), | 143 B(LdaConstant), U8(0), |
| 139 B(Star), R(2), | 144 B(Star), R(2), |
| 140 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 145 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
| 141 /* 141 S> */ B(Return), | 146 /* 141 S> */ B(Return), |
| 142 ] | 147 ] |
| 143 constant pool: [ | 148 constant pool: [ |
| 144 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], | 149 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], |
| 145 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"], | 150 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"], |
| 146 ] | 151 ] |
| 147 handlers: [ | 152 handlers: [ |
| 148 ] | 153 ] |
| 149 | 154 |
| 150 --- | 155 --- |
| 151 snippet: " | 156 snippet: " |
| 152 var test; | 157 var test; |
| 153 (function() { | 158 (function() { |
| 154 class A { | 159 class A { |
| 155 constructor() { this.x_ = 1; } | 160 constructor() { this.x_ = 1; } |
| 156 } | 161 } |
| 157 class B extends A { | 162 class B extends A { |
| 158 constructor() { super(); this.y_ = 2; } | 163 constructor() { super(); this.y_ = 2; } |
| 159 } | 164 } |
| 160 test = new B().constructor; | 165 test = new B().constructor; |
| 161 })(); | 166 })(); |
| 162 " | 167 " |
| 163 frame size: 3 | 168 frame size: 4 |
| 164 parameter count: 1 | 169 parameter count: 1 |
| 165 bytecode array length: 71 | 170 bytecode array length: 79 |
| 166 bytecodes: [ | 171 bytecodes: [ |
| 167 B(Mov), R(closure), R(1), | 172 B(Mov), R(closure), R(1), |
| 168 B(Mov), R(new_target), R(0), | 173 B(Mov), R(new_target), R(0), |
| 169 B(Ldar), R(new_target), | 174 B(Ldar), R(new_target), |
| 170 /* 112 E> */ B(StackCheck), | 175 /* 112 E> */ B(StackCheck), |
| 171 /* 117 S> */ B(Ldar), R(1), | 176 /* 117 S> */ B(LdaConstant), U8(0), |
| 172 B(GetSuperConstructor), R(2), | 177 B(Star), R(2), |
| 178 B(Ldar), R(1), |
| 179 /* 117 E> */ B(GetSuperConstructor), R(3), |
| 173 B(Ldar), R(0), | 180 B(Ldar), R(0), |
| 174 /* 117 E> */ B(Construct), R(2), R(0), U8(0), U8(2), | 181 /* 117 E> */ B(Construct), R(3), R(0), U8(0), U8(2), |
| 175 B(Star), R(2), | 182 B(Star), R(3), |
| 176 B(Ldar), R(this), | 183 B(Ldar), R(this), |
| 177 B(JumpIfNotHole), U8(4), | 184 B(JumpIfNotHole), U8(4), |
| 178 B(Jump), U8(7), | 185 B(Jump), U8(7), |
| 179 /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowSuperAlreadyCalledError), R(0
), U8(0), | 186 /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowSuperAlreadyCalledError), R(0
), U8(0), |
| 180 B(Mov), R(2), R(this), | 187 B(Mov), R(3), R(this), |
| 181 /* 126 S> */ B(Ldar), R(this), | 188 /* 126 S> */ B(Ldar), R(this), |
| 182 B(JumpIfNotHole), U8(11), | 189 B(JumpIfNotHole), U8(11), |
| 183 B(LdaConstant), U8(0), | 190 B(LdaConstant), U8(0), |
| 184 B(Star), R(2), | 191 B(Star), R(3), |
| 185 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 192 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
| 193 B(Star), R(3), |
| 194 B(LdaConstant), U8(1), |
| 186 B(Star), R(2), | 195 B(Star), R(2), |
| 187 B(LdaSmi), I8(2), | 196 B(LdaSmi), I8(2), |
| 188 /* 134 E> */ B(StaNamedPropertyStrict), R(2), U8(1), U8(4), | 197 /* 134 E> */ B(StaNamedPropertyStrict), R(3), U8(1), U8(6), |
| 189 B(Ldar), R(this), | 198 B(Ldar), R(this), |
| 190 B(JumpIfNotHole), U8(11), | 199 B(JumpIfNotHole), U8(11), |
| 191 B(LdaConstant), U8(0), | 200 B(LdaConstant), U8(0), |
| 192 B(Star), R(2), | 201 B(Star), R(2), |
| 193 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 202 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
| 194 /* 139 S> */ B(Return), | 203 /* 139 S> */ B(Return), |
| 195 ] | 204 ] |
| 196 constant pool: [ | 205 constant pool: [ |
| 197 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], | 206 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], |
| 198 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"], | 207 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"], |
| 199 ] | 208 ] |
| 200 handlers: [ | 209 handlers: [ |
| 201 ] | 210 ] |
| 202 | 211 |
| OLD | NEW |