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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 handlers: [ | 67 handlers: [ |
68 ] | 68 ] |
69 | 69 |
70 --- | 70 --- |
71 snippet: " | 71 snippet: " |
72 function f(a) { return arguments[0]; } | 72 function f(a) { return arguments[0]; } |
73 f(); | 73 f(); |
74 " | 74 " |
75 frame size: 2 | 75 frame size: 2 |
76 parameter count: 2 | 76 parameter count: 2 |
77 bytecode array length: 19 | 77 bytecode array length: 17 |
78 bytecodes: [ | 78 bytecodes: [ |
79 B(CreateFunctionContext), U8(1), | 79 B(CreateFunctionContext), U8(1), |
80 B(PushContext), R(1), | 80 B(PushContext), R(1), |
81 B(Ldar), R(arg0), | 81 B(Ldar), R(arg0), |
82 B(StaContextSlot), R(context), U8(4), U8(0), | 82 B(StaCurrentContextSlot), U8(4), |
83 B(CreateMappedArguments), | 83 B(CreateMappedArguments), |
84 B(Star), R(0), | 84 B(Star), R(0), |
85 /* 10 E> */ B(StackCheck), | 85 /* 10 E> */ B(StackCheck), |
86 /* 16 S> */ B(LdaZero), | 86 /* 16 S> */ B(LdaZero), |
87 /* 32 E> */ B(LdaKeyedProperty), R(0), U8(2), | 87 /* 32 E> */ B(LdaKeyedProperty), R(0), U8(2), |
88 /* 37 S> */ B(Return), | 88 /* 37 S> */ B(Return), |
89 ] | 89 ] |
90 constant pool: [ | 90 constant pool: [ |
91 ] | 91 ] |
92 handlers: [ | 92 handlers: [ |
93 ] | 93 ] |
94 | 94 |
95 --- | 95 --- |
96 snippet: " | 96 snippet: " |
97 function f(a, b, c) { return arguments; } | 97 function f(a, b, c) { return arguments; } |
98 f(); | 98 f(); |
99 " | 99 " |
100 frame size: 2 | 100 frame size: 2 |
101 parameter count: 4 | 101 parameter count: 4 |
102 bytecode array length: 28 | 102 bytecode array length: 22 |
103 bytecodes: [ | 103 bytecodes: [ |
104 B(CreateFunctionContext), U8(3), | 104 B(CreateFunctionContext), U8(3), |
105 B(PushContext), R(1), | 105 B(PushContext), R(1), |
106 B(Ldar), R(arg0), | 106 B(Ldar), R(arg0), |
107 B(StaContextSlot), R(context), U8(6), U8(0), | 107 B(StaCurrentContextSlot), U8(6), |
108 B(Ldar), R(arg1), | 108 B(Ldar), R(arg1), |
109 B(StaContextSlot), R(context), U8(5), U8(0), | 109 B(StaCurrentContextSlot), U8(5), |
110 B(Ldar), R(arg2), | 110 B(Ldar), R(arg2), |
111 B(StaContextSlot), R(context), U8(4), U8(0), | 111 B(StaCurrentContextSlot), U8(4), |
112 B(CreateMappedArguments), | 112 B(CreateMappedArguments), |
113 B(Star), R(0), | 113 B(Star), R(0), |
114 /* 10 E> */ B(StackCheck), | 114 /* 10 E> */ B(StackCheck), |
115 /* 22 S> */ B(Nop), | 115 /* 22 S> */ B(Nop), |
116 /* 40 S> */ B(Return), | 116 /* 40 S> */ B(Return), |
117 ] | 117 ] |
118 constant pool: [ | 118 constant pool: [ |
119 ] | 119 ] |
120 handlers: [ | 120 handlers: [ |
121 ] | 121 ] |
(...skipping 11 matching lines...) Expand all Loading... |
133 B(Star), R(0), | 133 B(Star), R(0), |
134 /* 10 E> */ B(StackCheck), | 134 /* 10 E> */ B(StackCheck), |
135 /* 36 S> */ B(Nop), | 135 /* 36 S> */ B(Nop), |
136 /* 54 S> */ B(Return), | 136 /* 54 S> */ B(Return), |
137 ] | 137 ] |
138 constant pool: [ | 138 constant pool: [ |
139 ] | 139 ] |
140 handlers: [ | 140 handlers: [ |
141 ] | 141 ] |
142 | 142 |
OLD | NEW |