| 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: f | 7 test function name: f |
| 8 | 8 |
| 9 --- | 9 --- |
| 10 snippet: " | 10 snippet: " |
| 11 function bar() { this.value = 0; } | 11 function bar() { this.value = 0; } |
| 12 function f() { return new bar(); } | 12 function f() { return new bar(); } |
| 13 f(); | 13 f(); |
| 14 " | 14 " |
| 15 frame size: 1 | 15 frame size: 1 |
| 16 parameter count: 1 | 16 parameter count: 1 |
| 17 bytecode array length: 12 | 17 bytecode array length: 12 |
| 18 bytecodes: [ | 18 bytecodes: [ |
| 19 /* 45 E> */ B(StackCheck), | 19 /* 45 E> */ B(StackCheck), |
| 20 /* 50 S> */ B(LdaGlobal), U8(0), U8(4), | 20 /* 50 S> */ B(LdaGlobal), U8(0), U8(4), |
| 21 B(Star), R(0), | 21 B(Star), R(0), |
| 22 /* 57 E> */ B(New), R(0), R(0), U8(0), U8(2), | 22 /* 57 E> */ B(Construct), R(0), R(0), U8(0), U8(2), |
| 23 /* 68 S> */ B(Return), | 23 /* 68 S> */ B(Return), |
| 24 ] | 24 ] |
| 25 constant pool: [ | 25 constant pool: [ |
| 26 ONE_BYTE_INTERNALIZED_STRING_TYPE ["bar"], | 26 ONE_BYTE_INTERNALIZED_STRING_TYPE ["bar"], |
| 27 ] | 27 ] |
| 28 handlers: [ | 28 handlers: [ |
| 29 ] | 29 ] |
| 30 | 30 |
| 31 --- | 31 --- |
| 32 snippet: " | 32 snippet: " |
| 33 function bar(x) { this.value = 18; this.x = x;} | 33 function bar(x) { this.value = 18; this.x = x;} |
| 34 function f() { return new bar(3); } | 34 function f() { return new bar(3); } |
| 35 f(); | 35 f(); |
| 36 " | 36 " |
| 37 frame size: 2 | 37 frame size: 2 |
| 38 parameter count: 1 | 38 parameter count: 1 |
| 39 bytecode array length: 18 | 39 bytecode array length: 18 |
| 40 bytecodes: [ | 40 bytecodes: [ |
| 41 /* 58 E> */ B(StackCheck), | 41 /* 58 E> */ B(StackCheck), |
| 42 /* 63 S> */ B(LdaGlobal), U8(0), U8(4), | 42 /* 63 S> */ B(LdaGlobal), U8(0), U8(4), |
| 43 B(Star), R(0), | 43 B(Star), R(0), |
| 44 B(LdaSmi), I8(3), | 44 B(LdaSmi), I8(3), |
| 45 B(Star), R(1), | 45 B(Star), R(1), |
| 46 B(Ldar), R(0), | 46 B(Ldar), R(0), |
| 47 /* 70 E> */ B(New), R(0), R(1), U8(1), U8(2), | 47 /* 70 E> */ B(Construct), R(0), R(1), U8(1), U8(2), |
| 48 /* 82 S> */ B(Return), | 48 /* 82 S> */ B(Return), |
| 49 ] | 49 ] |
| 50 constant pool: [ | 50 constant pool: [ |
| 51 ONE_BYTE_INTERNALIZED_STRING_TYPE ["bar"], | 51 ONE_BYTE_INTERNALIZED_STRING_TYPE ["bar"], |
| 52 ] | 52 ] |
| 53 handlers: [ | 53 handlers: [ |
| 54 ] | 54 ] |
| 55 | 55 |
| 56 --- | 56 --- |
| 57 snippet: " | 57 snippet: " |
| (...skipping 13 matching lines...) Expand all Loading... |
| 71 /* 100 E> */ B(StackCheck), | 71 /* 100 E> */ B(StackCheck), |
| 72 /* 105 S> */ B(LdaGlobal), U8(0), U8(4), | 72 /* 105 S> */ B(LdaGlobal), U8(0), U8(4), |
| 73 B(Star), R(0), | 73 B(Star), R(0), |
| 74 B(LdaSmi), I8(3), | 74 B(LdaSmi), I8(3), |
| 75 B(Star), R(1), | 75 B(Star), R(1), |
| 76 B(LdaSmi), I8(4), | 76 B(LdaSmi), I8(4), |
| 77 B(Star), R(2), | 77 B(Star), R(2), |
| 78 B(LdaSmi), I8(5), | 78 B(LdaSmi), I8(5), |
| 79 B(Star), R(3), | 79 B(Star), R(3), |
| 80 B(Ldar), R(0), | 80 B(Ldar), R(0), |
| 81 /* 112 E> */ B(New), R(0), R(1), U8(3), U8(2), | 81 /* 112 E> */ B(Construct), R(0), R(1), U8(3), U8(2), |
| 82 /* 130 S> */ B(Return), | 82 /* 130 S> */ B(Return), |
| 83 ] | 83 ] |
| 84 constant pool: [ | 84 constant pool: [ |
| 85 ONE_BYTE_INTERNALIZED_STRING_TYPE ["bar"], | 85 ONE_BYTE_INTERNALIZED_STRING_TYPE ["bar"], |
| 86 ] | 86 ] |
| 87 handlers: [ | 87 handlers: [ |
| 88 ] | 88 ] |
| 89 | 89 |
| OLD | NEW |