Imported from https://github.com/google/svcca