Mercurial > hg > graal-compiler
comparison src/share/vm/opto/subnode.cpp @ 4778:35acf8f0a2e4
7128352: assert(obj_node == obj) failed
Summary: Compare uncasted object nodes.
Reviewed-by: never
author | kvn |
---|---|
date | Tue, 10 Jan 2012 18:05:38 -0800 |
parents | 33e2b8f1d466 |
children | 6759698e3140 |
comparison
equal
deleted
inserted
replaced
4777:e9a5e0a812c8 | 4778:35acf8f0a2e4 |
---|---|
89 const Type* t2 = (in2 == this) ? Type::TOP : phase->type(in2); | 89 const Type* t2 = (in2 == this) ? Type::TOP : phase->type(in2); |
90 if( t2 == Type::TOP ) return Type::TOP; | 90 if( t2 == Type::TOP ) return Type::TOP; |
91 | 91 |
92 // Not correct for SubFnode and AddFNode (must check for infinity) | 92 // Not correct for SubFnode and AddFNode (must check for infinity) |
93 // Equal? Subtract is zero | 93 // Equal? Subtract is zero |
94 if (phase->eqv_uncast(in1, in2)) return add_id(); | 94 if (in1->eqv_uncast(in2)) return add_id(); |
95 | 95 |
96 // Either input is BOTTOM ==> the result is the local BOTTOM | 96 // Either input is BOTTOM ==> the result is the local BOTTOM |
97 if( t1 == Type::BOTTOM || t2 == Type::BOTTOM ) | 97 if( t1 == Type::BOTTOM || t2 == Type::BOTTOM ) |
98 return bottom_type(); | 98 return bottom_type(); |
99 | 99 |