hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp
changeset 13728 882756847a04
parent 11430 718fc06da49a
child 14622 8e94e4186d35
--- a/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp	Fri Aug 31 16:39:35 2012 -0700
+++ b/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp	Sat Sep 01 13:25:18 2012 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
  * Copyright 2008, 2009, 2010 Red Hat, Inc.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
@@ -1103,7 +1103,7 @@
 Value *SharkTopLevelBlock::get_direct_callee(ciMethod* method) {
   return builder()->CreateBitCast(
     builder()->CreateInlineOop(method),
-    SharkType::methodOop_type(),
+    SharkType::Method*_type(),
     "callee");
 }
 
@@ -1118,9 +1118,9 @@
   return builder()->CreateLoad(
     builder()->CreateArrayAddress(
       klass,
-      SharkType::methodOop_type(),
+      SharkType::Method*_type(),
       vtableEntry::size() * wordSize,
-      in_ByteSize(instanceKlass::vtable_start_offset() * wordSize),
+      in_ByteSize(InstanceKlass::vtable_start_offset() * wordSize),
       LLVMValue::intptr_constant(vtable_index)),
     "callee");
 }
@@ -1142,12 +1142,12 @@
   Value *vtable_start = builder()->CreateAdd(
     builder()->CreatePtrToInt(object_klass, SharkType::intptr_type()),
     LLVMValue::intptr_constant(
-      instanceKlass::vtable_start_offset() * HeapWordSize),
+      InstanceKlass::vtable_start_offset() * HeapWordSize),
     "vtable_start");
 
   Value *vtable_length = builder()->CreateValueOfStructEntry(
     object_klass,
-    in_ByteSize(instanceKlass::vtable_length_offset() * HeapWordSize),
+    in_ByteSize(InstanceKlass::vtable_length_offset() * HeapWordSize),
     SharkType::jint_type(),
     "vtable_length");
   vtable_length =
@@ -1231,7 +1231,7 @@
             method->itable_index() * itableMethodEntry::size() * wordSize)),
         LLVMValue::intptr_constant(
           itableMethodEntry::method_offset_in_bytes())),
-      PointerType::getUnqual(SharkType::methodOop_type())),
+      PointerType::getUnqual(SharkType::Method*_type())),
     "callee");
 }
 
@@ -1312,7 +1312,7 @@
 
   // Load the SharkEntry from the callee
   Value *base_pc = builder()->CreateValueOfStructEntry(
-    callee, methodOopDesc::from_interpreted_offset(),
+    callee, Method::from_interpreted_offset(),
     SharkType::intptr_type(),
     "base_pc");