// Emit as runtime constant if possible
// if not, emit into IL
if (typeBuilder != null) {
// store into field in our type builder, we will initialize
// the value only once.
final FieldBuilder fb = createStaticField("ConstantArray", Type.getType(array));
final Label l = generator.defineLabel();
generator.getField(fb);
generator.emit(OpCode.IFNONNULL, l);
generator.emitConstantArray(array);