Changeset 273269 in webkit


Ignore:
Timestamp:
Feb 22, 2021 12:15:51 PM (3 years ago)
Author:
keith_miller@apple.com
Message:

Remove unused internal fields from AbstractModuleLoader
https://bugs.webkit.org/show_bug.cgi?id=222256

Reviewed by Saam Barati.

  • runtime/AbstractModuleRecord.h:

(JSC::AbstractModuleRecord::initialValues):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r273229 r273269  
     12021-02-22  Keith Miller  <keith_miller@apple.com>
     2
     3        Remove unused internal fields from AbstractModuleLoader
     4        https://bugs.webkit.org/show_bug.cgi?id=222256
     5
     6        Reviewed by Saam Barati.
     7
     8        * runtime/AbstractModuleRecord.h:
     9        (JSC::AbstractModuleRecord::initialValues):
     10
    1112021-02-21  Lauro Moura  <lmoura@igalia.com>
    212
  • trunk/Source/JavaScriptCore/runtime/AbstractModuleRecord.h

    r273225 r273269  
    3939// Based on the Source Text Module Record
    4040// http://www.ecma-international.org/ecma-262/6.0/#sec-source-text-module-records
    41 class AbstractModuleRecord : public JSInternalFieldObjectImpl<4> {
     41class AbstractModuleRecord : public JSInternalFieldObjectImpl<2> {
    4242    friend class LLIntOffsetsExtractor;
    4343public:
    44     using Base = JSInternalFieldObjectImpl<4>;
     44    using Base = JSInternalFieldObjectImpl<2>;
    4545
    4646    static constexpr bool needsDestruction = true;
     
    5858    enum class Field : uint32_t {
    5959        State,
    60         Next,
    61         This,
    6260        Frame,
    6361    };
    6462
    65     static_assert(numberOfInternalFields == 4);
     63    static_assert(numberOfInternalFields == 2);
    6664    static std::array<JSValue, numberOfInternalFields> initialValues()
    6765    {
    6866        return { {
    6967            jsNumber(static_cast<int32_t>(State::Init)),
    70             jsUndefined(),
    71             jsUndefined(),
    7268            jsUndefined(),
    7369        } };
Note: See TracChangeset for help on using the changeset viewer.