equal
deleted
inserted
replaced
25 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
26 #include "jvm.h" |
26 #include "jvm.h" |
27 #include "interpreter/bytecodeStream.hpp" |
27 #include "interpreter/bytecodeStream.hpp" |
28 #include "logging/log.hpp" |
28 #include "logging/log.hpp" |
29 #include "logging/logStream.hpp" |
29 #include "logging/logStream.hpp" |
|
30 #include "memory/allocation.inline.hpp" |
30 #include "oops/generateOopMap.hpp" |
31 #include "oops/generateOopMap.hpp" |
31 #include "oops/oop.inline.hpp" |
32 #include "oops/oop.inline.hpp" |
32 #include "oops/symbol.hpp" |
33 #include "oops/symbol.hpp" |
33 #include "runtime/handles.inline.hpp" |
34 #include "runtime/handles.inline.hpp" |
34 #include "runtime/java.hpp" |
35 #include "runtime/java.hpp" |
214 // Contains function to itereate through all bytecodes |
215 // Contains function to itereate through all bytecodes |
215 // and find all return entry points |
216 // and find all return entry points |
216 // |
217 // |
217 int RetTable::_init_nof_entries = 10; |
218 int RetTable::_init_nof_entries = 10; |
218 int RetTableEntry::_init_nof_jsrs = 5; |
219 int RetTableEntry::_init_nof_jsrs = 5; |
|
220 |
|
221 RetTableEntry::RetTableEntry(int target, RetTableEntry *next) { |
|
222 _target_bci = target; |
|
223 _jsrs = new GrowableArray<intptr_t>(_init_nof_jsrs); |
|
224 _next = next; |
|
225 } |
219 |
226 |
220 void RetTableEntry::add_delta(int bci, int delta) { |
227 void RetTableEntry::add_delta(int bci, int delta) { |
221 if (_target_bci > bci) _target_bci += delta; |
228 if (_target_bci > bci) _target_bci += delta; |
222 |
229 |
223 for (int k = 0; k < _jsrs->length(); k++) { |
230 for (int k = 0; k < _jsrs->length(); k++) { |