Changeset 241431 in webkit
- Timestamp:
- Feb 13, 2019 4:21:00 AM (5 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r241340 r241431 1 2019-02-13 Tadeu Zagallo <tzagallo@apple.com> 2 3 SourceCode should be copied when generating bytecode for functions 4 https://bugs.webkit.org/show_bug.cgi?id=194536 5 6 Reviewed by Saam Barati. 7 8 The FunctionExecutable might be collected while generating the bytecode 9 for nested functions, in which case the SourceCode reference would no 10 longer be valid. 11 12 * runtime/CodeCache.cpp: 13 (JSC::generateUnlinkedCodeBlockForFunctions): 14 1 15 2019-02-12 Saam barati <sbarati@apple.com> 2 16 -
trunk/Source/JavaScriptCore/runtime/CodeCache.cpp
r240557 r241431 171 171 172 172 FunctionExecutable* executable = unlinkedExecutable->link(vm, parentSource); 173 const SourceCode& source = executable->source(); 173 // FIXME: We shouldn't need to create a FunctionExecutable just to get its source code 174 // https://bugs.webkit.org/show_bug.cgi?id=194576 175 SourceCode source = executable->source(); 174 176 UnlinkedFunctionCodeBlock* unlinkedFunctionCodeBlock = unlinkedExecutable->unlinkedCodeBlockFor(vm, source, constructorKind, debuggerMode, error, unlinkedExecutable->parseMode()); 175 177 if (unlinkedFunctionCodeBlock)
Note: See TracChangeset
for help on using the changeset viewer.