diff src/share/vm/c1x/c1x_Compiler.hpp @ 1931:48bbaead8b6c

Adjustments after merge with OpenJDK repository.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Tue, 30 Nov 2010 16:39:35 +0100
parents 944071972cd9
children 9c96c873c42b
line wrap: on
line diff
--- a/src/share/vm/c1x/c1x_Compiler.hpp	Tue Nov 30 14:53:30 2010 +0100
+++ b/src/share/vm/c1x/c1x_Compiler.hpp	Tue Nov 30 16:39:35 2010 +0100
@@ -62,6 +62,18 @@
   static oop createHotSpotTypeResolved(KlassHandle klass, Handle name, TRAPS);
 
   static BasicType kindToBasicType(jchar ch);
+
+  static int to_cp_index_u2(int index) {
+    // Swap.
+    index = ((index & 0xFF) << 8) | (index >> 8);
+    // Tag.
+    index = index + constantPoolOopDesc::CPCACHE_INDEX_TAG;
+    return index;
+  }
+
+private:
+
+  void initialize_buffer_blob();
 };
 
 // Tracing macros