src/hotspot/share/opto/adlcVMDeps.hpp
changeset 53244 9807daeb47c4
parent 47216 71c04702a3d5
equal deleted inserted replaced
53243:8bea4144b21c 53244:9807daeb47c4
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  *
    22  *
    23  */
    23  */
    24 
    24 
    25 #ifndef SHARE_VM_OPTO_ADLCVMDEPS_HPP
    25 #ifndef SHARE_OPTO_ADLCVMDEPS_HPP
    26 #define SHARE_VM_OPTO_ADLCVMDEPS_HPP
    26 #define SHARE_OPTO_ADLCVMDEPS_HPP
       
    27 
    27 
    28 
    28 // adlcVMDeps.hpp is used by both adlc and vm builds.
    29 // adlcVMDeps.hpp is used by both adlc and vm builds.
    29 // Only include allocation.hpp when we're not building adlc.
    30 // Don't inherit from AllStatic to avoid including memory/allocation.hpp.
    30 #ifndef SHARE_VM_ADLC_ARENA_HPP
       
    31 #include "memory/allocation.hpp"
       
    32 #endif
       
    33 
    31 
    34 // Declare commonly known constant and data structures between the
    32 // Declare commonly known constant and data structures between the
    35 // ADLC and the VM
    33 // ADLC and the VM
    36 //
    34 //
    37 
    35 
    38 class AdlcVMDeps : public AllStatic {
    36 class AdlcVMDeps {   // AllStatic
    39  public:
    37  public:
    40   // Mirror of TypeFunc types
    38   // Mirror of TypeFunc types
    41   enum { Control, I_O, Memory, FramePtr, ReturnAdr, Parms };
    39   enum { Control, I_O, Memory, FramePtr, ReturnAdr, Parms };
    42 
    40 
    43   enum Cisc_Status { Not_cisc_spillable = -1 };
    41   enum Cisc_Status { Not_cisc_spillable = -1 };
    50   // relocInfo
    48   // relocInfo
    51   static const char* oop_reloc_type()  { return "relocInfo::oop_type"; }
    49   static const char* oop_reloc_type()  { return "relocInfo::oop_type"; }
    52   static const char* none_reloc_type() { return "relocInfo::none"; }
    50   static const char* none_reloc_type() { return "relocInfo::none"; }
    53 };
    51 };
    54 
    52 
    55 #endif // SHARE_VM_OPTO_ADLCVMDEPS_HPP
    53 #endif // SHARE_OPTO_ADLCVMDEPS_HPP