Store stack depth in execution graph.