diff options
author | Alon Zakai <azakai@google.com> | 2024-09-16 15:37:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 15:37:43 -0700 |
commit | ed19e3f699ddb72d59f227a9f20846c9ce79e2c6 (patch) | |
tree | c88e7be8f2672e6569f74c118dff12b201345c8e /src/parser/lexer.cpp | |
parent | 106f84b4f2dc373b540ace29139f850576f22b8a (diff) | |
download | binaryen-ed19e3f699ddb72d59f227a9f20846c9ce79e2c6.tar.gz binaryen-ed19e3f699ddb72d59f227a9f20846c9ce79e2c6.tar.bz2 binaryen-ed19e3f699ddb72d59f227a9f20846c9ce79e2c6.zip |
[NFC] Move enough of wasm-type.cpp into wasm-type.h to inline core is*() methods (#6936)
This just moves code around. As a result, isRef() vanishes entirely from the
profiling traces in #6931, since now the core isRef/Tuple/etc. methods are
all inlineable.
This also required some reordering of wasm-type.h, namely to move HeapType
up front. No changes to that class otherwise.
TypeInfo is now in the header. getTypeInfo is now a static method on Type.
This has the downside of moving internal details into the header, and it may
increase compile time a little. The upside is making the --precompute benchmark
from #6931 significantly faster, 33%, and it will also help the many
Type::isNonNullable() etc. calls we have scattered around the codebase in
other passes too.
Diffstat (limited to 'src/parser/lexer.cpp')
0 files changed, 0 insertions, 0 deletions