< prev index next >

src/hotspot/cpu/ppc/gc/shenandoah/shenandoahBarrierSetAssembler_ppc.hpp

Print this page
@@ -1,8 +1,9 @@
  /*
   * Copyright (c) 2018, 2022, Red Hat, Inc. All rights reserved.
   * Copyright (c) 2012, 2022 SAP SE. All rights reserved.
+  * Copyright Amazon.com Inc. or its affiliates. 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
   * published by the Free Software Foundation.

@@ -49,19 +50,27 @@
                                 Register base, RegisterOrConstant ind_or_offs,
                                 Register pre_val,
                                 Register tmp1, Register tmp2,
                                 MacroAssembler::PreservationLevel preservation_level);
  
+   void store_check(MacroAssembler* masm,
+                    Register base, RegisterOrConstant ind_or_offs,
+                    Register tmp);
+ 
    void load_reference_barrier_impl(MacroAssembler* masm, DecoratorSet decorators,
                                     Register base, RegisterOrConstant ind_or_offs,
                                     Register dst,
                                     Register tmp1, Register tmp2,
                                     MacroAssembler::PreservationLevel preservation_level);
  
    /* ==== Helper methods for barrier implementations ==== */
    void resolve_forward_pointer_not_null(MacroAssembler* masm, Register dst, Register tmp);
  
+   void gen_write_ref_array_post_barrier(MacroAssembler* masm, DecoratorSet decorators,
+                                         Register addr, Register count,
+                                         Register preserve);
+ 
  public:
    virtual NMethodPatchingType nmethod_patching_type() { return NMethodPatchingType::conc_data_patch; }
  
    /* ==== C1 stubs ==== */
  #ifdef COMPILER1

@@ -98,11 +107,15 @@
                     Register tmp1, Register tmp2,
                     bool is_cae, Register result);
  
    /* ==== Access api ==== */
    virtual void arraycopy_prologue(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
-                           Register src, Register dst, Register count, Register preserve1, Register preserve2);
+                                   Register src, Register dst, Register count,
+                                   Register preserve1, Register preserve2);
+   virtual void arraycopy_epilogue(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
+                                   Register dst, Register count,
+                                   Register preserve);
  
    virtual void store_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
                          Register base, RegisterOrConstant ind_or_offs, Register val,
                          Register tmp1, Register tmp2, Register tmp3,
                          MacroAssembler::PreservationLevel preservation_level);
< prev index next >