< prev index next >

src/hotspot/cpu/ppc/c1_LIRGenerator_ppc.cpp

Print this page
*** 1,7 ***
  /*
!  * Copyright (c) 2005, 2025, Oracle and/or its affiliates. All rights reserved.
   * Copyright (c) 2012, 2024 SAP SE. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
--- 1,7 ---
  /*
!  * Copyright (c) 2005, 2026, Oracle and/or its affiliates. All rights reserved.
   * Copyright (c) 2012, 2024 SAP SE. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as

*** 841,11 ***
    LIR_Opr klass_reg = FrameMap::R4_metadata_opr; // Used by slow path (NewInstanceStub).
    LIR_Opr tmp1 = FrameMap::R5_oop_opr;
    LIR_Opr tmp2 = FrameMap::R6_oop_opr;
    LIR_Opr tmp3 = FrameMap::R7_oop_opr;
    LIR_Opr tmp4 = FrameMap::R8_oop_opr;
!   new_instance(reg, x->klass(), x->is_unresolved(), tmp1, tmp2, tmp3, tmp4, klass_reg, info);
  
    // Must prevent reordering of stores for object initialization
    // with stores that publish the new object.
    __ membar_storestore();
    LIR_Opr result = rlock_result(x);
--- 841,11 ---
    LIR_Opr klass_reg = FrameMap::R4_metadata_opr; // Used by slow path (NewInstanceStub).
    LIR_Opr tmp1 = FrameMap::R5_oop_opr;
    LIR_Opr tmp2 = FrameMap::R6_oop_opr;
    LIR_Opr tmp3 = FrameMap::R7_oop_opr;
    LIR_Opr tmp4 = FrameMap::R8_oop_opr;
!   new_instance(reg, x->klass(), x->is_unresolved(), /* allow_inline */ false, tmp1, tmp2, tmp3, tmp4, klass_reg, info);
  
    // Must prevent reordering of stores for object initialization
    // with stores that publish the new object.
    __ membar_storestore();
    LIR_Opr result = rlock_result(x);

*** 1025,11 ***
    LIR_Opr tmp1 = FrameMap::R4_oop_opr; // super_klass
    LIR_Opr tmp2 = FrameMap::R5_oop_opr; // sub_klass
    LIR_Opr tmp3 = FrameMap::R6_oop_opr; // temp
    __ checkcast(out_reg, obj.result(), x->klass(), tmp1, tmp2, tmp3,
                 x->direct_compare(), info_for_exception, patching_info, stub,
!                x->profiled_method(), x->profiled_bci());
  }
  
  
  void LIRGenerator::do_InstanceOf(InstanceOf* x) {
    LIRItem obj(x->obj(), this);
--- 1025,11 ---
    LIR_Opr tmp1 = FrameMap::R4_oop_opr; // super_klass
    LIR_Opr tmp2 = FrameMap::R5_oop_opr; // sub_klass
    LIR_Opr tmp3 = FrameMap::R6_oop_opr; // temp
    __ checkcast(out_reg, obj.result(), x->klass(), tmp1, tmp2, tmp3,
                 x->direct_compare(), info_for_exception, patching_info, stub,
!                x->profiled_method(), x->profiled_bci(), /*is_null_free*/ false);
  }
  
  
  void LIRGenerator::do_InstanceOf(InstanceOf* x) {
    LIRItem obj(x->obj(), this);
< prev index next >