equal
deleted
inserted
replaced
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; |