It brings in AssemblyHelpers.h, which includes CodeBlock.h which brings basically the entire runtime. There is no need for random B3 files to know about Heap.h or Structure.h or anything like that.
Created attachment 389185 [details] Patch
Created attachment 389186 [details] fix style nit
Comment on attachment 389186 [details] fix style nit View in context: https://bugs.webkit.org/attachment.cgi?id=389186&action=review > Source/JavaScriptCore/b3/testb3_6.cpp:2176 > + CodeLocationLabel<B3CompilationPtrTag> labelOne = linkBuffer.locationOf<B3CompilationPtrTag>(proc.code().entrypointLabel(0)); should we also make AirCode not use Label directly?
(In reply to Saam Barati from comment #3) > Comment on attachment 389186 [details] > fix style nit > > View in context: > https://bugs.webkit.org/attachment.cgi?id=389186&action=review > > > Source/JavaScriptCore/b3/testb3_6.cpp:2176 > > + CodeLocationLabel<B3CompilationPtrTag> labelOne = linkBuffer.locationOf<B3CompilationPtrTag>(proc.code().entrypointLabel(0)); > > should we also make AirCode not use Label directly? We could also make Label not depend on AssemblerLabel/Masm since we only have one type per compilation target
Comment on attachment 389186 [details] fix style nit Clearing flags on attachment: 389186 Committed r255394: <https://trac.webkit.org/changeset/255394>
All reviewed patches have been landed. Closing bug.
<rdar://problem/59009948>