File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ const char *IdealGraphPrinter::NODE_ELEMENT = "node";
4848const char *IdealGraphPrinter::NODES_ELEMENT = " nodes" ;
4949const char *IdealGraphPrinter::REMOVE_EDGE_ELEMENT = " removeEdge" ;
5050const char *IdealGraphPrinter::REMOVE_NODE_ELEMENT = " removeNode" ;
51+ const char *IdealGraphPrinter::COMPILATION_ID_PROPERTY = " compilationId" ;
52+ const char *IdealGraphPrinter::COMPILATION_OSR_PROPERTY = " osr" ;
5153const char *IdealGraphPrinter::METHOD_NAME_PROPERTY = " name" ;
5254const char *IdealGraphPrinter::METHOD_IS_PUBLIC_PROPERTY = " public" ;
5355const char *IdealGraphPrinter::METHOD_IS_STATIC_PROPERTY = " static" ;
@@ -313,6 +315,12 @@ void IdealGraphPrinter::begin_method() {
313315 print_prop (METHOD_IS_STATIC_PROPERTY, TRUE_VALUE);
314316 }
315317
318+ if (C->is_osr_compilation ()) {
319+ print_prop (COMPILATION_OSR_PROPERTY, TRUE_VALUE);
320+ }
321+
322+ print_prop (COMPILATION_ID_PROPERTY, C->compile_id ());
323+
316324 tail (PROPERTIES_ELEMENT);
317325
318326 _should_send_method = true ;
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ class IdealGraphPrinter : public CHeapObj<mtCompiler> {
5757 static const char *CONTROL_FLOW_ELEMENT;
5858 static const char *REMOVE_EDGE_ELEMENT;
5959 static const char *REMOVE_NODE_ELEMENT;
60+ static const char *COMPILATION_ID_PROPERTY;
61+ static const char *COMPILATION_OSR_PROPERTY;
6062 static const char *METHOD_NAME_PROPERTY;
6163 static const char *BLOCK_NAME_PROPERTY;
6264 static const char *BLOCK_DOMINATOR_PROPERTY;
You can’t perform that action at this time.
0 commit comments