Mercurial > hg > truffle
diff src/share/vm/code/dependencies.hpp @ 14702:d4dd5204c0aa
Merge
author | ehelin |
---|---|
date | Fri, 14 Mar 2014 13:27:18 +0100 |
parents | 3c6ae9109a86 |
children | b51e29501f30 |
line wrap: on
line diff
--- a/src/share/vm/code/dependencies.hpp Fri Mar 14 09:18:39 2014 +0100 +++ b/src/share/vm/code/dependencies.hpp Fri Mar 14 13:27:18 2014 +0100 @@ -527,7 +527,7 @@ }; -class DependencySignature : public GenericHashtableEntry<DependencySignature, ResourceObj> { +class DependencySignature : public ResourceObj { private: int _args_count; uintptr_t _argument_hash[Dependencies::max_arg_count]; @@ -542,12 +542,13 @@ } } - bool equals(DependencySignature* sig) const; - uintptr_t key() const { return _argument_hash[0] >> 2; } + static bool equals(DependencySignature const& s1, DependencySignature const& s2); + static unsigned hash (DependencySignature const& s1) { return s1.arg(0) >> 2; } int args_count() const { return _args_count; } uintptr_t arg(int idx) const { return _argument_hash[idx]; } Dependencies::DepType type() const { return _type; } + };