< prev index next >

src/share/vm/opto/compile.cpp

Print this page

        

@@ -3887,11 +3887,11 @@
   for (int i = 0; i < _constants.length(); i++) {
     Constant* con = _constants.adr_at(i);
 
     // Align offset for type.
     int typesize = type_to_size_in_bytes(con->type());
-    offset = align_size_up(offset, typesize);
+    offset = align_up(offset, typesize);
     con->set_offset(offset);   // set constant's offset
 
     if (con->type() == T_VOID) {
       MachConstantNode* n = (MachConstantNode*) con->get_jobject();
       offset = offset + typesize * n->outcnt();  // expand jump-table

@@ -3901,11 +3901,11 @@
   }
 
   // Align size up to the next section start (which is insts; see
   // CodeBuffer::align_at_start).
   assert(_size == -1, "already set?");
-  _size = align_size_up(offset, (int)CodeEntryAlignment);
+  _size = align_up(offset, (int)CodeEntryAlignment);
 }
 
 void Compile::ConstantTable::emit(CodeBuffer& cb) {
   MacroAssembler _masm(&cb);
   for (int i = 0; i < _constants.length(); i++) {
< prev index next >