Mercurial > hg > truffle
comparison src/share/vm/oops/methodData.hpp @ 14435:da862781b584
Merge
author | kvn |
---|---|
date | Thu, 21 Nov 2013 12:30:35 -0800 |
parents | 018b357638aa 6e1826d5c23e |
children | fdad2932c73f 62c54fcc0a35 |
comparison
equal
deleted
inserted
replaced
14434:318d0622a6d7 | 14435:da862781b584 |
---|---|
775 } | 775 } |
776 | 776 |
777 // recorded type: cell without bit 0 and 1 | 777 // recorded type: cell without bit 0 and 1 |
778 static intptr_t klass_part(intptr_t v) { | 778 static intptr_t klass_part(intptr_t v) { |
779 intptr_t r = v & type_klass_mask; | 779 intptr_t r = v & type_klass_mask; |
780 assert (r != 0, "invalid"); | |
781 return r; | 780 return r; |
782 } | 781 } |
783 | 782 |
784 // type recorded | 783 // type recorded |
785 static Klass* valid_klass(intptr_t k) { | 784 static Klass* valid_klass(intptr_t k) { |
786 if (!is_type_none(k) && | 785 if (!is_type_none(k) && |
787 !is_type_unknown(k)) { | 786 !is_type_unknown(k)) { |
788 return (Klass*)klass_part(k); | 787 Klass* res = (Klass*)klass_part(k); |
788 assert(res != NULL, "invalid"); | |
789 return res; | |
789 } else { | 790 } else { |
790 return NULL; | 791 return NULL; |
791 } | 792 } |
792 } | 793 } |
793 | 794 |