| OLD | NEW |
| 1 # | 1 # |
| 2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
| 3 # | 3 # |
| 4 | 4 |
| 5 --- | 5 --- |
| 6 execute: yes | 6 execute: yes |
| 7 wrap: no | 7 wrap: no |
| 8 test function name: f | 8 test function name: f |
| 9 | 9 |
| 10 --- | 10 --- |
| 11 snippet: " | 11 snippet: " |
| 12 function bar() { this.value = 0; } | 12 function bar() { this.value = 0; } |
| 13 function f() { return new bar(); } | 13 function f() { return new bar(); } |
| 14 f(); | 14 f(); |
| 15 " | 15 " |
| 16 frame size: 1 | 16 frame size: 1 |
| 17 parameter count: 1 | 17 parameter count: 1 |
| 18 bytecode array length: 12 | 18 bytecode array length: 12 |
| 19 bytecodes: [ | 19 bytecodes: [ |
| 20 /* 45 E> */ B(StackCheck), | 20 /* 45 E> */ B(StackCheck), |
| 21 /* 50 S> */ B(LdrGlobal), U8(3), R(0), | 21 /* 50 S> */ B(LdrGlobal), U8(4), R(0), |
| 22 B(Ldar), R(0), | 22 B(Ldar), R(0), |
| 23 /* 57 E> */ B(New), R(0), R(0), U8(0), U8(1), | 23 /* 57 E> */ B(New), R(0), R(0), U8(0), U8(2), |
| 24 /* 68 S> */ B(Return), | 24 /* 68 S> */ B(Return), |
| 25 ] | 25 ] |
| 26 constant pool: [ | 26 constant pool: [ |
| 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: 16 | 39 bytecode array length: 16 |
| 40 bytecodes: [ | 40 bytecodes: [ |
| 41 /* 58 E> */ B(StackCheck), | 41 /* 58 E> */ B(StackCheck), |
| 42 /* 63 S> */ B(LdrGlobal), U8(3), R(0), | 42 /* 63 S> */ B(LdrGlobal), U8(4), R(0), |
| 43 B(LdaSmi), U8(3), | 43 B(LdaSmi), U8(3), |
| 44 B(Star), R(1), | 44 B(Star), R(1), |
| 45 B(Ldar), R(0), | 45 B(Ldar), R(0), |
| 46 /* 70 E> */ B(New), R(0), R(1), U8(1), U8(1), | 46 /* 70 E> */ B(New), R(0), R(1), U8(1), U8(2), |
| 47 /* 82 S> */ B(Return), | 47 /* 82 S> */ B(Return), |
| 48 ] | 48 ] |
| 49 constant pool: [ | 49 constant pool: [ |
| 50 ] | 50 ] |
| 51 handlers: [ | 51 handlers: [ |
| 52 ] | 52 ] |
| 53 | 53 |
| 54 --- | 54 --- |
| 55 snippet: " | 55 snippet: " |
| 56 function bar(w, x, y, z) { | 56 function bar(w, x, y, z) { |
| 57 this.value = 18; | 57 this.value = 18; |
| 58 this.x = x; | 58 this.x = x; |
| 59 this.y = y; | 59 this.y = y; |
| 60 this.z = z; | 60 this.z = z; |
| 61 } | 61 } |
| 62 function f() { return new bar(3, 4, 5); } | 62 function f() { return new bar(3, 4, 5); } |
| 63 f(); | 63 f(); |
| 64 " | 64 " |
| 65 frame size: 4 | 65 frame size: 4 |
| 66 parameter count: 1 | 66 parameter count: 1 |
| 67 bytecode array length: 24 | 67 bytecode array length: 24 |
| 68 bytecodes: [ | 68 bytecodes: [ |
| 69 /* 100 E> */ B(StackCheck), | 69 /* 100 E> */ B(StackCheck), |
| 70 /* 105 S> */ B(LdrGlobal), U8(3), R(0), | 70 /* 105 S> */ B(LdrGlobal), U8(4), R(0), |
| 71 B(LdaSmi), U8(3), | 71 B(LdaSmi), U8(3), |
| 72 B(Star), R(1), | 72 B(Star), R(1), |
| 73 B(LdaSmi), U8(4), | 73 B(LdaSmi), U8(4), |
| 74 B(Star), R(2), | 74 B(Star), R(2), |
| 75 B(LdaSmi), U8(5), | 75 B(LdaSmi), U8(5), |
| 76 B(Star), R(3), | 76 B(Star), R(3), |
| 77 B(Ldar), R(0), | 77 B(Ldar), R(0), |
| 78 /* 112 E> */ B(New), R(0), R(1), U8(3), U8(1), | 78 /* 112 E> */ B(New), R(0), R(1), U8(3), U8(2), |
| 79 /* 130 S> */ B(Return), | 79 /* 130 S> */ B(Return), |
| 80 ] | 80 ] |
| 81 constant pool: [ | 81 constant pool: [ |
| 82 ] | 82 ] |
| 83 handlers: [ | 83 handlers: [ |
| 84 ] | 84 ] |
| 85 | 85 |
| OLD | NEW |