diff src/share/vm/graal/graalCompiler.hpp @ 9004:9f3a77848ea2

Merge with d2c34ddac70fe8636b79944417f44d396c0f9acf
author Michael Haupt <michael.haupt@oracle.com>
date Thu, 11 Apr 2013 11:26:38 +0200
parents 7ef66078d837
children 23762f2438b6
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompiler.hpp	Thu Apr 11 09:53:10 2013 +0200
+++ b/src/share/vm/graal/graalCompiler.hpp	Thu Apr 11 11:26:38 2013 +0200
@@ -68,7 +68,7 @@
 
   // Print compilation timers and statistics
   virtual void print_timers();
-  
+
   static Handle get_JavaTypeFromSignature(Symbol* signature, KlassHandle accessor, TRAPS);
   static Handle get_JavaType(constantPoolHandle cp, int index, KlassHandle accessor, TRAPS);
   static Handle get_JavaType(Symbol* klass_name, TRAPS);
@@ -93,6 +93,11 @@
     return ((index & 0xFF) << 8) | (index >> 8);
   }
 
+  static int to_index_u4(int index) {
+    // Swap.
+    return ((index & 0xFF) << 24) | ((index & 0xFF00) << 8) | ((index & 0xFF0000) >> 8) | ((index & 0xFF000000) >> 24);
+  }
+
   static void initialize_buffer_blob();
 };