equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2007, 2017, 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. |
597 Node_Stack* node_stack() { return _nstack; } |
597 Node_Stack* node_stack() { return _nstack; } |
598 |
598 |
599 // Comparable? |
599 // Comparable? |
600 int cmp(SWPointer& q) { |
600 int cmp(SWPointer& q) { |
601 if (valid() && q.valid() && |
601 if (valid() && q.valid() && |
602 (_adr == q._adr || _base == _adr && q._base == q._adr) && |
602 (_adr == q._adr || (_base == _adr && q._base == q._adr)) && |
603 _scale == q._scale && |
603 _scale == q._scale && |
604 _invar == q._invar && |
604 _invar == q._invar && |
605 _negate_invar == q._negate_invar) { |
605 _negate_invar == q._negate_invar) { |
606 bool overlap = q._offset < _offset + memory_size() && |
606 bool overlap = q._offset < _offset + memory_size() && |
607 _offset < q._offset + q.memory_size(); |
607 _offset < q._offset + q.memory_size(); |