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 |
11 --- | 11 --- |
12 snippet: " | 12 snippet: " |
13 function Outer() { | 13 function Outer() { |
14 var outerVar = 1; | 14 var outerVar = 1; |
15 function Inner(innerArg) { | 15 function Inner(innerArg) { |
16 this.innerFunc = function() { return outerVar * innerArg; } | 16 this.innerFunc = function() { return outerVar * innerArg; } |
17 } | 17 } |
18 this.getInnerFunc = function() { return new Inner(1).innerFunc; } | 18 this.getInnerFunc = function() { return new Inner(1).innerFunc; } |
19 } | 19 } |
20 var f = new Outer().getInnerFunc(); | 20 var f = new Outer().getInnerFunc(); |
21 f(); | 21 f(); |
22 " | 22 " |
23 frame size: 2 | 23 frame size: 2 |
24 parameter count: 1 | 24 parameter count: 1 |
25 bytecode array length: 15 | 25 bytecode array length: 16 |
26 bytecodes: [ | 26 bytecodes: [ |
27 /* 97 E> */ B(StackCheck), | 27 /* 97 E> */ B(StackCheck), |
28 /* 102 S> */ B(LdrContextSlot), R(context), U8(1), R(0), | 28 /* 102 S> */ B(LdrContextSlot), R(context), U8(1), R(0), |
29 B(LdrContextSlot), R(0), U8(4), R(1), | 29 B(LdrContextSlot), R(0), U8(4), R(1), |
30 /* 120 E> */ B(LdaContextSlot), R(context), U8(4), | 30 /* 120 E> */ B(LdaContextSlot), R(context), U8(4), |
31 B(Mul), R(1), | 31 B(Mul), R(1), U8(1), |
32 /* 130 S> */ B(Return), | 32 /* 130 S> */ B(Return), |
33 ] | 33 ] |
34 constant pool: [ | 34 constant pool: [ |
35 ] | 35 ] |
36 handlers: [ | 36 handlers: [ |
37 ] | 37 ] |
38 | 38 |
39 --- | 39 --- |
40 snippet: " | 40 snippet: " |
41 function Outer() { | 41 function Outer() { |
(...skipping 16 matching lines...) Expand all Loading... |
58 B(Ldar), R(0), | 58 B(Ldar), R(0), |
59 B(StaContextSlot), R(1), U8(4), | 59 B(StaContextSlot), R(1), U8(4), |
60 B(LdaUndefined), | 60 B(LdaUndefined), |
61 /* 123 S> */ B(Return), | 61 /* 123 S> */ B(Return), |
62 ] | 62 ] |
63 constant pool: [ | 63 constant pool: [ |
64 ] | 64 ] |
65 handlers: [ | 65 handlers: [ |
66 ] | 66 ] |
67 | 67 |
OLD | NEW |