src/hotspot/share/code/codeBlob.hpp
changeset 54960 e46fe26d7f77
parent 54807 33fe50b6d707
equal deleted inserted replaced
54959:00425a850a2f 54960:e46fe26d7f77
   209   ImmutableOopMapSet* oop_maps() const           { return _oop_maps; }
   209   ImmutableOopMapSet* oop_maps() const           { return _oop_maps; }
   210   void set_oop_maps(OopMapSet* p);
   210   void set_oop_maps(OopMapSet* p);
   211   const ImmutableOopMap* oop_map_for_return_address(address return_address);
   211   const ImmutableOopMap* oop_map_for_return_address(address return_address);
   212   virtual void preserve_callee_argument_oops(frame fr, const RegisterMap* reg_map, OopClosure* f) = 0;
   212   virtual void preserve_callee_argument_oops(frame fr, const RegisterMap* reg_map, OopClosure* f) = 0;
   213 
   213 
   214   // Frame support
   214   // Frame support. Sizes are in word units.
   215   int  frame_size() const                        { return _frame_size; }
   215   int  frame_size() const                        { return _frame_size; }
   216   void set_frame_size(int size)                  { _frame_size = size; }
   216   void set_frame_size(int size)                  { _frame_size = size; }
   217 
   217 
   218   // Returns true, if the next frame is responsible for GC'ing oops passed as arguments
   218   // Returns true, if the next frame is responsible for GC'ing oops passed as arguments
   219   bool caller_must_gc_arguments(JavaThread* thread) const { return _caller_must_gc_arguments; }
   219   bool caller_must_gc_arguments(JavaThread* thread) const { return _caller_must_gc_arguments; }
   228   virtual void print_on(outputStream* st) const;
   228   virtual void print_on(outputStream* st) const;
   229   virtual void print_value_on(outputStream* st) const;
   229   virtual void print_value_on(outputStream* st) const;
   230   void dump_for_addr(address addr, outputStream* st, bool verbose) const;
   230   void dump_for_addr(address addr, outputStream* st, bool verbose) const;
   231   void print_code();
   231   void print_code();
   232 
   232 
       
   233   bool has_block_comment(address block_begin) const {
       
   234     intptr_t offset = (intptr_t)(block_begin - code_begin());
       
   235     return _strings.has_block_comment(offset);
       
   236   }
   233   // Print the comment associated with offset on stream, if there is one
   237   // Print the comment associated with offset on stream, if there is one
   234   virtual void print_block_comment(outputStream* stream, address block_begin) const {
   238   virtual void print_block_comment(outputStream* stream, address block_begin) const {
   235     intptr_t offset = (intptr_t)(block_begin - code_begin());
   239     intptr_t offset = (intptr_t)(block_begin - code_begin());
   236     _strings.print_block_comment(stream, offset);
   240     _strings.print_block_comment(stream, offset);
   237   }
   241   }