OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 pool type: mixed | 6 pool type: mixed |
7 execute: yes | 7 execute: yes |
8 wrap: no | 8 wrap: no |
9 test function name: f | 9 test function name: f |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 function Inner(innerArg) { | 43 function Inner(innerArg) { |
44 this.innerFunc = function() { outerVar = innerArg; } | 44 this.innerFunc = function() { outerVar = innerArg; } |
45 } | 45 } |
46 this.getInnerFunc = function() { return new Inner(1).innerFunc; } | 46 this.getInnerFunc = function() { return new Inner(1).innerFunc; } |
47 } | 47 } |
48 var f = new Outer().getInnerFunc(); | 48 var f = new Outer().getInnerFunc(); |
49 f(); | 49 f(); |
50 " | 50 " |
51 frame size: 2 | 51 frame size: 2 |
52 parameter count: 1 | 52 parameter count: 1 |
53 bytecode array length: 17 | 53 bytecode array length: 16 |
54 bytecodes: [ | 54 bytecodes: [ |
55 /* 97 E> */ B(StackCheck), | 55 /* 97 E> */ B(StackCheck), |
56 /* 102 S> */ B(LdaContextSlot), R(context), U8(4), | 56 /* 102 S> */ B(LdrContextSlot), R(context), U8(4), R(0), |
57 /* 111 E> */ B(Star), R(0), | 57 /* 111 E> */ B(LdrContextSlot), R(context), U8(1), R(1), |
58 B(LdrContextSlot), R(context), U8(1), R(1), | |
59 B(Ldar), R(0), | 58 B(Ldar), R(0), |
60 B(StaContextSlot), R(1), U8(4), | 59 B(StaContextSlot), R(1), U8(4), |
61 B(LdaUndefined), | 60 B(LdaUndefined), |
62 /* 123 S> */ B(Return), | 61 /* 123 S> */ B(Return), |
63 ] | 62 ] |
64 constant pool: [ | 63 constant pool: [ |
65 ] | 64 ] |
66 handlers: [ | 65 handlers: [ |
67 ] | 66 ] |
68 | 67 |
OLD | NEW |