Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply more constexpr for offsetOf #29841

Commits on Jun 15, 2024

  1. Apply more constexpr for offsetOf

    https://bugs.webkit.org/show_bug.cgi?id=275512
    rdar://129874627
    
    Reviewed by Yijia Huang.
    
    More expansion of constexpr OBJECT_OFFSETOF. And changing some more ASSERT with static_assert.
    
    * Source/JavaScriptCore/bytecode/InternalFunctionAllocationProfile.h:
    (JSC::InternalFunctionAllocationProfile::offsetOfStructureID):
    * Source/JavaScriptCore/dfg/DFGJITCompiler.cpp:
    (JSC::DFG::JITCompiler::linkOSRExits):
    * Source/JavaScriptCore/heap/FreeList.h:
    (JSC::FreeCell::offsetOfScrambledBits):
    * Source/JavaScriptCore/jit/AssemblyHelpers.cpp:
    (JSC::AssemblyHelpers::loadMegamorphicProperty):
    * Source/JavaScriptCore/runtime/FunctionExecutable.h:
    * Source/JavaScriptCore/runtime/FunctionRareData.h:
    * Source/JavaScriptCore/runtime/JSBigInt.h:
    * Source/JavaScriptCore/runtime/JSCallee.h:
    (JSC::JSCallee::offsetOfScopeChain):
    * Source/JavaScriptCore/runtime/JSFunction.h:
    (JSC::JSFunction::offsetOfExecutableOrRareData):
    * Source/JavaScriptCore/runtime/JSObject.h:
    (JSC::JSObject::offsetOfInlineStorage):
    (JSC::indexRelativeToBase):
    * Source/JavaScriptCore/runtime/NativeExecutable.h:
    * Source/WTF/wtf/WeakRandom.h:
    * Source/WTF/wtf/text/StringImpl.h:
    (WTF::StringImpl::flagsOffset):
    (WTF::StringImpl::dataOffset):
    (WTF::StringImpl::headerSize):
    (WTF::StringImpl::tailOffset):
    * Source/WTF/wtf/text/SymbolImpl.h:
    (WTF::SymbolImpl::SymbolImpl):
    
    Canonical link: https://commits.webkit.org/280046@main
    Constellation committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    51b187d View commit details
    Browse the repository at this point in the history