Mercurial > hg > truffle
comparison src/share/vm/adlc/adlc.hpp @ 1972:f95d63e2154a
6989984: Use standard include model for Hospot
Summary: Replaced MakeDeps and the includeDB files with more standardized solutions.
Reviewed-by: coleenp, kvn, kamg
author | stefank |
---|---|
date | Tue, 23 Nov 2010 13:22:55 -0800 |
parents | c18cbe5936b8 |
children | 15d6977f04b0 |
comparison
equal
deleted
inserted
replaced
1971:e33f46fc48ed | 1972:f95d63e2154a |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1998, 2009, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1998, 2010, 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. |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
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 | |
25 #ifndef SHARE_VM_ADLC_ADLC_HPP | |
26 #define SHARE_VM_ADLC_ADLC_HPP | |
24 | 27 |
25 // | 28 // |
26 // Standard include file for ADLC parser | 29 // Standard include file for ADLC parser |
27 // | 30 // |
28 | 31 |
75 | 78 |
76 // Macros | 79 // Macros |
77 #define uint32 unsigned int | 80 #define uint32 unsigned int |
78 #define uint unsigned int | 81 #define uint unsigned int |
79 | 82 |
83 // VM components | |
84 #include "opto/opcodes.hpp" | |
85 | |
80 // Macros | 86 // Macros |
81 // Debugging note: Put a breakpoint on "abort". | 87 // Debugging note: Put a breakpoint on "abort". |
82 #undef assert | 88 #undef assert |
83 #define assert(cond, msg) { if (!(cond)) { fprintf(stderr, "assert fails %s %d: %s\n", __FILE__, __LINE__, msg); abort(); }} | 89 #define assert(cond, msg) { if (!(cond)) { fprintf(stderr, "assert fails %s %d: %s\n", __FILE__, __LINE__, msg); abort(); }} |
90 #undef max | |
84 #define max(a, b) (((a)>(b)) ? (a) : (b)) | 91 #define max(a, b) (((a)>(b)) ? (a) : (b)) |
85 | |
86 // VM components | |
87 #include "opcodes.hpp" | |
88 | 92 |
89 // ADLC components | 93 // ADLC components |
90 #include "arena.hpp" | 94 #include "arena.hpp" |
91 #include "adlcVMDeps.hpp" | 95 #include "opto/adlcVMDeps.hpp" |
92 #include "filebuff.hpp" | 96 #include "filebuff.hpp" |
93 #include "dict2.hpp" | 97 #include "dict2.hpp" |
94 #include "forms.hpp" | 98 #include "forms.hpp" |
95 #include "formsopt.hpp" | 99 #include "formsopt.hpp" |
96 #include "formssel.hpp" | 100 #include "formssel.hpp" |
99 | 103 |
100 // globally define ArchDesc for convenience. Alternatively every form | 104 // globally define ArchDesc for convenience. Alternatively every form |
101 // could have a backpointer to the AD but it's too complicated to pass | 105 // could have a backpointer to the AD but it's too complicated to pass |
102 // it everywhere it needs to be available. | 106 // it everywhere it needs to be available. |
103 extern ArchDesc* globalAD; | 107 extern ArchDesc* globalAD; |
108 | |
109 #endif // SHARE_VM_ADLC_ADLC_HPP |