equal
deleted
inserted
replaced
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 |
24 |
25 #ifndef SHARE_VM_OOPS_SYMBOL_HPP |
25 #ifndef SHARE_OOPS_SYMBOL_HPP |
26 #define SHARE_VM_OOPS_SYMBOL_HPP |
26 #define SHARE_OOPS_SYMBOL_HPP |
27 |
27 |
28 #include "memory/allocation.hpp" |
28 #include "memory/allocation.hpp" |
29 #include "utilities/exceptions.hpp" |
29 #include "utilities/exceptions.hpp" |
30 #include "utilities/macros.hpp" |
30 #include "utilities/macros.hpp" |
31 #include "utilities/utf8.hpp" |
31 #include "utilities/utf8.hpp" |
269 // so use address comparison for speed |
269 // so use address comparison for speed |
270 int Symbol::fast_compare(const Symbol* other) const { |
270 int Symbol::fast_compare(const Symbol* other) const { |
271 return (((uintptr_t)this < (uintptr_t)other) ? -1 |
271 return (((uintptr_t)this < (uintptr_t)other) ? -1 |
272 : ((uintptr_t)this == (uintptr_t) other) ? 0 : 1); |
272 : ((uintptr_t)this == (uintptr_t) other) ? 0 : 1); |
273 } |
273 } |
274 #endif // SHARE_VM_OOPS_SYMBOL_HPP |
274 #endif // SHARE_OOPS_SYMBOL_HPP |