< prev index next >

src/hotspot/share/asm/codeBuffer.hpp

Print this page
*** 87,10 ***
--- 87,11 ---
  // This class represents a stream of code and associated relocations.
  // There are a few in each CodeBuffer.
  // They are filled concurrently, and concatenated at the end.
  class CodeSection {
    friend class CodeBuffer;
+   friend class SCCReader;
   public:
    typedef int csize_t;  // code size type; would be size_t except for history
  
   private:
    address     _start;           // first byte of contents (instructions)

*** 281,11 ***
    // Return true if there was an expansion.
    bool maybe_expand_to_ensure_remaining(csize_t amount);
  
  #ifndef PRODUCT
    void decode();
!   void print(const char* name);
  #endif //PRODUCT
  };
  
  
  #ifndef PRODUCT
--- 282,11 ---
    // Return true if there was an expansion.
    bool maybe_expand_to_ensure_remaining(csize_t amount);
  
  #ifndef PRODUCT
    void decode();
!   void print_on(outputStream* st, const char* name);
  #endif //PRODUCT
  };
  
  
  #ifndef PRODUCT

*** 384,10 ***
--- 385,11 ---
  // addresses in a sibling section.
  
  class CodeBuffer: public StackObj DEBUG_ONLY(COMMA private Scrubber) {
    friend class CodeSection;
    friend class StubCodeGenerator;
+   friend class SCCReader;
  
   private:
    // CodeBuffers must be allocated on the stack except for a single
    // special case during expansion which is handled internally.  This
    // is done to guarantee proper cleanup of resources.

*** 731,11 ***
  #ifndef PRODUCT
   public:
    // Printing / Decoding
    // decodes from decode_begin() to code_end() and sets decode_begin to end
    void    decode();
!   void    print();
  #endif
    // Directly disassemble code buffer.
    void    decode(address start, address end);
  
    // The following header contains architecture-specific implementations
--- 733,11 ---
  #ifndef PRODUCT
   public:
    // Printing / Decoding
    // decodes from decode_begin() to code_end() and sets decode_begin to end
    void    decode();
!   void    print_on(outputStream* st);
  #endif
    // Directly disassemble code buffer.
    void    decode(address start, address end);
  
    // The following header contains architecture-specific implementations
< prev index next >