Mercurial > hg > graal-compiler
comparison src/share/vm/code/scopeDesc.cpp @ 7932:d4e6c82cd6a1
Remove deferred write logic.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 05 Mar 2013 17:16:41 +0100 |
parents | b6a8f2d23057 |
children | 85bd81dba8fc |
comparison
equal
deleted
inserted
replaced
7931:57726bff1d9f | 7932:d4e6c82cd6a1 |
---|---|
130 result->push(new MonitorValue(stream)); | 130 result->push(new MonitorValue(stream)); |
131 } | 131 } |
132 return result; | 132 return result; |
133 } | 133 } |
134 | 134 |
135 #ifdef GRAAL | |
136 | |
137 GrowableArray<DeferredWriteValue*>* ScopeDesc::decode_deferred_writes(int decode_offset) { | |
138 if (decode_offset == DebugInformationRecorder::serialized_null) return NULL; | |
139 DebugInfoReadStream* stream = stream_at(decode_offset); | |
140 int length = stream->read_int(); | |
141 GrowableArray<DeferredWriteValue*>* result = new GrowableArray<DeferredWriteValue*> (length); | |
142 for (int index = 0; index < length; index++) { | |
143 result->push(new DeferredWriteValue(stream)); | |
144 } | |
145 return result; | |
146 } | |
147 | |
148 GrowableArray<DeferredWriteValue*>* ScopeDesc::deferred_writes() { | |
149 return decode_deferred_writes(_deferred_writes_decode_offset); | |
150 } | |
151 | |
152 #endif // GRAAL | |
153 | |
154 DebugInfoReadStream* ScopeDesc::stream_at(int decode_offset) const { | 135 DebugInfoReadStream* ScopeDesc::stream_at(int decode_offset) const { |
155 return new DebugInfoReadStream(_code, decode_offset, _objects); | 136 return new DebugInfoReadStream(_code, decode_offset, _objects); |
156 } | 137 } |
157 | 138 |
158 GrowableArray<ScopeValue*>* ScopeDesc::locals() { | 139 GrowableArray<ScopeValue*>* ScopeDesc::locals() { |
259 sv->print_fields_on(tty); | 240 sv->print_fields_on(tty); |
260 tty->cr(); | 241 tty->cr(); |
261 } | 242 } |
262 } | 243 } |
263 #endif // COMPILER2 || GRAAL | 244 #endif // COMPILER2 || GRAAL |
264 #ifdef GRAAL | |
265 // deferred writes | |
266 { GrowableArray<DeferredWriteValue*>* l = ((ScopeDesc*) this)->deferred_writes(); | |
267 if (l != NULL) { | |
268 st->print_cr(" Deferred writes"); | |
269 for (int index = 0; index < l->length(); index++) { | |
270 st->print(" - @%d: ", index); | |
271 l->at(index)->print_on(st); | |
272 st->cr(); | |
273 } | |
274 } | |
275 } | |
276 #endif | |
277 } | 245 } |
278 | 246 |
279 #endif | 247 #endif |
280 | 248 |
281 void ScopeDesc::verify() { | 249 void ScopeDesc::verify() { |