Ignore:
Timestamp:
Nov 29, 2017, 9:46:26 AM (8 years ago)
Author:
[email protected]
Message:

Strict and sloppy functions shouldn't share structure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSGlobalObject.h

    r223603 r225273  
    322322    LazyProperty<JSGlobalObject, Structure> m_nullPrototypeObjectStructure;
    323323    WriteBarrier<Structure> m_calleeStructure;
    324     WriteBarrier<Structure> m_functionStructure;
     324    WriteBarrier<Structure> m_strictFunctionStructure;
     325    WriteBarrier<Structure> m_sloppyFunctionStructure;
    325326    LazyProperty<JSGlobalObject, Structure> m_boundFunctionStructure;
    326327    LazyProperty<JSGlobalObject, Structure> m_customGetterSetterFunctionStructure;
    327328    WriteBarrier<Structure> m_getterSetterStructure;
    328329    LazyProperty<JSGlobalObject, Structure> m_nativeStdFunctionStructure;
    329     LazyProperty<JSGlobalObject, Structure> m_namedFunctionStructure;
    330330    PropertyOffset m_functionNameOffset;
    331331    WriteBarrier<Structure> m_regExpStructure;
     
    630630    Structure* errorStructure() const { return m_errorStructure.get(); }
    631631    Structure* calleeStructure() const { return m_calleeStructure.get(); }
    632     Structure* functionStructure() const { return m_functionStructure.get(); }
     632    Structure* strictFunctionStructure() const { return m_strictFunctionStructure.get(); }
     633    Structure* sloppyFunctionStructure() const { return m_sloppyFunctionStructure.get(); }
    633634    Structure* boundFunctionStructure() const { return m_boundFunctionStructure.get(this); }
    634635    Structure* customGetterSetterFunctionStructure() const { return m_customGetterSetterFunctionStructure.get(this); }
    635636    Structure* getterSetterStructure() const { return m_getterSetterStructure.get(); }
    636637    Structure* nativeStdFunctionStructure() const { return m_nativeStdFunctionStructure.get(this); }
    637     Structure* namedFunctionStructure() const { return m_namedFunctionStructure.get(this); }
    638638    PropertyOffset functionNameOffset() const { return m_functionNameOffset; }
    639639    Structure* numberObjectStructure() const { return m_numberObjectStructure.get(); }
Note: See TracChangeset for help on using the changeset viewer.