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 | |
7 execute: yes | 6 execute: yes |
8 wrap: yes | 7 wrap: yes |
9 | 8 |
10 --- | 9 --- |
11 snippet: " | 10 snippet: " |
12 class Person { | 11 class Person { |
13 constructor(name) { this.name = name; } | 12 constructor(name) { this.name = name; } |
14 speak() { console.log(this.name + ' is speaking.'); } | 13 speak() { console.log(this.name + ' is speaking.'); } |
15 } | 14 } |
16 " | 15 " |
(...skipping 28 matching lines...) Expand all Loading... |
45 B(Mov), R(4), R(5), | 44 B(Mov), R(4), R(5), |
46 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(5)
, U8(5), | 45 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(5)
, U8(5), |
47 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), | 46 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), |
48 B(Star), R(0), | 47 B(Star), R(0), |
49 B(Star), R(1), | 48 B(Star), R(1), |
50 B(Star), R(2), | 49 B(Star), R(2), |
51 B(LdaUndefined), | 50 B(LdaUndefined), |
52 /* 149 S> */ B(Return), | 51 /* 149 S> */ B(Return), |
53 ] | 52 ] |
54 constant pool: [ | 53 constant pool: [ |
55 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 54 SHARED_FUNCTION_INFO_TYPE, |
56 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 55 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], |
57 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 56 ONE_BYTE_INTERNALIZED_STRING_TYPE ["speak"], |
58 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 57 SHARED_FUNCTION_INFO_TYPE, |
59 ] | 58 ] |
60 handlers: [ | 59 handlers: [ |
61 ] | 60 ] |
62 | 61 |
63 --- | 62 --- |
64 snippet: " | 63 snippet: " |
65 class person { | 64 class person { |
66 constructor(name) { this.name = name; } | 65 constructor(name) { this.name = name; } |
67 speak() { console.log(this.name + ' is speaking.'); } | 66 speak() { console.log(this.name + ' is speaking.'); } |
68 } | 67 } |
(...skipping 29 matching lines...) Expand all Loading... |
98 B(Mov), R(4), R(5), | 97 B(Mov), R(4), R(5), |
99 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(5)
, U8(5), | 98 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(5)
, U8(5), |
100 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), | 99 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), |
101 B(Star), R(0), | 100 B(Star), R(0), |
102 B(Star), R(1), | 101 B(Star), R(1), |
103 B(Star), R(2), | 102 B(Star), R(2), |
104 B(LdaUndefined), | 103 B(LdaUndefined), |
105 /* 149 S> */ B(Return), | 104 /* 149 S> */ B(Return), |
106 ] | 105 ] |
107 constant pool: [ | 106 constant pool: [ |
108 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 107 SHARED_FUNCTION_INFO_TYPE, |
109 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 108 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], |
110 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 109 ONE_BYTE_INTERNALIZED_STRING_TYPE ["speak"], |
111 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 110 SHARED_FUNCTION_INFO_TYPE, |
112 ] | 111 ] |
113 handlers: [ | 112 handlers: [ |
114 ] | 113 ] |
115 | 114 |
116 --- | 115 --- |
117 snippet: " | 116 snippet: " |
118 var n0 = 'a'; | 117 var n0 = 'a'; |
119 var n1 = 'b'; | 118 var n1 = 'b'; |
120 class N { | 119 class N { |
121 [n0]() { return n0; } | 120 [n0]() { return n0; } |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 B(Star), R(10), | 170 B(Star), R(10), |
172 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(6)
, U8(5), | 171 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(6)
, U8(5), |
173 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1), | 172 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1), |
174 B(Star), R(0), | 173 B(Star), R(0), |
175 B(Star), R(1), | 174 B(Star), R(1), |
176 B(Star), R(2), | 175 B(Star), R(2), |
177 B(LdaUndefined), | 176 B(LdaUndefined), |
178 /* 129 S> */ B(Return), | 177 /* 129 S> */ B(Return), |
179 ] | 178 ] |
180 constant pool: [ | 179 constant pool: [ |
181 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 180 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
182 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 181 ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"], |
183 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 182 SHARED_FUNCTION_INFO_TYPE, |
184 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 183 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], |
185 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 184 SHARED_FUNCTION_INFO_TYPE, |
186 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 185 SHARED_FUNCTION_INFO_TYPE, |
187 ] | 186 ] |
188 handlers: [ | 187 handlers: [ |
189 ] | 188 ] |
190 | 189 |
191 --- | 190 --- |
192 snippet: " | 191 snippet: " |
193 var count = 0; | 192 var count = 0; |
194 class C { constructor() { count++; }} | 193 class C { constructor() { count++; }} |
195 return new C(); | 194 return new C(); |
196 " | 195 " |
(...skipping 27 matching lines...) Expand all Loading... |
224 B(Star), R(2), | 223 B(Star), R(2), |
225 /* 87 S> */ B(JumpIfNotHole), U8(11), | 224 /* 87 S> */ B(JumpIfNotHole), U8(11), |
226 B(LdaConstant), U8(2), | 225 B(LdaConstant), U8(2), |
227 B(Star), R(5), | 226 B(Star), R(5), |
228 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), | 227 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), |
229 B(Star), R(4), | 228 B(Star), R(4), |
230 /* 94 E> */ B(New), R(4), R(0), U8(0), U8(3), | 229 /* 94 E> */ B(New), R(4), R(0), U8(0), U8(3), |
231 /* 103 S> */ B(Return), | 230 /* 103 S> */ B(Return), |
232 ] | 231 ] |
233 constant pool: [ | 232 constant pool: [ |
234 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 233 SHARED_FUNCTION_INFO_TYPE, |
235 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 234 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], |
236 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 235 ONE_BYTE_INTERNALIZED_STRING_TYPE ["C"], |
237 ] | 236 ] |
238 handlers: [ | 237 handlers: [ |
239 ] | 238 ] |
240 | 239 |
OLD | NEW |