src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/LoadJavaMirrorWithKlassTest.java
equal
deleted
inserted
replaced
71 private static OptionValues getOptions() { |
71 private static OptionValues getOptions() { |
72 return new OptionValues(getInitialOptions(), GraalOptions.ImmutableCode, true); |
72 return new OptionValues(getInitialOptions(), GraalOptions.ImmutableCode, true); |
73 } |
73 } |
74 |
74 |
75 @Override |
75 @Override |
76 protected boolean checkLowTierGraph(StructuredGraph graph) { |
76 protected void checkLowTierGraph(StructuredGraph graph) { |
77 for (ConstantNode constantNode : graph.getNodes().filter(ConstantNode.class)) { |
77 for (ConstantNode constantNode : graph.getNodes().filter(ConstantNode.class)) { |
78 assert constantNode.asJavaConstant() == null || constantNode.asJavaConstant().getJavaKind() != JavaKind.Object || |
78 assert constantNode.asJavaConstant() == null || constantNode.asJavaConstant().getJavaKind() != JavaKind.Object || |
79 constantNode.asJavaConstant().isDefaultForKind() : "Found unexpected object constant " + |
79 constantNode.asJavaConstant().isDefaultForKind() : "Found unexpected object constant " + |
80 constantNode + ", this should have been removed by the LoadJavaMirrorWithKlassPhase."; |
80 constantNode + ", this should have been removed by the LoadJavaMirrorWithKlassPhase."; |
81 } |
81 } |
82 return true; |
|
83 } |
82 } |
84 |
83 |
85 public static Class<?> classConstant() { |
84 public static Class<?> classConstant() { |
86 return Wrapper.class; |
85 return Wrapper.class; |
87 } |
86 } |