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 89 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: 79 | 110 bytecode array length: 75 |
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(Ldar), R(1), | 116 /* 118 S> */ B(Ldar), R(1), |
117 B(GetSuperConstructor), 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(7), |
126 B(LdaConstant), U8(0), | 126 /* 118 E> */ B(CallRuntime), U16(Runtime::kThrowSuperAlreadyCalledError), R(0
), U8(0), |
127 B(Star), R(3), | |
128 /* 118 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | |
129 B(Mov), R(2), R(this), | 127 B(Mov), R(2), R(this), |
130 /* 128 S> */ B(Ldar), R(this), | 128 /* 128 S> */ B(Ldar), R(this), |
131 B(JumpIfNotHole), U8(11), | 129 B(JumpIfNotHole), U8(11), |
132 B(LdaConstant), U8(0), | 130 B(LdaConstant), U8(0), |
133 B(Star), R(2), | 131 B(Star), R(2), |
134 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 132 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
135 B(Star), R(2), | 133 B(Star), R(2), |
136 B(LdaSmi), U8(2), | 134 B(LdaSmi), U8(2), |
137 /* 136 E> */ B(StaNamedPropertyStrict), R(2), U8(1), U8(4), | 135 /* 136 E> */ B(StaNamedPropertyStrict), R(2), U8(1), U8(4), |
138 B(Ldar), R(this), | 136 B(Ldar), R(this), |
(...skipping 16 matching lines...) Expand all Loading... |
155 (function() { | 153 (function() { |
156 class A { | 154 class A { |
157 constructor() { this.x_ = 1; } | 155 constructor() { this.x_ = 1; } |
158 } | 156 } |
159 class B extends A { | 157 class B extends A { |
160 constructor() { super(); this.y_ = 2; } | 158 constructor() { super(); this.y_ = 2; } |
161 } | 159 } |
162 test = new B().constructor; | 160 test = new B().constructor; |
163 })(); | 161 })(); |
164 " | 162 " |
165 frame size: 4 | 163 frame size: 3 |
166 parameter count: 1 | 164 parameter count: 1 |
167 bytecode array length: 75 | 165 bytecode array length: 71 |
168 bytecodes: [ | 166 bytecodes: [ |
169 B(Mov), R(closure), R(1), | 167 B(Mov), R(closure), R(1), |
170 B(Mov), R(new_target), R(0), | 168 B(Mov), R(new_target), R(0), |
171 B(Ldar), R(new_target), | 169 B(Ldar), R(new_target), |
172 /* 112 E> */ B(StackCheck), | 170 /* 112 E> */ B(StackCheck), |
173 /* 117 S> */ B(Ldar), R(1), | 171 /* 117 S> */ B(Ldar), R(1), |
174 B(GetSuperConstructor), R(2), | 172 B(GetSuperConstructor), R(2), |
175 B(Ldar), R(0), | 173 B(Ldar), R(0), |
176 /* 117 E> */ B(New), R(2), R(0), U8(0), U8(2), | 174 /* 117 E> */ B(New), R(2), R(0), U8(0), U8(2), |
177 B(Star), R(2), | 175 B(Star), R(2), |
178 B(Ldar), R(this), | 176 B(Ldar), R(this), |
179 B(JumpIfNotHole), U8(4), | 177 B(JumpIfNotHole), U8(4), |
180 B(Jump), U8(11), | 178 B(Jump), U8(7), |
181 B(LdaConstant), U8(0), | 179 /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowSuperAlreadyCalledError), R(0
), U8(0), |
182 B(Star), R(3), | |
183 /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | |
184 B(Mov), R(2), R(this), | 180 B(Mov), R(2), R(this), |
185 /* 126 S> */ B(Ldar), R(this), | 181 /* 126 S> */ B(Ldar), R(this), |
186 B(JumpIfNotHole), U8(11), | 182 B(JumpIfNotHole), U8(11), |
187 B(LdaConstant), U8(0), | 183 B(LdaConstant), U8(0), |
188 B(Star), R(2), | 184 B(Star), R(2), |
189 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 185 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
190 B(Star), R(2), | 186 B(Star), R(2), |
191 B(LdaSmi), U8(2), | 187 B(LdaSmi), U8(2), |
192 /* 134 E> */ B(StaNamedPropertyStrict), R(2), U8(1), U8(4), | 188 /* 134 E> */ B(StaNamedPropertyStrict), R(2), U8(1), U8(4), |
193 B(Ldar), R(this), | 189 B(Ldar), R(this), |
194 B(JumpIfNotHole), U8(11), | 190 B(JumpIfNotHole), U8(11), |
195 B(LdaConstant), U8(0), | 191 B(LdaConstant), U8(0), |
196 B(Star), R(2), | 192 B(Star), R(2), |
197 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 193 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
198 /* 139 S> */ B(Return), | 194 /* 139 S> */ B(Return), |
199 ] | 195 ] |
200 constant pool: [ | 196 constant pool: [ |
201 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], | 197 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], |
202 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"], | 198 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"], |
203 ] | 199 ] |
204 handlers: [ | 200 handlers: [ |
205 ] | 201 ] |
206 | 202 |
OLD | NEW |