• Clemens Backes's avatar
    [wasm][debug] Store "for debugging" flag on compilation unit · e0433f7d
    Clemens Backes authored
    Before the "debug" flag was stored on the {CompilationEnv}. But each
    background compilation task only gets the {CompilationEnv} once when
    starting compilation, so by the time it picks up the "Liftoff for
    debugging" compilation jobs, it might still compile them without the
    debug flag being set. This leads to flakes in the "debug-step-into-wasm"
    test, because we won't stop in the function prologue when stepping in
    (because the function prologue does not check the "hook on function
    call" flag if debug mode was not enabled).
    
    This CL does not increase the size of a compilation unit, since both the
    tier and the debug flag only need a single byte each.
    
    As a nice side effect, this change allows us to remove the lock in
    {CreateCompilationEnv}, because no modifyable flag is read any more.
    
    R=thibaudm@chromium.org
    
    Bug: v8:10410
    Change-Id: Ic296ea0c4dd1d4dedde119f0536e87e5d301b5a1
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2144116Reviewed-by: 's avatarThibaud Michaud <thibaudm@chromium.org>
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#67115}
    e0433f7d
Name
Last commit
Last update
..
OWNERS Loading commit data...
test-c-wasm-entry.cc Loading commit data...
test-compilation-cache.cc Loading commit data...
test-grow-memory.cc Loading commit data...
test-jump-table-assembler.cc Loading commit data...
test-liftoff-inspection.cc Loading commit data...
test-run-wasm-64.cc Loading commit data...
test-run-wasm-asmjs.cc Loading commit data...
test-run-wasm-atomics.cc Loading commit data...
test-run-wasm-atomics64.cc Loading commit data...
test-run-wasm-bulk-memory.cc Loading commit data...
test-run-wasm-exceptions.cc Loading commit data...
test-run-wasm-interpreter.cc Loading commit data...
test-run-wasm-js.cc Loading commit data...
test-run-wasm-module.cc Loading commit data...
test-run-wasm-sign-extension.cc Loading commit data...
test-run-wasm-simd-liftoff.cc Loading commit data...
test-run-wasm-simd.cc Loading commit data...
test-run-wasm.cc Loading commit data...
test-streaming-compilation.cc Loading commit data...
test-wasm-breakpoints.cc Loading commit data...
test-wasm-codegen.cc Loading commit data...
test-wasm-debug-evaluate.cc Loading commit data...
test-wasm-import-wrapper-cache.cc Loading commit data...
test-wasm-interpreter-entry.cc Loading commit data...
test-wasm-serialization.cc Loading commit data...
test-wasm-shared-engine.cc Loading commit data...
test-wasm-stack.cc Loading commit data...
test-wasm-trap-position.cc Loading commit data...
wasm-atomics-utils.h Loading commit data...
wasm-run-utils.cc Loading commit data...
wasm-run-utils.h Loading commit data...