Changeset 194435 in webkit for trunk/Source/JavaScriptCore/bytecode/ExecutableInfo.h
- Timestamp:
- Dec 29, 2015, 3:49:35 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/ExecutableInfo.h
r193766 r194435 27 27 #define ExecutableInfo_h 28 28 29 #include "GeneratorThisMode.h"30 29 #include "ParserModes.h" 31 30 … … 35 34 // https://bugs.webkit.org/show_bug.cgi?id=151547 36 35 struct ExecutableInfo { 37 ExecutableInfo(bool needsActivation, bool usesEval, bool isStrictMode, bool isConstructor, bool isBuiltinFunction, ConstructorKind constructorKind, GeneratorThisMode generatorThisMode,SuperBinding superBinding, SourceParseMode parseMode, bool isDerivedConstructorContext, bool isArrowFunctionContext)36 ExecutableInfo(bool needsActivation, bool usesEval, bool isStrictMode, bool isConstructor, bool isBuiltinFunction, ConstructorKind constructorKind, SuperBinding superBinding, SourceParseMode parseMode, bool isDerivedConstructorContext, bool isArrowFunctionContext) 38 37 : m_needsActivation(needsActivation) 39 38 , m_usesEval(usesEval) … … 41 40 , m_isConstructor(isConstructor) 42 41 , m_isBuiltinFunction(isBuiltinFunction) 43 , m_generatorThisMode(static_cast<unsigned>(generatorThisMode))44 42 , m_constructorKind(static_cast<unsigned>(constructorKind)) 45 43 , m_superBinding(static_cast<unsigned>(superBinding)) … … 50 48 ASSERT(m_constructorKind == static_cast<unsigned>(constructorKind)); 51 49 ASSERT(m_superBinding == static_cast<unsigned>(superBinding)); 52 ASSERT(m_generatorThisMode == static_cast<unsigned>(generatorThisMode));53 50 } 54 51 … … 58 55 bool isConstructor() const { return m_isConstructor; } 59 56 bool isBuiltinFunction() const { return m_isBuiltinFunction; } 60 GeneratorThisMode generatorThisMode() const { return static_cast<GeneratorThisMode>(m_generatorThisMode); }61 57 ConstructorKind constructorKind() const { return static_cast<ConstructorKind>(m_constructorKind); } 62 58 SuperBinding superBinding() const { return static_cast<SuperBinding>(m_superBinding); } … … 71 67 unsigned m_isConstructor : 1; 72 68 unsigned m_isBuiltinFunction : 1; 73 unsigned m_generatorThisMode : 1;74 69 unsigned m_constructorKind : 2; 75 70 unsigned m_superBinding : 1;
Note:
See TracChangeset
for help on using the changeset viewer.