Changeset 238185 in webkit for trunk/Source/JavaScriptCore/parser/SourceCodeKey.h
- Timestamp:
- Nov 14, 2018, 10:49:22 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/SourceCodeKey.h
r238109 r238185 79 79 const UnlinkedSourceCode& sourceCode, const String& name, SourceCodeType codeType, JSParserStrictMode strictMode, 80 80 JSParserScriptMode scriptMode, DerivedContextType derivedContextType, EvalContextType evalContextType, bool isArrowFunctionContext, 81 DebuggerMode debuggerMode, TypeProfilerEnabled typeProfilerEnabled, ControlFlowProfilerEnabled controlFlowProfilerEnabled )81 DebuggerMode debuggerMode, TypeProfilerEnabled typeProfilerEnabled, ControlFlowProfilerEnabled controlFlowProfilerEnabled, std::optional<int> functionConstructorParametersEndPosition) 82 82 : m_sourceCode(sourceCode) 83 83 , m_name(name) 84 84 , m_flags(codeType, strictMode, scriptMode, derivedContextType, evalContextType, isArrowFunctionContext, debuggerMode, typeProfilerEnabled, controlFlowProfilerEnabled) 85 , m_functionConstructorParametersEndPosition(functionConstructorParametersEndPosition.value_or(-1)) 85 86 , m_hash(sourceCode.hash() ^ m_flags.bits()) 86 87 { … … 109 110 && length() == other.length() 110 111 && m_flags == other.m_flags 112 && m_functionConstructorParametersEndPosition == other.m_functionConstructorParametersEndPosition 111 113 && m_name == other.m_name 112 114 && string() == other.string(); … … 128 130 String m_name; 129 131 SourceCodeFlags m_flags; 132 int m_functionConstructorParametersEndPosition; 130 133 unsigned m_hash; 131 134 };
Note:
See TracChangeset
for help on using the changeset viewer.