< prev index next >
src/share/vm/opto/superword.hpp
Print this page
*** 198,207 ****
--- 198,232 ----
SWNodeInfo() : _alignment(-1), _depth(0), _velt_type(NULL), _my_pack(NULL) {}
static const SWNodeInfo initial;
};
+ // JVMCI: OrderedPair is moved up to deal with compilation issues on Windows
+ //------------------------------OrderedPair---------------------------
+ // Ordered pair of Node*.
+ class OrderedPair VALUE_OBJ_CLASS_SPEC {
+ protected:
+ Node* _p1;
+ Node* _p2;
+ public:
+ OrderedPair() : _p1(NULL), _p2(NULL) {}
+ OrderedPair(Node* p1, Node* p2) {
+ if (p1->_idx < p2->_idx) {
+ _p1 = p1; _p2 = p2;
+ } else {
+ _p1 = p2; _p2 = p1;
+ }
+ }
+
+ bool operator==(const OrderedPair &rhs) {
+ return _p1 == rhs._p1 && _p2 == rhs._p2;
+ }
+ void print() { tty->print(" (%d, %d)", _p1->_idx, _p2->_idx); }
+
+ static const OrderedPair initial;
+ };
+
// -----------------------------SuperWord---------------------------------
// Transforms scalar operations into packed (superword) operations.
class SuperWord : public ResourceObj {
friend class SWPointer;
private:
*** 632,662 ****
} _tracer;//TRacer;
#endif
};
-
- //------------------------------OrderedPair---------------------------
- // Ordered pair of Node*.
- class OrderedPair VALUE_OBJ_CLASS_SPEC {
- protected:
- Node* _p1;
- Node* _p2;
- public:
- OrderedPair() : _p1(NULL), _p2(NULL) {}
- OrderedPair(Node* p1, Node* p2) {
- if (p1->_idx < p2->_idx) {
- _p1 = p1; _p2 = p2;
- } else {
- _p1 = p2; _p2 = p1;
- }
- }
-
- bool operator==(const OrderedPair &rhs) {
- return _p1 == rhs._p1 && _p2 == rhs._p2;
- }
- void print() { tty->print(" (%d, %d)", _p1->_idx, _p2->_idx); }
-
- static const OrderedPair initial;
- };
-
#endif // SHARE_VM_OPTO_SUPERWORD_HPP
--- 657,662 ----
< prev index next >