Ignore:
Timestamp:
Jul 7, 2018, 1:29:31 PM (7 years ago)
Author:
Yusuke Suzuki
Message:

[JSC] Optimize layout of RegExp to reduce padding
https://bugs.webkit.org/show_bug.cgi?id=187438

Reviewed by Mark Lam.

Reduce the size of RegExp from 168 to 144.

  • runtime/RegExp.cpp:

(JSC::RegExp::RegExp):

  • runtime/RegExp.h:
  • runtime/RegExpKey.h:
  • yarr/YarrErrorCode.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/RegExp.cpp

    r227738 r233621  
    212212RegExp::RegExp(VM& vm, const String& patternString, RegExpFlags flags)
    213213    : JSCell(vm, vm.regExpStructure.get())
    214     , m_state(NotCompiled)
    215214    , m_patternString(patternString)
    216215    , m_flags(flags)
Note: See TracChangeset for help on using the changeset viewer.