Changeset 57784 in webkit
- Timestamp:
- Apr 17, 2010 11:42:07 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 9 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r57780 r57784 1 2010-04-17 Yury Semikhatsky <yurys@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: move JavaScriptCallFrame.{h,cpp} to WebCore/bindings/js 6 7 https://bugs.webkit.org/show_bug.cgi?id=37740 8 9 * GNUmakefile.am: 10 * WebCore.gypi: 11 * WebCore.pro: 12 * WebCore.vcproj/WebCore.vcproj: 13 * WebCore.xcodeproj/project.pbxproj: 14 * bindings/js/JSBindingsAllInOne.cpp: 15 * bindings/js/JavaScriptCallFrame.cpp: Renamed from WebCore/inspector/JavaScriptCallFrame.cpp. 16 (WebCore::JavaScriptCallFrame::JavaScriptCallFrame): 17 (WebCore::JavaScriptCallFrame::caller): 18 (WebCore::JavaScriptCallFrame::scopeChain): 19 (WebCore::JavaScriptCallFrame::dynamicGlobalObject): 20 (WebCore::JavaScriptCallFrame::functionName): 21 (WebCore::JavaScriptCallFrame::type): 22 (WebCore::JavaScriptCallFrame::thisObject): 23 (WebCore::JavaScriptCallFrame::evaluate): 24 * bindings/js/JavaScriptCallFrame.h: Renamed from WebCore/inspector/JavaScriptCallFrame.h. 25 (WebCore::JavaScriptCallFrame::create): 26 (WebCore::JavaScriptCallFrame::invalidate): 27 (WebCore::JavaScriptCallFrame::isValid): 28 (WebCore::JavaScriptCallFrame::sourceID): 29 (WebCore::JavaScriptCallFrame::line): 30 (WebCore::JavaScriptCallFrame::update): 31 * inspector/InjectedScriptHost.h: 32 * inspector/InspectorController.h: 33 1 34 2010-04-17 Vangelis Kokkevis <vangelis@chromium.org> 2 35 -
trunk/WebCore/GNUmakefile.am
r57775 r57784 391 391 WebCore/bindings/js/JSDOMBinding.cpp \ 392 392 WebCore/bindings/js/JSDOMBinding.h \ 393 393 WebCore/bindings/js/JSDOMFormDataCustom.cpp \ 394 394 WebCore/bindings/js/JSDOMGlobalObject.cpp \ 395 395 WebCore/bindings/js/JSDOMGlobalObject.h \ … … 491 491 WebCore/bindings/js/JSXSLTProcessorConstructor.h \ 492 492 WebCore/bindings/js/JSXSLTProcessorCustom.cpp \ 493 WebCore/bindings/js/JavaScriptCallFrame.cpp \ 494 WebCore/bindings/js/JavaScriptCallFrame.h \ 493 495 WebCore/bindings/js/ScheduledAction.cpp \ 494 496 WebCore/bindings/js/ScheduledAction.h \ … … 1276 1278 WebCore/inspector/InspectorTimelineAgent.h \ 1277 1279 WebCore/inspector/InspectorWorkerResource.h \ 1278 WebCore/inspector/JavaScriptCallFrame.cpp \1279 WebCore/inspector/JavaScriptCallFrame.h \1280 1280 WebCore/inspector/ScriptBreakpoint.h \ 1281 1281 WebCore/inspector/ScriptDebugListener.h \ -
trunk/WebCore/WebCore.gypi
r57780 r57784 640 640 'bindings/js/JSXSLTProcessorConstructor.h', 641 641 'bindings/js/JSXSLTProcessorCustom.cpp', 642 'bindings/js/JavaScriptCallFrame.cpp', 643 'bindings/js/JavaScriptCallFrame.h', 642 644 'bindings/js/ScheduledAction.cpp', 643 645 'bindings/js/ScheduledAction.h', … … 1664 1666 'inspector/InspectorTimelineAgent.h', 1665 1667 'inspector/InspectorWorkerResource.h', 1666 'inspector/JavaScriptCallFrame.cpp',1667 'inspector/JavaScriptCallFrame.h',1668 1668 'inspector/ScriptBreakpoint.h', 1669 1669 'inspector/ScriptDebugListener.h', -
trunk/WebCore/WebCore.pro
r57775 r57784 1079 1079 bindings/js/JSXMLHttpRequestConstructor.h \ 1080 1080 bindings/js/JSXSLTProcessorConstructor.h \ 1081 bindings/js/JavaScriptCallFrame.h \ 1081 1082 bindings/js/ScheduledAction.h \ 1082 1083 bindings/js/ScriptArray.h \ … … 1441 1442 inspector/InspectorResource.h \ 1442 1443 inspector/InspectorTimelineAgent.h \ 1443 inspector/JavaScriptCallFrame.h \1444 1444 inspector/ScriptGCEventListener.h \ 1445 1445 inspector/TimelineRecordFactory.h \ … … 2734 2734 bindings/js/JSJavaScriptCallFrameCustom.cpp \ 2735 2735 bindings/js/ScriptProfiler.cpp \ 2736 inspector/JavaScriptCallFrame.cpp \2736 bindings/js/JavaScriptCallFrame.cpp \ 2737 2737 } 2738 2738 -
trunk/WebCore/WebCore.vcproj/WebCore.vcproj
r57775 r57784 43293 43293 </File> 43294 43294 <File 43295 RelativePath="..\inspector\JavaScriptCallFrame.cpp"43296 >43297 </File>43298 <File43299 RelativePath="..\inspector\JavaScriptCallFrame.h"43300 >43301 </File>43302 <File43303 43295 RelativePath="..\inspector\ScriptBreakpoint.h" 43304 43296 > -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r57775 r57784 10845 10845 754133A7102E00E800075D00 /* InspectorTimelineAgent.h */, 10846 10846 F375CC061150D300008DDB81 /* InspectorWorkerResource.h */, 10847 1C81BA030E97348300266E07 /* JavaScriptCallFrame.cpp */,10848 1C81BA040E97348300266E07 /* JavaScriptCallFrame.h */,10849 10847 1C81BA050E97348300266E07 /* JavaScriptCallFrame.idl */, 10850 10848 BCC64F5F0DCFB84E0081EF3B /* localizedStrings.js */, … … 14897 14895 F3D461461161D53200CA0D09 /* JSWorkerContextErrorHandler.cpp */, 14898 14896 F3D461471161D53200CA0D09 /* JSWorkerContextErrorHandler.h */, 14897 1C81BA030E97348300266E07 /* JavaScriptCallFrame.cpp */, 14898 1C81BA040E97348300266E07 /* JavaScriptCallFrame.h */, 14899 14899 BCA378BA0D15F64200B793D6 /* ScheduledAction.cpp */, 14900 14900 BCA378BB0D15F64200B793D6 /* ScheduledAction.h */, -
trunk/WebCore/bindings/js/JSBindingsAllInOne.cpp
r57505 r57784 136 136 #include "JSXSLTProcessorConstructor.cpp" 137 137 #include "JSXSLTProcessorCustom.cpp" 138 #include "JavaScriptCallFrame.cpp" 138 139 #include "ScheduledAction.cpp" 139 140 #include "ScriptArray.cpp" -
trunk/WebCore/bindings/js/JavaScriptCallFrame.cpp
r57783 r57784 26 26 #include "config.h" 27 27 #include "JavaScriptCallFrame.h" 28 28 29 #include "JSDOMBinding.h" 29 30 … … 32 33 #include "PlatformString.h" 33 34 #include <debugger/DebuggerCallFrame.h> 35 #include <runtime/Completion.h> 34 36 #include <runtime/JSGlobalObject.h> 35 #include <runtime/Completion.h>36 37 #include <runtime/JSLock.h> 37 38 #include <runtime/JSObject.h> -
trunk/WebCore/bindings/js/JavaScriptCallFrame.h
r57783 r57784 29 29 #if ENABLE(JAVASCRIPT_DEBUGGER) && USE(JSC) 30 30 31 #include <debugger/DebuggerCallFrame.h> 31 32 #include <interpreter/CallFrame.h> 32 33 #include <wtf/PassRefPtr.h> 33 34 #include <wtf/RefCounted.h> 34 #include <debugger/DebuggerCallFrame.h>35 35 36 36 namespace WebCore { 37 37 38 38 class String; 39 39 40 41 42 43 44 45 40 class JavaScriptCallFrame : public RefCounted<JavaScriptCallFrame> { 41 public: 42 static PassRefPtr<JavaScriptCallFrame> create(const JSC::DebuggerCallFrame& debuggerCallFrame, PassRefPtr<JavaScriptCallFrame> caller, intptr_t sourceID, int line) 43 { 44 return adoptRef(new JavaScriptCallFrame(debuggerCallFrame, caller, sourceID, line)); 45 } 46 46 47 48 49 50 51 47 void invalidate() 48 { 49 m_isValid = false; 50 m_debuggerCallFrame = 0; 51 } 52 52 53 53 bool isValid() const { return m_isValid; } 54 54 55 55 JavaScriptCallFrame* caller(); 56 56 57 58 59 60 61 62 63 64 65 57 intptr_t sourceID() const { return m_sourceID; } 58 int line() const { return m_line; } 59 void update(const JSC::DebuggerCallFrame& debuggerCallFrame, intptr_t sourceID, int line) 60 { 61 m_debuggerCallFrame = debuggerCallFrame; 62 m_line = line; 63 m_sourceID = sourceID; 64 m_isValid = true; 65 } 66 66 67 68 69 70 67 String functionName() const; 68 JSC::DebuggerCallFrame::Type type() const; 69 const JSC::ScopeChainNode* scopeChain() const; 70 JSC::JSGlobalObject* dynamicGlobalObject() const; 71 71 72 73 74 75 76 72 JSC::JSObject* thisObject() const; 73 JSC::JSValue evaluate(const JSC::UString& script, JSC::JSValue& exception) const; 74 75 private: 76 JavaScriptCallFrame(const JSC::DebuggerCallFrame&, PassRefPtr<JavaScriptCallFrame> caller, intptr_t sourceID, int line); 77 77 78 79 80 81 82 83 78 JSC::DebuggerCallFrame m_debuggerCallFrame; 79 RefPtr<JavaScriptCallFrame> m_caller; 80 intptr_t m_sourceID; 81 int m_line; 82 bool m_isValid; 83 }; 84 84 85 85 } // namespace WebCore -
trunk/WebCore/inspector/InjectedScriptHost.h
r56841 r57784 45 45 class InspectorDOMAgent; 46 46 class InspectorFrontend; 47 class JavaScriptCallFrame;48 47 class Node; 49 48 class SerializedScriptValue; -
trunk/WebCore/inspector/InspectorController.h
r57337 r57784 69 69 class InspectorFrontendClient; 70 70 class InspectorTimelineAgent; 71 class JavaScriptCallFrame;72 71 class KURL; 73 72 class Node;
Note: See TracChangeset
for help on using the changeset viewer.