Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/Utils.java @ 8237:6b74ffe38183
Implemented support for executing nodes in @Children fields.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Fri, 01 Mar 2013 17:03:57 +0100 |
parents | e25ad0220267 |
children | 703c09f8640c |
comparison
equal
deleted
inserted
replaced
7860:dbbdc0a30a16 | 8237:6b74ffe38183 |
---|---|
589 } else if (type1 == null || type2 == null) { | 589 } else if (type1 == null || type2 == null) { |
590 return false; | 590 return false; |
591 } | 591 } |
592 String qualified1 = getQualifiedName(type1); | 592 String qualified1 = getQualifiedName(type1); |
593 String qualified2 = getQualifiedName(type2); | 593 String qualified2 = getQualifiedName(type2); |
594 | |
595 if (type1.getKind() == TypeKind.ARRAY || type2.getKind() == TypeKind.ARRAY) { | |
596 if (type1.getKind() == TypeKind.ARRAY && type2.getKind() == TypeKind.ARRAY) { | |
597 return typeEquals(((ArrayType) type1).getComponentType(), ((ArrayType) type2).getComponentType()); | |
598 } else { | |
599 return false; | |
600 } | |
601 } | |
594 return qualified1.equals(qualified2); | 602 return qualified1.equals(qualified2); |
595 } | 603 } |
596 | 604 |
597 public static int compareByTypeHierarchy(TypeMirror t1, TypeMirror t2) { | 605 public static int compareByTypeHierarchy(TypeMirror t1, TypeMirror t2) { |
598 if (typeEquals(t1, t2)) { | 606 if (typeEquals(t1, t2)) { |