Lines Matching refs:stream

78 ScopeValue* ScopeValue::read_from(DebugInfoReadStream* stream) {
80 switch(stream->read_int()) {
81 case LOCATION_CODE: result = new LocationValue(stream); break;
82 case CONSTANT_INT_CODE: result = new ConstantIntValue(stream); break;
83 case CONSTANT_OOP_CODE: result = new ConstantOopReadValue(stream); break;
84 case CONSTANT_LONG_CODE: result = new ConstantLongValue(stream); break;
85 case CONSTANT_DOUBLE_CODE: result = new ConstantDoubleValue(stream); break;
86 case OBJECT_CODE: result = stream->read_object_value(); break;
87 case OBJECT_ID_CODE: result = stream->get_cached_object(); break;
95 LocationValue::LocationValue(DebugInfoReadStream* stream) {
96 _location = Location(stream);
99 void LocationValue::write_on(DebugInfoWriteStream* stream) {
100 stream->write_int(LOCATION_CODE);
101 location().write_on(stream);
110 void ObjectValue::read_object(DebugInfoReadStream* stream) {
111 _klass = read_from(stream);
113 int length = stream->read_int();
115 ScopeValue* val = read_from(stream);
120 void ObjectValue::write_on(DebugInfoWriteStream* stream) {
122 stream->write_int(OBJECT_ID_CODE);
123 stream->write_int(_id);
126 stream->write_int(OBJECT_CODE);
127 stream->write_int(_id);
128 _klass->write_on(stream);
130 stream->write_int(length);
132 _field_values.at(i)->write_on(stream);
155 ConstantIntValue::ConstantIntValue(DebugInfoReadStream* stream) {
156 _value = stream->read_signed_int();
159 void ConstantIntValue::write_on(DebugInfoWriteStream* stream) {
160 stream->write_int(CONSTANT_INT_CODE);
161 stream->write_signed_int(value());
170 ConstantLongValue::ConstantLongValue(DebugInfoReadStream* stream) {
171 _value = stream->read_long();
174 void ConstantLongValue::write_on(DebugInfoWriteStream* stream) {
175 stream->write_int(CONSTANT_LONG_CODE);
176 stream->write_long(value());
185 ConstantDoubleValue::ConstantDoubleValue(DebugInfoReadStream* stream) {
186 _value = stream->read_double();
189 void ConstantDoubleValue::write_on(DebugInfoWriteStream* stream) {
190 stream->write_int(CONSTANT_DOUBLE_CODE);
191 stream->write_double(value());
200 void ConstantOopWriteValue::write_on(DebugInfoWriteStream* stream) {
201 stream->write_int(CONSTANT_OOP_CODE);
202 stream->write_handle(value());
212 ConstantOopReadValue::ConstantOopReadValue(DebugInfoReadStream* stream) {
213 _value = Handle(stream->read_oop());
216 void ConstantOopReadValue::write_on(DebugInfoWriteStream* stream) {
233 MonitorValue::MonitorValue(DebugInfoReadStream* stream) {
234 _basic_lock = Location(stream);
235 _owner = ScopeValue::read_from(stream);
236 _eliminated = (stream->read_bool() != 0);
239 void MonitorValue::write_on(DebugInfoWriteStream* stream) {
240 _basic_lock.write_on(stream);
241 _owner->write_on(stream);
242 stream->write_bool(_eliminated);