src/share/vm/ci/ciMethod.cpp

changeset 4313
beebba0acc11
parent 4268
bb33c6fdcf0d
child 4531
fcc9e7681d63
     1.1 --- a/src/share/vm/ci/ciMethod.cpp	Wed Nov 21 05:57:12 2012 -0800
     1.2 +++ b/src/share/vm/ci/ciMethod.cpp	Mon Nov 26 17:25:11 2012 -0800
     1.3 @@ -742,6 +742,24 @@
     1.4  }
     1.5  
     1.6  // ------------------------------------------------------------------
     1.7 +// ciMethod::get_field_at_bci
     1.8 +ciField* ciMethod::get_field_at_bci(int bci, bool &will_link) {
     1.9 +  ciBytecodeStream iter(this);
    1.10 +  iter.reset_to_bci(bci);
    1.11 +  iter.next();
    1.12 +  return iter.get_field(will_link);
    1.13 +}
    1.14 +
    1.15 +// ------------------------------------------------------------------
    1.16 +// ciMethod::get_method_at_bci
    1.17 +ciMethod* ciMethod::get_method_at_bci(int bci, bool &will_link, ciSignature* *declared_signature) {
    1.18 +  ciBytecodeStream iter(this);
    1.19 +  iter.reset_to_bci(bci);
    1.20 +  iter.next();
    1.21 +  return iter.get_method(will_link, declared_signature);
    1.22 +}
    1.23 +
    1.24 +// ------------------------------------------------------------------
    1.25  // Adjust a CounterData count to be commensurate with
    1.26  // interpreter_invocation_count.  If the MDO exists for
    1.27  // only 25% of the time the method exists, then the

mercurial