• clemensh's avatar
    [wasm] Clean up wasm module implementation · 8d190053
    clemensh authored
    By defining functions with namespace prefix, the compiler checks that
    they were previously declared, and checks that the signature matches.
    I stumbled across this several times when changing the interface of a
    function in the header.
    With this change you get a compile error right away instead of a linker
    error in the very end.
    
    This change also revealed two functions which could be placed in an
    anonymous namespace, saving 5.5kB program size in Debug build, 2.3kB in
    Optdebug and 0.3kB in Release. It's also opening more options for
    compiler optimizations, as the functions now have internal linkage.
    
    R=titzer@chromium.org
    
    Review-Url: https://codereview.chromium.org/2415603002
    Cr-Commit-Position: refs/heads/master@{#40233}
    8d190053
Name
Last commit
Last update
..
OWNERS Loading commit data...
ast-decoder.cc Loading commit data...
ast-decoder.h Loading commit data...
decoder.h Loading commit data...
leb-helper.h Loading commit data...
module-decoder.cc Loading commit data...
module-decoder.h Loading commit data...
signature-map.cc Loading commit data...
signature-map.h Loading commit data...
wasm-debug.cc Loading commit data...
wasm-debug.h Loading commit data...
wasm-external-refs.cc Loading commit data...
wasm-external-refs.h Loading commit data...
wasm-function-name-table.cc Loading commit data...
wasm-function-name-table.h Loading commit data...
wasm-interpreter.cc Loading commit data...
wasm-interpreter.h Loading commit data...
wasm-js.cc Loading commit data...
wasm-js.h Loading commit data...
wasm-macro-gen.h Loading commit data...
wasm-module-builder.cc Loading commit data...
wasm-module-builder.h Loading commit data...
wasm-module.cc Loading commit data...
wasm-module.h Loading commit data...
wasm-opcodes.cc Loading commit data...
wasm-opcodes.h Loading commit data...
wasm-result.cc Loading commit data...
wasm-result.h Loading commit data...