Created attachment 590418 [details] [diff] [review]
re-merge and extract gc/Root.h
For lame INSTALLED_HEADER reasons (which were graciously fixed by Ms2ger in bug 677079), StackSpace was split off from Stack.h. This patch puts them back together. In the meantime, a cyclic dependency emerged (jscntxt -> Stack -> jsfun -> jsscript -> jsscope -> jscntxt (to get js::Root)). The fix, which seems good even by itself, is to hoist js::Root and kin (and the nice comment) into gc/Root.h (analogous to gc/Barrier.h).