Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.jvmci.options.processor/src/com/oracle/jvmci/options/processor/OptionsVerifier.java @ 21789:5b9adb645217
fixed remnants of "graal" names in JVMCI code
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 08 Jun 2015 20:24:51 +0200 |
parents | 47bebae7454f |
children |
comparison
equal
deleted
inserted
replaced
21788:c1610658bba0 | 21789:5b9adb645217 |
---|---|
39 * the possibility of an option value being used before the code that sets the value (e.g., from the | 39 * the possibility of an option value being used before the code that sets the value (e.g., from the |
40 * command line) has been executed. | 40 * command line) has been executed. |
41 */ | 41 */ |
42 final class OptionsVerifier extends ClassVisitor { | 42 final class OptionsVerifier extends ClassVisitor { |
43 | 43 |
44 public static void checkClass(Class<?> cls, OptionDescriptor option, Set<Class<?>> checked, GraalJars graalJars) throws IOException { | 44 public static void checkClass(Class<?> cls, OptionDescriptor option, Set<Class<?>> checked, JVMCIJars jvmciJars) throws IOException { |
45 if (!checked.contains(cls)) { | 45 if (!checked.contains(cls)) { |
46 checked.add(cls); | 46 checked.add(cls); |
47 Class<?> superclass = cls.getSuperclass(); | 47 Class<?> superclass = cls.getSuperclass(); |
48 if (superclass != null && !superclass.equals(Object.class)) { | 48 if (superclass != null && !superclass.equals(Object.class)) { |
49 checkClass(superclass, option, checked, graalJars); | 49 checkClass(superclass, option, checked, jvmciJars); |
50 } | 50 } |
51 | 51 |
52 String classFilePath = cls.getName().replace('.', '/') + ".class"; | 52 String classFilePath = cls.getName().replace('.', '/') + ".class"; |
53 ClassReader cr = new ClassReader(Objects.requireNonNull(graalJars.getInputStream(classFilePath), "Could not find class file for " + cls.getName())); | 53 ClassReader cr = new ClassReader(Objects.requireNonNull(jvmciJars.getInputStream(classFilePath), "Could not find class file for " + cls.getName())); |
54 | 54 |
55 ClassVisitor cv = new OptionsVerifier(cls, option); | 55 ClassVisitor cv = new OptionsVerifier(cls, option); |
56 cr.accept(cv, 0); | 56 cr.accept(cv, 0); |
57 } | 57 } |
58 } | 58 } |