Changeset 195365 in webkit
- Timestamp:
- Jan 20, 2016 12:27:01 PM (8 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r195362 r195365 1 2016-01-20 Andreas Kling <akling@apple.com> 2 3 Pack RegisterAtOffset harder. 4 <https://webkit.org/b/152501> 5 6 Reviewed by Michael Saboff. 7 8 Pack the register index and the offset into a single pointer-sized word instead of two. 9 This reduces memory consumption by 620 kB on mobile theverge.com. 10 11 The packing doesn't succeed on MSVC for some reason, so I've left out the static 12 assertion about class size in those builds. 13 14 * jit/RegisterAtOffset.cpp: 15 * jit/RegisterAtOffset.h: 16 1 17 2016-01-20 Per Arne Vollan <peavo@outlook.com> 2 18 -
trunk/Source/JavaScriptCore/jit/RegisterAtOffset.cpp
r189575 r195365 31 31 namespace JSC { 32 32 33 #if !COMPILER(MSVC) 34 static_assert(sizeof(RegisterAtOffset) == sizeof(ptrdiff_t), "RegisterAtOffset should be small."); 35 #endif 36 33 37 void RegisterAtOffset::dump(PrintStream& out) const 34 38 { -
trunk/Source/JavaScriptCore/jit/RegisterAtOffset.h
r189575 r195365 71 71 private: 72 72 Reg m_reg; 73 ptrdiff_t m_offset ;73 ptrdiff_t m_offset : sizeof(ptrdiff_t) * 8 - sizeof(Reg) * 8; 74 74 }; 75 75
Note: See TracChangeset
for help on using the changeset viewer.