Changeset 38826 in webkit


Ignore:
Timestamp:
Nov 27, 2008 9:03:46 PM (15 years ago)
Author:
cwzwarich@webkit.org
Message:

2008-11-27 Cameron Zwarich <zwarich@apple.com>

Not reviewed.

r38825 made JSFunction::m_body private, but some inspector code in
WebCore sets the field. Add setters for it, and update the inspector
code to use the new getters and setters.

JavaScriptCore:

  • runtime/JSFunction.h: (JSC::JSFunction::setBody):

WebCore:

  • inspector/JavaScriptDebugServer.cpp: (WebCore::JavaScriptDebugServer::recompileAllJSFunctions):
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r38825 r38826  
     12008-11-27  Cameron Zwarich  <zwarich@apple.com>
     2
     3        Not reviewed.
     4
     5        r38825 made JSFunction::m_body private, but some inspector code in
     6        WebCore sets the field. Add setters for it.
     7
     8        * runtime/JSFunction.h:
     9        (JSC::JSFunction::setBody):
     10
    1112008-11-27  Sam Weinig  <sam@webkit.org>
    212
  • trunk/JavaScriptCore/runtime/JSFunction.h

    r38825 r38826  
    6464        ScopeChain& scope() { return m_scopeChain; }
    6565
     66        void setBody(FunctionBodyNode* body) { m_body = body; }
     67        void setBody(PassRefPtr<FunctionBodyNode> body) { m_body = body; }
    6668        FunctionBodyNode* body() const { return m_body.get(); }
    6769
  • trunk/WebCore/ChangeLog

    r38821 r38826  
     12008-11-27  Cameron Zwarich  <zwarich@apple.com>
     2
     3        Not reviewed.
     4
     5        r38825, was committed without checking whether anything in WebCore
     6        uses JSFunction::m_body. Use the appropriate getters and setters
     7        instead.
     8
     9        * inspector/JavaScriptDebugServer.cpp:
     10        (WebCore::JavaScriptDebugServer::recompileAllJSFunctions):
     11
    1122008-11-27  Alexey Proskuryakov  <ap@webkit.org>
    213
  • trunk/WebCore/inspector/JavaScriptDebugServer.cpp

    r38418 r38826  
    563563        JSFunction* function = functions[i];
    564564
    565         FunctionBodyNode* oldBody = function->m_body.get();
     565        FunctionBodyNode* oldBody = function->body();
    566566        pair<FunctionBodyMap::iterator, bool> result = functionBodies.add(oldBody, 0);
    567567        if (!result.second) {
    568             function->m_body = result.first->second;
     568            function->setBody(result.first->second.get());
    569569            continue;
    570570        }
     
    578578
    579579        result.first->second = newBody;
    580         function->m_body = newBody.release();
     580        function->setBody(newBody.release());
    581581
    582582        if (hasListeners()) {
Note: See TracChangeset for help on using the changeset viewer.