diff options
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wasm.h b/src/wasm.h index d4ecabca3..32c6466b8 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -16,7 +16,9 @@ namespace wasm { -// Basics +// We use a Name for all of the identifiers. These are IStrings, so they are +// all interned - comparisons etc are just pointer comparisons, so there is no +// perf loss. Having names everywhere makes using the AST much nicer. struct Name : public cashew::IString { Name() : cashew::IString() {} @@ -59,7 +61,7 @@ unsigned getWasmTypeSize(WasmType type) { } } -bool isFloat(WasmType type) { +bool isWasmTypeFloat(WasmType type) { switch (type) { case f32: case f64: return true; |