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: 57 | 27 bytecode array length: 56 |
28 bytecodes: [ | 28 bytecodes: [ |
29 B(Ldar), R(closure), | 29 B(Ldar), R(closure), |
30 B(Star), R(0), | 30 B(Star), R(0), |
31 /* 99 E> */ B(StackCheck), | 31 /* 99 E> */ B(StackCheck), |
32 /* 104 S> */ B(Ldar), R(this), | 32 /* 104 S> */ B(Ldar), R(this), |
33 B(Star), R(3), | 33 B(Star), R(3), |
34 /* 111 E> */ B(Ldar), R(0), | 34 /* 111 E> */ B(Ldar), R(0), |
35 B(JumpIfNotHole), U8(11), | 35 B(JumpIfNotHole), U8(11), |
36 B(LdaConstant), U8(0), | 36 B(LdaConstant), U8(0), |
37 B(Star), R(6), | 37 B(Star), R(6), |
38 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1), | 38 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1), |
39 B(Star), R(6), | 39 B(Star), R(6), |
40 /* 111 E> */ B(LdaConstant), U8(1), | 40 /* 111 E> */ B(LdaConstant), U8(1), |
41 B(KeyedLoadIC), R(6), U8(3), | 41 B(LdrKeyedProperty), R(6), U8(3), R(4), |
42 B(Star), R(4), | |
43 B(LdaConstant), U8(2), | 42 B(LdaConstant), U8(2), |
44 B(Star), R(5), | 43 B(Star), R(5), |
45 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(3), U8(3), | 44 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(3), U8(3), |
46 B(Mov), R(3), R(2), | 45 B(Mov), R(3), R(2), |
47 B(Star), R(1), | 46 B(Star), R(1), |
48 /* 117 E> */ B(Call), R(1), R(2), U8(1), U8(1), | 47 /* 117 E> */ B(Call), R(1), R(2), U8(1), U8(1), |
49 B(Star), R(3), | 48 B(Star), R(3), |
50 B(LdaSmi), U8(1), | 49 B(LdaSmi), U8(1), |
51 B(Add), R(3), | 50 B(Add), R(3), |
52 /* 131 S> */ B(Return), | 51 /* 131 S> */ B(Return), |
(...skipping 16 matching lines...) Expand all Loading... |
69 } | 68 } |
70 class B extends A { | 69 class B extends A { |
71 method() { super.x = 2; return super.x; } | 70 method() { super.x = 2; return super.x; } |
72 } | 71 } |
73 test = new B().method; | 72 test = new B().method; |
74 test(); | 73 test(); |
75 })(); | 74 })(); |
76 " | 75 " |
77 frame size: 6 | 76 frame size: 6 |
78 parameter count: 1 | 77 parameter count: 1 |
79 bytecode array length: 80 | 78 bytecode array length: 78 |
80 bytecodes: [ | 79 bytecodes: [ |
81 B(Ldar), R(closure), | 80 B(Ldar), R(closure), |
82 B(Star), R(0), | 81 B(Star), R(0), |
83 /* 125 E> */ B(StackCheck), | 82 /* 125 E> */ B(StackCheck), |
84 /* 130 S> */ B(Ldar), R(this), | 83 /* 130 S> */ B(Ldar), R(this), |
85 B(Star), R(1), | 84 B(Star), R(1), |
86 /* 130 E> */ B(Ldar), R(0), | 85 /* 130 E> */ B(Ldar), R(0), |
87 B(JumpIfNotHole), U8(11), | 86 B(JumpIfNotHole), U8(11), |
88 B(LdaConstant), U8(0), | 87 B(LdaConstant), U8(0), |
89 B(Star), R(5), | 88 B(Star), R(5), |
90 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), | 89 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), |
91 B(Star), R(5), | 90 B(Star), R(5), |
92 /* 130 E> */ B(LdaConstant), U8(1), | 91 /* 130 E> */ B(LdaConstant), U8(1), |
93 B(KeyedLoadIC), R(5), U8(1), | 92 B(LdrKeyedProperty), R(5), U8(1), R(2), |
94 B(Star), R(2), | |
95 B(LdaConstant), U8(2), | 93 B(LdaConstant), U8(2), |
96 B(Star), R(3), | 94 B(Star), R(3), |
97 B(LdaSmi), U8(2), | 95 B(LdaSmi), U8(2), |
98 /* 138 E> */ B(Star), R(4), | 96 /* 138 E> */ B(Star), R(4), |
99 B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(1), U8(4), | 97 B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(1), U8(4), |
100 /* 143 S> */ B(Ldar), R(this), | 98 /* 143 S> */ B(Ldar), R(this), |
101 B(Star), R(1), | 99 B(Star), R(1), |
102 /* 150 E> */ B(Ldar), R(0), | 100 /* 150 E> */ B(Ldar), R(0), |
103 B(JumpIfNotHole), U8(11), | 101 B(JumpIfNotHole), U8(11), |
104 B(LdaConstant), U8(0), | 102 B(LdaConstant), U8(0), |
105 B(Star), R(4), | 103 B(Star), R(4), |
106 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), | 104 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), |
107 B(Star), R(4), | 105 B(Star), R(4), |
108 /* 150 E> */ B(LdaConstant), U8(1), | 106 /* 150 E> */ B(LdaConstant), U8(1), |
109 B(KeyedLoadIC), R(4), U8(3), | 107 B(LdrKeyedProperty), R(4), U8(3), R(2), |
110 B(Star), R(2), | |
111 B(LdaConstant), U8(2), | 108 B(LdaConstant), U8(2), |
112 B(Star), R(3), | 109 B(Star), R(3), |
113 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(1), U8(3), | 110 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(1), U8(3), |
114 /* 159 S> */ B(Return), | 111 /* 159 S> */ B(Return), |
115 ] | 112 ] |
116 constant pool: [ | 113 constant pool: [ |
117 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 114 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
118 InstanceType::SYMBOL_TYPE, | 115 InstanceType::SYMBOL_TYPE, |
119 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 116 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
120 ] | 117 ] |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 B(Star), R(3), | 164 B(Star), R(3), |
168 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 165 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
169 B(Ldar), R(2), | 166 B(Ldar), R(2), |
170 B(Star), R(this), | 167 B(Star), R(this), |
171 /* 128 S> */ B(JumpIfNotHole), U8(11), | 168 /* 128 S> */ B(JumpIfNotHole), U8(11), |
172 B(LdaConstant), U8(2), | 169 B(LdaConstant), U8(2), |
173 B(Star), R(2), | 170 B(Star), R(2), |
174 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 171 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
175 B(Star), R(2), | 172 B(Star), R(2), |
176 B(LdaSmi), U8(2), | 173 B(LdaSmi), U8(2), |
177 /* 136 E> */ B(StoreICStrict), R(2), U8(3), U8(4), | 174 /* 136 E> */ B(StaNamedPropertyStrict), R(2), U8(3), U8(4), |
178 B(Ldar), R(this), | 175 B(Ldar), R(this), |
179 B(JumpIfNotHole), U8(11), | 176 B(JumpIfNotHole), U8(11), |
180 B(LdaConstant), U8(2), | 177 B(LdaConstant), U8(2), |
181 B(Star), R(2), | 178 B(Star), R(2), |
182 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 179 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
183 /* 141 S> */ B(Return), | 180 /* 141 S> */ B(Return), |
184 ] | 181 ] |
185 constant pool: [ | 182 constant pool: [ |
186 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 183 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
187 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 184 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 B(Star), R(3), | 232 B(Star), R(3), |
236 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 233 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
237 B(Ldar), R(2), | 234 B(Ldar), R(2), |
238 B(Star), R(this), | 235 B(Star), R(this), |
239 /* 126 S> */ B(JumpIfNotHole), U8(11), | 236 /* 126 S> */ B(JumpIfNotHole), U8(11), |
240 B(LdaConstant), U8(2), | 237 B(LdaConstant), U8(2), |
241 B(Star), R(2), | 238 B(Star), R(2), |
242 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 239 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
243 B(Star), R(2), | 240 B(Star), R(2), |
244 B(LdaSmi), U8(2), | 241 B(LdaSmi), U8(2), |
245 /* 134 E> */ B(StoreICStrict), R(2), U8(3), U8(4), | 242 /* 134 E> */ B(StaNamedPropertyStrict), R(2), U8(3), U8(4), |
246 B(Ldar), R(this), | 243 B(Ldar), R(this), |
247 B(JumpIfNotHole), U8(11), | 244 B(JumpIfNotHole), U8(11), |
248 B(LdaConstant), U8(2), | 245 B(LdaConstant), U8(2), |
249 B(Star), R(2), | 246 B(Star), R(2), |
250 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 247 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
251 /* 139 S> */ B(Return), | 248 /* 139 S> */ B(Return), |
252 ] | 249 ] |
253 constant pool: [ | 250 constant pool: [ |
254 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 251 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
255 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 252 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
256 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 253 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
257 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 254 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
258 ] | 255 ] |
259 handlers: [ | 256 handlers: [ |
260 ] | 257 ] |
261 | 258 |
OLD | NEW |