Mercurial > hg > truffle
comparison src/share/vm/opto/multnode.cpp @ 14690:de9cd35a3d1f
8028037: [parfait] warnings from b114 for hotspot.src.share.vm
Summary: Insert null check for one warning; other warning handled in parfait config
Reviewed-by: kvn
author | drchase |
---|---|
date | Tue, 11 Mar 2014 13:38:32 -0400 |
parents | cd5d10655495 |
children | 92aa6797d639 7848fc12602b |
comparison
equal
deleted
inserted
replaced
14688:5e2306b00977 | 14690:de9cd35a3d1f |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2014, 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. |
192 iff->in(1)->in(1)->Opcode() != Op_Opaque1) { | 192 iff->in(1)->in(1)->Opcode() != Op_Opaque1) { |
193 return false; | 193 return false; |
194 } | 194 } |
195 } | 195 } |
196 | 196 |
197 ProjNode* other_proj = iff->proj_out(1-_con)->as_Proj(); | 197 ProjNode* other_proj = iff->proj_out(1-_con); |
198 if (other_proj == NULL) // Should never happen, but make Parfait happy. | |
199 return false; | |
198 if (other_proj->is_uncommon_trap_proj(reason)) { | 200 if (other_proj->is_uncommon_trap_proj(reason)) { |
199 assert(reason == Deoptimization::Reason_none || | 201 assert(reason == Deoptimization::Reason_none || |
200 Compile::current()->is_predicate_opaq(iff->in(1)->in(1)), "should be on the list"); | 202 Compile::current()->is_predicate_opaq(iff->in(1)->in(1)), "should be on the list"); |
201 return true; | 203 return true; |
202 } | 204 } |