< prev index next >

src/hotspot/share/classfile/fieldLayoutBuilder.cpp

Print this page




  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "jvm.h"
  27 #include "classfile/classFileParser.hpp"
  28 #include "classfile/fieldLayoutBuilder.hpp"
  29 #include "memory/resourceArea.hpp"
  30 #include "oops/array.hpp"
  31 #include "oops/instanceMirrorKlass.hpp"
  32 #include "oops/valueKlass.hpp"
  33 #include "runtime/fieldDescriptor.inline.hpp"
  34 
  35 RawBlock::RawBlock(Kind kind, int size) {
  36   assert(kind == EMPTY || kind == RESERVED || kind == PADDING || kind == INHERITED,
  37       "Otherwise, should use the constructor with a field index argument");
  38   assert(size > 0, "Sanity check");
  39   _next_field = NULL;
  40   _prev_field = NULL;
  41   _next_block = NULL;
  42   _prev_block = NULL;
  43   _field_index = -1; // no field
  44     _kind = kind;
  45   _size = size;
  46   _alignment = 1;
  47   _offset = -1;
  48   _is_reference = false;
  49   _value_klass = NULL;
  50 }
  51 
  52 RawBlock::RawBlock(int index, Kind kind, int size, int alignment, bool is_reference) {




  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "jvm.h"
  27 #include "classfile/classFileParser.hpp"
  28 #include "classfile/fieldLayoutBuilder.hpp"
  29 #include "memory/resourceArea.hpp"
  30 #include "oops/array.hpp"
  31 #include "oops/instanceMirrorKlass.hpp"
  32 #include "oops/valueKlass.inline.hpp"
  33 #include "runtime/fieldDescriptor.inline.hpp"
  34 
  35 RawBlock::RawBlock(Kind kind, int size) {
  36   assert(kind == EMPTY || kind == RESERVED || kind == PADDING || kind == INHERITED,
  37       "Otherwise, should use the constructor with a field index argument");
  38   assert(size > 0, "Sanity check");
  39   _next_field = NULL;
  40   _prev_field = NULL;
  41   _next_block = NULL;
  42   _prev_block = NULL;
  43   _field_index = -1; // no field
  44     _kind = kind;
  45   _size = size;
  46   _alignment = 1;
  47   _offset = -1;
  48   _is_reference = false;
  49   _value_klass = NULL;
  50 }
  51 
  52 RawBlock::RawBlock(int index, Kind kind, int size, int alignment, bool is_reference) {


< prev index next >