[runtime] Take correct domain information from StackFrameInfo for each stack frame.