Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/share/vm/opto/c2compiler.hpp
32285 views
/*1* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*22*/2324#ifndef SHARE_VM_OPTO_C2COMPILER_HPP25#define SHARE_VM_OPTO_C2COMPILER_HPP2627#include "compiler/abstractCompiler.hpp"2829class C2Compiler : public AbstractCompiler {30private:31static bool init_c2_runtime();3233public:34// Name35const char *name() { return "C2"; }3637#ifdef TIERED38virtual bool is_c2() { return true; };39#endif // TIERED4041void initialize();4243// Compilation entry point for methods44void compile_method(ciEnv* env,45ciMethod* target,46int entry_bci);4748// sentinel value used to trigger backtracking in compile_method().49static const char* retry_no_subsuming_loads();50static const char* retry_no_escape_analysis();51static const char* retry_class_loading_during_parsing();5253// Print compilation timers and statistics54void print_timers();55};5657#endif // SHARE_VM_OPTO_C2COMPILER_HPP585960