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