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 Outer() { var outerVar = 1; function Inner(innerArg) { this.inne
rFunc = function() { return outerVar * innerArg; } } this.getInnerFunc = funct
ion() { return new Inner(1).innerFunc; }}var f = new Outer().getInnerFunc(); |
| 14 f(); |
| 15 " |
| 16 frame size: 2 # in multiples of sizeof(void*) |
| 17 parameter count: 1 |
| 18 bytecodes: [ |
| 19 B(StackCheck), |
| 20 B(Ldar), R(context), |
| 21 B(Star), R(0), |
| 22 B(LdaContextSlot), R(0), U8(1), |
| 23 B(Star), R(0), |
| 24 B(LdaContextSlot), R(0), U8(4), |
| 25 B(Star), R(1), |
| 26 B(LdaContextSlot), R(context), U8(4), |
| 27 B(Mul), R(1), |
| 28 B(Return), |
| 29 ] |
| 30 constant pool: [ |
| 31 ] |
| 32 handlers: [ |
| 33 ] |
| 34 |
| 35 --- |
| 36 snippet: " |
| 37 function Outer() { var outerVar = 1; function Inner(innerArg) { this.inne
rFunc = function() { outerVar = innerArg; } } this.getInnerFunc = function() {
return new Inner(1).innerFunc; }}var f = new Outer().getInnerFunc(); |
| 38 f(); |
| 39 " |
| 40 frame size: 2 # in multiples of sizeof(void*) |
| 41 parameter count: 1 |
| 42 bytecodes: [ |
| 43 B(StackCheck), |
| 44 B(LdaContextSlot), R(context), U8(4), |
| 45 B(Star), R(0), |
| 46 B(Ldar), R(context), |
| 47 B(Star), R(1), |
| 48 B(LdaContextSlot), R(1), U8(1), |
| 49 B(Star), R(1), |
| 50 B(Ldar), R(0), |
| 51 B(StaContextSlot), R(1), U8(4), |
| 52 B(LdaUndefined), |
| 53 B(Return), |
| 54 ] |
| 55 constant pool: [ |
| 56 ] |
| 57 handlers: [ |
| 58 ] |
| 59 |
OLD | NEW |