Ignore:
Timestamp:
Jan 29, 2016, 6:05:17 PM (10 years ago)
Author:
[email protected]
Message:

Pack FunctionExecutable and UnlinkedFunctionExecutable harder
https://bugs.webkit.org/show_bug.cgi?id=153687

Reviewed by Andreas Kling.

This patch reduces FunctionExecutable from 120 to 104 bytes.
This patch reduces UnlinkedFunctionExecutable from 144 to 136 bytes.

  • bytecode/ExecutableInfo.h:
  • bytecode/UnlinkedFunctionExecutable.cpp:

(JSC::UnlinkedFunctionExecutable::UnlinkedFunctionExecutable):

  • bytecode/UnlinkedFunctionExecutable.h:
  • parser/ParserModes.h:

(JSC::functionNameScopeIsDynamic):

  • runtime/Executable.cpp:

(JSC::ScriptExecutable::ScriptExecutable):

  • runtime/Executable.h:

(JSC::ScriptExecutable::needsActivation):
(JSC::ScriptExecutable::isArrowFunctionContext):
(JSC::ScriptExecutable::isStrictMode):
(JSC::ScriptExecutable::derivedContextType):
(JSC::ScriptExecutable::ecmaMode):
(JSC::ScriptExecutable::finishCreation):

File:
1 edited

Legend:

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

    r195799 r195876  
    134134ScriptExecutable::ScriptExecutable(Structure* structure, VM& vm, const SourceCode& source, bool isInStrictContext, DerivedContextType derivedContextType, bool isInArrowFunctionContext)
    135135    : ExecutableBase(vm, structure, NUM_PARAMETERS_NOT_COMPILED)
    136     , m_source(source)
    137136    , m_features(isInStrictContext ? StrictModeFeature : 0)
     137    , m_didTryToEnterInLoop(false)
    138138    , m_hasCapturedVariables(false)
    139139    , m_neverInline(false)
    140     , m_didTryToEnterInLoop(false)
    141     , m_derivedContextType(derivedContextType)
     140    , m_neverOptimize(false)
    142141    , m_isArrowFunctionContext(isInArrowFunctionContext)
     142    , m_derivedContextType(static_cast<unsigned>(derivedContextType))
    143143    , m_overrideLineNumber(-1)
    144144    , m_firstLine(-1)
     
    148148    , m_typeProfilingStartOffset(UINT_MAX)
    149149    , m_typeProfilingEndOffset(UINT_MAX)
     150    , m_source(source)
    150151{
    151152}
Note: See TracChangeset for help on using the changeset viewer.