if( constant_value instanceof String )
{
return transform_string_constant(iNode, (String)constant_value);
}
InstructionList result = createInstructionList(iNode, 1);
if( constant_value instanceof Namespace)
{
result.addInstruction(OP_pushnamespace, constant_value);
}
else if( constant_value == ABCConstants.NULL_VALUE )
{
result.addInstruction(OP_pushnull);
}
else if( constant_value == ABCConstants.UNDEFINED_VALUE )
{
result.addInstruction(OP_pushundefined);
}
else
{
assert false : "unknown constant type";
}