• Clemens Backes's avatar
    [wasm][interpreter] Print float in hex representation · 64dfb0b4
    Clemens Backes authored
    The interpreter is used for testing (including fuzzing) only, and in
    these cases it's often important to see the exact value of a float. Both
    decimal and scientific notation does not show the full value though, and
    decimal representation can also be really long for large values, making
    it hard to compare values.
    This CL switches this debug output to hexadecimal float values, which
    always shows the float value in full precision and is also much shorter
    than decimal notation in many cases.
    
    R=ahaas@chromium.org
    
    Bug: chromium:1112099
    Change-Id: Ia84824227fcd2f1e763ab89280a202ed44930a71
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2346646Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#69323}
    64dfb0b4
wasm-interpreter.cc 161 KB