Lines Matching defs:index_op

2112   LIR_Opr index_op = idx.result();
2119 if (index_op->type() == T_LONG) {
2120 LIR_Opr long_index_op = index_op;
2121 if (index_op->is_constant()) {
2123 __ move(index_op, long_index_op);
2125 index_op = new_register(T_INT);
2126 __ convert(Bytecodes::_l2i, long_index_op, index_op);
2133 assert(!x->has_index() || index_op->type() == T_INT, "index should be an int");
2136 if (index_op->type() == T_INT) {
2137 if (!index_op->is_constant()) {
2138 index_op = new_register(T_LONG);
2139 __ convert(Bytecodes::_i2l, idx.result(), index_op);
2142 assert(index_op->type() == T_LONG, "must be");
2143 if (index_op->is_constant()) {
2144 index_op = new_register(T_LONG);
2145 __ move(idx.result(), index_op);
2155 assert(!x->has_index() || (index_op->type() == T_INT && index_op->is_constant()) ||
2156 (index_op->type() == T_LONG && !index_op->is_constant()), "unexpected index type");
2162 if (index_op->is_constant()) {
2164 assert(index_op->type() == T_INT, "only int constants supported");
2165 addr = new LIR_Address(base_op, index_op->as_jint(), dst_type);
2168 addr = new LIR_Address(base_op, index_op, LIR_Address::Scale(log2_scale), 0, dst_type);
2170 addr = generate_address(base_op, index_op, log2_scale, 0, dst_type);
2172 if (index_op->is_illegal() || log2_scale == 0) {
2173 addr = new LIR_Address(base_op, index_op, dst_type);
2176 __ shift_left(index_op, log2_scale, tmp);
2221 LIR_Opr index_op = idx.result();
2224 LIR_Address* addr = generate_address(base_op, index_op, log2_scale, 0, x->basic_type());
2232 if (index_op->type() == T_LONG) {
2233 index_op = new_register(T_INT);
2234 __ convert(Bytecodes::_l2i, idx.result(), index_op);
2239 assert(!x->has_index() || (index_op->type() == T_INT && !index_op->is_constant()), "index should be an non-constant int");
2242 if (index_op->type() == T_INT) {
2243 index_op = new_register(T_LONG);
2244 __ convert(Bytecodes::_i2l, idx.result(), index_op);
2249 assert(!x->has_index() || (index_op->type() == T_LONG && !index_op->is_constant()), "index must be a non-constant long");
2257 __ move(index_op, tmp);
2258 index_op = tmp;
2260 __ shift_left(index_op, log2_scale, tmp);
2262 index_op = tmp;
2266 LIR_Address* addr = new LIR_Address(base_op, index_op, x->basic_type());