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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 get x() { return 1; } | 54 get x() { return 1; } |
55 set x(val) { return; } | 55 set x(val) { return; } |
56 } | 56 } |
57 class B extends A { | 57 class B extends A { |
58 method() { super.x = 2; return super.x; } | 58 method() { super.x = 2; return super.x; } |
59 } | 59 } |
60 test = new B().method; | 60 test = new B().method; |
61 test(); | 61 test(); |
62 })(); | 62 })(); |
63 " | 63 " |
64 frame size: 5 | 64 frame size: 6 |
65 parameter count: 1 | 65 parameter count: 1 |
66 bytecode array length: 47 | 66 bytecode array length: 47 |
67 bytecodes: [ | 67 bytecodes: [ |
68 B(Mov), R(closure), R(0), | 68 B(Mov), R(closure), R(0), |
69 /* 125 E> */ B(StackCheck), | 69 /* 125 E> */ B(StackCheck), |
70 /* 130 S> */ B(LdaConstant), U8(0), | 70 /* 130 S> */ B(LdaConstant), U8(0), |
71 /* 130 E> */ B(LdaKeyedProperty), R(closure), U8(2), | 71 /* 130 E> */ B(LdaKeyedProperty), R(closure), U8(2), |
| 72 B(Star), R(3), |
| 73 B(LdaConstant), U8(1), |
| 74 B(Star), R(4), |
| 75 B(LdaSmi), I8(2), |
| 76 B(Star), R(5), |
| 77 B(Mov), R(this), R(2), |
| 78 /* 138 E> */ B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(2), U8(4), |
| 79 /* 143 S> */ B(LdaConstant), U8(0), |
| 80 /* 150 E> */ B(LdaKeyedProperty), R(closure), U8(6), |
72 B(Star), R(2), | 81 B(Star), R(2), |
73 B(LdaConstant), U8(1), | 82 B(LdaConstant), U8(1), |
74 B(Star), R(3), | 83 B(Star), R(3), |
75 B(LdaSmi), I8(2), | |
76 B(Star), R(4), | |
77 B(Mov), R(this), R(1), | |
78 /* 138 E> */ B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(1), U8(4), | |
79 /* 143 S> */ B(LdaConstant), U8(0), | |
80 /* 150 E> */ B(LdaKeyedProperty), R(closure), U8(4), | |
81 B(Star), R(2), | |
82 B(LdaConstant), U8(1), | |
83 B(Star), R(3), | |
84 B(Mov), R(this), R(1), | 84 B(Mov), R(this), R(1), |
85 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(1), U8(3), | 85 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(1), U8(3), |
86 /* 159 S> */ B(Return), | 86 /* 159 S> */ B(Return), |
87 ] | 87 ] |
88 constant pool: [ | 88 constant pool: [ |
89 SYMBOL_TYPE, | 89 SYMBOL_TYPE, |
90 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], | 90 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
91 ] | 91 ] |
92 handlers: [ | 92 handlers: [ |
93 ] | 93 ] |
94 | 94 |
95 --- | 95 --- |
96 snippet: " | 96 snippet: " |
97 var test; | 97 var test; |
98 (function() { | 98 (function() { |
99 class A { | 99 class A { |
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: 5 |
109 parameter count: 1 | 109 parameter count: 1 |
110 bytecode array length: 75 | 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(3), |
118 B(LdaSmi), I8(1), | 118 B(LdaSmi), I8(1), |
| 119 B(Star), R(4), |
| 120 B(Ldar), R(0), |
| 121 /* 118 E> */ B(Construct), R(3), R(4), U8(1), U8(2), |
119 B(Star), R(3), | 122 B(Star), R(3), |
120 B(Ldar), R(0), | |
121 /* 118 E> */ B(Construct), R(2), R(3), U8(1), U8(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(7), | 125 B(Jump), U8(7), |
126 /* 118 E> */ B(CallRuntime), U16(Runtime::kThrowSuperAlreadyCalledError), R(0
), U8(0), | 126 /* 118 E> */ B(CallRuntime), U16(Runtime::kThrowSuperAlreadyCalledError), R(0
), U8(0), |
127 B(Mov), R(2), R(this), | 127 B(Mov), R(3), R(this), |
128 /* 128 S> */ B(Ldar), R(this), | 128 /* 128 S> */ B(Ldar), R(this), |
129 B(JumpIfNotHole), U8(11), | 129 B(JumpIfNotHole), U8(11), |
130 B(LdaConstant), U8(0), | 130 B(LdaConstant), U8(0), |
131 B(Star), R(2), | 131 B(Star), R(3), |
132 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 132 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
133 B(Star), R(2), | 133 B(Star), R(3), |
134 B(LdaSmi), I8(2), | 134 B(LdaSmi), I8(2), |
135 /* 136 E> */ B(StaNamedPropertyStrict), R(2), U8(1), U8(4), | 135 /* 136 E> */ B(StaNamedPropertyStrict), R(3), U8(1), U8(6), |
136 B(Ldar), R(this), | 136 B(Ldar), R(this), |
137 B(JumpIfNotHole), U8(11), | 137 B(JumpIfNotHole), U8(11), |
138 B(LdaConstant), U8(0), | 138 B(LdaConstant), U8(0), |
139 B(Star), R(2), | 139 B(Star), R(2), |
140 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 140 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
141 /* 141 S> */ B(Return), | 141 /* 141 S> */ B(Return), |
142 ] | 142 ] |
143 constant pool: [ | 143 constant pool: [ |
144 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], | 144 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], |
145 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"], | 145 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"], |
146 ] | 146 ] |
147 handlers: [ | 147 handlers: [ |
148 ] | 148 ] |
149 | 149 |
150 --- | 150 --- |
151 snippet: " | 151 snippet: " |
152 var test; | 152 var test; |
153 (function() { | 153 (function() { |
154 class A { | 154 class A { |
155 constructor() { this.x_ = 1; } | 155 constructor() { this.x_ = 1; } |
156 } | 156 } |
157 class B extends A { | 157 class B extends A { |
158 constructor() { super(); this.y_ = 2; } | 158 constructor() { super(); this.y_ = 2; } |
159 } | 159 } |
160 test = new B().constructor; | 160 test = new B().constructor; |
161 })(); | 161 })(); |
162 " | 162 " |
163 frame size: 3 | 163 frame size: 4 |
164 parameter count: 1 | 164 parameter count: 1 |
165 bytecode array length: 71 | 165 bytecode array length: 71 |
166 bytecodes: [ | 166 bytecodes: [ |
167 B(Mov), R(closure), R(1), | 167 B(Mov), R(closure), R(1), |
168 B(Mov), R(new_target), R(0), | 168 B(Mov), R(new_target), R(0), |
169 B(Ldar), R(new_target), | 169 B(Ldar), R(new_target), |
170 /* 112 E> */ B(StackCheck), | 170 /* 112 E> */ B(StackCheck), |
171 /* 117 S> */ B(Ldar), R(1), | 171 /* 117 S> */ B(Ldar), R(1), |
172 B(GetSuperConstructor), R(2), | 172 B(GetSuperConstructor), R(3), |
173 B(Ldar), R(0), | 173 B(Ldar), R(0), |
174 /* 117 E> */ B(Construct), R(2), R(0), U8(0), U8(2), | 174 /* 117 E> */ B(Construct), R(3), R(0), U8(0), U8(2), |
175 B(Star), R(2), | 175 B(Star), R(3), |
176 B(Ldar), R(this), | 176 B(Ldar), R(this), |
177 B(JumpIfNotHole), U8(4), | 177 B(JumpIfNotHole), U8(4), |
178 B(Jump), U8(7), | 178 B(Jump), U8(7), |
179 /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowSuperAlreadyCalledError), R(0
), U8(0), | 179 /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowSuperAlreadyCalledError), R(0
), U8(0), |
180 B(Mov), R(2), R(this), | 180 B(Mov), R(3), R(this), |
181 /* 126 S> */ B(Ldar), R(this), | 181 /* 126 S> */ B(Ldar), R(this), |
182 B(JumpIfNotHole), U8(11), | 182 B(JumpIfNotHole), U8(11), |
183 B(LdaConstant), U8(0), | 183 B(LdaConstant), U8(0), |
184 B(Star), R(2), | 184 B(Star), R(3), |
185 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 185 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
186 B(Star), R(2), | 186 B(Star), R(3), |
187 B(LdaSmi), I8(2), | 187 B(LdaSmi), I8(2), |
188 /* 134 E> */ B(StaNamedPropertyStrict), R(2), U8(1), U8(4), | 188 /* 134 E> */ B(StaNamedPropertyStrict), R(3), U8(1), U8(6), |
189 B(Ldar), R(this), | 189 B(Ldar), R(this), |
190 B(JumpIfNotHole), U8(11), | 190 B(JumpIfNotHole), U8(11), |
191 B(LdaConstant), U8(0), | 191 B(LdaConstant), U8(0), |
192 B(Star), R(2), | 192 B(Star), R(2), |
193 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 193 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
194 /* 139 S> */ B(Return), | 194 /* 139 S> */ B(Return), |
195 ] | 195 ] |
196 constant pool: [ | 196 constant pool: [ |
197 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], | 197 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], |
198 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"], | 198 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"], |
199 ] | 199 ] |
200 handlers: [ | 200 handlers: [ |
201 ] | 201 ] |
202 | 202 |
OLD | NEW |