Mercurial > hg > graal-jvmci-8
comparison src/share/vm/shark/sharkType.hpp @ 7195:2cd5e15048e6
8003868: fix shark for latest HotSpot and LLVM
Reviewed-by: twisti
Contributed-by: Roman Kennke <rkennke@redhat.com>
author | twisti |
---|---|
date | Tue, 27 Nov 2012 12:48:52 -0800 |
parents | da91efe96a93 |
children |
comparison
equal
deleted
inserted
replaced
7194:beebba0acc11 | 7195:2cd5e15048e6 |
---|---|
38 return SharkContext::current(); | 38 return SharkContext::current(); |
39 } | 39 } |
40 | 40 |
41 // Basic types | 41 // Basic types |
42 public: | 42 public: |
43 static const llvm::Type* void_type() { | 43 static llvm::Type* void_type() { |
44 return context().void_type(); | 44 return context().void_type(); |
45 } | 45 } |
46 static const llvm::IntegerType* bit_type() { | 46 static llvm::IntegerType* bit_type() { |
47 return context().bit_type(); | 47 return context().bit_type(); |
48 } | 48 } |
49 static const llvm::IntegerType* jbyte_type() { | 49 static llvm::IntegerType* jbyte_type() { |
50 return context().jbyte_type(); | 50 return context().jbyte_type(); |
51 } | 51 } |
52 static const llvm::IntegerType* jshort_type() { | 52 static llvm::IntegerType* jshort_type() { |
53 return context().jshort_type(); | 53 return context().jshort_type(); |
54 } | 54 } |
55 static const llvm::IntegerType* jint_type() { | 55 static llvm::IntegerType* jint_type() { |
56 return context().jint_type(); | 56 return context().jint_type(); |
57 } | 57 } |
58 static const llvm::IntegerType* jlong_type() { | 58 static llvm::IntegerType* jlong_type() { |
59 return context().jlong_type(); | 59 return context().jlong_type(); |
60 } | 60 } |
61 static const llvm::Type* jfloat_type() { | 61 static llvm::Type* jfloat_type() { |
62 return context().jfloat_type(); | 62 return context().jfloat_type(); |
63 } | 63 } |
64 static const llvm::Type* jdouble_type() { | 64 static llvm::Type* jdouble_type() { |
65 return context().jdouble_type(); | 65 return context().jdouble_type(); |
66 } | 66 } |
67 static const llvm::IntegerType* intptr_type() { | 67 static llvm::IntegerType* intptr_type() { |
68 return context().intptr_type(); | 68 return context().intptr_type(); |
69 } | 69 } |
70 | 70 |
71 // Compound types | 71 // Compound types |
72 public: | 72 public: |
73 static const llvm::PointerType* itableOffsetEntry_type() { | 73 static llvm::PointerType* itableOffsetEntry_type() { |
74 return context().itableOffsetEntry_type(); | 74 return context().itableOffsetEntry_type(); |
75 } | 75 } |
76 static const llvm::PointerType* jniEnv_type() { | 76 static llvm::PointerType* jniEnv_type() { |
77 return context().jniEnv_type(); | 77 return context().jniEnv_type(); |
78 } | 78 } |
79 static const llvm::PointerType* jniHandleBlock_type() { | 79 static llvm::PointerType* jniHandleBlock_type() { |
80 return context().jniHandleBlock_type(); | 80 return context().jniHandleBlock_type(); |
81 } | 81 } |
82 static const llvm::PointerType* klass_type() { | 82 static llvm::PointerType* Metadata_type() { |
83 return context().Metadata_type(); | |
84 } | |
85 static llvm::PointerType* klass_type() { | |
83 return context().klass_type(); | 86 return context().klass_type(); |
84 } | 87 } |
85 static const llvm::PointerType* Method*_type() { | 88 static llvm::PointerType* Method_type() { |
86 return context().Method*_type(); | 89 return context().Method_type(); |
87 } | 90 } |
88 static const llvm::ArrayType* monitor_type() { | 91 static llvm::ArrayType* monitor_type() { |
89 return context().monitor_type(); | 92 return context().monitor_type(); |
90 } | 93 } |
91 static const llvm::PointerType* oop_type() { | 94 static llvm::PointerType* oop_type() { |
92 return context().oop_type(); | 95 return context().oop_type(); |
93 } | 96 } |
94 static const llvm::PointerType* thread_type() { | 97 static llvm::PointerType* thread_type() { |
95 return context().thread_type(); | 98 return context().thread_type(); |
96 } | 99 } |
97 static const llvm::PointerType* zeroStack_type() { | 100 static llvm::PointerType* zeroStack_type() { |
98 return context().zeroStack_type(); | 101 return context().zeroStack_type(); |
99 } | 102 } |
100 static const llvm::FunctionType* entry_point_type() { | 103 static llvm::FunctionType* entry_point_type() { |
101 return context().entry_point_type(); | 104 return context().entry_point_type(); |
102 } | 105 } |
103 static const llvm::FunctionType* osr_entry_point_type() { | 106 static llvm::FunctionType* osr_entry_point_type() { |
104 return context().osr_entry_point_type(); | 107 return context().osr_entry_point_type(); |
105 } | 108 } |
106 | 109 |
107 // Mappings | 110 // Mappings |
108 public: | 111 public: |
109 static const llvm::Type* to_stackType(BasicType type) { | 112 static llvm::Type* to_stackType(BasicType type) { |
110 return context().to_stackType(type); | 113 return context().to_stackType(type); |
111 } | 114 } |
112 static const llvm::Type* to_stackType(ciType* type) { | 115 static llvm::Type* to_stackType(ciType* type) { |
113 return to_stackType(type->basic_type()); | 116 return to_stackType(type->basic_type()); |
114 } | 117 } |
115 static const llvm::Type* to_arrayType(BasicType type) { | 118 static llvm::Type* to_arrayType(BasicType type) { |
116 return context().to_arrayType(type); | 119 return context().to_arrayType(type); |
117 } | 120 } |
118 static const llvm::Type* to_arrayType(ciType* type) { | 121 static llvm::Type* to_arrayType(ciType* type) { |
119 return to_arrayType(type->basic_type()); | 122 return to_arrayType(type->basic_type()); |
120 } | 123 } |
121 }; | 124 }; |
122 | 125 |
123 #endif // SHARE_VM_SHARK_SHARKTYPE_HPP | 126 #endif // SHARE_VM_SHARK_SHARKTYPE_HPP |