Implement self-hosted builtins in flash.text.engine