< prev index next >

test/micro/org/openjdk/bench/vm/compiler/InterfaceCalls.java

Print this page

171         public int getIntFirst() {
172             return -3;
173         }
174     }
175 
176     class FourthClassDontInlineExtExt implements FirstInterfaceExtExt {
177         @CompilerControl(CompilerControl.Mode.DONT_INLINE)
178         public int getIntFirst() {
179             return -4;
180         }
181     }
182 
183     class FifthClassDontInlineExtExt implements FirstInterfaceExtExt {
184         @CompilerControl(CompilerControl.Mode.DONT_INLINE)
185         public int getIntFirst() {
186             return -5;
187         }
188     }
189 
190     final int asLength = 5;

191     public FirstInterface[] as = new FirstInterface[asLength];

192     public FirstInterface[] noninlined = new FirstInterface[asLength];

193     public FirstInterfaceExtExt[] noninlinedextext = new FirstInterfaceExtExt[asLength];
194 
195 
196     @Setup
197     public void setupSubclass() {
198         as[0] = new FirstClass();
199         as[1] = new SecondClass();
200         as[2] = new ThirdClass();
201         as[3] = new FourthClass();
202         as[4] = new FifthClass();
203 
204         noninlined[0] = new FirstClassDontInline();
205         noninlined[1] = new SecondClassDontInline();
206         noninlined[2] = new ThirdClassDontInline();
207         noninlined[3] = new FourthClassDontInline();
208         noninlined[4] = new FifthClassDontInline();
209 
210         noninlinedextext[0] = new FirstClassDontInlineExtExt();
211         noninlinedextext[1] = new SecondClassDontInlineExtExt();
212         noninlinedextext[2] = new ThirdClassDontInlineExtExt();

171         public int getIntFirst() {
172             return -3;
173         }
174     }
175 
176     class FourthClassDontInlineExtExt implements FirstInterfaceExtExt {
177         @CompilerControl(CompilerControl.Mode.DONT_INLINE)
178         public int getIntFirst() {
179             return -4;
180         }
181     }
182 
183     class FifthClassDontInlineExtExt implements FirstInterfaceExtExt {
184         @CompilerControl(CompilerControl.Mode.DONT_INLINE)
185         public int getIntFirst() {
186             return -5;
187         }
188     }
189 
190     final int asLength = 5;
191     @SuppressWarnings("initialization")
192     public FirstInterface[] as = new FirstInterface[asLength];
193     @SuppressWarnings("initialization")
194     public FirstInterface[] noninlined = new FirstInterface[asLength];
195     @SuppressWarnings("initialization")
196     public FirstInterfaceExtExt[] noninlinedextext = new FirstInterfaceExtExt[asLength];
197 
198 
199     @Setup
200     public void setupSubclass() {
201         as[0] = new FirstClass();
202         as[1] = new SecondClass();
203         as[2] = new ThirdClass();
204         as[3] = new FourthClass();
205         as[4] = new FifthClass();
206 
207         noninlined[0] = new FirstClassDontInline();
208         noninlined[1] = new SecondClassDontInline();
209         noninlined[2] = new ThirdClassDontInline();
210         noninlined[3] = new FourthClassDontInline();
211         noninlined[4] = new FifthClassDontInline();
212 
213         noninlinedextext[0] = new FirstClassDontInlineExtExt();
214         noninlinedextext[1] = new SecondClassDontInlineExtExt();
215         noninlinedextext[2] = new ThirdClassDontInlineExtExt();
< prev index next >