Mercurial > hg > graal-jvmci-8
comparison src/share/vm/c1/c1_Canonicalizer.cpp @ 23614:32b682649973 jdk8u75-b04
8132051: Better byte behavior
Reviewed-by: coleenp, roland
author | kevinw |
---|---|
date | Fri, 15 Jan 2016 22:33:15 +0000 |
parents | a60a1309a03a |
children | b5f3a471e646 d109bda16490 |
comparison
equal
deleted
inserted
replaced
23613:b374548dcb48 | 23614:32b682649973 |
---|---|
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 |