Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/compiler/AbstractCompiler.java @ 8248:c4c3f50fa9c2
Fixes for codegen builtins support.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Tue, 12 Mar 2013 11:37:32 +0100 |
parents | 5e3d1a68664e |
children |
comparison
equal
deleted
inserted
replaced
8247:5b08b0f4d338 | 8248:c4c3f50fa9c2 |
---|---|
37 method.setAccessible(true); | 37 method.setAccessible(true); |
38 return method.invoke(o, values); | 38 return method.invoke(o, values); |
39 } | 39 } |
40 | 40 |
41 protected static Object field(Object o, String fieldName) throws Exception { | 41 protected static Object field(Object o, String fieldName) throws Exception { |
42 if (o == null) { | |
43 return null; | |
44 } | |
42 Field field = o.getClass().getField(fieldName); | 45 Field field = o.getClass().getField(fieldName); |
43 field.setAccessible(true); | 46 field.setAccessible(true); |
44 return field.get(o); | 47 return field.get(o); |
45 } | 48 } |
46 | 49 |