Changeset 242659 in webkit
- Timestamp:
- Mar 8, 2019, 3:24:25 PM (7 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
bytecode/GetByIdStatus.cpp (modified) (1 diff)
-
bytecode/GetByIdStatus.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r242657 r242659 1 2019-03-08 Robin Morisset <rmorisset@apple.com> 2 3 GetByIdStatus can be shrunk by 16 bytes 4 https://bugs.webkit.org/show_bug.cgi?id=195480 5 6 Reviewed by Saam Barati. 7 8 8 bytes from reordering fields 9 8 more bytes by making the enum State only use 1 byte. 10 11 * bytecode/GetByIdStatus.cpp: 12 (JSC::GetByIdStatus::GetByIdStatus): 13 * bytecode/GetByIdStatus.h: 14 1 15 2019-03-08 Robin Morisset <rmorisset@apple.com> 2 16 -
trunk/Source/JavaScriptCore/bytecode/GetByIdStatus.cpp
r240138 r242659 143 143 #if ENABLE(JIT) 144 144 GetByIdStatus::GetByIdStatus(const ModuleNamespaceAccessCase& accessCase) 145 : m_state(ModuleNamespace) 146 , m_wasSeenInJIT(true) 147 , m_moduleNamespaceObject(accessCase.moduleNamespaceObject()) 145 : m_moduleNamespaceObject(accessCase.moduleNamespaceObject()) 148 146 , m_moduleEnvironment(accessCase.moduleEnvironment()) 149 147 , m_scopeOffset(accessCase.scopeOffset()) 148 , m_state(ModuleNamespace) 149 , m_wasSeenInJIT(true) 150 150 { 151 151 } -
trunk/Source/JavaScriptCore/bytecode/GetByIdStatus.h
r234855 r242659 46 46 class GetByIdStatus { 47 47 public: 48 enum State {48 enum State : uint8_t { 49 49 // It's uncached so we have no information. 50 50 NoInformation, … … 157 157 bool appendVariant(const GetByIdVariant&); 158 158 159 State m_state;159 160 160 Vector<GetByIdVariant, 1> m_variants; 161 bool m_wasSeenInJIT { false };162 161 JSModuleNamespaceObject* m_moduleNamespaceObject { nullptr }; 163 162 JSModuleEnvironment* m_moduleEnvironment { nullptr }; 164 163 ScopeOffset m_scopeOffset { }; 164 State m_state; 165 bool m_wasSeenInJIT { false }; 165 166 }; 166 167
Note:
See TracChangeset
for help on using the changeset viewer.