84 // (can also be used to allocate fixed-size arrays, by setting
85 // hdr_size correctly and storing the array length afterwards)
86 // obj : will contain pointer to allocated object
87 // t1, t2 : temp registers - contents destroyed
88 // header_size: size of object header in words
89 // object_size: total size of object in words
90 // slow_case : exit to slow case implementation if fast allocation fails
91 void allocate_object(Register obj, Register tmp1, Register tmp2, int header_size, int object_size, Register klass, Label& slow_case);
92
93 enum {
94 max_array_allocation_length = 0x00FFFFFF
95 };
96
97 // allocation of arrays
98 // obj : will contain pointer to allocated object
99 // len : array length in number of elements
100 // t : temp register - contents destroyed
101 // header_size: size of object header in words
102 // f : element scale factor
103 // slow_case : exit to slow case implementation if fast allocation fails
104 void allocate_array(Register obj, Register len, Register tmp1, Register tmp2, int header_size, int f, Register klass, Label& slow_case);
105
106 int rsp_offset() const { return _rsp_offset; }
107
108 void invalidate_registers(bool inv_r0, bool inv_r19, bool inv_r2, bool inv_r3, bool inv_r4, bool inv_r5) PRODUCT_RETURN;
109
110 // This platform only uses signal-based null checks. The Label is not needed.
111 void null_check(Register r, Label *Lnull = nullptr) { MacroAssembler::null_check(r); }
112
113 void load_parameter(int offset_in_words, Register reg);
114
115 void inline_cache_check(Register receiver, Register iCache, Label &L);
116
117 static const int c1_double_branch_mask = 1 << 3; // depend on c1_float_cond_branch
118 void c1_cmp_branch(int cmpFlag, Register op1, Register op2, Label& label, BasicType type, bool is_far);
119 void c1_float_cmp_branch(int cmpFlag, FloatRegister op1, FloatRegister op2, Label& label,
120 bool is_far, bool is_unordered = false);
121
122 #endif // CPU_RISCV_C1_MACROASSEMBLER_RISCV_HPP
|
84 // (can also be used to allocate fixed-size arrays, by setting
85 // hdr_size correctly and storing the array length afterwards)
86 // obj : will contain pointer to allocated object
87 // t1, t2 : temp registers - contents destroyed
88 // header_size: size of object header in words
89 // object_size: total size of object in words
90 // slow_case : exit to slow case implementation if fast allocation fails
91 void allocate_object(Register obj, Register tmp1, Register tmp2, int header_size, int object_size, Register klass, Label& slow_case);
92
93 enum {
94 max_array_allocation_length = 0x00FFFFFF
95 };
96
97 // allocation of arrays
98 // obj : will contain pointer to allocated object
99 // len : array length in number of elements
100 // t : temp register - contents destroyed
101 // header_size: size of object header in words
102 // f : element scale factor
103 // slow_case : exit to slow case implementation if fast allocation fails
104 void allocate_array(Register obj, Register len, Register tmp1, Register tmp2, int base_offset_in_bytes, int f, Register klass, Label& slow_case);
105
106 int rsp_offset() const { return _rsp_offset; }
107
108 void invalidate_registers(bool inv_r0, bool inv_r19, bool inv_r2, bool inv_r3, bool inv_r4, bool inv_r5) PRODUCT_RETURN;
109
110 // This platform only uses signal-based null checks. The Label is not needed.
111 void null_check(Register r, Label *Lnull = nullptr) { MacroAssembler::null_check(r); }
112
113 void load_parameter(int offset_in_words, Register reg);
114
115 void inline_cache_check(Register receiver, Register iCache, Label &L);
116
117 static const int c1_double_branch_mask = 1 << 3; // depend on c1_float_cond_branch
118 void c1_cmp_branch(int cmpFlag, Register op1, Register op2, Label& label, BasicType type, bool is_far);
119 void c1_float_cmp_branch(int cmpFlag, FloatRegister op1, FloatRegister op2, Label& label,
120 bool is_far, bool is_unordered = false);
121
122 #endif // CPU_RISCV_C1_MACROASSEMBLER_RISCV_HPP
|