comparison src/share/vm/oops/typeArrayOop.hpp @ 5223:edb5ab0f3fe5

8001107: @Stable annotation for constant folding of lazily evaluated variables Reviewed-by: rbackman, twisti, kvn Contributed-by: john.r.rose@oracle.com, vladimir.x.ivanov@oracle.com
author vlivanov
date Tue, 10 Sep 2013 14:51:48 -0700
parents da91efe96a93
children bdd155477289
comparison
equal deleted inserted replaced
6:a73a826074d7 7:bed7d4e3d5ba
71 jlong* long_base() const { return (jlong*) base(T_LONG); } 71 jlong* long_base() const { return (jlong*) base(T_LONG); }
72 jshort* short_base() const { return (jshort*) base(T_SHORT); } 72 jshort* short_base() const { return (jshort*) base(T_SHORT); }
73 jfloat* float_base() const { return (jfloat*) base(T_FLOAT); } 73 jfloat* float_base() const { return (jfloat*) base(T_FLOAT); }
74 jdouble* double_base() const { return (jdouble*) base(T_DOUBLE); } 74 jdouble* double_base() const { return (jdouble*) base(T_DOUBLE); }
75 75
76 friend class typeArrayKlass; 76 friend class TypeArrayKlass;
77 77
78 public: 78 public:
79 jbyte* byte_at_addr(int which) const { 79 jbyte* byte_at_addr(int which) const {
80 assert(is_within_bounds(which), "index out of bounds"); 80 assert(is_within_bounds(which), "index out of bounds");
81 return &byte_base()[which]; 81 return &byte_base()[which];
188 return align_object_size((intptr_t)size_in_words); 188 return align_object_size((intptr_t)size_in_words);
189 } 189 }
190 190
191 public: 191 public:
192 int object_size() { 192 int object_size() {
193 typeArrayKlass* tk = typeArrayKlass::cast(klass()); 193 TypeArrayKlass* tk = TypeArrayKlass::cast(klass());
194 return object_size(tk->layout_helper(), length()); 194 return object_size(tk->layout_helper(), length());
195 } 195 }
196 }; 196 };
197 197
198 #endif // SHARE_VM_OOPS_TYPEARRAYOOP_HPP 198 #endif // SHARE_VM_OOPS_TYPEARRAYOOP_HPP