Mercurial > hg > truffle
comparison src/share/vm/trace/traceTypes.xsl @ 20653:82d3e7b5277a
8065361: Fixup headers and definitions for INCLUDE_TRACE
Reviewed-by: sla, stefank
author | mgronlun |
---|---|
date | Wed, 19 Nov 2014 18:14:01 +0100 |
parents | 86e6d691f2e1 |
children |
comparison
equal
deleted
inserted
replaced
20652:e8bf410d5e23 | 20653:82d3e7b5277a |
---|---|
27 <xsl:output method="text" indent="no" omit-xml-declaration="yes"/> | 27 <xsl:output method="text" indent="no" omit-xml-declaration="yes"/> |
28 | 28 |
29 <xsl:template match="/"> | 29 <xsl:template match="/"> |
30 <xsl:call-template name="file-header"/> | 30 <xsl:call-template name="file-header"/> |
31 | 31 |
32 #ifndef TRACEFILES_JFRTYPES_HPP | 32 #ifndef TRACEFILES_TRACETYPES_HPP |
33 #define TRACEFILES_JFRTYPES_HPP | 33 #define TRACEFILES_TRACETYPES_HPP |
34 | 34 |
35 #include "oops/symbol.hpp" | 35 #include "oops/symbol.hpp" |
36 #include "trace/traceDataTypes.hpp" | 36 #include "trace/traceDataTypes.hpp" |
37 #include "utilities/globalDefinitions.hpp" | 37 #include "utilities/globalDefinitions.hpp" |
38 #include "utilities/ticks.hpp" | 38 #include "utilities/ticks.hpp" |
39 | |
40 | 39 |
41 enum JVMContentType { | 40 enum JVMContentType { |
42 _not_a_content_type = (JVM_CONTENT_TYPES_START - 1), | 41 _not_a_content_type = (JVM_CONTENT_TYPES_START - 1), |
43 | 42 |
44 <xsl:for-each select="trace/types/content_types/content_type[@jvm_type]"> | 43 <xsl:for-each select="trace/types/content_types/content_type[@jvm_type]"> |
56 </xsl:for-each> | 55 </xsl:for-each> |
57 NUM_EVENT_RELATIONS | 56 NUM_EVENT_RELATIONS |
58 }; | 57 }; |
59 | 58 |
60 /** | 59 /** |
61 * Create typedefs for the JRA types: | 60 * Create typedefs for the TRACE types: |
62 * typedef s8 TYPE_LONG; | 61 * typedef s8 TYPE_LONG; |
63 * typedef s4 TYPE_INTEGER; | 62 * typedef s4 TYPE_INTEGER; |
64 * typedef const char * TYPE_STRING; | 63 * typedef const char * TYPE_STRING; |
65 * ... | 64 * ... |
66 */ | 65 */ |
67 <xsl:for-each select="trace/types/primary_types/primary_type"> | 66 <xsl:for-each select="trace/types/primary_types/primary_type"> |
68 typedef <xsl:value-of select="@type"/> TYPE_<xsl:value-of select="@symbol"/>; | 67 typedef <xsl:value-of select="@type"/> TYPE_<xsl:value-of select="@symbol"/>; |
69 </xsl:for-each> | 68 </xsl:for-each> |
70 | 69 |
71 #endif // JFRFILES_JFRTYPES_HPP | 70 #endif // TRACEFILES_TRACETYPES_HPP |
72 </xsl:template> | 71 </xsl:template> |
73 | 72 |
74 </xsl:stylesheet> | 73 </xsl:stylesheet> |