view ports/hotspot/src/share/vm/shark/sharkEntry.hpp @ 1740:f51dcb5de1a9

2009-03-05 Gary Benson <gbenson@redhat.com> * ports/hotspot/src/share/vm/shark/sharkEntry.hpp (SharkEntry::_code_start): Renamed from start. (SharkEntry::_code_limit): Renamed from limit. (SharkEntry::set_bounds): Renamed from setBounds. (SharkEntry::print_pd_statistics): Removed. * ports/hotspot/src/share/vm/shark/sharkEntry.cpp (SharkEntry::print_pd_statistics): Likewise. (SharkEntry::print_statistics): Don't call the above. * ports/hotspot/src/share/vm/shark/sharkBuilder.cpp (SharkBuilder::MyJITMemoryManager::endFunctionBody): Fix for setBounds rename.
author Gary Benson <gbenson@redhat.com>
date Thu, 05 Mar 2009 09:14:30 -0500
parents 5bb8386e5bc2
children f7efa3c95c17
line wrap: on
line source

/*
 * Copyright 1999-2007 Sun Microsystems, Inc.  All Rights Reserved.
 * Copyright 2008, 2009 Red Hat, Inc.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
 * CA 95054 USA or visit www.sun.com if you need additional information or
 * have any questions.
 *
 */

class SharkEntry : public ZeroEntry {
 private:
  llvm::Function* _llvm_function;
  address         _code_start;
  address         _code_limit;

 public:
  llvm::Function* llvm_function() const
  {
    return _llvm_function;
  }
  void set_llvm_function(llvm::Function* llvm_function)
  {
    _llvm_function = llvm_function;
  }

 public:
  address code_start() const
  {
    return _code_start;
  }
  address code_limit() const
  {
    return _code_limit;
  }
  void set_bounds(address code_start, address code_limit)
  {
    _code_start = code_start;
    _code_limit = code_limit;
  }
  
 public:
  static ByteSize llvm_function_offset()
  {
    return byte_offset_of(SharkEntry, _llvm_function);
  }

 public:
  void print_statistics(const char* name) const PRODUCT_RETURN;
};