Changeset 192935 in webkit for trunk/Source/JavaScriptCore/bytecode/ExecutableInfo.h
- Timestamp:
- Dec 1, 2015, 5:37:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/ExecutableInfo.h
r192914 r192935 27 27 #define ExecutableInfo_h 28 28 29 #include "GeneratorThisMode.h"30 29 #include "ParserModes.h" 31 30 32 31 namespace JSC { 33 32 34 // FIXME: These flags, ParserModes and propagation to XXXCodeBlocks should be reorganized.35 // https://bugs.webkit.org/show_bug.cgi?id=15154736 33 struct ExecutableInfo { 37 ExecutableInfo(bool needsActivation, bool usesEval, bool isStrictMode, bool isConstructor, bool isBuiltinFunction, ConstructorKind constructorKind, GeneratorThisMode generatorThisMode, SuperBinding superBinding, SourceParseMode parseMode)34 ExecutableInfo(bool needsActivation, bool usesEval, bool isStrictMode, bool isConstructor, bool isBuiltinFunction, ConstructorKind constructorKind, bool isArrowFunction) 38 35 : m_needsActivation(needsActivation) 39 36 , m_usesEval(usesEval) … … 41 38 , m_isConstructor(isConstructor) 42 39 , m_isBuiltinFunction(isBuiltinFunction) 43 , m_generatorThisMode(static_cast<unsigned>(generatorThisMode))44 40 , m_constructorKind(static_cast<unsigned>(constructorKind)) 45 , m_superBinding(static_cast<unsigned>(superBinding)) 46 , m_parseMode(parseMode) 41 , m_isArrowFunction(isArrowFunction) 47 42 { 48 43 ASSERT(m_constructorKind == static_cast<unsigned>(constructorKind)); 49 ASSERT(m_superBinding == static_cast<unsigned>(superBinding));50 ASSERT(m_generatorThisMode == static_cast<unsigned>(generatorThisMode));51 44 } 52 45 … … 56 49 bool isConstructor() const { return m_isConstructor; } 57 50 bool isBuiltinFunction() const { return m_isBuiltinFunction; } 58 GeneratorThisMode generatorThisMode() const { return static_cast<GeneratorThisMode>(m_generatorThisMode); }59 51 ConstructorKind constructorKind() const { return static_cast<ConstructorKind>(m_constructorKind); } 60 SuperBinding superBinding() const { return static_cast<SuperBinding>(m_superBinding); } 61 SourceParseMode parseMode() const { return m_parseMode; } 52 bool isArrowFunction() const { return m_isArrowFunction; } 62 53 63 54 private: … … 67 58 unsigned m_isConstructor : 1; 68 59 unsigned m_isBuiltinFunction : 1; 69 unsigned m_generatorThisMode : 1;70 60 unsigned m_constructorKind : 2; 71 unsigned m_superBinding : 1; 72 SourceParseMode m_parseMode; 61 unsigned m_isArrowFunction : 1; 73 62 }; 74 63
Note:
See TracChangeset
for help on using the changeset viewer.