Nah, DS is not a portable N64 at all. It's less that third a n64 resolution, textures are not filtered. Mario 64 DS graphic engine is surely a total rewrite of the N64 one.
BTW cell shading does not need any special 3D hardware, it's only specific to the 3d engine. Any old hardware can do that.