Changeset 194449 in webkit for trunk/Source/JavaScriptCore/bytecode/UnlinkedFunctionExecutable.cpp
- Timestamp:
- Dec 30, 2015, 1:08:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/UnlinkedFunctionExecutable.cpp
r194435 r194449 66 66 function->finishParsing(executable->name(), executable->functionMode()); 67 67 executable->recordParse(function->features(), function->hasCapturedVariables()); 68 68 69 bool isClassContext = executable->superBinding() == SuperBinding::Needed; 70 69 71 UnlinkedFunctionCodeBlock* result = UnlinkedFunctionCodeBlock::create(&vm, FunctionCode, 70 ExecutableInfo(function->needsActivation(), function->usesEval(), function->isStrictMode(), kind == CodeForConstruct, functionKind == UnlinkedBuiltinFunction, executable->constructorKind(), executable->superBinding(), parseMode, executable->isDerivedConstructorContext(), false));72 ExecutableInfo(function->needsActivation(), function->usesEval(), function->isStrictMode(), kind == CodeForConstruct, functionKind == UnlinkedBuiltinFunction, executable->constructorKind(), executable->superBinding(), parseMode, executable->derivedContextType(), false, isClassContext)); 71 73 72 74 auto generator(std::make_unique<BytecodeGenerator>(vm, function.get(), result, debuggerMode, profilerMode, executable->parentScopeTDZVariables())); … … 77 79 } 78 80 79 UnlinkedFunctionExecutable::UnlinkedFunctionExecutable(VM* vm, Structure* structure, const SourceCode& source, RefPtr<SourceProvider>&& sourceOverride, FunctionMetadataNode* node, UnlinkedFunctionKind kind, ConstructAbility constructAbility, VariableEnvironment& parentScopeTDZVariables, bool isDerivedConstructorContext)81 UnlinkedFunctionExecutable::UnlinkedFunctionExecutable(VM* vm, Structure* structure, const SourceCode& source, RefPtr<SourceProvider>&& sourceOverride, FunctionMetadataNode* node, UnlinkedFunctionKind kind, ConstructAbility constructAbility, VariableEnvironment& parentScopeTDZVariables, DerivedContextType derivedContextType) 80 82 : Base(*vm, structure) 81 83 , m_name(node->ident()) … … 102 104 , m_functionMode(node->functionMode()) 103 105 , m_superBinding(static_cast<unsigned>(node->superBinding())) 104 , m_ isDerivedConstructorContext(isDerivedConstructorContext)106 , m_derivedContextType(static_cast<unsigned>(derivedContextType)) 105 107 { 106 108 ASSERT(m_constructorKind == static_cast<unsigned>(node->constructorKind()));
Note:
See TracChangeset
for help on using the changeset viewer.