Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/share/vm/shark/sharkIntrinsics.hpp
32285 views
/*1* Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.2* Copyright 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_SHARKINTRINSICS_HPP26#define SHARE_VM_SHARK_SHARKINTRINSICS_HPP2728#include "ci/ciMethod.hpp"29#include "memory/allocation.hpp"30#include "shark/llvmHeaders.hpp"31#include "shark/sharkState.hpp"3233class SharkIntrinsics : public SharkTargetInvariants {34public:35static bool is_intrinsic(ciMethod* target);36static void inline_intrinsic(ciMethod* target, SharkState* state);3738private:39SharkIntrinsics(SharkState* state, ciMethod* target)40: SharkTargetInvariants(state, target), _state(state) {}4142private:43SharkState* _state;4445private:46SharkState* state() const {47return _state;48}4950private:51void do_intrinsic();5253private:54void do_Math_minmax(llvm::ICmpInst::Predicate p);55void do_Math_1to1(llvm::Value* function);56void do_Math_2to1(llvm::Value* function);57void do_Object_getClass();58void do_System_currentTimeMillis();59void do_Thread_currentThread();60void do_Unsafe_compareAndSwapInt();61};6263#endif // SHARE_VM_SHARK_SHARKINTRINSICS_HPP646566