• Clemens Hammacher's avatar
    [wasm] Reuse LEB encoding logic in module builder · 4531c865
    Clemens Hammacher authored
    Instead of using the WASM_I32V_* macros (and other) from
    wasm-macro-gen.h, use the appropriate methods to encode LEB integers.
    This also saves some spaces for the wasm bytecode generated from asm.js.
    
    Specifically, this CL
    1) renames EmitVarInt to EmitI32V and EmitVarUint to EmitU32V (on
       WasmFunctionBuilder).
    2) introduces more methods on the WasmFunctionBuilder to emit i64v,
       u64v, f32, and f64 values.
    3) uses the ZoneBuffer instead of a plain ZoneVector<char> in the
       WasmFunctionBuilder to build the body of the function.
    4) introduces more helper functions on the ZoneBuffer to encode i64v,
       u64v, f32 and f64 values.
    
    R=ahaas@chromium.org
    
    Change-Id: Ifa59a6a67380ecf9a3823c382daf00855f5bc61e
    Reviewed-on: https://chromium-review.googlesource.com/486803Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
    Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#44842}
    4531c865
Name
Last commit
Last update
..
json Loading commit data...
parser Loading commit data...
regexp Loading commit data...
wasm_call Loading commit data...
wasm_code Loading commit data...
wasm_compile Loading commit data...
wasm_data_section Loading commit data...
wasm_function_sigs_section Loading commit data...
wasm_globals_section Loading commit data...
wasm_imports_section Loading commit data...
wasm_memory_section Loading commit data...
wasm_names_section Loading commit data...
wasm_types_section Loading commit data...
DEPS Loading commit data...
README.md Loading commit data...
fuzzer-support.cc Loading commit data...
fuzzer-support.h Loading commit data...
fuzzer.cc Loading commit data...
fuzzer.gyp Loading commit data...
fuzzer.isolate Loading commit data...
fuzzer.status Loading commit data...
json.cc Loading commit data...
parser.cc Loading commit data...
regexp.cc Loading commit data...
testcfg.py Loading commit data...
wasm-asmjs.cc Loading commit data...
wasm-call.cc Loading commit data...
wasm-code.cc Loading commit data...
wasm-compile.cc Loading commit data...
wasm-data-section.cc Loading commit data...
wasm-function-sigs-section.cc Loading commit data...
wasm-globals-section.cc Loading commit data...
wasm-imports-section.cc Loading commit data...
wasm-memory-section.cc Loading commit data...
wasm-names-section.cc Loading commit data...
wasm-section-fuzzers.cc Loading commit data...
wasm-section-fuzzers.h Loading commit data...
wasm-types-section.cc Loading commit data...
wasm.cc Loading commit data...
wasm.tar.gz.sha1 Loading commit data...
wasm_asmjs.tar.gz.sha1 Loading commit data...