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