It looks like these are used as one type, since JSEnvironmentRecord is abstract and its only implementation is JSLexicalEnvironment.
I would like to optimize toThis() operation. Before doing this, we would like to drop JSEnvironmentRecord.
Created attachment 321044 [details] Patch
Committed r222136: <http://trac.webkit.org/changeset/222136>
<rdar://problem/34694427>