Mercurial > hg > truffle
comparison src/share/vm/graal/graalCompiler.hpp @ 3577:96c40b338c1a
Added new method that loads and initializes a class that is referenced by a cp entry.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 13 Sep 2011 19:59:10 +0200 |
parents | b3f0f8a01ca2 |
children | 5e9645341ec3 |
comparison
equal
deleted
inserted
replaced
3576:c94966c5fb41 | 3577:96c40b338c1a |
---|---|
67 void exit(); | 67 void exit(); |
68 | 68 |
69 static BasicType kindToBasicType(jchar ch); | 69 static BasicType kindToBasicType(jchar ch); |
70 | 70 |
71 static int to_cp_index_u2(int index) { | 71 static int to_cp_index_u2(int index) { |
72 // Tag. | |
73 return to_index_u2(index) + constantPoolOopDesc::CPCACHE_INDEX_TAG; | |
74 } | |
75 | |
76 static int to_index_u2(int index) { | |
72 // Swap. | 77 // Swap. |
73 index = ((index & 0xFF) << 8) | (index >> 8); | 78 return ((index & 0xFF) << 8) | (index >> 8); |
74 // Tag. | |
75 index = index + constantPoolOopDesc::CPCACHE_INDEX_TAG; | |
76 return index; | |
77 } | 79 } |
78 | 80 |
79 static void initialize_buffer_blob(); | 81 static void initialize_buffer_blob(); |
80 }; | 82 }; |
81 | 83 |