50 #ifdef _WIN32
51 #ifndef _INTPTR_T_DEFINED
52 #ifdef _WIN64
53 typedef __int64 intptr_t;
54 #else
55 typedef int intptr_t;
56 #endif
57 #define _INTPTR_T_DEFINED
58 #endif
59
60 #ifndef _UINTPTR_T_DEFINED
61 #ifdef _WIN64
62 typedef unsigned __int64 uintptr_t;
63 #else
64 typedef unsigned int uintptr_t;
65 #endif
66 #define _UINTPTR_T_DEFINED
67 #endif
68 #endif // _WIN32
69
70 #ifdef LINUX
71 #include <inttypes.h>
72 #endif // LINUX
73
74 // Macros
75 #define uint32 unsigned int
76 #define uint unsigned int
77
78 // VM components
79 #include "opto/opcodes.hpp"
80
81 // Macros
82 // Debugging note: Put a breakpoint on "abort".
83 #undef assert
84 #define assert(cond, msg) { if (!(cond)) { fprintf(stderr, "assert fails %s %d: %s\n", __FILE__, __LINE__, msg); abort(); }}
85 #undef max
86 #define max(a, b) (((a)>(b)) ? (a) : (b))
87
88 // ADLC components
89 #include "arena.hpp"
90 #include "opto/adlcVMDeps.hpp"
91 #include "filebuff.hpp"
92 #include "dict2.hpp"
|
50 #ifdef _WIN32
51 #ifndef _INTPTR_T_DEFINED
52 #ifdef _WIN64
53 typedef __int64 intptr_t;
54 #else
55 typedef int intptr_t;
56 #endif
57 #define _INTPTR_T_DEFINED
58 #endif
59
60 #ifndef _UINTPTR_T_DEFINED
61 #ifdef _WIN64
62 typedef unsigned __int64 uintptr_t;
63 #else
64 typedef unsigned int uintptr_t;
65 #endif
66 #define _UINTPTR_T_DEFINED
67 #endif
68 #endif // _WIN32
69
70 #if defined(LINUX) || defined(_ALLBSD_SOURCE)
71 #include <inttypes.h>
72 #endif // LINUX || _ALLBSD_SOURCE
73
74 // Macros
75 #define uint32 unsigned int
76 #define uint unsigned int
77
78 // VM components
79 #include "opto/opcodes.hpp"
80
81 // Macros
82 // Debugging note: Put a breakpoint on "abort".
83 #undef assert
84 #define assert(cond, msg) { if (!(cond)) { fprintf(stderr, "assert fails %s %d: %s\n", __FILE__, __LINE__, msg); abort(); }}
85 #undef max
86 #define max(a, b) (((a)>(b)) ? (a) : (b))
87
88 // ADLC components
89 #include "arena.hpp"
90 #include "opto/adlcVMDeps.hpp"
91 #include "filebuff.hpp"
92 #include "dict2.hpp"
|