Changeset 38826 in webkit
- Timestamp:
- Nov 27, 2008 9:03:46 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r38825 r38826 1 2008-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 1 11 2008-11-27 Sam Weinig <sam@webkit.org> 2 12 -
trunk/JavaScriptCore/runtime/JSFunction.h
r38825 r38826 64 64 ScopeChain& scope() { return m_scopeChain; } 65 65 66 void setBody(FunctionBodyNode* body) { m_body = body; } 67 void setBody(PassRefPtr<FunctionBodyNode> body) { m_body = body; } 66 68 FunctionBodyNode* body() const { return m_body.get(); } 67 69 -
trunk/WebCore/ChangeLog
r38821 r38826 1 2008-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 1 12 2008-11-27 Alexey Proskuryakov <ap@webkit.org> 2 13 -
trunk/WebCore/inspector/JavaScriptDebugServer.cpp
r38418 r38826 563 563 JSFunction* function = functions[i]; 564 564 565 FunctionBodyNode* oldBody = function-> m_body.get();565 FunctionBodyNode* oldBody = function->body(); 566 566 pair<FunctionBodyMap::iterator, bool> result = functionBodies.add(oldBody, 0); 567 567 if (!result.second) { 568 function-> m_body = result.first->second;568 function->setBody(result.first->second.get()); 569 569 continue; 570 570 } … … 578 578 579 579 result.first->second = newBody; 580 function-> m_body = newBody.release();580 function->setBody(newBody.release()); 581 581 582 582 if (hasListeners()) {
Note: See TracChangeset
for help on using the changeset viewer.