hotspot/src/share/vm/shark/sharkNativeWrapper.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_SHARKNATIVEWRAPPER_HPP
       
    27 #define SHARE_VM_SHARK_SHARKNATIVEWRAPPER_HPP
       
    28 
       
    29 #include "runtime/handles.hpp"
       
    30 #include "shark/llvmHeaders.hpp"
       
    31 #include "shark/sharkBuilder.hpp"
       
    32 #include "shark/sharkContext.hpp"
       
    33 #include "shark/sharkInvariants.hpp"
       
    34 #include "shark/sharkStack.hpp"
    25 
    35 
    26 class SharkNativeWrapper : public SharkCompileInvariants {
    36 class SharkNativeWrapper : public SharkCompileInvariants {
    27   friend class SharkStackWithNativeFrame;
    37   friend class SharkStackWithNativeFrame;
    28 
    38 
    29  public:
    39  public:
   178   llvm::LoadInst* CreateLoadPendingException() const {
   188   llvm::LoadInst* CreateLoadPendingException() const {
   179     return builder()->CreateLoad(
   189     return builder()->CreateLoad(
   180       pending_exception_address(), "pending_exception");
   190       pending_exception_address(), "pending_exception");
   181   }
   191   }
   182 };
   192 };
       
   193 
       
   194 #endif // SHARE_VM_SHARK_SHARKNATIVEWRAPPER_HPP