Initial support for regexp sharing