< prev index next >

src/hotspot/cpu/aarch64/c1_MacroAssembler_aarch64.hpp

Print this page

 81   // (can also be used to allocate fixed-size arrays, by setting
 82   // hdr_size correctly and storing the array length afterwards)
 83   // obj        : will contain pointer to allocated object
 84   // t1, t2     : scratch registers - contents destroyed
 85   // header_size: size of object header in words
 86   // object_size: total size of object in words
 87   // slow_case  : exit to slow case implementation if fast allocation fails
 88   void allocate_object(Register obj, Register t1, Register t2, int header_size, int object_size, Register klass, Label& slow_case);
 89 
 90   enum {
 91     max_array_allocation_length = 0x00FFFFFF
 92   };
 93 
 94   // allocation of arrays
 95   // obj        : will contain pointer to allocated object
 96   // len        : array length in number of elements
 97   // t          : scratch register - contents destroyed
 98   // header_size: size of object header in words
 99   // f          : element scale factor
100   // slow_case  : exit to slow case implementation if fast allocation fails
101   void allocate_array(Register obj, Register len, Register t, Register t2, int header_size, int f, Register klass, Label& slow_case);
102 
103   int  rsp_offset() const { return _rsp_offset; }
104   void set_rsp_offset(int n) { _rsp_offset = n; }
105 
106   void invalidate_registers(bool inv_r0, bool inv_r19, bool inv_r2, bool inv_r3, bool inv_r4, bool inv_r5) PRODUCT_RETURN;
107 
108   // This platform only uses signal-based null checks. The Label is not needed.
109   void null_check(Register r, Label *Lnull = nullptr) { MacroAssembler::null_check(r); }
110 
111   void load_parameter(int offset_in_words, Register reg);
112 
113 #endif // CPU_AARCH64_C1_MACROASSEMBLER_AARCH64_HPP

 81   // (can also be used to allocate fixed-size arrays, by setting
 82   // hdr_size correctly and storing the array length afterwards)
 83   // obj        : will contain pointer to allocated object
 84   // t1, t2     : scratch registers - contents destroyed
 85   // header_size: size of object header in words
 86   // object_size: total size of object in words
 87   // slow_case  : exit to slow case implementation if fast allocation fails
 88   void allocate_object(Register obj, Register t1, Register t2, int header_size, int object_size, Register klass, Label& slow_case);
 89 
 90   enum {
 91     max_array_allocation_length = 0x00FFFFFF
 92   };
 93 
 94   // allocation of arrays
 95   // obj        : will contain pointer to allocated object
 96   // len        : array length in number of elements
 97   // t          : scratch register - contents destroyed
 98   // header_size: size of object header in words
 99   // f          : element scale factor
100   // slow_case  : exit to slow case implementation if fast allocation fails
101   void allocate_array(Register obj, Register len, Register t, Register t2, int base_offset_in_bytes, int f, Register klass, Label& slow_case);
102 
103   int  rsp_offset() const { return _rsp_offset; }
104   void set_rsp_offset(int n) { _rsp_offset = n; }
105 
106   void invalidate_registers(bool inv_r0, bool inv_r19, bool inv_r2, bool inv_r3, bool inv_r4, bool inv_r5) PRODUCT_RETURN;
107 
108   // This platform only uses signal-based null checks. The Label is not needed.
109   void null_check(Register r, Label *Lnull = nullptr) { MacroAssembler::null_check(r); }
110 
111   void load_parameter(int offset_in_words, Register reg);
112 
113 #endif // CPU_AARCH64_C1_MACROASSEMBLER_AARCH64_HPP
< prev index next >