src/hotspot/share/asm/assembler.hpp
changeset 51178 416a76fe8067
parent 49373 47b5652f2928
child 51633 21154cb84d2a
equal deleted inserted replaced
51177:ae39ec0b0502 51178:416a76fe8067
   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.