Changeset 209632 in webkit for trunk/Source/JavaScriptCore/runtime/CodeCache.cpp
- Timestamp:
- Dec 9, 2016, 2:59:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/CodeCache.cpp
r209353 r209632 63 63 UnlinkedCodeBlockType* unlinkedCodeBlock = jsCast<UnlinkedCodeBlockType*>(cache->cell.get()); 64 64 unsigned lineCount = unlinkedCodeBlock->lineCount(); 65 unsigned startColumn = unlinkedCodeBlock->startColumn() + source.startColumn() ;65 unsigned startColumn = unlinkedCodeBlock->startColumn() + source.startColumn().oneBasedInt(); 66 66 bool endColumnIsOnStartLine = !lineCount; 67 67 unsigned endColumn = unlinkedCodeBlock->endColumn() + (endColumnIsOnStartLine ? startColumn : 1); 68 executable->recordParse(unlinkedCodeBlock->codeFeatures(), unlinkedCodeBlock->hasCapturedVariables(), source.firstLine() + lineCount, endColumn);68 executable->recordParse(unlinkedCodeBlock->codeFeatures(), unlinkedCodeBlock->hasCapturedVariables(), source.firstLine().oneBasedInt() + lineCount, endColumn); 69 69 source.provider()->setSourceURLDirective(unlinkedCodeBlock->sourceURLDirective()); 70 70 source.provider()->setSourceMappingURLDirective(unlinkedCodeBlock->sourceMappingURLDirective());
Note:
See TracChangeset
for help on using the changeset viewer.