Mercurial > hg > truffle
comparison graal/com.oracle.jvmci.code/src/com/oracle/jvmci/code/CompilationResult.java @ 21561:ce2113326bc8
Merge.
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 28 May 2015 17:13:22 +0200 |
parents | graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/CompilationResult.java@5cbaf1e9ff2e graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/CompilationResult.java@48c1ebd24120 |
children | b9f9b8af17ff |
comparison
equal
deleted
inserted
replaced
21560:a9fba0dfb155 | 21561:ce2113326bc8 |
---|---|
600 public void setAssumptions(Assumption[] assumptions) { | 600 public void setAssumptions(Assumption[] assumptions) { |
601 this.assumptions = assumptions; | 601 this.assumptions = assumptions; |
602 } | 602 } |
603 | 603 |
604 /** | 604 /** |
605 * Gets a fixed-size {@linkplain Arrays#asList(Object...) view} of the assumptions made during | 605 * Gets the assumptions made during compilation. |
606 * compilation. | 606 */ |
607 */ | 607 public Assumption[] getAssumptions() { |
608 public Collection<Assumption> getAssumptions() { | 608 return assumptions; |
609 return assumptions == null ? Collections.emptyList() : Arrays.asList(assumptions); | |
610 } | 609 } |
611 | 610 |
612 /** | 611 /** |
613 * Sets the methods whose bytecodes were used as input to the compilation. | 612 * Sets the methods whose bytecodes were used as input to the compilation. |
614 * | 613 * |
639 } | 638 } |
640 } | 639 } |
641 } | 640 } |
642 | 641 |
643 /** | 642 /** |
644 * Gets a fixed-size {@linkplain Arrays#asList(Object...) view} of the methods whose bytecodes | 643 * Gets the methods whose bytecodes were used as input to the compilation. |
645 * were used as input to the compilation. | |
646 * | 644 * |
647 * @return {@code null} if the compilation did not record method dependencies otherwise the | 645 * @return {@code null} if the compilation did not record method dependencies otherwise the |
648 * methods whose bytecodes were used as input to the compilation with the first element | 646 * methods whose bytecodes were used as input to the compilation with the first element |
649 * being the root method of the compilation | 647 * being the root method of the compilation |
650 */ | 648 */ |
651 public Collection<ResolvedJavaMethod> getMethods() { | 649 public ResolvedJavaMethod[] getMethods() { |
652 return methods == null ? null : Arrays.asList(methods); | 650 return methods; |
653 } | 651 } |
654 | 652 |
655 public DataSection getDataSection() { | 653 public DataSection getDataSection() { |
656 return dataSection; | 654 return dataSection; |
657 } | 655 } |