Changeset 194449 in webkit for trunk/Source/JavaScriptCore/bytecode/ExecutableInfo.h
- Timestamp:
- Dec 30, 2015, 1:08:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/ExecutableInfo.h
r194435 r194449 30 30 31 31 namespace JSC { 32 33 enum class DerivedContextType { None, DerivedConstructorContext, DerivedMethodContext }; 32 34 33 35 // FIXME: These flags, ParserModes and propagation to XXXCodeBlocks should be reorganized. 34 36 // https://bugs.webkit.org/show_bug.cgi?id=151547 35 37 struct ExecutableInfo { 36 ExecutableInfo(bool needsActivation, bool usesEval, bool isStrictMode, bool isConstructor, bool isBuiltinFunction, ConstructorKind constructorKind, SuperBinding superBinding, SourceParseMode parseMode, bool isDerivedConstructorContext, bool isArrowFunctionContext)38 ExecutableInfo(bool needsActivation, bool usesEval, bool isStrictMode, bool isConstructor, bool isBuiltinFunction, ConstructorKind constructorKind, SuperBinding superBinding, SourceParseMode parseMode, DerivedContextType derivedContextType, bool isArrowFunctionContext, bool isClassContext) 37 39 : m_needsActivation(needsActivation) 38 40 , m_usesEval(usesEval) … … 43 45 , m_superBinding(static_cast<unsigned>(superBinding)) 44 46 , m_parseMode(parseMode) 45 , m_ isDerivedConstructorContext(isDerivedConstructorContext)47 , m_derivedContextType(static_cast<unsigned>(derivedContextType)) 46 48 , m_isArrowFunctionContext(isArrowFunctionContext) 49 , m_isClassContext(isClassContext) 47 50 { 48 51 ASSERT(m_constructorKind == static_cast<unsigned>(constructorKind)); … … 58 61 SuperBinding superBinding() const { return static_cast<SuperBinding>(m_superBinding); } 59 62 SourceParseMode parseMode() const { return m_parseMode; } 60 bool isDerivedConstructorContext() const { return m_isDerivedConstructorContext; }63 DerivedContextType derivedContextType() const { return static_cast<DerivedContextType>(m_derivedContextType); } 61 64 bool isArrowFunctionContext() const { return m_isArrowFunctionContext; } 65 bool isClassContext() const { return m_isClassContext; } 62 66 63 67 private: … … 70 74 unsigned m_superBinding : 1; 71 75 SourceParseMode m_parseMode; 72 unsigned m_ isDerivedConstructorContext : 1;76 unsigned m_derivedContextType : 2; 73 77 unsigned m_isArrowFunctionContext : 1; 78 unsigned m_isClassContext : 1; 74 79 }; 75 80
Note:
See TracChangeset
for help on using the changeset viewer.