hotspot/src/share/vm/ci/ciMethod.cpp
changeset 14621 fd9265ab0f67
parent 14478 1c4a20806af7
child 15471 41f75023e6a6
--- a/hotspot/src/share/vm/ci/ciMethod.cpp	Wed Nov 21 05:57:12 2012 -0800
+++ b/hotspot/src/share/vm/ci/ciMethod.cpp	Mon Nov 26 17:25:11 2012 -0800
@@ -742,6 +742,24 @@
 }
 
 // ------------------------------------------------------------------
+// ciMethod::get_field_at_bci
+ciField* ciMethod::get_field_at_bci(int bci, bool &will_link) {
+  ciBytecodeStream iter(this);
+  iter.reset_to_bci(bci);
+  iter.next();
+  return iter.get_field(will_link);
+}
+
+// ------------------------------------------------------------------
+// ciMethod::get_method_at_bci
+ciMethod* ciMethod::get_method_at_bci(int bci, bool &will_link, ciSignature* *declared_signature) {
+  ciBytecodeStream iter(this);
+  iter.reset_to_bci(bci);
+  iter.next();
+  return iter.get_method(will_link, declared_signature);
+}
+
+// ------------------------------------------------------------------
 // Adjust a CounterData count to be commensurate with
 // interpreter_invocation_count.  If the MDO exists for
 // only 25% of the time the method exists, then the