• Janusz Majnert's avatar
    Make torque emit structs in classes in order · 5a04c5ce
    Janusz Majnert authored
    Torque compiler emits a C++ class definition header
    class-definitions-tq.h. Unfortunately it does so in a manner that
    introduces randomness into the ordering of some structs. This means that
    every full build of V8 may yield a different header.
    Since this header is included in a lot of files in V8, it causes a lot
    of ccache misses (over a 1000).
    
    This commit makes sure that the structs are emitted in lexical order.
    
    Bug: v8:10310
    Change-Id: Ie39066d36e41583ff990bc639f7f241462351585
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2093500
    Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
    Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#66645}
    5a04c5ce
AUTHORS 7.48 KB