| 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: no | 8 wrap: no |
| 9 test function name: test | 9 test function name: test |
| 10 | 10 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 constructor(x) { this.x_ = x; } | 120 constructor(x) { this.x_ = x; } |
| 121 } | 121 } |
| 122 class B extends A { | 122 class B extends A { |
| 123 constructor() { super(1); this.y_ = 2; } | 123 constructor() { super(1); this.y_ = 2; } |
| 124 } | 124 } |
| 125 test = new B().constructor; | 125 test = new B().constructor; |
| 126 })(); | 126 })(); |
| 127 " | 127 " |
| 128 frame size: 5 | 128 frame size: 5 |
| 129 parameter count: 1 | 129 parameter count: 1 |
| 130 bytecode array length: 105 | 130 bytecode array length: 106 |
| 131 bytecodes: [ | 131 bytecodes: [ |
| 132 B(Mov), R(closure), R(1), | 132 B(Mov), R(closure), R(1), |
| 133 B(Mov), R(new_target), R(0), | 133 B(Mov), R(new_target), R(0), |
| 134 /* 113 E> */ B(StackCheck), | 134 /* 113 E> */ B(StackCheck), |
| 135 /* 118 S> */ B(Ldar), R(closure), | 135 /* 118 S> */ B(Ldar), R(closure), |
| 136 B(JumpIfNotHole), U8(11), | 136 B(JumpIfNotHole), U8(11), |
| 137 B(LdaConstant), U8(0), | 137 B(LdaConstant), U8(0), |
| 138 B(Star), R(3), | 138 B(Star), R(3), |
| 139 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 139 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
| 140 B(Star), R(2), | 140 B(Star), R(2), |
| 141 B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1)
, | 141 B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1)
, |
| 142 B(Star), R(2), | 142 B(Star), R(2), |
| 143 B(LdaSmi), U8(1), | 143 B(LdaSmi), U8(1), |
| 144 B(Star), R(3), | 144 B(Star), R(3), |
| 145 B(Ldar), R(0), | 145 B(Ldar), R(0), |
| 146 B(JumpIfNotHole), U8(11), | 146 B(JumpIfNotHole), U8(11), |
| 147 B(LdaConstant), U8(1), | 147 B(LdaConstant), U8(1), |
| 148 B(Star), R(4), | 148 B(Star), R(4), |
| 149 /* 118 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), | 149 /* 118 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), |
| 150 /* 118 E> */ B(New), R(2), R(3), U8(1), | 150 /* 118 E> */ B(New), R(2), R(3), U8(1), U8(0), |
| 151 B(Star), R(2), | 151 B(Star), R(2), |
| 152 B(Ldar), R(this), | 152 B(Ldar), R(this), |
| 153 B(JumpIfNotHole), U8(4), | 153 B(JumpIfNotHole), U8(4), |
| 154 B(Jump), U8(11), | 154 B(Jump), U8(11), |
| 155 B(LdaConstant), U8(2), | 155 B(LdaConstant), U8(2), |
| 156 B(Star), R(3), | 156 B(Star), R(3), |
| 157 /* 118 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 157 /* 118 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
| 158 B(Mov), R(2), R(this), | 158 B(Mov), R(2), R(this), |
| 159 /* 128 S> */ B(Ldar), R(this), | 159 /* 128 S> */ B(Ldar), R(this), |
| 160 B(JumpIfNotHole), U8(11), | 160 B(JumpIfNotHole), U8(11), |
| (...skipping 27 matching lines...) Expand all Loading... |
| 188 constructor() { this.x_ = 1; } | 188 constructor() { this.x_ = 1; } |
| 189 } | 189 } |
| 190 class B extends A { | 190 class B extends A { |
| 191 constructor() { super(); this.y_ = 2; } | 191 constructor() { super(); this.y_ = 2; } |
| 192 } | 192 } |
| 193 test = new B().constructor; | 193 test = new B().constructor; |
| 194 })(); | 194 })(); |
| 195 " | 195 " |
| 196 frame size: 4 | 196 frame size: 4 |
| 197 parameter count: 1 | 197 parameter count: 1 |
| 198 bytecode array length: 101 | 198 bytecode array length: 102 |
| 199 bytecodes: [ | 199 bytecodes: [ |
| 200 B(Mov), R(closure), R(1), | 200 B(Mov), R(closure), R(1), |
| 201 B(Mov), R(new_target), R(0), | 201 B(Mov), R(new_target), R(0), |
| 202 /* 112 E> */ B(StackCheck), | 202 /* 112 E> */ B(StackCheck), |
| 203 /* 117 S> */ B(Ldar), R(closure), | 203 /* 117 S> */ B(Ldar), R(closure), |
| 204 B(JumpIfNotHole), U8(11), | 204 B(JumpIfNotHole), U8(11), |
| 205 B(LdaConstant), U8(0), | 205 B(LdaConstant), U8(0), |
| 206 B(Star), R(3), | 206 B(Star), R(3), |
| 207 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 207 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
| 208 B(Star), R(2), | 208 B(Star), R(2), |
| 209 B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1)
, | 209 B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1)
, |
| 210 B(Star), R(2), | 210 B(Star), R(2), |
| 211 B(Ldar), R(0), | 211 B(Ldar), R(0), |
| 212 B(JumpIfNotHole), U8(11), | 212 B(JumpIfNotHole), U8(11), |
| 213 B(LdaConstant), U8(1), | 213 B(LdaConstant), U8(1), |
| 214 B(Star), R(3), | 214 B(Star), R(3), |
| 215 /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 215 /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
| 216 /* 117 E> */ B(New), R(2), R(0), U8(0), | 216 /* 117 E> */ B(New), R(2), R(0), U8(0), U8(0), |
| 217 B(Star), R(2), | 217 B(Star), R(2), |
| 218 B(Ldar), R(this), | 218 B(Ldar), R(this), |
| 219 B(JumpIfNotHole), U8(4), | 219 B(JumpIfNotHole), U8(4), |
| 220 B(Jump), U8(11), | 220 B(Jump), U8(11), |
| 221 B(LdaConstant), U8(2), | 221 B(LdaConstant), U8(2), |
| 222 B(Star), R(3), | 222 B(Star), R(3), |
| 223 /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 223 /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
| 224 B(Mov), R(2), R(this), | 224 B(Mov), R(2), R(this), |
| 225 /* 126 S> */ B(Ldar), R(this), | 225 /* 126 S> */ B(Ldar), R(this), |
| 226 B(JumpIfNotHole), U8(11), | 226 B(JumpIfNotHole), U8(11), |
| (...skipping 12 matching lines...) Expand all Loading... |
| 239 ] | 239 ] |
| 240 constant pool: [ | 240 constant pool: [ |
| 241 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 241 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 242 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 242 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 243 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 243 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 244 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 244 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 245 ] | 245 ] |
| 246 handlers: [ | 246 handlers: [ |
| 247 ] | 247 ] |
| 248 | 248 |
| OLD | NEW |