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: yes | 8 wrap: yes |
9 | 9 |
10 --- | 10 --- |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 ] | 94 ] |
95 | 95 |
96 --- | 96 --- |
97 snippet: " | 97 snippet: " |
98 outer: { | 98 outer: { |
99 let y = 10; | 99 let y = 10; |
100 function f() { return y; } | 100 function f() { return y; } |
101 break outer; | 101 break outer; |
102 } | 102 } |
103 " | 103 " |
104 frame size: 5 | 104 frame size: 3 |
105 parameter count: 1 | 105 parameter count: 1 |
106 bytecode array length: 40 | 106 bytecode array length: 32 |
107 bytecodes: [ | 107 bytecodes: [ |
108 /* 30 E> */ B(StackCheck), | 108 /* 30 E> */ B(StackCheck), |
109 B(LdaConstant), U8(0), | 109 B(Ldar), R(closure), |
110 B(Star), R(3), | 110 B(CreateBlockContext), U8(0), |
111 B(Mov), R(closure), R(4), | |
112 B(CallRuntime), U16(Runtime::kPushBlockContext), R(3), U8(2), | |
113 B(PushContext), R(2), | 111 B(PushContext), R(2), |
114 B(LdaTheHole), | 112 B(LdaTheHole), |
115 B(StaContextSlot), R(context), U8(4), | 113 B(StaContextSlot), R(context), U8(4), |
116 B(CreateClosure), U8(1), U8(2), | 114 B(CreateClosure), U8(1), U8(2), |
117 B(Star), R(0), | 115 B(Star), R(0), |
118 /* 53 S> */ B(LdaSmi), U8(10), | 116 /* 53 S> */ B(LdaSmi), U8(10), |
119 /* 53 E> */ B(StaContextSlot), R(context), U8(4), | 117 /* 53 E> */ B(StaContextSlot), R(context), U8(4), |
120 B(Mov), R(0), R(1), | 118 B(Mov), R(0), R(1), |
121 B(Ldar), R(0), | 119 B(Ldar), R(0), |
122 /* 88 S> */ B(Jump), U8(2), | 120 /* 88 S> */ B(Jump), U8(2), |
(...skipping 16 matching lines...) Expand all Loading... |
139 let y = 2; | 137 let y = 2; |
140 function f() { return x + y; } | 138 function f() { return x + y; } |
141 if (y) break outer; | 139 if (y) break outer; |
142 y = 3; | 140 y = 3; |
143 } | 141 } |
144 } | 142 } |
145 x = 4; | 143 x = 4; |
146 " | 144 " |
147 frame size: 6 | 145 frame size: 6 |
148 parameter count: 1 | 146 parameter count: 1 |
149 bytecode array length: 115 | 147 bytecode array length: 107 |
150 bytecodes: [ | 148 bytecodes: [ |
151 B(CreateFunctionContext), U8(1), | 149 B(CreateFunctionContext), U8(1), |
152 B(PushContext), R(2), | 150 B(PushContext), R(2), |
153 B(LdaTheHole), | 151 B(LdaTheHole), |
154 B(StaContextSlot), R(context), U8(4), | 152 B(StaContextSlot), R(context), U8(4), |
155 /* 30 E> */ B(StackCheck), | 153 /* 30 E> */ B(StackCheck), |
156 /* 42 S> */ B(LdaSmi), U8(1), | 154 /* 42 S> */ B(LdaSmi), U8(1), |
157 /* 42 E> */ B(StaContextSlot), R(context), U8(4), | 155 /* 42 E> */ B(StaContextSlot), R(context), U8(4), |
158 B(LdaConstant), U8(0), | 156 B(Ldar), R(closure), |
159 B(Star), R(4), | 157 B(CreateBlockContext), U8(0), |
160 B(Mov), R(closure), R(5), | |
161 B(CallRuntime), U16(Runtime::kPushBlockContext), R(4), U8(2), | |
162 B(PushContext), R(3), | 158 B(PushContext), R(3), |
163 B(LdaTheHole), | 159 B(LdaTheHole), |
164 B(StaContextSlot), R(context), U8(4), | 160 B(StaContextSlot), R(context), U8(4), |
165 B(CreateClosure), U8(1), U8(2), | 161 B(CreateClosure), U8(1), U8(2), |
166 B(Star), R(0), | 162 B(Star), R(0), |
167 /* 76 S> */ B(LdaSmi), U8(2), | 163 /* 76 S> */ B(LdaSmi), U8(2), |
168 /* 76 E> */ B(StaContextSlot), R(context), U8(4), | 164 /* 76 E> */ B(StaContextSlot), R(context), U8(4), |
169 B(Mov), R(0), R(1), | 165 B(Mov), R(0), R(1), |
170 /* 118 S> */ B(LdaContextSlot), R(context), U8(4), | 166 /* 118 S> */ B(LdaContextSlot), R(context), U8(4), |
171 B(JumpIfNotHole), U8(11), | 167 B(JumpIfNotHole), U8(11), |
(...skipping 27 matching lines...) Expand all Loading... |
199 ] | 195 ] |
200 constant pool: [ | 196 constant pool: [ |
201 InstanceType::FIXED_ARRAY_TYPE, | 197 InstanceType::FIXED_ARRAY_TYPE, |
202 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 198 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
203 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 199 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
204 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 200 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
205 ] | 201 ] |
206 handlers: [ | 202 handlers: [ |
207 ] | 203 ] |
208 | 204 |
OLD | NEW |