/*
* 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.
*
*/
#ifndef SHARE_VM_SHARK_SHARKFUNCTION_HPP
#define SHARE_VM_SHARK_SHARKFUNCTION_HPP
#include "ci/ciStreams.hpp"
#include "ci/ciTypeFlow.hpp"
#include "memory/allocation.hpp"
#include "shark/llvmHeaders.hpp"
#include "shark/llvmValue.hpp"
#include "shark/sharkBuilder.hpp"
#include "shark/sharkContext.hpp"
#include "shark/sharkInvariants.hpp"
#include "shark/sharkStack.hpp"
class SharkTopLevelBlock;
class DeferredZeroCheck;
friend class SharkStackWithNormalFrame;
public:
const char* name) {
}
private:
const char* name)
private:
void initialize(const char* name);
private:
public:
return _function;
}
int block_count() const {
return flow()->block_count();
}
return _blocks[i];
}
return &_deferred_zero_checks;
}
SharkStack* stack() const {
return _stack;
}
// On-stack replacement
private:
bool is_osr() const {
return flow()->is_osr_flow();
}
if (is_osr())
return SharkType::osr_entry_point_type();
else
return SharkType::entry_point_type();
}
// Block management
private:
}
return _block_insertion_point;
}
public:
}
// Deferred zero checks
public:
SharkValue* value);
private:
void do_deferred_zero_checks();
};
#endif // SHARE_VM_SHARK_SHARKFUNCTION_HPP