Mercurial > hg > truffle
annotate src/share/vm/code/scopeDesc.cpp @ 7090:05ce1defa4f9
Common out some parts of UnsafeLoad/Store in UnsafeAccess
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 29 Nov 2012 13:24:08 +0100 |
parents | b6a8f2d23057 |
children | d4e6c82cd6a1 |
rev | line source |
---|---|
0 | 1 /* |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
1972
diff
changeset
|
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
0 | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | |
5 * This code is free software; you can redistribute it and/or modify it | |
6 * under the terms of the GNU General Public License version 2 only, as | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 * version 2 for more details (a copy is included in the LICENSE file that | |
13 * accompanied this code). | |
14 * | |
15 * You should have received a copy of the GNU General Public License version | |
16 * 2 along with this work; if not, write to the Free Software Foundation, | |
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 * | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1253
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1253
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1253
diff
changeset
|
21 * questions. |
0 | 22 * |
23 */ | |
24 | |
1972 | 25 #include "precompiled.hpp" |
26 #include "code/debugInfoRec.hpp" | |
27 #include "code/pcDesc.hpp" | |
28 #include "code/scopeDesc.hpp" | |
29 #include "memory/resourceArea.hpp" | |
30 #include "oops/oop.inline.hpp" | |
31 #include "runtime/handles.inline.hpp" | |
0 | 32 |
33 | |
3018
5857923e563c
Fixed an issue with frame states in exception dispatch chains (now we are correctly rethrowing the exception immediately at entering the interpreter).
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
1972
diff
changeset
|
34 ScopeDesc::ScopeDesc(const nmethod* code, int decode_offset, int obj_decode_offset, bool reexecute, bool rethrow_exception, bool return_oop) { |
0 | 35 _code = code; |
36 _decode_offset = decode_offset; | |
37 _objects = decode_object_values(obj_decode_offset); | |
931
72088be4b386
6873116: Modify reexecute implementation to use pcDesc to record the reexecute bit
cfang
parents:
900
diff
changeset
|
38 _reexecute = reexecute; |
1253
f70b0d9ab095
6910618: C2: Error: assert(d->is_oop(),"JVM_ArrayCopy: dst not an oop")
kvn
parents:
931
diff
changeset
|
39 _return_oop = return_oop; |
3018
5857923e563c
Fixed an issue with frame states in exception dispatch chains (now we are correctly rethrowing the exception immediately at entering the interpreter).
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
1972
diff
changeset
|
40 _rethrow_exception = rethrow_exception; |
0 | 41 decode_body(); |
42 } | |
43 | |
3018
5857923e563c
Fixed an issue with frame states in exception dispatch chains (now we are correctly rethrowing the exception immediately at entering the interpreter).
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
1972
diff
changeset
|
44 ScopeDesc::ScopeDesc(const nmethod* code, int decode_offset, bool reexecute, bool rethrow_exception, bool return_oop) { |
0 | 45 _code = code; |
46 _decode_offset = decode_offset; | |
47 _objects = decode_object_values(DebugInformationRecorder::serialized_null); | |
931
72088be4b386
6873116: Modify reexecute implementation to use pcDesc to record the reexecute bit
cfang
parents:
900
diff
changeset
|
48 _reexecute = reexecute; |
1253
f70b0d9ab095
6910618: C2: Error: assert(d->is_oop(),"JVM_ArrayCopy: dst not an oop")
kvn
parents:
931
diff
changeset
|
49 _return_oop = return_oop; |
3018
5857923e563c
Fixed an issue with frame states in exception dispatch chains (now we are correctly rethrowing the exception immediately at entering the interpreter).
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
1972
diff
changeset
|
50 _rethrow_exception = rethrow_exception; |
0 | 51 decode_body(); |
52 } | |
53 | |
54 | |
55 ScopeDesc::ScopeDesc(const ScopeDesc* parent) { | |
56 _code = parent->_code; | |
57 _decode_offset = parent->_sender_decode_offset; | |
58 _objects = parent->_objects; | |
931
72088be4b386
6873116: Modify reexecute implementation to use pcDesc to record the reexecute bit
cfang
parents:
900
diff
changeset
|
59 _reexecute = false; //reexecute only applies to the first scope |
3018
5857923e563c
Fixed an issue with frame states in exception dispatch chains (now we are correctly rethrowing the exception immediately at entering the interpreter).
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
1972
diff
changeset
|
60 _rethrow_exception = false; |
1253
f70b0d9ab095
6910618: C2: Error: assert(d->is_oop(),"JVM_ArrayCopy: dst not an oop")
kvn
parents:
931
diff
changeset
|
61 _return_oop = false; |
0 | 62 decode_body(); |
63 } | |
64 | |
65 | |
66 void ScopeDesc::decode_body() { | |
67 if (decode_offset() == DebugInformationRecorder::serialized_null) { | |
68 // This is a sentinel record, which is only relevant to | |
69 // approximate queries. Decode a reasonable frame. | |
70 _sender_decode_offset = DebugInformationRecorder::serialized_null; | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
1972
diff
changeset
|
71 _method = _code->method(); |
0 | 72 _bci = InvocationEntryBci; |
73 _locals_decode_offset = DebugInformationRecorder::serialized_null; | |
74 _expressions_decode_offset = DebugInformationRecorder::serialized_null; | |
75 _monitors_decode_offset = DebugInformationRecorder::serialized_null; | |
7046
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
76 #ifdef GRAAL |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
77 _deferred_writes_decode_offset = DebugInformationRecorder::serialized_null; |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
78 #endif // GRAAL |
0 | 79 } else { |
80 // decode header | |
81 DebugInfoReadStream* stream = stream_at(decode_offset()); | |
82 | |
83 _sender_decode_offset = stream->read_int(); | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
1972
diff
changeset
|
84 _method = stream->read_method(); |
931
72088be4b386
6873116: Modify reexecute implementation to use pcDesc to record the reexecute bit
cfang
parents:
900
diff
changeset
|
85 _bci = stream->read_bci(); |
900
9987d9d5eb0e
6833129: specjvm98 fails with NullPointerException in the compiler with -XX:DeoptimizeALot
cfang
parents:
196
diff
changeset
|
86 |
0 | 87 // decode offsets for body and sender |
88 _locals_decode_offset = stream->read_int(); | |
89 _expressions_decode_offset = stream->read_int(); | |
90 _monitors_decode_offset = stream->read_int(); | |
7046
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
91 #ifdef GRAAL |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
92 _deferred_writes_decode_offset = stream->read_int(); |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
93 #endif // GRAAL |
0 | 94 } |
95 } | |
96 | |
97 | |
98 GrowableArray<ScopeValue*>* ScopeDesc::decode_scope_values(int decode_offset) { | |
99 if (decode_offset == DebugInformationRecorder::serialized_null) return NULL; | |
100 DebugInfoReadStream* stream = stream_at(decode_offset); | |
101 int length = stream->read_int(); | |
102 GrowableArray<ScopeValue*>* result = new GrowableArray<ScopeValue*> (length); | |
103 for (int index = 0; index < length; index++) { | |
104 result->push(ScopeValue::read_from(stream)); | |
105 } | |
106 return result; | |
107 } | |
108 | |
109 GrowableArray<ScopeValue*>* ScopeDesc::decode_object_values(int decode_offset) { | |
110 if (decode_offset == DebugInformationRecorder::serialized_null) return NULL; | |
111 GrowableArray<ScopeValue*>* result = new GrowableArray<ScopeValue*>(); | |
112 DebugInfoReadStream* stream = new DebugInfoReadStream(_code, decode_offset, result); | |
113 int length = stream->read_int(); | |
114 for (int index = 0; index < length; index++) { | |
44
52fed2ec0afb
6667620: (Escape Analysis) fix deoptimization for scalar replaced objects
kvn
parents:
0
diff
changeset
|
115 // Objects values are pushed to 'result' array during read so that |
52fed2ec0afb
6667620: (Escape Analysis) fix deoptimization for scalar replaced objects
kvn
parents:
0
diff
changeset
|
116 // object's fields could reference it (OBJECT_ID_CODE). |
52fed2ec0afb
6667620: (Escape Analysis) fix deoptimization for scalar replaced objects
kvn
parents:
0
diff
changeset
|
117 (void)ScopeValue::read_from(stream); |
0 | 118 } |
119 assert(result->length() == length, "inconsistent debug information"); | |
120 return result; | |
121 } | |
122 | |
123 | |
124 GrowableArray<MonitorValue*>* ScopeDesc::decode_monitor_values(int decode_offset) { | |
125 if (decode_offset == DebugInformationRecorder::serialized_null) return NULL; | |
126 DebugInfoReadStream* stream = stream_at(decode_offset); | |
127 int length = stream->read_int(); | |
128 GrowableArray<MonitorValue*>* result = new GrowableArray<MonitorValue*> (length); | |
129 for (int index = 0; index < length; index++) { | |
130 result->push(new MonitorValue(stream)); | |
131 } | |
132 return result; | |
133 } | |
134 | |
7046
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
135 #ifdef GRAAL |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
136 |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
137 GrowableArray<DeferredWriteValue*>* ScopeDesc::decode_deferred_writes(int decode_offset) { |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
138 if (decode_offset == DebugInformationRecorder::serialized_null) return NULL; |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
139 DebugInfoReadStream* stream = stream_at(decode_offset); |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
140 int length = stream->read_int(); |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
141 GrowableArray<DeferredWriteValue*>* result = new GrowableArray<DeferredWriteValue*> (length); |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
142 for (int index = 0; index < length; index++) { |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
143 result->push(new DeferredWriteValue(stream)); |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
144 } |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
145 return result; |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
146 } |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
147 |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
148 GrowableArray<DeferredWriteValue*>* ScopeDesc::deferred_writes() { |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
149 return decode_deferred_writes(_deferred_writes_decode_offset); |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
150 } |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
151 |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
152 #endif // GRAAL |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
153 |
0 | 154 DebugInfoReadStream* ScopeDesc::stream_at(int decode_offset) const { |
155 return new DebugInfoReadStream(_code, decode_offset, _objects); | |
156 } | |
157 | |
158 GrowableArray<ScopeValue*>* ScopeDesc::locals() { | |
159 return decode_scope_values(_locals_decode_offset); | |
160 } | |
161 | |
162 GrowableArray<ScopeValue*>* ScopeDesc::expressions() { | |
163 return decode_scope_values(_expressions_decode_offset); | |
164 } | |
165 | |
166 GrowableArray<MonitorValue*>* ScopeDesc::monitors() { | |
167 return decode_monitor_values(_monitors_decode_offset); | |
168 } | |
169 | |
170 GrowableArray<ScopeValue*>* ScopeDesc::objects() { | |
171 return _objects; | |
172 } | |
173 | |
174 bool ScopeDesc::is_top() const { | |
175 return _sender_decode_offset == DebugInformationRecorder::serialized_null; | |
176 } | |
177 | |
178 ScopeDesc* ScopeDesc::sender() const { | |
179 if (is_top()) return NULL; | |
180 return new ScopeDesc(this); | |
181 } | |
182 | |
183 | |
184 #ifndef PRODUCT | |
185 | |
186 void ScopeDesc::print_value_on(outputStream* st) const { | |
187 tty->print(" "); | |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
1972
diff
changeset
|
188 method()->print_short_name(st); |
0 | 189 int lineno = method()->line_number_from_bci(bci()); |
190 if (lineno != -1) { | |
191 st->print_cr("@%d (line %d)", bci(), lineno); | |
192 } else { | |
193 st->print_cr("@%d", bci()); | |
194 } | |
195 } | |
196 | |
197 void ScopeDesc::print_on(outputStream* st) const { | |
198 print_on(st, NULL); | |
199 } | |
200 | |
201 void ScopeDesc::print_on(outputStream* st, PcDesc* pd) const { | |
202 // header | |
203 if (pd != NULL) { | |
204 tty->print_cr("ScopeDesc(pc=" PTR_FORMAT " offset=%x):", pd->real_pc(_code), pd->pc_offset()); | |
205 } | |
206 | |
207 print_value_on(st); | |
208 // decode offsets | |
209 if (WizardMode) { | |
1748 | 210 st->print("ScopeDesc[%d]@" PTR_FORMAT " ", _decode_offset, _code->content_begin()); |
0 | 211 st->print_cr(" offset: %d", _decode_offset); |
212 st->print_cr(" bci: %d", bci()); | |
900
9987d9d5eb0e
6833129: specjvm98 fails with NullPointerException in the compiler with -XX:DeoptimizeALot
cfang
parents:
196
diff
changeset
|
213 st->print_cr(" reexecute: %s", should_reexecute() ? "true" : "false"); |
0 | 214 st->print_cr(" locals: %d", _locals_decode_offset); |
215 st->print_cr(" stack: %d", _expressions_decode_offset); | |
216 st->print_cr(" monitor: %d", _monitors_decode_offset); | |
217 st->print_cr(" sender: %d", _sender_decode_offset); | |
218 } | |
219 // locals | |
220 { GrowableArray<ScopeValue*>* l = ((ScopeDesc*) this)->locals(); | |
221 if (l != NULL) { | |
222 tty->print_cr(" Locals"); | |
223 for (int index = 0; index < l->length(); index++) { | |
224 st->print(" - l%d: ", index); | |
225 l->at(index)->print_on(st); | |
226 st->cr(); | |
227 } | |
228 } | |
229 } | |
230 // expressions | |
231 { GrowableArray<ScopeValue*>* l = ((ScopeDesc*) this)->expressions(); | |
232 if (l != NULL) { | |
233 st->print_cr(" Expression stack"); | |
234 for (int index = 0; index < l->length(); index++) { | |
235 st->print(" - @%d: ", index); | |
236 l->at(index)->print_on(st); | |
237 st->cr(); | |
238 } | |
239 } | |
240 } | |
241 // monitors | |
242 { GrowableArray<MonitorValue*>* l = ((ScopeDesc*) this)->monitors(); | |
243 if (l != NULL) { | |
244 st->print_cr(" Monitor stack"); | |
245 for (int index = 0; index < l->length(); index++) { | |
246 st->print(" - @%d: ", index); | |
247 l->at(index)->print_on(st); | |
248 st->cr(); | |
249 } | |
250 } | |
251 } | |
252 | |
7046
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
253 #if defined(COMPILER2) || defined(GRAAL) |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
254 if (NOT_GRAAL(DoEscapeAnalysis &&) is_top() && _objects != NULL) { |
0 | 255 tty->print_cr("Objects"); |
256 for (int i = 0; i < _objects->length(); i++) { | |
257 ObjectValue* sv = (ObjectValue*) _objects->at(i); | |
258 tty->print(" - %d: ", sv->id()); | |
259 sv->print_fields_on(tty); | |
260 tty->cr(); | |
261 } | |
262 } | |
7046
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
263 #endif // COMPILER2 || GRAAL |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
264 #ifdef GRAAL |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
265 // deferred writes |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
266 { GrowableArray<DeferredWriteValue*>* l = ((ScopeDesc*) this)->deferred_writes(); |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
267 if (l != NULL) { |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
268 st->print_cr(" Deferred writes"); |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
269 for (int index = 0; index < l->length(); index++) { |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
270 st->print(" - @%d: ", index); |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
271 l->at(index)->print_on(st); |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
272 st->cr(); |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
273 } |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
274 } |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
275 } |
b6a8f2d23057
VM support for deferred reads and writes: ScopeDesc, DebugInfo, DebugInfoRecorder
Lukas Stadler <lukas.stadler@jku.at>
parents:
6948
diff
changeset
|
276 #endif |
0 | 277 } |
278 | |
279 #endif | |
280 | |
281 void ScopeDesc::verify() { | |
282 ResourceMark rm; | |
283 guarantee(method()->is_method(), "type check"); | |
284 | |
285 // check if we have any illegal elements on the expression stack | |
286 { GrowableArray<ScopeValue*>* l = expressions(); | |
287 if (l != NULL) { | |
288 for (int index = 0; index < l->length(); index++) { | |
289 //guarantee(!l->at(index)->is_illegal(), "expression element cannot be illegal"); | |
290 } | |
291 } | |
292 } | |
293 } |