Where is the implementation of the Cycles image-nodes sampling?
What you are looking for is in

\scripts\addons\cycles\shader\


You want to look into:

node_texture_coordinate.oso
node_image_texture.oso


You will find there links to appropriate .osl or .h files.

In those you will find the code and implementation.