Mercurial > hg > graal-compiler
comparison src/share/vm/oops/arrayKlass.hpp @ 4762:069ab3f976d3
7118863: Move sizeof(klassOopDesc) into the *Klass::*_offset_in_bytes() functions
Summary: Moved sizeof(klassOopDesc), changed the return type to ByteSize and removed the _in_bytes suffix.
Reviewed-by: never, bdelsart, coleenp, jrose
author | stefank |
---|---|
date | Wed, 07 Dec 2011 11:35:03 +0100 |
parents | 3582bf76420e |
children | da91efe96a93 |
comparison
equal
deleted
inserted
replaced
4761:65149e74c706 | 4762:069ab3f976d3 |
---|---|
71 oop component_mirror() const { return _component_mirror; } | 71 oop component_mirror() const { return _component_mirror; } |
72 void set_component_mirror(oop m) { oop_store((oop*) &_component_mirror, m); } | 72 void set_component_mirror(oop m) { oop_store((oop*) &_component_mirror, m); } |
73 oop* adr_component_mirror() { return (oop*)&this->_component_mirror;} | 73 oop* adr_component_mirror() { return (oop*)&this->_component_mirror;} |
74 | 74 |
75 // Compiler/Interpreter offset | 75 // Compiler/Interpreter offset |
76 static ByteSize component_mirror_offset() { return byte_offset_of(arrayKlass, _component_mirror); } | 76 static ByteSize component_mirror_offset() { return in_ByteSize(sizeof(klassOopDesc) + offset_of(arrayKlass, _component_mirror)); } |
77 | 77 |
78 virtual klassOop java_super() const;//{ return SystemDictionary::Object_klass(); } | 78 virtual klassOop java_super() const;//{ return SystemDictionary::Object_klass(); } |
79 | 79 |
80 // Allocation | 80 // Allocation |
81 // Sizes points to the first dimension of the array, subsequent dimensions | 81 // Sizes points to the first dimension of the array, subsequent dimensions |