OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 wrap: no | 6 wrap: no |
7 test function name: f | 7 test function name: f |
8 | 8 |
9 --- | 9 --- |
10 snippet: " | 10 snippet: " |
(...skipping 16 matching lines...) Expand all Loading... |
27 SHARED_FUNCTION_INFO_TYPE, | 27 SHARED_FUNCTION_INFO_TYPE, |
28 ] | 28 ] |
29 handlers: [ | 29 handlers: [ |
30 ] | 30 ] |
31 | 31 |
32 --- | 32 --- |
33 snippet: " | 33 snippet: " |
34 function f(arg1) { var a = function() { arg1 = 2; }; return arg1; } | 34 function f(arg1) { var a = function() { arg1 = 2; }; return arg1; } |
35 f(); | 35 f(); |
36 " | 36 " |
37 frame size: 2 | 37 frame size: 3 |
38 parameter count: 2 | 38 parameter count: 2 |
39 bytecode array length: 18 | 39 bytecode array length: 22 |
40 bytecodes: [ | 40 bytecodes: [ |
41 B(CreateFunctionContext), U8(1), | 41 B(CreateFunctionContext), U8(1), |
42 B(PushContext), R(1), | 42 B(PushContext), R(1), |
43 B(Ldar), R(arg0), | 43 B(Ldar), R(arg0), |
44 B(StaCurrentContextSlot), U8(4), | 44 B(StaCurrentContextSlot), U8(4), |
45 /* 10 E> */ B(StackCheck), | 45 /* 10 E> */ B(StackCheck), |
46 /* 27 S> */ B(CreateClosure), U8(0), U8(2), U8(2), | 46 /* 27 S> */ B(LdaConstant), U8(0), |
| 47 B(Star), R(2), |
| 48 B(CreateClosure), U8(1), U8(2), U8(2), |
47 B(Star), R(0), | 49 B(Star), R(0), |
48 /* 53 S> */ B(LdaCurrentContextSlot), U8(4), | 50 /* 53 S> */ B(LdaCurrentContextSlot), U8(4), |
49 /* 66 S> */ B(Return), | 51 /* 66 S> */ B(Return), |
50 ] | 52 ] |
51 constant pool: [ | 53 constant pool: [ |
| 54 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
52 SHARED_FUNCTION_INFO_TYPE, | 55 SHARED_FUNCTION_INFO_TYPE, |
53 ] | 56 ] |
54 handlers: [ | 57 handlers: [ |
55 ] | 58 ] |
56 | 59 |
57 --- | 60 --- |
58 snippet: " | 61 snippet: " |
59 function f(a1, a2, a3, a4) { return function() { a1 = a3; }; } | 62 function f(a1, a2, a3, a4) { return function() { a1 = a3; }; } |
60 f(); | 63 f(); |
61 " | 64 " |
(...skipping 15 matching lines...) Expand all Loading... |
77 SHARED_FUNCTION_INFO_TYPE, | 80 SHARED_FUNCTION_INFO_TYPE, |
78 ] | 81 ] |
79 handlers: [ | 82 handlers: [ |
80 ] | 83 ] |
81 | 84 |
82 --- | 85 --- |
83 snippet: " | 86 snippet: " |
84 function f() { var self = this; return function() { self = 2; }; } | 87 function f() { var self = this; return function() { self = 2; }; } |
85 f(); | 88 f(); |
86 " | 89 " |
87 frame size: 1 | 90 frame size: 2 |
88 parameter count: 1 | 91 parameter count: 1 |
89 bytecode array length: 14 | 92 bytecode array length: 18 |
90 bytecodes: [ | 93 bytecodes: [ |
91 B(CreateFunctionContext), U8(1), | 94 B(CreateFunctionContext), U8(1), |
92 B(PushContext), R(0), | 95 B(PushContext), R(0), |
93 /* 10 E> */ B(StackCheck), | 96 /* 10 E> */ B(StackCheck), |
94 /* 26 S> */ B(Ldar), R(this), | 97 /* 26 S> */ B(LdaConstant), U8(0), |
| 98 B(Star), R(1), |
| 99 B(Ldar), R(this), |
95 /* 26 E> */ B(StaCurrentContextSlot), U8(4), | 100 /* 26 E> */ B(StaCurrentContextSlot), U8(4), |
96 /* 32 S> */ B(CreateClosure), U8(0), U8(2), U8(2), | 101 /* 32 S> */ B(CreateClosure), U8(1), U8(4), U8(2), |
97 /* 65 S> */ B(Return), | 102 /* 65 S> */ B(Return), |
98 ] | 103 ] |
99 constant pool: [ | 104 constant pool: [ |
| 105 ONE_BYTE_INTERNALIZED_STRING_TYPE ["self"], |
100 SHARED_FUNCTION_INFO_TYPE, | 106 SHARED_FUNCTION_INFO_TYPE, |
101 ] | 107 ] |
102 handlers: [ | 108 handlers: [ |
103 ] | 109 ] |
104 | 110 |
OLD | NEW |