10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
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
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/vmSymbols.hpp"
27 #include "compiler/compilerDirectives.hpp"
28 #include "memory/oopFactory.hpp"
29 #include "oops/oop.inline.hpp"
30 #include "runtime/handles.inline.hpp"
31 #include "utilities/xmlstream.hpp"
32
33
34 Symbol* vmSymbols::_symbols[vmSymbols::SID_LIMIT];
35
36 Symbol* vmSymbols::_type_signatures[T_VOID+1] = { NULL /*, NULL...*/ };
37
38 inline int compare_symbol(const Symbol* a, const Symbol* b) {
39 if (a == b) return 0;
40 // follow the natural address order:
41 return (address)a > (address)b ? +1 : -1;
42 }
43
44 static vmSymbols::SID vm_symbol_index[vmSymbols::SID_LIMIT];
45 extern "C" {
46 static int compare_vmsymbol_sid(const void* void_a, const void* void_b) {
47 const Symbol* a = vmSymbols::symbol_at(*((vmSymbols::SID*) void_a));
48 const Symbol* b = vmSymbols::symbol_at(*((vmSymbols::SID*) void_b));
49 return compare_symbol(a, b);
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
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
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/vmSymbols.hpp"
27 #include "compiler/compilerDirectives.hpp"
28 #include "memory/oopFactory.hpp"
29 #include "oops/oop.inline.hpp"
30 #include "prims/jvm.h"
31 #include "runtime/handles.inline.hpp"
32 #include "utilities/xmlstream.hpp"
33
34
35 Symbol* vmSymbols::_symbols[vmSymbols::SID_LIMIT];
36
37 Symbol* vmSymbols::_type_signatures[T_VOID+1] = { NULL /*, NULL...*/ };
38
39 inline int compare_symbol(const Symbol* a, const Symbol* b) {
40 if (a == b) return 0;
41 // follow the natural address order:
42 return (address)a > (address)b ? +1 : -1;
43 }
44
45 static vmSymbols::SID vm_symbol_index[vmSymbols::SID_LIMIT];
46 extern "C" {
47 static int compare_vmsymbol_sid(const void* void_a, const void* void_b) {
48 const Symbol* a = vmSymbols::symbol_at(*((vmSymbols::SID*) void_a));
49 const Symbol* b = vmSymbols::symbol_at(*((vmSymbols::SID*) void_b));
50 return compare_symbol(a, b);
|