⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 284852 in webkit


Ignore:
Timestamp:
Oct 25, 2021, 5:34:53 PM (5 years ago)
Author:
ysuzuki@apple.com
Message:

[JSC] Fix stale assertion in InternalFunctionAllocationProfile after r284757
https://bugs.webkit.org/show_bug.cgi?id=232269

Reviewed by Robin Morisset.

Now, condition in InternalFunction is changed in r284757. We need to update
this assertion accordingly. It is tested (and crashing) in the existing stress test[1].

[1]: InternalFunctionAllocationProfile-createAllocationStructureFromBase-should-allow-for-same-classInfo-from-different-globals.js

  • bytecode/InternalFunctionAllocationProfile.h:

(JSC::InternalFunctionAllocationProfile::createAllocationStructureFromBase):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r284851 r284852  
     12021-10-25  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        [JSC] Fix stale assertion in InternalFunctionAllocationProfile after r284757
     4        https://bugs.webkit.org/show_bug.cgi?id=232269
     5
     6        Reviewed by Robin Morisset.
     7
     8        Now, condition in InternalFunction is changed in r284757. We need to update
     9        this assertion accordingly. It is tested (and crashing) in the existing stress test[1].
     10
     11        [1]: InternalFunctionAllocationProfile-createAllocationStructureFromBase-should-allow-for-same-classInfo-from-different-globals.js
     12
     13        * bytecode/InternalFunctionAllocationProfile.h:
     14        (JSC::InternalFunctionAllocationProfile::createAllocationStructureFromBase):
     15
    1162021-10-25  Yusuke Suzuki  <ysuzuki@apple.com>
    217
  • trunk/Source/JavaScriptCore/bytecode/InternalFunctionAllocationProfile.h

    r273138 r284852  
    4848inline Structure* InternalFunctionAllocationProfile::createAllocationStructureFromBase(VM& vm, JSGlobalObject* baseGlobalObject, JSCell* owner, JSObject* prototype, Structure* baseStructure)
    4949{
    50     ASSERT(!m_structure || m_structure.get()->classInfo() != baseStructure->classInfo() || m_structure->globalObject() != baseGlobalObject);
     50    ASSERT(!m_structure || m_structure.get()->classInfo() != baseStructure->classInfo() || m_structure->globalObject() != baseStructure->globalObject());
    5151    ASSERT(baseStructure->hasMonoProto());
    5252
Note: See TracChangeset for help on using the changeset viewer.