| 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: " |
| 11 var test; | 11 var test; |
| 12 (function() { | 12 (function() { |
| 13 class A { | 13 class A { |
| 14 method() { return 2; } | 14 method() { return 2; } |
| 15 } | 15 } |
| 16 class B extends A { | 16 class B extends A { |
| 17 method() { return super.method() + 1; } | 17 method() { return super.method() + 1; } |
| 18 } | 18 } |
| 19 test = new B().method; | 19 test = new B().method; |
| 20 test(); | 20 test(); |
| 21 })(); | 21 })(); |
| 22 " | 22 " |
| 23 frame size: 6 | 23 frame size: 6 |
| 24 parameter count: 1 | 24 parameter count: 1 |
| 25 bytecode array length: 36 | 25 bytecode array length: 37 |
| 26 bytecodes: [ | 26 bytecodes: [ |
| 27 B(Mov), R(closure), R(0), | 27 B(Mov), R(closure), R(0), |
| 28 /* 99 E> */ B(StackCheck), | 28 /* 99 E> */ B(StackCheck), |
| 29 /* 104 S> */ B(LdaConstant), U8(0), | 29 /* 104 S> */ B(LdaConstant), U8(0), |
| 30 /* 111 E> */ B(LdaKeyedProperty), R(closure), U8(4), | 30 /* 111 E> */ B(LdaKeyedProperty), R(closure), U8(4), |
| 31 B(Star), R(4), | 31 B(Star), R(4), |
| 32 B(LdaConstant), U8(1), | 32 B(LdaConstant), U8(1), |
| 33 B(Star), R(5), | 33 B(Star), R(5), |
| 34 B(Mov), R(this), R(3), | 34 B(Mov), R(this), R(3), |
| 35 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(3), U8(3), | 35 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(3), U8(3), |
| 36 B(Star), R(1), | 36 B(Star), R(1), |
| 37 /* 117 E> */ B(Call0), R(1), R(this), U8(2), | 37 /* 117 E> */ B(Call), R(1), R(this), U8(1), U8(2), |
| 38 B(Star), R(1), | 38 B(Star), R(1), |
| 39 /* 126 E> */ B(AddSmi), I8(1), R(1), U8(8), | 39 /* 126 E> */ B(AddSmi), I8(1), R(1), U8(8), |
| 40 /* 131 S> */ B(Return), | 40 /* 131 S> */ B(Return), |
| 41 ] | 41 ] |
| 42 constant pool: [ | 42 constant pool: [ |
| 43 SYMBOL_TYPE, | 43 SYMBOL_TYPE, |
| 44 ONE_BYTE_INTERNALIZED_STRING_TYPE ["method"], | 44 ONE_BYTE_INTERNALIZED_STRING_TYPE ["method"], |
| 45 ] | 45 ] |
| 46 handlers: [ | 46 handlers: [ |
| 47 ] | 47 ] |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 193 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
| 194 /* 139 S> */ B(Return), | 194 /* 139 S> */ B(Return), |
| 195 ] | 195 ] |
| 196 constant pool: [ | 196 constant pool: [ |
| 197 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], | 197 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], |
| 198 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"], | 198 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"], |
| 199 ] | 199 ] |
| 200 handlers: [ | 200 handlers: [ |
| 201 ] | 201 ] |
| 202 | 202 |
| OLD | NEW |