Pocket Edition is a separate codebase, used for Windows 10 Edition which is not yet however a replacement for Minecraft.
There are, I believe, three distinct versions of the engine: the Java one, the C++ one and I think the console codebase is also separate.