hotspot/src/share/vm/shark/sharkConstant.hpp
changeset 7397 5b173b4ca846
parent 6187 4fa7845f7c14
equal deleted inserted replaced
7396:518b01b064ff 7397:5b173b4ca846
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2007, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
     3  * Copyright 2009 Red Hat, Inc.
     3  * Copyright 2009 Red Hat, Inc.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5  *
     5  *
     6  * This code is free software; you can redistribute it and/or modify it
     6  * This code is free software; you can redistribute it and/or modify it
     7  * under the terms of the GNU General Public License version 2 only, as
     7  * under the terms of the GNU General Public License version 2 only, as
    20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    21  * or visit www.oracle.com if you need additional information or have any
    21  * or visit www.oracle.com if you need additional information or have any
    22  * questions.
    22  * questions.
    23  *
    23  *
    24  */
    24  */
       
    25 
       
    26 #ifndef SHARE_VM_SHARK_SHARKCONSTANT_HPP
       
    27 #define SHARE_VM_SHARK_SHARKCONSTANT_HPP
       
    28 
       
    29 #include "ci/ciStreams.hpp"
       
    30 #include "memory/allocation.hpp"
       
    31 #include "shark/sharkBuilder.hpp"
       
    32 #include "shark/sharkValue.hpp"
    25 
    33 
    26 class SharkConstant : public ResourceObj {
    34 class SharkConstant : public ResourceObj {
    27  public:
    35  public:
    28   static SharkConstant* for_ldc(ciBytecodeStream* iter);
    36   static SharkConstant* for_ldc(ciBytecodeStream* iter);
    29   static SharkConstant* for_field(ciBytecodeStream* iter);
    37   static SharkConstant* for_field(ciBytecodeStream* iter);
    60         _type, builder->CreateInlineOop(_object), _is_nonzero);
    68         _type, builder->CreateInlineOop(_object), _is_nonzero);
    61     }
    69     }
    62     return _value;
    70     return _value;
    63   }
    71   }
    64 };
    72 };
       
    73 
       
    74 #endif // SHARE_VM_SHARK_SHARKCONSTANT_HPP