< prev index next >

src/hotspot/share/code/debugInfo.hpp

Print this page




 129   bool                        is_visited() const        { return _visited; }
 130 
 131   void                        set_value(oop value)      { _value = Handle(Thread::current(), value); }
 132   void                        set_visited(bool visited) { _visited = false; }
 133 
 134   // Serialization of debugging information
 135   void read_object(DebugInfoReadStream* stream);
 136   void write_on(DebugInfoWriteStream* stream);
 137 
 138   // Printing
 139   void print_on(outputStream* st) const;
 140   void print_fields_on(outputStream* st) const;
 141 };
 142 
 143 
 144 // A ConstantIntValue describes a constant int; i.e., the corresponding logical entity
 145 // is either a source constant or its computation has been constant-folded.
 146 
 147 class ConstantIntValue: public ScopeValue {
 148  private:
 149   jint _value;
 150  public:
 151   ConstantIntValue(jint value)         { _value = value; }
 152   jint value() const                   { return _value;  }
 153   bool is_constant_int() const         { return true;    }
 154   bool equals(ScopeValue* other) const { return false;   }
 155 
 156   // Serialization of debugging information
 157   ConstantIntValue(DebugInfoReadStream* stream);
 158   void write_on(DebugInfoWriteStream* stream);
 159 
 160   // Printing
 161   void print_on(outputStream* st) const;
 162 };
 163 
 164 class ConstantLongValue: public ScopeValue {
 165  private:
 166   jlong _value;
 167  public:
 168   ConstantLongValue(jlong value)       { _value = value; }
 169   jlong value() const                  { return _value;  }
 170   bool is_constant_long() const        { return true;    }
 171   bool equals(ScopeValue* other) const { return false;   }




 129   bool                        is_visited() const        { return _visited; }
 130 
 131   void                        set_value(oop value)      { _value = Handle(Thread::current(), value); }
 132   void                        set_visited(bool visited) { _visited = false; }
 133 
 134   // Serialization of debugging information
 135   void read_object(DebugInfoReadStream* stream);
 136   void write_on(DebugInfoWriteStream* stream);
 137 
 138   // Printing
 139   void print_on(outputStream* st) const;
 140   void print_fields_on(outputStream* st) const;
 141 };
 142 
 143 
 144 // A ConstantIntValue describes a constant int; i.e., the corresponding logical entity
 145 // is either a source constant or its computation has been constant-folded.
 146 
 147 class ConstantIntValue: public ScopeValue {
 148  private:
 149   int _value;
 150  public:
 151   ConstantIntValue(int value)          { _value = value; }
 152   jint value() const                   { return _value;  }
 153   bool is_constant_int() const         { return true;    }
 154   bool equals(ScopeValue* other) const { return false;   }
 155 
 156   // Serialization of debugging information
 157   ConstantIntValue(DebugInfoReadStream* stream);
 158   void write_on(DebugInfoWriteStream* stream);
 159 
 160   // Printing
 161   void print_on(outputStream* st) const;
 162 };
 163 
 164 class ConstantLongValue: public ScopeValue {
 165  private:
 166   jlong _value;
 167  public:
 168   ConstantLongValue(jlong value)       { _value = value; }
 169   jlong value() const                  { return _value;  }
 170   bool is_constant_long() const        { return true;    }
 171   bool equals(ScopeValue* other) const { return false;   }


< prev index next >