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: no | 8 wrap: no |
9 test function name: test | 9 test function name: test |
10 | 10 |
11 --- | 11 --- |
12 snippet: " | 12 snippet: " |
13 var test; | 13 var test; |
14 (function() { | 14 (function() { |
15 class A { | 15 class A { |
16 method() { return 2; } | 16 method() { return 2; } |
17 } | 17 } |
18 class B extends A { | 18 class B extends A { |
19 method() { return super.method() + 1; } | 19 method() { return super.method() + 1; } |
20 } | 20 } |
21 test = new B().method; | 21 test = new B().method; |
22 test(); | 22 test(); |
23 })(); | 23 })(); |
24 " | 24 " |
25 frame size: 7 | 25 frame size: 7 |
26 parameter count: 1 | 26 parameter count: 1 |
27 bytecode array length: 56 | 27 bytecode array length: 55 |
28 bytecodes: [ | 28 bytecodes: [ |
29 B(Ldar), R(closure), | 29 B(Mov), R(closure), R(0), |
30 B(Star), R(0), | |
31 /* 99 E> */ B(StackCheck), | 30 /* 99 E> */ B(StackCheck), |
32 /* 104 S> */ B(Ldar), R(this), | 31 /* 104 S> */ B(Nop), |
33 B(Star), R(3), | 32 /* 111 E> */ B(Ldar), R(closure), |
34 /* 111 E> */ B(Ldar), R(0), | 33 B(Mov), R(this), R(3), |
35 B(JumpIfNotHole), U8(11), | 34 B(JumpIfNotHole), U8(11), |
36 B(LdaConstant), U8(0), | 35 B(LdaConstant), U8(0), |
37 B(Star), R(6), | 36 B(Star), R(6), |
38 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1), | 37 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1), |
39 B(Star), R(6), | 38 B(Star), R(6), |
40 /* 111 E> */ B(LdaConstant), U8(1), | 39 /* 111 E> */ B(LdaConstant), U8(1), |
41 B(LdrKeyedProperty), R(6), U8(3), R(4), | 40 B(LdrKeyedProperty), R(6), U8(3), R(4), |
42 B(LdaConstant), U8(2), | 41 B(LdaConstant), U8(2), |
43 B(Star), R(5), | 42 B(Star), R(5), |
44 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(3), U8(3), | 43 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(3), U8(3), |
(...skipping 23 matching lines...) Expand all Loading... |
68 } | 67 } |
69 class B extends A { | 68 class B extends A { |
70 method() { super.x = 2; return super.x; } | 69 method() { super.x = 2; return super.x; } |
71 } | 70 } |
72 test = new B().method; | 71 test = new B().method; |
73 test(); | 72 test(); |
74 })(); | 73 })(); |
75 " | 74 " |
76 frame size: 6 | 75 frame size: 6 |
77 parameter count: 1 | 76 parameter count: 1 |
78 bytecode array length: 78 | 77 bytecode array length: 77 |
79 bytecodes: [ | 78 bytecodes: [ |
80 B(Ldar), R(closure), | 79 B(Mov), R(closure), R(0), |
81 B(Star), R(0), | |
82 /* 125 E> */ B(StackCheck), | 80 /* 125 E> */ B(StackCheck), |
83 /* 130 S> */ B(Ldar), R(this), | 81 /* 130 S> */ B(Nop), |
84 B(Star), R(1), | 82 /* 130 E> */ B(Ldar), R(closure), |
85 /* 130 E> */ B(Ldar), R(0), | 83 B(Mov), R(this), R(1), |
86 B(JumpIfNotHole), U8(11), | 84 B(JumpIfNotHole), U8(11), |
87 B(LdaConstant), U8(0), | 85 B(LdaConstant), U8(0), |
88 B(Star), R(5), | 86 B(Star), R(5), |
89 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), | 87 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), |
90 B(Star), R(5), | 88 B(Star), R(5), |
91 /* 130 E> */ B(LdaConstant), U8(1), | 89 /* 130 E> */ B(LdaConstant), U8(1), |
92 B(LdrKeyedProperty), R(5), U8(1), R(2), | 90 B(LdrKeyedProperty), R(5), U8(1), R(2), |
93 B(LdaConstant), U8(2), | 91 B(LdaConstant), U8(2), |
94 B(Star), R(3), | 92 B(Star), R(3), |
95 B(LdaSmi), U8(2), | 93 B(LdaSmi), U8(2), |
96 /* 138 E> */ B(Star), R(4), | 94 /* 138 E> */ B(Star), R(4), |
97 B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(1), U8(4), | 95 B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(1), U8(4), |
98 /* 143 S> */ B(Ldar), R(this), | 96 /* 143 S> */ B(Nop), |
99 B(Star), R(1), | |
100 /* 150 E> */ B(Ldar), R(0), | 97 /* 150 E> */ B(Ldar), R(0), |
| 98 B(Mov), R(this), R(1), |
101 B(JumpIfNotHole), U8(11), | 99 B(JumpIfNotHole), U8(11), |
102 B(LdaConstant), U8(0), | 100 B(LdaConstant), U8(0), |
103 B(Star), R(4), | 101 B(Star), R(4), |
104 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), | 102 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), |
105 B(Star), R(4), | 103 B(Star), R(4), |
106 /* 150 E> */ B(LdaConstant), U8(1), | 104 /* 150 E> */ B(LdaConstant), U8(1), |
107 B(LdrKeyedProperty), R(4), U8(3), R(2), | 105 B(LdrKeyedProperty), R(4), U8(3), R(2), |
108 B(LdaConstant), U8(2), | 106 B(LdaConstant), U8(2), |
109 B(Star), R(3), | 107 B(Star), R(3), |
110 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(1), U8(3), | 108 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(1), U8(3), |
(...skipping 15 matching lines...) Expand all Loading... |
126 constructor(x) { this.x_ = x; } | 124 constructor(x) { this.x_ = x; } |
127 } | 125 } |
128 class B extends A { | 126 class B extends A { |
129 constructor() { super(1); this.y_ = 2; } | 127 constructor() { super(1); this.y_ = 2; } |
130 } | 128 } |
131 test = new B().constructor; | 129 test = new B().constructor; |
132 })(); | 130 })(); |
133 " | 131 " |
134 frame size: 5 | 132 frame size: 5 |
135 parameter count: 1 | 133 parameter count: 1 |
136 bytecode array length: 106 | 134 bytecode array length: 105 |
137 bytecodes: [ | 135 bytecodes: [ |
138 B(Ldar), R(closure), | 136 B(Mov), R(closure), R(1), |
139 B(Star), R(1), | 137 B(Mov), R(new_target), R(0), |
140 B(Ldar), R(new_target), | |
141 B(Star), R(0), | |
142 /* 113 E> */ B(StackCheck), | 138 /* 113 E> */ B(StackCheck), |
143 /* 118 S> */ B(Ldar), R(1), | 139 /* 118 S> */ B(Ldar), R(closure), |
144 B(JumpIfNotHole), U8(11), | 140 B(JumpIfNotHole), U8(11), |
145 B(LdaConstant), U8(0), | 141 B(LdaConstant), U8(0), |
146 B(Star), R(3), | 142 B(Star), R(3), |
147 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 143 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
148 B(Star), R(2), | 144 B(Star), R(2), |
149 B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1)
, | 145 B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1)
, |
150 B(Star), R(2), | 146 B(Star), R(2), |
151 B(LdaSmi), U8(1), | 147 B(LdaSmi), U8(1), |
152 B(Star), R(3), | 148 B(Star), R(3), |
153 /* 118 E> */ B(Ldar), R(0), | 149 /* 118 E> */ B(Ldar), R(0), |
154 B(JumpIfNotHole), U8(11), | 150 B(JumpIfNotHole), U8(11), |
155 B(LdaConstant), U8(1), | 151 B(LdaConstant), U8(1), |
156 B(Star), R(4), | 152 B(Star), R(4), |
157 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), | 153 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), |
158 /* 118 E> */ B(New), R(2), R(3), U8(1), | 154 /* 118 E> */ B(New), R(2), R(3), U8(1), |
159 /* 118 E> */ B(Star), R(2), | 155 /* 118 E> */ B(Star), R(2), |
160 B(Ldar), R(this), | 156 B(Ldar), R(this), |
161 B(JumpIfNotHole), U8(4), | 157 B(JumpIfNotHole), U8(4), |
162 B(Jump), U8(11), | 158 B(Jump), U8(11), |
163 B(LdaConstant), U8(2), | 159 B(LdaConstant), U8(2), |
164 B(Star), R(3), | 160 B(Star), R(3), |
165 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 161 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
166 B(Ldar), R(2), | 162 B(Mov), R(2), R(this), |
167 B(Star), R(this), | 163 /* 128 S> */ B(Ldar), R(this), |
168 /* 128 S> */ B(JumpIfNotHole), U8(11), | 164 B(JumpIfNotHole), U8(11), |
169 B(LdaConstant), U8(2), | 165 B(LdaConstant), U8(2), |
170 B(Star), R(2), | 166 B(Star), R(2), |
171 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 167 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
172 B(Star), R(2), | 168 B(Star), R(2), |
173 B(LdaSmi), U8(2), | 169 B(LdaSmi), U8(2), |
174 /* 136 E> */ B(StaNamedPropertyStrict), R(2), U8(3), U8(4), | 170 /* 136 E> */ B(StaNamedPropertyStrict), R(2), U8(3), U8(4), |
175 B(Ldar), R(this), | 171 B(Ldar), R(this), |
176 B(JumpIfNotHole), U8(11), | 172 B(JumpIfNotHole), U8(11), |
177 B(LdaConstant), U8(2), | 173 B(LdaConstant), U8(2), |
178 B(Star), R(2), | 174 B(Star), R(2), |
(...skipping 17 matching lines...) Expand all Loading... |
196 constructor() { this.x_ = 1; } | 192 constructor() { this.x_ = 1; } |
197 } | 193 } |
198 class B extends A { | 194 class B extends A { |
199 constructor() { super(); this.y_ = 2; } | 195 constructor() { super(); this.y_ = 2; } |
200 } | 196 } |
201 test = new B().constructor; | 197 test = new B().constructor; |
202 })(); | 198 })(); |
203 " | 199 " |
204 frame size: 4 | 200 frame size: 4 |
205 parameter count: 1 | 201 parameter count: 1 |
206 bytecode array length: 102 | 202 bytecode array length: 101 |
207 bytecodes: [ | 203 bytecodes: [ |
208 B(Ldar), R(closure), | 204 B(Mov), R(closure), R(1), |
209 B(Star), R(1), | 205 B(Mov), R(new_target), R(0), |
210 B(Ldar), R(new_target), | |
211 B(Star), R(0), | |
212 /* 112 E> */ B(StackCheck), | 206 /* 112 E> */ B(StackCheck), |
213 /* 117 S> */ B(Ldar), R(1), | 207 /* 117 S> */ B(Ldar), R(closure), |
214 B(JumpIfNotHole), U8(11), | 208 B(JumpIfNotHole), U8(11), |
215 B(LdaConstant), U8(0), | 209 B(LdaConstant), U8(0), |
216 B(Star), R(3), | 210 B(Star), R(3), |
217 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 211 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
218 B(Star), R(2), | 212 B(Star), R(2), |
219 B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1)
, | 213 B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1)
, |
220 B(Star), R(2), | 214 B(Star), R(2), |
221 /* 117 E> */ B(Ldar), R(0), | 215 /* 117 E> */ B(Ldar), R(0), |
222 B(JumpIfNotHole), U8(11), | 216 B(JumpIfNotHole), U8(11), |
223 B(LdaConstant), U8(1), | 217 B(LdaConstant), U8(1), |
224 B(Star), R(3), | 218 B(Star), R(3), |
225 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 219 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
226 /* 117 E> */ B(New), R(2), R(0), U8(0), | 220 /* 117 E> */ B(New), R(2), R(0), U8(0), |
227 /* 117 E> */ B(Star), R(2), | 221 /* 117 E> */ B(Star), R(2), |
228 B(Ldar), R(this), | 222 B(Ldar), R(this), |
229 B(JumpIfNotHole), U8(4), | 223 B(JumpIfNotHole), U8(4), |
230 B(Jump), U8(11), | 224 B(Jump), U8(11), |
231 B(LdaConstant), U8(2), | 225 B(LdaConstant), U8(2), |
232 B(Star), R(3), | 226 B(Star), R(3), |
233 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 227 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
234 B(Ldar), R(2), | 228 B(Mov), R(2), R(this), |
235 B(Star), R(this), | 229 /* 126 S> */ B(Ldar), R(this), |
236 /* 126 S> */ B(JumpIfNotHole), U8(11), | 230 B(JumpIfNotHole), U8(11), |
237 B(LdaConstant), U8(2), | 231 B(LdaConstant), U8(2), |
238 B(Star), R(2), | 232 B(Star), R(2), |
239 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 233 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
240 B(Star), R(2), | 234 B(Star), R(2), |
241 B(LdaSmi), U8(2), | 235 B(LdaSmi), U8(2), |
242 /* 134 E> */ B(StaNamedPropertyStrict), R(2), U8(3), U8(4), | 236 /* 134 E> */ B(StaNamedPropertyStrict), R(2), U8(3), U8(4), |
243 B(Ldar), R(this), | 237 B(Ldar), R(this), |
244 B(JumpIfNotHole), U8(11), | 238 B(JumpIfNotHole), U8(11), |
245 B(LdaConstant), U8(2), | 239 B(LdaConstant), U8(2), |
246 B(Star), R(2), | 240 B(Star), R(2), |
247 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 241 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
248 /* 139 S> */ B(Return), | 242 /* 139 S> */ B(Return), |
249 ] | 243 ] |
250 constant pool: [ | 244 constant pool: [ |
251 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 245 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
252 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 246 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
253 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 247 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
254 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 248 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
255 ] | 249 ] |
256 handlers: [ | 250 handlers: [ |
257 ] | 251 ] |
258 | 252 |
OLD | NEW |