Ignore:
Timestamp:
Apr 25, 2014, 11:51:20 AM (11 years ago)
Author:
[email protected]
Message:

Remove unused parameter from codeblock linking function
https://bugs.webkit.org/show_bug.cgi?id=132199

Reviewed by Anders Carlsson.

No change in behaviour. This is just a small change to make it
slightly easier to reason about what the offsets in UnlinkedFunctionExecutable
actually mean.

  • bytecode/UnlinkedCodeBlock.cpp:

(JSC::UnlinkedFunctionExecutable::link):

  • bytecode/UnlinkedCodeBlock.h:
  • runtime/Executable.cpp:

(JSC::ProgramExecutable::initializeGlobalProperties):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.cpp

    r167313 r167813  
    125125}
    126126
    127 FunctionExecutable* UnlinkedFunctionExecutable::link(VM& vm, const SourceCode& source, size_t lineOffset, size_t sourceOffset)
     127FunctionExecutable* UnlinkedFunctionExecutable::link(VM& vm, const SourceCode& source, size_t lineOffset)
    128128{
    129129    unsigned firstLine = lineOffset + m_firstLineOffset;
    130     unsigned startOffset = sourceOffset + m_startOffset;
    131130    bool startColumnIsOnFirstSourceLine = !m_firstLineOffset;
    132131    unsigned startColumn = m_unlinkedBodyStartColumn + (startColumnIsOnFirstSourceLine ? source.startColumn() : 1);
    133132    bool endColumnIsOnStartLine = !m_lineCount;
    134133    unsigned endColumn = m_unlinkedBodyEndColumn + (endColumnIsOnStartLine ? startColumn : 1);
    135     SourceCode code(source.provider(), startOffset, startOffset + m_sourceLength, firstLine, startColumn);
     134    SourceCode code(source.provider(), m_startOffset, m_startOffset + m_sourceLength, firstLine, startColumn);
    136135    return FunctionExecutable::create(vm, code, this, firstLine, firstLine + m_lineCount, startColumn, endColumn);
    137136}
Note: See TracChangeset for help on using the changeset viewer.