OLD | NEW |
(Empty) | |
| 1 # |
| 2 # Autogenerated by generate-bytecode-expectations |
| 3 # |
| 4 |
| 5 --- |
| 6 pool type: mixed |
| 7 execute: yes |
| 8 wrap: no |
| 9 test function name: f |
| 10 |
| 11 --- |
| 12 snippet: " |
| 13 function bar() { this.value = 0; } |
| 14 function f() { return new bar(); } |
| 15 f() |
| 16 " |
| 17 frame size: 1 # in multiples of sizeof(void*) |
| 18 parameter count: 1 |
| 19 bytecodes: [ |
| 20 B(StackCheck), |
| 21 B(LdaGlobal), U8(0), U8(2), |
| 22 B(Star), R(0), |
| 23 B(New), R(0), R(0), U8(0), |
| 24 B(Return), |
| 25 ] |
| 26 constant pool: [ |
| 27 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 28 ] |
| 29 handlers: [ |
| 30 ] |
| 31 |
| 32 --- |
| 33 snippet: " |
| 34 function bar(x) { this.value = 18; this.x = x;} |
| 35 function f() { return new bar(3); } |
| 36 f() |
| 37 " |
| 38 frame size: 2 # in multiples of sizeof(void*) |
| 39 parameter count: 1 |
| 40 bytecodes: [ |
| 41 B(StackCheck), |
| 42 B(LdaGlobal), U8(0), U8(2), |
| 43 B(Star), R(0), |
| 44 B(LdaSmi8), U8(3), |
| 45 B(Star), R(1), |
| 46 B(Ldar), R(0), |
| 47 B(New), R(0), R(1), U8(1), |
| 48 B(Return), |
| 49 ] |
| 50 constant pool: [ |
| 51 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 52 ] |
| 53 handlers: [ |
| 54 ] |
| 55 |
| 56 --- |
| 57 snippet: " |
| 58 function bar(w, x, y, z) { |
| 59 this.value = 18; |
| 60 this.x = x; |
| 61 this.y = y; |
| 62 this.z = z; |
| 63 } |
| 64 function f() { return new bar(3, 4, 5); } |
| 65 f() |
| 66 " |
| 67 frame size: 4 # in multiples of sizeof(void*) |
| 68 parameter count: 1 |
| 69 bytecodes: [ |
| 70 B(StackCheck), |
| 71 B(LdaGlobal), U8(0), U8(2), |
| 72 B(Star), R(0), |
| 73 B(LdaSmi8), U8(3), |
| 74 B(Star), R(1), |
| 75 B(LdaSmi8), U8(4), |
| 76 B(Star), R(2), |
| 77 B(LdaSmi8), U8(5), |
| 78 B(Star), R(3), |
| 79 B(Ldar), R(0), |
| 80 B(New), R(0), R(1), U8(3), |
| 81 B(Return), |
| 82 ] |
| 83 constant pool: [ |
| 84 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 85 ] |
| 86 handlers: [ |
| 87 ] |
| 88 |
OLD | NEW |