equal
deleted
inserted
replaced
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, 2010 Red Hat, Inc. |
3 * Copyright 2009, 2010 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_SHARKCONTEXT_HPP |
|
27 #define SHARE_VM_SHARK_SHARKCONTEXT_HPP |
|
28 |
|
29 #include "shark/llvmHeaders.hpp" |
|
30 #include "shark/sharkCompiler.hpp" |
25 |
31 |
26 // The LLVMContext class allows multiple instances of LLVM to operate |
32 // The LLVMContext class allows multiple instances of LLVM to operate |
27 // independently of each other in a multithreaded context. We extend |
33 // independently of each other in a multithreaded context. We extend |
28 // this here to store things in Shark that are LLVMContext-specific. |
34 // this here to store things in Shark that are LLVMContext-specific. |
29 |
35 |
183 |
189 |
184 public: |
190 public: |
185 void push_to_free_queue(llvm::Function* function); |
191 void push_to_free_queue(llvm::Function* function); |
186 llvm::Function* pop_from_free_queue(); |
192 llvm::Function* pop_from_free_queue(); |
187 }; |
193 }; |
|
194 |
|
195 #endif // SHARE_VM_SHARK_SHARKCONTEXT_HPP |