/*
* Copyright 2008, 2009 Red Hat, Inc.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include "precompiled.hpp"
#include "ci/ciMethod.hpp"
#include "code/debugInfoRec.hpp"
#include "shark/llvmValue.hpp"
#include "shark/sharkBuilder.hpp"
#include "shark/sharkCacheDecache.hpp"
#include "shark/sharkFunction.hpp"
#include "shark/sharkState.hpp"
using namespace llvm;
// Start recording the debug information
}
// Create the array we'll record our stack slots in
// Set the stack pointer
SharkType::intptr_type()));
}
SharkValue** addr,
int offset) {
// Write the value to the frame if necessary
value->generic_value(),
}
// Record the value in the oopmap if necessary
}
// Record the value in the debuginfo if necessary
}
}
// Create the array we'll record our monitors in
}
}
// Decache the temporary oop slot
if (*value) {
*value,
offset);
}
}
// Decache the method pointer
*value,
offset);
}
// Record the PC
builder()->CreateStore(
}
// Create the array we'll record our local variables in
SharkValue** addr,
int offset) {
// Write the value to the frame if necessary
value->generic_value(),
}
// Record the value in the oopmap if necessary
}
// Record the value in the debuginfo if necessary
}
}
// Record the scope
pc_offset(),
target(),
bci(),
true,
false,
false,
// Finish recording the debug information
}
SharkValue** addr,
int offset) {
// Read the value from the frame if necessary
value->zero_checked());
}
}
int box_offset,
int obj_offset) {
// Copy the monitor from the OSR buffer to the frame
builder()->CreateStore(
builder()->CreateLoad(
builder()->CreateStore(
builder()->CreateLoad(
}
// Cache the temporary oop
if (*value)
}
// Cache the method pointer
}
// "Cache" the method pointer
}
SharkValue** addr,
int offset) {
// Read the value from the frame if necessary
value->zero_checked());
}
}
return result;
}
SharkValue** addr,
int offset) {
// Read the value from the OSR buffer if necessary
builder()->CreateLoad(
value->zero_checked());
}
}
int offset) {
}
}