equal
deleted
inserted
replaced
86 #else // !_LP64 |
86 #else // !_LP64 |
87 #define INTPTR_FORMAT "0x%08" PRIxPTR |
87 #define INTPTR_FORMAT "0x%08" PRIxPTR |
88 #define PTR_FORMAT "0x%08" PRIxPTR |
88 #define PTR_FORMAT "0x%08" PRIxPTR |
89 #endif // _LP64 |
89 #endif // _LP64 |
90 |
90 |
|
91 // Format pointers without leading zeros |
|
92 #define INTPTRNZ_FORMAT "0x%" PRIxPTR |
|
93 |
91 #define INTPTR_FORMAT_W(width) "%" #width PRIxPTR |
94 #define INTPTR_FORMAT_W(width) "%" #width PRIxPTR |
92 |
95 |
93 #define SSIZE_FORMAT "%" PRIdPTR |
96 #define SSIZE_FORMAT "%" PRIdPTR |
94 #define SIZE_FORMAT "%" PRIuPTR |
97 #define SIZE_FORMAT "%" PRIuPTR |
95 #define SIZE_FORMAT_HEX "0x%" PRIxPTR |
98 #define SIZE_FORMAT_HEX "0x%" PRIxPTR |
779 case T_FLOAT : return ftos; |
782 case T_FLOAT : return ftos; |
780 case T_DOUBLE : return dtos; |
783 case T_DOUBLE : return dtos; |
781 case T_VOID : return vtos; |
784 case T_VOID : return vtos; |
782 case T_ARRAY : // fall through |
785 case T_ARRAY : // fall through |
783 case T_OBJECT : return atos; |
786 case T_OBJECT : return atos; |
784 } |
787 default : return ilgl; |
785 return ilgl; |
788 } |
786 } |
789 } |
787 |
790 |
788 inline BasicType as_BasicType(TosState state) { |
791 inline BasicType as_BasicType(TosState state) { |
789 switch (state) { |
792 switch (state) { |
790 case btos : return T_BYTE; |
793 case btos : return T_BYTE; |
795 case ltos : return T_LONG; |
798 case ltos : return T_LONG; |
796 case ftos : return T_FLOAT; |
799 case ftos : return T_FLOAT; |
797 case dtos : return T_DOUBLE; |
800 case dtos : return T_DOUBLE; |
798 case atos : return T_OBJECT; |
801 case atos : return T_OBJECT; |
799 case vtos : return T_VOID; |
802 case vtos : return T_VOID; |
800 } |
803 default : return T_ILLEGAL; |
801 return T_ILLEGAL; |
804 } |
802 } |
805 } |
803 |
806 |
804 |
807 |
805 // Helper function to convert BasicType info into TosState |
808 // Helper function to convert BasicType info into TosState |
806 // Note: Cannot define here as it uses global constant at the time being. |
809 // Note: Cannot define here as it uses global constant at the time being. |