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 | 7 |
8 --- | 8 --- |
9 snippet: " | 9 snippet: " |
10 class Person { | 10 class Person { |
11 constructor(name) { this.name = name; } | 11 constructor(name) { this.name = name; } |
12 speak() { console.log(this.name + ' is speaking.'); } | 12 speak() { console.log(this.name + ' is speaking.'); } |
13 } | 13 } |
14 " | 14 " |
15 frame size: 8 | 15 frame size: 9 |
16 parameter count: 1 | 16 parameter count: 1 |
17 bytecode array length: 69 | 17 bytecode array length: 73 |
18 bytecodes: [ | 18 bytecodes: [ |
19 B(LdaTheHole), | 19 B(LdaTheHole), |
20 B(Star), R(2), | 20 B(Star), R(2), |
21 /* 30 E> */ B(StackCheck), | 21 /* 30 E> */ B(StackCheck), |
22 B(LdaTheHole), | 22 B(LdaTheHole), |
23 B(Star), R(0), | 23 B(Star), R(0), |
24 /* 34 S> */ B(CreateClosure), U8(0), U8(2), | 24 /* 34 S> */ B(CreateClosure), U8(0), U8(2), |
25 B(Star), R(3), | 25 B(Star), R(3), |
26 B(LdaTheHole), | 26 B(LdaTheHole), |
27 B(Star), R(4), | 27 B(Star), R(4), |
28 B(LdaSmi), U8(34), | 28 B(LdaSmi), U8(34), |
29 B(Star), R(6), | 29 B(Star), R(6), |
30 B(Wide), B(LdaSmi), U16(148), | 30 B(Wide), B(LdaSmi), U16(148), |
31 B(Star), R(7), | 31 B(Star), R(7), |
32 B(Mov), R(3), R(5), | 32 B(Mov), R(3), R(5), |
33 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), | 33 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), |
34 B(Star), R(4), | 34 B(Star), R(4), |
35 B(LdaConstant), U8(1), | 35 B(LdaConstant), U8(1), |
36 B(ToName), R(6), | 36 B(ToName), R(6), |
37 B(CreateClosure), U8(2), U8(2), | 37 B(CreateClosure), U8(2), U8(2), |
38 B(Star), R(7), | 38 B(Star), R(7), |
39 B(LdaSmi), U8(2), | 39 B(LdaSmi), U8(2), |
40 B(StaDataPropertyInLiteral), R(4), R(6), R(7), U8(1), | 40 B(Star), R(8), |
| 41 B(Ldar), R(7), |
| 42 B(StaDataPropertyInLiteral), R(4), R(6), U8(1), U8(2), |
41 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U
8(1), | 43 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U
8(1), |
42 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), | 44 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), |
43 B(Star), R(0), | 45 B(Star), R(0), |
44 B(Star), R(1), | 46 B(Star), R(1), |
45 B(Star), R(2), | 47 B(Star), R(2), |
46 B(LdaUndefined), | 48 B(LdaUndefined), |
47 /* 149 S> */ B(Return), | 49 /* 149 S> */ B(Return), |
48 ] | 50 ] |
49 constant pool: [ | 51 constant pool: [ |
50 SHARED_FUNCTION_INFO_TYPE, | 52 SHARED_FUNCTION_INFO_TYPE, |
51 ONE_BYTE_INTERNALIZED_STRING_TYPE ["speak"], | 53 ONE_BYTE_INTERNALIZED_STRING_TYPE ["speak"], |
52 SHARED_FUNCTION_INFO_TYPE, | 54 SHARED_FUNCTION_INFO_TYPE, |
53 ] | 55 ] |
54 handlers: [ | 56 handlers: [ |
55 ] | 57 ] |
56 | 58 |
57 --- | 59 --- |
58 snippet: " | 60 snippet: " |
59 class person { | 61 class person { |
60 constructor(name) { this.name = name; } | 62 constructor(name) { this.name = name; } |
61 speak() { console.log(this.name + ' is speaking.'); } | 63 speak() { console.log(this.name + ' is speaking.'); } |
62 } | 64 } |
63 " | 65 " |
64 frame size: 8 | 66 frame size: 9 |
65 parameter count: 1 | 67 parameter count: 1 |
66 bytecode array length: 69 | 68 bytecode array length: 73 |
67 bytecodes: [ | 69 bytecodes: [ |
68 B(LdaTheHole), | 70 B(LdaTheHole), |
69 B(Star), R(2), | 71 B(Star), R(2), |
70 /* 30 E> */ B(StackCheck), | 72 /* 30 E> */ B(StackCheck), |
71 B(LdaTheHole), | 73 B(LdaTheHole), |
72 B(Star), R(0), | 74 B(Star), R(0), |
73 /* 34 S> */ B(CreateClosure), U8(0), U8(2), | 75 /* 34 S> */ B(CreateClosure), U8(0), U8(2), |
74 B(Star), R(3), | 76 B(Star), R(3), |
75 B(LdaTheHole), | 77 B(LdaTheHole), |
76 B(Star), R(4), | 78 B(Star), R(4), |
77 B(LdaSmi), U8(34), | 79 B(LdaSmi), U8(34), |
78 B(Star), R(6), | 80 B(Star), R(6), |
79 B(Wide), B(LdaSmi), U16(148), | 81 B(Wide), B(LdaSmi), U16(148), |
80 B(Star), R(7), | 82 B(Star), R(7), |
81 B(Mov), R(3), R(5), | 83 B(Mov), R(3), R(5), |
82 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), | 84 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), |
83 B(Star), R(4), | 85 B(Star), R(4), |
84 B(LdaConstant), U8(1), | 86 B(LdaConstant), U8(1), |
85 B(ToName), R(6), | 87 B(ToName), R(6), |
86 B(CreateClosure), U8(2), U8(2), | 88 B(CreateClosure), U8(2), U8(2), |
87 B(Star), R(7), | 89 B(Star), R(7), |
88 B(LdaSmi), U8(2), | 90 B(LdaSmi), U8(2), |
89 B(StaDataPropertyInLiteral), R(4), R(6), R(7), U8(1), | 91 B(Star), R(8), |
| 92 B(Ldar), R(7), |
| 93 B(StaDataPropertyInLiteral), R(4), R(6), U8(1), U8(2), |
90 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U
8(1), | 94 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U
8(1), |
91 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), | 95 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), |
92 B(Star), R(0), | 96 B(Star), R(0), |
93 B(Star), R(1), | 97 B(Star), R(1), |
94 B(Star), R(2), | 98 B(Star), R(2), |
95 B(LdaUndefined), | 99 B(LdaUndefined), |
96 /* 149 S> */ B(Return), | 100 /* 149 S> */ B(Return), |
97 ] | 101 ] |
98 constant pool: [ | 102 constant pool: [ |
99 SHARED_FUNCTION_INFO_TYPE, | 103 SHARED_FUNCTION_INFO_TYPE, |
100 ONE_BYTE_INTERNALIZED_STRING_TYPE ["speak"], | 104 ONE_BYTE_INTERNALIZED_STRING_TYPE ["speak"], |
101 SHARED_FUNCTION_INFO_TYPE, | 105 SHARED_FUNCTION_INFO_TYPE, |
102 ] | 106 ] |
103 handlers: [ | 107 handlers: [ |
104 ] | 108 ] |
105 | 109 |
106 --- | 110 --- |
107 snippet: " | 111 snippet: " |
108 var n0 = 'a'; | 112 var n0 = 'a'; |
109 var n1 = 'b'; | 113 var n1 = 'b'; |
110 class N { | 114 class N { |
111 [n0]() { return n0; } | 115 [n0]() { return n0; } |
112 static [n1]() { return n1; } | 116 static [n1]() { return n1; } |
113 } | 117 } |
114 " | 118 " |
115 frame size: 10 | 119 frame size: 10 |
116 parameter count: 1 | 120 parameter count: 1 |
117 bytecode array length: 112 | 121 bytecode array length: 114 |
118 bytecodes: [ | 122 bytecodes: [ |
119 B(CreateFunctionContext), U8(2), | 123 B(CreateFunctionContext), U8(2), |
120 B(PushContext), R(3), | 124 B(PushContext), R(3), |
121 B(LdaTheHole), | 125 B(LdaTheHole), |
122 B(Star), R(2), | 126 B(Star), R(2), |
123 /* 30 E> */ B(StackCheck), | 127 /* 30 E> */ B(StackCheck), |
124 /* 43 S> */ B(LdaConstant), U8(0), | 128 /* 43 S> */ B(LdaConstant), U8(0), |
125 /* 43 E> */ B(StaCurrentContextSlot), U8(4), | 129 /* 43 E> */ B(StaCurrentContextSlot), U8(4), |
126 /* 57 S> */ B(LdaConstant), U8(1), | 130 /* 57 S> */ B(LdaConstant), U8(1), |
127 /* 57 E> */ B(StaCurrentContextSlot), U8(5), | 131 /* 57 E> */ B(StaCurrentContextSlot), U8(5), |
128 B(LdaTheHole), | 132 B(LdaTheHole), |
129 B(Star), R(0), | 133 B(Star), R(0), |
130 /* 62 S> */ B(CreateClosure), U8(2), U8(2), | 134 /* 62 S> */ B(CreateClosure), U8(2), U8(2), |
131 B(Star), R(4), | 135 B(Star), R(4), |
132 B(LdaTheHole), | 136 B(LdaTheHole), |
133 B(Star), R(5), | 137 B(Star), R(5), |
134 B(LdaSmi), U8(62), | 138 B(LdaSmi), U8(62), |
135 B(Star), R(7), | 139 B(Star), R(7), |
136 B(Wide), B(LdaSmi), U16(128), | 140 B(Wide), B(LdaSmi), U16(128), |
137 B(Star), R(8), | 141 B(Star), R(8), |
138 B(Mov), R(4), R(6), | 142 B(Mov), R(4), R(6), |
139 B(CallRuntime), U16(Runtime::kDefineClass), R(5), U8(4), | 143 B(CallRuntime), U16(Runtime::kDefineClass), R(5), U8(4), |
140 B(Star), R(5), | 144 B(Star), R(5), |
141 B(LdaCurrentContextSlot), U8(4), | 145 B(LdaCurrentContextSlot), U8(4), |
142 /* 75 E> */ B(ToName), R(7), | 146 /* 75 E> */ B(ToName), R(7), |
143 B(CreateClosure), U8(3), U8(2), | 147 B(CreateClosure), U8(3), U8(2), |
144 B(Star), R(8), | 148 B(Star), R(8), |
145 B(LdaSmi), U8(2), | 149 B(LdaSmi), U8(2), |
146 B(StaDataPropertyInLiteral), R(5), R(7), R(8), U8(3), | |
147 B(Star), R(9), | 150 B(Star), R(9), |
| 151 B(Ldar), R(8), |
| 152 B(StaDataPropertyInLiteral), R(5), R(7), U8(3), U8(2), |
148 B(LdaCurrentContextSlot), U8(5), | 153 B(LdaCurrentContextSlot), U8(5), |
149 /* 106 E> */ B(ToName), R(7), | 154 /* 106 E> */ B(ToName), R(7), |
150 B(LdaConstant), U8(4), | 155 B(LdaConstant), U8(4), |
151 B(TestEqualStrict), R(7), U8(0), | 156 B(TestEqualStrict), R(7), U8(0), |
152 B(Mov), R(4), R(6), | 157 B(Mov), R(4), R(6), |
153 B(JumpIfToBooleanFalse), U8(7), | 158 B(JumpIfToBooleanFalse), U8(7), |
154 B(CallRuntime), U16(Runtime::kThrowStaticPrototypeError), R(0),
U8(0), | 159 B(CallRuntime), U16(Runtime::kThrowStaticPrototypeError), R(0),
U8(0), |
155 B(CreateClosure), U8(5), U8(2), | 160 B(CreateClosure), U8(5), U8(2), |
156 B(Star), R(8), | 161 B(Star), R(8), |
157 B(StaDataPropertyInLiteral), R(6), R(7), R(8), U8(3), | 162 B(StaDataPropertyInLiteral), R(6), R(7), U8(3), U8(4), |
158 B(CallRuntime), U16(Runtime::kInstallClassNameAccessorWithCheck)
, R(4), U8(1), | 163 B(CallRuntime), U16(Runtime::kInstallClassNameAccessorWithCheck)
, R(4), U8(1), |
159 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1), | 164 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1), |
160 B(Star), R(0), | 165 B(Star), R(0), |
161 B(Star), R(1), | 166 B(Star), R(1), |
162 B(Star), R(2), | 167 B(Star), R(2), |
163 B(LdaUndefined), | 168 B(LdaUndefined), |
164 /* 129 S> */ B(Return), | 169 /* 129 S> */ B(Return), |
165 ] | 170 ] |
166 constant pool: [ | 171 constant pool: [ |
167 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], | 172 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 SHARED_FUNCTION_INFO_TYPE, | 222 SHARED_FUNCTION_INFO_TYPE, |
218 ] | 223 ] |
219 handlers: [ | 224 handlers: [ |
220 ] | 225 ] |
221 | 226 |
222 --- | 227 --- |
223 snippet: " | 228 snippet: " |
224 (class {}) | 229 (class {}) |
225 class E { static name () {}} | 230 class E { static name () {}} |
226 " | 231 " |
227 frame size: 9 | 232 frame size: 10 |
228 parameter count: 1 | 233 parameter count: 1 |
229 bytecode array length: 95 | 234 bytecode array length: 99 |
230 bytecodes: [ | 235 bytecodes: [ |
231 B(LdaTheHole), | 236 B(LdaTheHole), |
232 B(Star), R(3), | 237 B(Star), R(3), |
233 /* 30 E> */ B(StackCheck), | 238 /* 30 E> */ B(StackCheck), |
234 /* 35 S> */ B(CreateClosure), U8(0), U8(2), | 239 /* 35 S> */ B(CreateClosure), U8(0), U8(2), |
235 B(Star), R(4), | 240 B(Star), R(4), |
236 B(LdaTheHole), | 241 B(LdaTheHole), |
237 B(Star), R(5), | 242 B(Star), R(5), |
238 B(LdaSmi), U8(35), | 243 B(LdaSmi), U8(35), |
239 B(Star), R(7), | 244 B(Star), R(7), |
(...skipping 15 matching lines...) Expand all Loading... |
255 B(LdaSmi), U8(73), | 260 B(LdaSmi), U8(73), |
256 B(Star), R(8), | 261 B(Star), R(8), |
257 B(Mov), R(4), R(6), | 262 B(Mov), R(4), R(6), |
258 B(CallRuntime), U16(Runtime::kDefineClass), R(5), U8(4), | 263 B(CallRuntime), U16(Runtime::kDefineClass), R(5), U8(4), |
259 B(Star), R(5), | 264 B(Star), R(5), |
260 B(LdaConstant), U8(2), | 265 B(LdaConstant), U8(2), |
261 B(ToName), R(7), | 266 B(ToName), R(7), |
262 B(CreateClosure), U8(3), U8(2), | 267 B(CreateClosure), U8(3), U8(2), |
263 B(Star), R(8), | 268 B(Star), R(8), |
264 B(LdaSmi), U8(2), | 269 B(LdaSmi), U8(2), |
265 B(StaDataPropertyInLiteral), R(6), R(7), R(8), U8(1), | 270 B(Star), R(9), |
| 271 B(Ldar), R(8), |
| 272 B(StaDataPropertyInLiteral), R(6), R(7), U8(1), U8(2), |
266 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1), | 273 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1), |
267 B(Star), R(0), | 274 B(Star), R(0), |
268 B(Star), R(2), | 275 B(Star), R(2), |
269 B(Star), R(3), | 276 B(Star), R(3), |
270 B(LdaUndefined), | 277 B(LdaUndefined), |
271 /* 74 S> */ B(Return), | 278 /* 74 S> */ B(Return), |
272 ] | 279 ] |
273 constant pool: [ | 280 constant pool: [ |
274 SHARED_FUNCTION_INFO_TYPE, | 281 SHARED_FUNCTION_INFO_TYPE, |
275 SHARED_FUNCTION_INFO_TYPE, | 282 SHARED_FUNCTION_INFO_TYPE, |
276 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], | 283 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], |
277 SHARED_FUNCTION_INFO_TYPE, | 284 SHARED_FUNCTION_INFO_TYPE, |
278 ] | 285 ] |
279 handlers: [ | 286 handlers: [ |
280 ] | 287 ] |
281 | 288 |
OLD | NEW |