Currently, the code in MachineStackMarker.cpp is written as a bunch of functions that operate on the platformThread value in the MachineThreads::Thread struct. Instead, we can apply better OO encapsulation and convert all these functions into methods of the MachineThreads::Thread struct. This will also make it easier to reason about the fix for https://bugs.webkit.org/show_bug.cgi?id=144924 later.
<rdar://problem/18736465>
Created attachment 252977 [details] the patch.
Comment on attachment 252977 [details] the patch. I think I can improve the readability a little more. Will upload a 2nd patch shortly.
Created attachment 252979 [details] patch 2
Created attachment 252980 [details] patch 3: with build fixes
Created attachment 252982 [details] patch 4: build fix 2
Comment on attachment 252982 [details] patch 4: build fix 2 r=me Make sure Windows EWS builds
The EWS bots are happy. Landed in r184218: <http://trac.webkit.org/r184218>.