Changeset 231477 in webkit for trunk/Source/JavaScriptCore/bytecode/UnlinkedFunctionExecutable.cpp
- Timestamp:
- May 7, 2018, 9:18:25 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/UnlinkedFunctionExecutable.cpp
r229952 r231477 69 69 UnlinkedFunctionCodeBlock* result = UnlinkedFunctionCodeBlock::create(&vm, FunctionCode, ExecutableInfo(function->usesEval(), function->isStrictMode(), kind == CodeForConstruct, functionKind == UnlinkedBuiltinFunction, executable->constructorKind(), scriptMode, executable->superBinding(), parseMode, executable->derivedContextType(), false, isClassContext, EvalContextType::FunctionEvalContext), debuggerMode); 70 70 71 error = BytecodeGenerator::generate(vm, function.get(), source, result, debuggerMode, executable->parentScopeTDZVariables()); 71 VariableEnvironment parentScopeTDZVariables = executable->parentScopeTDZVariables(); 72 error = BytecodeGenerator::generate(vm, function.get(), source, result, debuggerMode, &parentScopeTDZVariables); 72 73 73 74 if (error.isValid()) … … 105 106 , m_parentSourceOverride(WTFMove(parentSourceOverride)) 106 107 , m_classSource(node->classSource()) 108 , m_parentScopeTDZVariables(vm->m_compactVariableMap->get(parentScopeTDZVariables)) 107 109 { 108 110 // Make sure these bitfields are adequately wide. … … 113 115 ASSERT(m_superBinding == static_cast<unsigned>(node->superBinding())); 114 116 ASSERT(m_derivedContextType == static_cast<unsigned>(derivedContextType)); 115 116 m_parentScopeTDZVariables.swap(parentScopeTDZVariables);117 117 } 118 118
Note:
See TracChangeset
for help on using the changeset viewer.