Changeset 273269 in webkit
- Timestamp:
- Feb 22, 2021 12:15:51 PM (3 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r273229 r273269 1 2021-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 1 11 2021-02-21 Lauro Moura <lmoura@igalia.com> 2 12 -
trunk/Source/JavaScriptCore/runtime/AbstractModuleRecord.h
r273225 r273269 39 39 // Based on the Source Text Module Record 40 40 // http://www.ecma-international.org/ecma-262/6.0/#sec-source-text-module-records 41 class AbstractModuleRecord : public JSInternalFieldObjectImpl< 4> {41 class AbstractModuleRecord : public JSInternalFieldObjectImpl<2> { 42 42 friend class LLIntOffsetsExtractor; 43 43 public: 44 using Base = JSInternalFieldObjectImpl< 4>;44 using Base = JSInternalFieldObjectImpl<2>; 45 45 46 46 static constexpr bool needsDestruction = true; … … 58 58 enum class Field : uint32_t { 59 59 State, 60 Next,61 This,62 60 Frame, 63 61 }; 64 62 65 static_assert(numberOfInternalFields == 4);63 static_assert(numberOfInternalFields == 2); 66 64 static std::array<JSValue, numberOfInternalFields> initialValues() 67 65 { 68 66 return { { 69 67 jsNumber(static_cast<int32_t>(State::Init)), 70 jsUndefined(),71 jsUndefined(),72 68 jsUndefined(), 73 69 } };
Note: See TracChangeset
for help on using the changeset viewer.