src/share/vm/shark/sharkStack.cpp
Print this page
rev 3850 : [mq]: shark.patch
@@ -73,11 +73,11 @@
// Method pointer
_method_slot_offset = offset++;
if (setup_sp_and_method) {
builder()->CreateStore(
- method, slot_addr(method_slot_offset(), SharkType::Method*_type()));
+ method, slot_addr(method_slot_offset(), SharkType::Method_type()));
}
// Unextended SP
builder()->CreateStore(stack_pointer, slot_addr(offset++));
@@ -161,11 +161,11 @@
return sp;
}
Value* SharkStack::slot_addr(int offset,
- const Type* type,
+ Type* type,
const char* name) const {
bool needs_cast = type && type != SharkType::intptr_type();
Value* result = builder()->CreateStructGEP(
_frame, offset, needs_cast ? "" : name);