hotspot/src/share/vm/opto/machnode.cpp
changeset 22838 82c7497fbad4
parent 20282 7f9cbdf89af2
child 22844 90f76a40ed8a
equal deleted inserted replaced
22837:feba5d4126b8 22838:82c7497fbad4
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2013, 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.
   339     // NULL base, any offset means any pointer whatever
   339     // NULL base, any offset means any pointer whatever
   340     if (offset == Type::OffsetBot) {
   340     if (offset == Type::OffsetBot) {
   341       return TypePtr::BOTTOM;
   341       return TypePtr::BOTTOM;
   342     }
   342     }
   343     // %%% make offset be intptr_t
   343     // %%% make offset be intptr_t
   344     assert(!Universe::heap()->is_in_reserved((oop)offset), "must be a raw ptr");
   344     assert(!Universe::heap()->is_in_reserved(cast_to_oop(offset)), "must be a raw ptr");
   345     return TypeRawPtr::BOTTOM;
   345     return TypeRawPtr::BOTTOM;
   346   }
   346   }
   347 
   347 
   348   // base of -1 with no particular offset means all of memory
   348   // base of -1 with no particular offset means all of memory
   349   if (base == NodeSentinel)  return TypePtr::BOTTOM;
   349   if (base == NodeSentinel)  return TypePtr::BOTTOM;