hotspot/src/share/vm/ci/ciMethod.cpp
changeset 29582 9a0bb63adf5a
parent 28912 27fac2f8fdbe
child 30223 82ab7b6b4927
--- a/hotspot/src/share/vm/ci/ciMethod.cpp	Thu Mar 12 15:51:12 2015 -0700
+++ b/hotspot/src/share/vm/ci/ciMethod.cpp	Fri Mar 13 21:53:13 2015 +0300
@@ -48,6 +48,7 @@
 #include "runtime/deoptimization.hpp"
 #include "utilities/bitMap.inline.hpp"
 #include "utilities/xmlstream.hpp"
+#include "trace/tracing.hpp"
 #ifdef COMPILER2
 #include "ci/bcEscapeAnalyzer.hpp"
 #include "ci/ciTypeFlow.hpp"
@@ -1466,3 +1467,13 @@
     st->print(" loaded=false");
   }
 }
+
+#if INCLUDE_TRACE
+TraceStructCiMethod ciMethod::to_trace_struct() const {
+  TraceStructCiMethod result;
+  result.set_class(holder()->name()->as_utf8());
+  result.set_name(name()->as_utf8());
+  result.set_signature(signature()->as_symbol()->as_utf8());
+  return result;
+}
+#endif