⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 102194 in webkit


Ignore:
Timestamp:
Dec 6, 2011, 4:55:23 PM (15 years ago)
Author:
weinig@apple.com
Message:

Remove unintentional type name shadowing in the Interpreter
https://bugs.webkit.org/show_bug.cgi?id=73963

Reviewed by Oliver Hunt.

  • interpreter/Interpreter.cpp:

(JSC::Interpreter::prepareForRepeatCall): Replace the parameter name FunctionExecutable,
which shadows the FunctionExecutable type name, with functionExecutable.

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r102182 r102194  
     12011-12-06  Sam Weinig  <sam@webkit.org>
     2
     3        Remove unintentional type name shadowing in the Interpreter
     4        https://bugs.webkit.org/show_bug.cgi?id=73963
     5
     6        Reviewed by Oliver Hunt.
     7
     8        * interpreter/Interpreter.cpp:
     9        (JSC::Interpreter::prepareForRepeatCall): Replace the parameter name FunctionExecutable,
     10        which shadows the FunctionExecutable type name, with functionExecutable.
     11
    1122011-12-06  Michael Saboff  <msaboff@apple.com>
    213
  • trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp

    r102011 r102194  
    12161216}
    12171217
    1218 CallFrameClosure Interpreter::prepareForRepeatCall(FunctionExecutable* FunctionExecutable, CallFrame* callFrame, JSFunction* function, int argumentCountIncludingThis, ScopeChainNode* scopeChain)
     1218CallFrameClosure Interpreter::prepareForRepeatCall(FunctionExecutable* functionExecutable, CallFrame* callFrame, JSFunction* function, int argumentCountIncludingThis, ScopeChainNode* scopeChain)
    12191219{
    12201220    ASSERT(!scopeChain->globalData->exception);
     
    12391239        newCallFrame->uncheckedR(dst++) = jsUndefined();
    12401240   
    1241     JSObject* error = FunctionExecutable->compileForCall(callFrame, scopeChain);
     1241    JSObject* error = functionExecutable->compileForCall(callFrame, scopeChain);
    12421242    if (error) {
    12431243        throwError(callFrame, error);
     
    12451245        return CallFrameClosure();
    12461246    }
    1247     CodeBlock* codeBlock = &FunctionExecutable->generatedBytecodeForCall();
     1247    CodeBlock* codeBlock = &functionExecutable->generatedBytecodeForCall();
    12481248
    12491249    newCallFrame = slideRegisterWindowForCall(codeBlock, &m_registerFile, newCallFrame, argumentCountIncludingThis + RegisterFile::CallFrameHeaderSize, argumentCountIncludingThis);
     
    12551255    newCallFrame->init(codeBlock, 0, scopeChain, callFrame->addHostCallFrameFlag(), argumentCountIncludingThis, function); 
    12561256    scopeChain->globalData->topCallFrame = newCallFrame;
    1257     CallFrameClosure result = { callFrame, newCallFrame, function, FunctionExecutable, scopeChain->globalData, oldEnd, scopeChain, codeBlock->m_numParameters, argumentCountIncludingThis };
     1257    CallFrameClosure result = { callFrame, newCallFrame, function, functionExecutable, scopeChain->globalData, oldEnd, scopeChain, codeBlock->m_numParameters, argumentCountIncludingThis };
    12581258    return result;
    12591259}
Note: See TracChangeset for help on using the changeset viewer.