Changeset 197308 in webkit for trunk/Source/JavaScriptCore/runtime/CodeCache.cpp
- Timestamp:
- Feb 28, 2016, 9:26:05 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/CodeCache.cpp
r196272 r197308 188 188 return nullptr; 189 189 190 metadata->overrideName(name); 190 191 metadata->setEndPosition(positionBeforeLastNewline); 191 192 // The Function constructor only has access to global variables, so no variables will be under TDZ. … … 193 194 UnlinkedFunctionExecutable* functionExecutable = UnlinkedFunctionExecutable::create(&vm, source, metadata, UnlinkedNormalFunction, ConstructAbility::CanConstruct, emptyTDZVariables, DerivedContextType::None); 194 195 195 functionExecutable->m_nameValue.set(vm, functionExecutable, jsString(&vm, name.string()));196 197 196 m_sourceCode.addCache(key, SourceCodeValue(vm, functionExecutable, m_sourceCode.age())); 198 197 return functionExecutable;
Note:
See TracChangeset
for help on using the changeset viewer.