| 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: " |
| (...skipping 23 matching lines...) Expand all Loading... |
| 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), U8(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(New), 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: " |
| 58 function bar(w, x, y, z) { | 58 function bar(w, x, y, z) { |
| 59 this.value = 18; | 59 this.value = 18; |
| 60 this.x = x; | 60 this.x = x; |
| 61 this.y = y; | 61 this.y = y; |
| 62 this.z = z; | 62 this.z = z; |
| 63 } | 63 } |
| 64 function f() { return new bar(3, 4, 5); } | 64 function f() { return new bar(3, 4, 5); } |
| 65 f(); | 65 f(); |
| 66 " | 66 " |
| 67 frame size: 4 | 67 frame size: 4 |
| 68 parameter count: 1 | 68 parameter count: 1 |
| 69 bytecode array length: 26 | 69 bytecode array length: 26 |
| 70 bytecodes: [ | 70 bytecodes: [ |
| 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), U8(3), | 74 B(LdaSmi), I8(3), |
| 75 B(Star), R(1), | 75 B(Star), R(1), |
| 76 B(LdaSmi), U8(4), | 76 B(LdaSmi), I8(4), |
| 77 B(Star), R(2), | 77 B(Star), R(2), |
| 78 B(LdaSmi), U8(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(New), 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 |