src/share/vm/c1/c1_Canonicalizer.cpp

changeset 8415
d109bda16490
parent 8316
626f594dffa6
parent 8368
32b682649973
child 8604
04d83ba48607
equal deleted inserted replaced
8332:b5b3db42efca 8415:d109bda16490
1 /* 1 /*
2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
263 case Bytecodes::_i2c: if (type == T_CHAR || type == T_BYTE) value = conv->value(); break; 263 case Bytecodes::_i2c: if (type == T_CHAR || type == T_BYTE) value = conv->value(); break;
264 } 264 }
265 // limit this optimization to current block 265 // limit this optimization to current block
266 if (value != NULL && in_current_block(conv)) { 266 if (value != NULL && in_current_block(conv)) {
267 set_canonical(new StoreIndexed(x->array(), x->index(), x->length(), 267 set_canonical(new StoreIndexed(x->array(), x->index(), x->length(),
268 x->elt_type(), value, x->state_before())); 268 x->elt_type(), value, x->state_before(),
269 x->check_boolean()));
269 return; 270 return;
270 } 271 }
271 } 272 }
272 273
273 274

mercurial