OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 wrap: yes | 6 wrap: yes |
7 test function name: f | 7 test function name: f |
8 | 8 |
9 --- | 9 --- |
10 snippet: " | 10 snippet: " |
11 eval('var x = 10;'); return x; | 11 eval('var x = 10;'); return x; |
12 " | 12 " |
13 frame size: 10 | 13 frame size: 10 |
14 parameter count: 1 | 14 parameter count: 1 |
15 bytecode array length: 73 | 15 bytecode array length: 67 |
16 bytecodes: [ | 16 bytecodes: [ |
17 B(CreateFunctionContext), U8(3), | 17 B(CreateFunctionContext), U8(3), |
18 B(PushContext), R(0), | 18 B(PushContext), R(0), |
19 B(Ldar), R(this), | 19 B(Ldar), R(this), |
20 B(StaContextSlot), R(context), U8(4), U8(0), | 20 B(StaCurrentContextSlot), U8(4), |
21 B(CreateMappedArguments), | 21 B(CreateMappedArguments), |
22 B(StaContextSlot), R(context), U8(6), U8(0), | 22 B(StaCurrentContextSlot), U8(6), |
23 B(Ldar), R(new_target), | 23 B(Ldar), R(new_target), |
24 B(StaContextSlot), R(context), U8(5), U8(0), | 24 B(StaCurrentContextSlot), U8(5), |
25 /* 10 E> */ B(StackCheck), | 25 /* 10 E> */ B(StackCheck), |
26 /* 14 S> */ B(LdaConstant), U8(0), | 26 /* 14 S> */ B(LdaConstant), U8(0), |
27 B(Star), R(4), | 27 B(Star), R(4), |
28 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4
), U8(1), R(1), | 28 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4
), U8(1), R(1), |
29 B(LdaConstant), U8(1), | 29 B(LdaConstant), U8(1), |
30 B(Star), R(3), | 30 B(Star), R(3), |
31 B(LdaZero), | 31 B(LdaZero), |
32 B(Star), R(7), | 32 B(Star), R(7), |
33 B(LdaSmi), U8(10), | 33 B(LdaSmi), U8(10), |
34 B(Star), R(8), | 34 B(Star), R(8), |
(...skipping 15 matching lines...) Expand all Loading... |
50 ] | 50 ] |
51 handlers: [ | 51 handlers: [ |
52 ] | 52 ] |
53 | 53 |
54 --- | 54 --- |
55 snippet: " | 55 snippet: " |
56 eval('var x = 10;'); return typeof x; | 56 eval('var x = 10;'); return typeof x; |
57 " | 57 " |
58 frame size: 10 | 58 frame size: 10 |
59 parameter count: 1 | 59 parameter count: 1 |
60 bytecode array length: 74 | 60 bytecode array length: 68 |
61 bytecodes: [ | 61 bytecodes: [ |
62 B(CreateFunctionContext), U8(3), | 62 B(CreateFunctionContext), U8(3), |
63 B(PushContext), R(0), | 63 B(PushContext), R(0), |
64 B(Ldar), R(this), | 64 B(Ldar), R(this), |
65 B(StaContextSlot), R(context), U8(4), U8(0), | 65 B(StaCurrentContextSlot), U8(4), |
66 B(CreateMappedArguments), | 66 B(CreateMappedArguments), |
67 B(StaContextSlot), R(context), U8(6), U8(0), | 67 B(StaCurrentContextSlot), U8(6), |
68 B(Ldar), R(new_target), | 68 B(Ldar), R(new_target), |
69 B(StaContextSlot), R(context), U8(5), U8(0), | 69 B(StaCurrentContextSlot), U8(5), |
70 /* 10 E> */ B(StackCheck), | 70 /* 10 E> */ B(StackCheck), |
71 /* 14 S> */ B(LdaConstant), U8(0), | 71 /* 14 S> */ B(LdaConstant), U8(0), |
72 B(Star), R(4), | 72 B(Star), R(4), |
73 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4
), U8(1), R(1), | 73 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4
), U8(1), R(1), |
74 B(LdaConstant), U8(1), | 74 B(LdaConstant), U8(1), |
75 B(Star), R(3), | 75 B(Star), R(3), |
76 B(LdaZero), | 76 B(LdaZero), |
77 B(Star), R(7), | 77 B(Star), R(7), |
78 B(LdaSmi), U8(10), | 78 B(LdaSmi), U8(10), |
79 B(Star), R(8), | 79 B(Star), R(8), |
(...skipping 16 matching lines...) Expand all Loading... |
96 ] | 96 ] |
97 handlers: [ | 97 handlers: [ |
98 ] | 98 ] |
99 | 99 |
100 --- | 100 --- |
101 snippet: " | 101 snippet: " |
102 x = 20; return eval(''); | 102 x = 20; return eval(''); |
103 " | 103 " |
104 frame size: 10 | 104 frame size: 10 |
105 parameter count: 1 | 105 parameter count: 1 |
106 bytecode array length: 73 | 106 bytecode array length: 67 |
107 bytecodes: [ | 107 bytecodes: [ |
108 B(CreateFunctionContext), U8(3), | 108 B(CreateFunctionContext), U8(3), |
109 B(PushContext), R(0), | 109 B(PushContext), R(0), |
110 B(Ldar), R(this), | 110 B(Ldar), R(this), |
111 B(StaContextSlot), R(context), U8(4), U8(0), | 111 B(StaCurrentContextSlot), U8(4), |
112 B(CreateMappedArguments), | 112 B(CreateMappedArguments), |
113 B(StaContextSlot), R(context), U8(6), U8(0), | 113 B(StaCurrentContextSlot), U8(6), |
114 B(Ldar), R(new_target), | 114 B(Ldar), R(new_target), |
115 B(StaContextSlot), R(context), U8(5), U8(0), | 115 B(StaCurrentContextSlot), U8(5), |
116 /* 10 E> */ B(StackCheck), | 116 /* 10 E> */ B(StackCheck), |
117 /* 14 S> */ B(LdaSmi), U8(20), | 117 /* 14 S> */ B(LdaSmi), U8(20), |
118 /* 16 E> */ B(StaLookupSlotSloppy), U8(0), | 118 /* 16 E> */ B(StaLookupSlotSloppy), U8(0), |
119 /* 22 S> */ B(LdaConstant), U8(1), | 119 /* 22 S> */ B(LdaConstant), U8(1), |
120 B(Star), R(4), | 120 B(Star), R(4), |
121 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4
), U8(1), R(1), | 121 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4
), U8(1), R(1), |
122 B(LdaConstant), U8(2), | 122 B(LdaConstant), U8(2), |
123 B(Star), R(3), | 123 B(Star), R(3), |
124 B(LdaZero), | 124 B(LdaZero), |
125 B(Star), R(7), | 125 B(Star), R(7), |
(...skipping 21 matching lines...) Expand all Loading... |
147 snippet: " | 147 snippet: " |
148 var x = 20; | 148 var x = 20; |
149 f = function(){ | 149 f = function(){ |
150 eval('var x = 10'); | 150 eval('var x = 10'); |
151 return x; | 151 return x; |
152 } | 152 } |
153 f(); | 153 f(); |
154 " | 154 " |
155 frame size: 10 | 155 frame size: 10 |
156 parameter count: 1 | 156 parameter count: 1 |
157 bytecode array length: 73 | 157 bytecode array length: 67 |
158 bytecodes: [ | 158 bytecodes: [ |
159 B(CreateFunctionContext), U8(3), | 159 B(CreateFunctionContext), U8(3), |
160 B(PushContext), R(0), | 160 B(PushContext), R(0), |
161 B(Ldar), R(this), | 161 B(Ldar), R(this), |
162 B(StaContextSlot), R(context), U8(4), U8(0), | 162 B(StaCurrentContextSlot), U8(4), |
163 B(CreateMappedArguments), | 163 B(CreateMappedArguments), |
164 B(StaContextSlot), R(context), U8(6), U8(0), | 164 B(StaCurrentContextSlot), U8(6), |
165 B(Ldar), R(new_target), | 165 B(Ldar), R(new_target), |
166 B(StaContextSlot), R(context), U8(5), U8(0), | 166 B(StaCurrentContextSlot), U8(5), |
167 /* 38 E> */ B(StackCheck), | 167 /* 38 E> */ B(StackCheck), |
168 /* 44 S> */ B(LdaConstant), U8(0), | 168 /* 44 S> */ B(LdaConstant), U8(0), |
169 B(Star), R(4), | 169 B(Star), R(4), |
170 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4
), U8(1), R(1), | 170 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4
), U8(1), R(1), |
171 B(LdaConstant), U8(1), | 171 B(LdaConstant), U8(1), |
172 B(Star), R(3), | 172 B(Star), R(3), |
173 B(LdaZero), | 173 B(LdaZero), |
174 B(Star), R(7), | 174 B(Star), R(7), |
175 B(LdaSmi), U8(38), | 175 B(LdaSmi), U8(38), |
176 B(Star), R(8), | 176 B(Star), R(8), |
(...skipping 20 matching lines...) Expand all Loading... |
197 snippet: " | 197 snippet: " |
198 x = 20; | 198 x = 20; |
199 f = function(){ | 199 f = function(){ |
200 eval('var x = 10'); | 200 eval('var x = 10'); |
201 return x; | 201 return x; |
202 } | 202 } |
203 f(); | 203 f(); |
204 " | 204 " |
205 frame size: 10 | 205 frame size: 10 |
206 parameter count: 1 | 206 parameter count: 1 |
207 bytecode array length: 73 | 207 bytecode array length: 67 |
208 bytecodes: [ | 208 bytecodes: [ |
209 B(CreateFunctionContext), U8(3), | 209 B(CreateFunctionContext), U8(3), |
210 B(PushContext), R(0), | 210 B(PushContext), R(0), |
211 B(Ldar), R(this), | 211 B(Ldar), R(this), |
212 B(StaContextSlot), R(context), U8(4), U8(0), | 212 B(StaCurrentContextSlot), U8(4), |
213 B(CreateMappedArguments), | 213 B(CreateMappedArguments), |
214 B(StaContextSlot), R(context), U8(6), U8(0), | 214 B(StaCurrentContextSlot), U8(6), |
215 B(Ldar), R(new_target), | 215 B(Ldar), R(new_target), |
216 B(StaContextSlot), R(context), U8(5), U8(0), | 216 B(StaCurrentContextSlot), U8(5), |
217 /* 34 E> */ B(StackCheck), | 217 /* 34 E> */ B(StackCheck), |
218 /* 40 S> */ B(LdaConstant), U8(0), | 218 /* 40 S> */ B(LdaConstant), U8(0), |
219 B(Star), R(4), | 219 B(Star), R(4), |
220 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4
), U8(1), R(1), | 220 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4
), U8(1), R(1), |
221 B(LdaConstant), U8(1), | 221 B(LdaConstant), U8(1), |
222 B(Star), R(3), | 222 B(Star), R(3), |
223 B(LdaZero), | 223 B(LdaZero), |
224 B(Star), R(7), | 224 B(Star), R(7), |
225 B(LdaSmi), U8(34), | 225 B(LdaSmi), U8(34), |
226 B(Star), R(8), | 226 B(Star), R(8), |
227 B(LdaSmi), U8(40), | 227 B(LdaSmi), U8(40), |
228 B(Star), R(9), | 228 B(Star), R(9), |
229 B(Mov), R(1), R(4), | 229 B(Mov), R(1), R(4), |
230 B(Mov), R(3), R(5), | 230 B(Mov), R(3), R(5), |
231 B(Mov), R(closure), R(6), | 231 B(Mov), R(closure), R(6), |
232 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4),
U8(6), | 232 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4),
U8(6), |
233 B(Star), R(1), | 233 B(Star), R(1), |
234 /* 40 E> */ B(Call), R(1), R(2), U8(2), U8(2), | 234 /* 40 E> */ B(Call), R(1), R(2), U8(2), U8(2), |
235 /* 62 S> */ B(LdaLookupGlobalSlot), U8(2), U8(6), U8(1), | 235 /* 62 S> */ B(LdaLookupGlobalSlot), U8(2), U8(6), U8(1), |
236 /* 72 S> */ B(Return), | 236 /* 72 S> */ B(Return), |
237 ] | 237 ] |
238 constant pool: [ | 238 constant pool: [ |
239 ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"], | 239 ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"], |
240 ONE_BYTE_INTERNALIZED_STRING_TYPE ["var x = 10"], | 240 ONE_BYTE_INTERNALIZED_STRING_TYPE ["var x = 10"], |
241 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], | 241 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
242 ] | 242 ] |
243 handlers: [ | 243 handlers: [ |
244 ] | 244 ] |
245 | 245 |
OLD | NEW |