src/cpu/mips/vm/mips_64.ad

changeset 9761
17884ee5d053
parent 9645
ac996ba07f9d
child 9808
a9451177555c
     1.1 --- a/src/cpu/mips/vm/mips_64.ad	Mon Dec 02 16:01:35 2019 +0800
     1.2 +++ b/src/cpu/mips/vm/mips_64.ad	Wed Dec 04 18:01:06 2019 +0800
     1.3 @@ -817,39 +817,23 @@
     1.4    return false;
     1.5  }
     1.6  
     1.7 +int CallStaticJavaDirectNode::compute_padding(int current_offset) const {
     1.8 +  return round_to(current_offset, alignment_required()) - current_offset;
     1.9 +}
    1.10 +
    1.11 +int CallDynamicJavaDirectNode::compute_padding(int current_offset) const {
    1.12 +  return round_to(current_offset, alignment_required()) - current_offset;
    1.13 +}
    1.14 +
    1.15  int CallLeafNoFPDirectNode::compute_padding(int current_offset) const {
    1.16 -  //lui
    1.17 -  //ori
    1.18 -  //dsll
    1.19 -  //ori
    1.20 -
    1.21 -  //jalr
    1.22 -  //nop
    1.23 -
    1.24    return round_to(current_offset, alignment_required()) - current_offset;
    1.25  }
    1.26  
    1.27  int CallLeafDirectNode::compute_padding(int current_offset) const {
    1.28 -  //lui
    1.29 -  //ori
    1.30 -  //dsll
    1.31 -  //ori
    1.32 -
    1.33 -  //jalr
    1.34 -  //nop
    1.35 -
    1.36    return round_to(current_offset, alignment_required()) - current_offset;
    1.37  }
    1.38  
    1.39  int CallRuntimeDirectNode::compute_padding(int current_offset) const {
    1.40 -  //lui
    1.41 -  //ori
    1.42 -  //dsll
    1.43 -  //ori
    1.44 -
    1.45 -  //jalr
    1.46 -  //nop
    1.47 -
    1.48    return round_to(current_offset, alignment_required()) - current_offset;
    1.49  }
    1.50  
    1.51 @@ -13382,6 +13366,7 @@
    1.52    ins_encode( Java_Static_Call( meth ) );
    1.53    ins_pipe( pipe_slow );
    1.54    ins_pc_relative(1);
    1.55 +  ins_alignment(16);
    1.56  %}
    1.57  
    1.58  // Call Java Dynamic Instruction
    1.59 @@ -13397,6 +13382,7 @@
    1.60    ins_encode( Java_Dynamic_Call( meth ) );
    1.61    ins_pipe( pipe_slow );
    1.62    ins_pc_relative(1);
    1.63 +  ins_alignment(16);
    1.64  %}
    1.65  
    1.66  instruct CallLeafNoFPDirect(method meth) %{

mercurial