equal
deleted
inserted
replaced
156 _is_near = false; |
156 _is_near = false; |
157 } |
157 } |
158 |
158 |
159 Label() { |
159 Label() { |
160 init(); |
160 init(); |
|
161 } |
|
162 |
|
163 ~Label() { |
|
164 assert(is_bound() || is_unused(), "Label was never bound to a location, but it was used as a jmp target"); |
|
165 } |
|
166 |
|
167 void reset() { |
|
168 init(); //leave _patch_overflow because it points to CodeBuffer. |
161 } |
169 } |
162 }; |
170 }; |
163 |
171 |
164 // A NearLabel must be bound to a location near its users. Users can |
172 // A NearLabel must be bound to a location near its users. Users can |
165 // optimize on this information, e.g. generate short branches. |
173 // optimize on this information, e.g. generate short branches. |