Changeset 254500 in webkit for trunk/Source/JavaScriptCore/b3


Ignore:
Timestamp:
Jan 14, 2020, 12:40:50 AM (5 years ago)
Author:
[email protected]
Message:

Enable -Wconditional-uninitialized in bmalloc, WTF, JavaScriptCore
<https://webkit.org/b/206190>
<rdar://problem/58540387>

Reviewed by Mark Lam.

Source/bmalloc:

  • Configurations/Base.xcconfig:

(WARNING_CFLAGS): Add -Wconditional-uninitialized.

Source/JavaScriptCore:

Initialize stack variables to fix warnings.

  • Configurations/Base.xcconfig:

(WARNING_CFLAGS): Add -Wconditional-uninitialized.

  • b3/B3LowerToAir.cpp:

(LowerToAir::appendCAS):

  • b3/testb3_4.cpp:

(testLoadAddrShift):

  • ftl/FTLLowerDFGToB3.cpp:

(JSC::FTL::DFG::LowerDFGToB3::compileCheckStructureOrEmpty):
Move declaration of notEmpty into if block since it's not used
outside that scope.
(JSC::FTL::DFG::LowerDFGToB3::compileCallDOMGetter):

  • ftl/FTLThunks.cpp:

(JSC::FTL::registerClobberCheck):

  • wasm/js/WebAssemblyTablePrototype.cpp:

(JSC::webAssemblyTableProtoFuncSet):
variables.

  • wasm/WasmFunctionParser.h:

(JSC::Wasm::FunctionParser<Context>::parseBody):

Source/WTF:

  • Configurations/Base.xcconfig:

(WARNING_CFLAGS): Add -Wconditional-uninitialized.

Location:
trunk/Source/JavaScriptCore/b3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/b3/B3LowerToAir.cpp

    r254087 r254500  
    22892289            failure = failBlock;
    22902290        }
    2291         Air::BasicBlock* strongFailBlock;
     2291        Air::BasicBlock* strongFailBlock = nullptr;
    22922292        if (isStrong && hasFence)
    22932293            strongFailBlock = newBlock();
  • trunk/Source/JavaScriptCore/b3/testb3_4.cpp

    r248098 r254500  
    848848
    849849    // Figure out which slot to use while having proper alignment for the shift.
    850     int* slot;
    851     uintptr_t arg;
     850    int* slot = nullptr;
     851    uintptr_t arg = 0;
    852852    for (unsigned i = sizeof(slots)/sizeof(slots[0]); i--;) {
    853853        slot = slots + i;
Note: See TracChangeset for help on using the changeset viewer.