Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/share/vm/shark/sharkEntry.hpp
32285 views
/*1* Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.2* Copyright 2008, 2009 Red Hat, Inc.3* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.4*5* This code is free software; you can redistribute it and/or modify it6* under the terms of the GNU General Public License version 2 only, as7* published by the Free Software Foundation.8*9* This code is distributed in the hope that it will be useful, but WITHOUT10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12* version 2 for more details (a copy is included in the LICENSE file that13* accompanied this code).14*15* You should have received a copy of the GNU General Public License version16* 2 along with this work; if not, write to the Free Software Foundation,17* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.18*19* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA20* or visit www.oracle.com if you need additional information or have any21* questions.22*23*/2425#ifndef SHARE_VM_SHARK_SHARKENTRY_HPP26#define SHARE_VM_SHARK_SHARKENTRY_HPP2728#include "shark/llvmHeaders.hpp"2930class SharkContext;3132class SharkEntry : public ZeroEntry {33private:34address _code_limit;35SharkContext* _context;36llvm::Function* _function;3738public:39address code_start() const {40return entry_point();41}42address code_limit() const {43return _code_limit;44}45SharkContext* context() const {46return _context;47}48llvm::Function* function() const {49return _function;50}5152public:53void set_code_limit(address code_limit) {54_code_limit = code_limit;55}56void set_context(SharkContext* context) {57_context = context;58}59void set_function(llvm::Function* function) {60_function = function;61}62};6364#endif // SHARE_VM_SHARK_SHARKENTRY_HPP656667