hotspot/src/share/vm/opto/mathexactnode.cpp
changeset 25930 eae8b7490d2c
parent 22911 ff49c48c887d
child 33105 294e48b4f704
equal deleted inserted replaced
25929:4fd732076fe1 25930:eae8b7490d2c
     1 /*
     1 /*
     2  * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 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.
   189     if (type1 != Type::TOP && type1->singleton() &&
   189     if (type1 != Type::TOP && type1->singleton() &&
   190         type2 != Type::TOP && type2->singleton()) {
   190         type2 != Type::TOP && type2->singleton()) {
   191       NativeType val1 = TypeClass::as_self(type1)->get_con();
   191       NativeType val1 = TypeClass::as_self(type1)->get_con();
   192       NativeType val2 = TypeClass::as_self(type2)->get_con();
   192       NativeType val2 = TypeClass::as_self(type2)->get_con();
   193       if (node->will_overflow(val1, val2) == false) {
   193       if (node->will_overflow(val1, val2) == false) {
   194         Node* con_result = ConINode::make(phase->C, 0);
   194         Node* con_result = ConINode::make(0);
   195         return con_result;
   195         return con_result;
   196       }
   196       }
   197       return NULL;
   197       return NULL;
   198     }
   198     }
   199     return NULL;
   199     return NULL;