OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 wrap: no | 6 wrap: no |
7 test function name: test | 7 test function name: test |
8 | 8 |
9 --- | 9 --- |
10 snippet: " | 10 snippet: " |
(...skipping 18 matching lines...) Expand all Loading... |
29 /* 104 S> */ B(LdaConstant), U8(0), | 29 /* 104 S> */ B(LdaConstant), U8(0), |
30 /* 111 E> */ B(LdaKeyedProperty), R(closure), U8(4), | 30 /* 111 E> */ B(LdaKeyedProperty), R(closure), U8(4), |
31 B(Star), R(4), | 31 B(Star), R(4), |
32 B(LdaConstant), U8(1), | 32 B(LdaConstant), U8(1), |
33 B(Star), R(5), | 33 B(Star), R(5), |
34 B(Mov), R(this), R(3), | 34 B(Mov), R(this), R(3), |
35 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(3), U8(3), | 35 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(3), U8(3), |
36 B(Star), R(1), | 36 B(Star), R(1), |
37 /* 117 E> */ B(Call), R(1), R(this), U8(1), U8(2), | 37 /* 117 E> */ B(Call), R(1), R(this), U8(1), U8(2), |
38 B(Star), R(1), | 38 B(Star), R(1), |
39 /* 126 E> */ B(AddSmi), U8(1), R(1), U8(8), | 39 B(AddSmi), U8(1), R(1), U8(8), |
40 /* 131 S> */ B(Return), | 40 /* 131 S> */ B(Return), |
41 ] | 41 ] |
42 constant pool: [ | 42 constant pool: [ |
43 SYMBOL_TYPE, | 43 SYMBOL_TYPE, |
44 ONE_BYTE_INTERNALIZED_STRING_TYPE ["method"], | 44 ONE_BYTE_INTERNALIZED_STRING_TYPE ["method"], |
45 ] | 45 ] |
46 handlers: [ | 46 handlers: [ |
47 ] | 47 ] |
48 | 48 |
49 --- | 49 --- |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 constructor(x) { this.x_ = x; } | 100 constructor(x) { this.x_ = x; } |
101 } | 101 } |
102 class B extends A { | 102 class B extends A { |
103 constructor() { super(1); this.y_ = 2; } | 103 constructor() { super(1); this.y_ = 2; } |
104 } | 104 } |
105 test = new B().constructor; | 105 test = new B().constructor; |
106 })(); | 106 })(); |
107 " | 107 " |
108 frame size: 4 | 108 frame size: 4 |
109 parameter count: 1 | 109 parameter count: 1 |
110 bytecode array length: 82 | 110 bytecode array length: 79 |
111 bytecodes: [ | 111 bytecodes: [ |
112 B(Mov), R(closure), R(1), | 112 B(Mov), R(closure), R(1), |
113 B(Mov), R(new_target), R(0), | 113 B(Mov), R(new_target), R(0), |
114 B(Ldar), R(new_target), | 114 B(Ldar), R(new_target), |
115 /* 113 E> */ B(StackCheck), | 115 /* 113 E> */ B(StackCheck), |
116 /* 118 S> */ B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(1), U8(1)
, | 116 /* 118 S> */ B(Ldar), R(1), |
117 B(Star), R(2), | 117 B(GetSuperConstructor), R(2), |
118 B(LdaSmi), U8(1), | 118 B(LdaSmi), U8(1), |
119 B(Star), R(3), | 119 B(Star), R(3), |
120 B(Ldar), R(0), | 120 B(Ldar), R(0), |
121 /* 118 E> */ B(New), R(2), R(3), U8(1), U8(2), | 121 /* 118 E> */ B(New), R(2), R(3), U8(1), U8(2), |
122 B(Star), R(2), | 122 B(Star), R(2), |
123 B(Ldar), R(this), | 123 B(Ldar), R(this), |
124 B(JumpIfNotHole), U8(4), | 124 B(JumpIfNotHole), U8(4), |
125 B(Jump), U8(11), | 125 B(Jump), U8(11), |
126 B(LdaConstant), U8(0), | 126 B(LdaConstant), U8(0), |
127 B(Star), R(3), | 127 B(Star), R(3), |
(...skipping 29 matching lines...) Expand all Loading... |
157 constructor() { this.x_ = 1; } | 157 constructor() { this.x_ = 1; } |
158 } | 158 } |
159 class B extends A { | 159 class B extends A { |
160 constructor() { super(); this.y_ = 2; } | 160 constructor() { super(); this.y_ = 2; } |
161 } | 161 } |
162 test = new B().constructor; | 162 test = new B().constructor; |
163 })(); | 163 })(); |
164 " | 164 " |
165 frame size: 4 | 165 frame size: 4 |
166 parameter count: 1 | 166 parameter count: 1 |
167 bytecode array length: 78 | 167 bytecode array length: 75 |
168 bytecodes: [ | 168 bytecodes: [ |
169 B(Mov), R(closure), R(1), | 169 B(Mov), R(closure), R(1), |
170 B(Mov), R(new_target), R(0), | 170 B(Mov), R(new_target), R(0), |
171 B(Ldar), R(new_target), | 171 B(Ldar), R(new_target), |
172 /* 112 E> */ B(StackCheck), | 172 /* 112 E> */ B(StackCheck), |
173 /* 117 S> */ B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(1), U8(1)
, | 173 /* 117 S> */ B(Ldar), R(1), |
174 B(Star), R(2), | 174 B(GetSuperConstructor), R(2), |
175 B(Ldar), R(0), | 175 B(Ldar), R(0), |
176 /* 117 E> */ B(New), R(2), R(0), U8(0), U8(2), | 176 /* 117 E> */ B(New), R(2), R(0), U8(0), U8(2), |
177 B(Star), R(2), | 177 B(Star), R(2), |
178 B(Ldar), R(this), | 178 B(Ldar), R(this), |
179 B(JumpIfNotHole), U8(4), | 179 B(JumpIfNotHole), U8(4), |
180 B(Jump), U8(11), | 180 B(Jump), U8(11), |
181 B(LdaConstant), U8(0), | 181 B(LdaConstant), U8(0), |
182 B(Star), R(3), | 182 B(Star), R(3), |
183 /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 183 /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
184 B(Mov), R(2), R(this), | 184 B(Mov), R(2), R(this), |
(...skipping 12 matching lines...) Expand all Loading... |
197 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 197 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
198 /* 139 S> */ B(Return), | 198 /* 139 S> */ B(Return), |
199 ] | 199 ] |
200 constant pool: [ | 200 constant pool: [ |
201 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], | 201 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], |
202 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"], | 202 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"], |
203 ] | 203 ] |
204 handlers: [ | 204 handlers: [ |
205 ] | 205 ] |
206 | 206 |
OLD | NEW |