Changeset 162970 in webkit
- Timestamp:
- Jan 28, 2014, 3:29:30 PM (11 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/Source/JavaScriptCore/ChangeLog ¶
r162968 r162970 1 2014-01-28 Mark Lam <mark.lam@apple.com> 2 3 Remove some unneeded debugger code. 4 https://bugs.webkit.org/show_bug.cgi?id=127805. 5 6 Reviewed by Oliver Hunt. 7 8 JSC will now always support the debugger. Hence, the #if ENABLE(JAVASCRIPT_DEBUGGER) 9 checks can be removed. 10 11 DebuggerCallFrame::callFrame() is also unused and will be removed. 12 13 * debugger/Breakpoint.h: 14 * debugger/Debugger.cpp: 15 * debugger/DebuggerCallFrame.h: 16 * inspector/InjectedScript.cpp: 17 (Inspector::InjectedScript::wrapCallFrames): 18 * inspector/InjectedScript.h: 19 * inspector/JSGlobalObjectScriptDebugServer.cpp: 20 * inspector/JSGlobalObjectScriptDebugServer.h: 21 * inspector/JSJavaScriptCallFrame.cpp: 22 * inspector/JSJavaScriptCallFrame.h: 23 * inspector/JSJavaScriptCallFramePrototype.cpp: 24 * inspector/JSJavaScriptCallFramePrototype.h: 25 * inspector/JavaScriptCallFrame.cpp: 26 * inspector/JavaScriptCallFrame.h: 27 * inspector/ScriptDebugListener.h: 28 * inspector/ScriptDebugServer.cpp: 29 * inspector/ScriptDebugServer.h: 30 * inspector/agents/InspectorDebuggerAgent.cpp: 31 * inspector/agents/InspectorDebuggerAgent.h: 32 * inspector/agents/InspectorRuntimeAgent.cpp: 33 (Inspector::InspectorRuntimeAgent::InspectorRuntimeAgent): 34 (Inspector::setPauseOnExceptionsState): 35 (Inspector::InspectorRuntimeAgent::evaluate): 36 (Inspector::InspectorRuntimeAgent::callFunctionOn): 37 (Inspector::InspectorRuntimeAgent::getProperties): 38 * inspector/agents/InspectorRuntimeAgent.h: 39 1 40 2014-01-28 Geoffrey Garen <ggaren@apple.com> 2 41 -
TabularUnified trunk/Source/JavaScriptCore/debugger/Breakpoint.h ¶
r162598 r162970 26 26 #ifndef Breakpoint_h 27 27 #define Breakpoint_h 28 29 #if ENABLE(JAVASCRIPT_DEBUGGER)30 28 31 29 #include "DebuggerPrimitives.h" … … 66 64 } // namespace JSC 67 65 68 #endif // ENABLE(JAVASCRIPT_DEBUGGER)69 70 66 #endif // Breakpoint_h -
TabularUnified trunk/Source/JavaScriptCore/debugger/Debugger.cpp ¶
r162735 r162970 21 21 22 22 #include "config.h" 23 #if ENABLE(JAVASCRIPT_DEBUGGER)24 25 23 #include "Debugger.h" 26 24 … … 762 760 763 761 } // namespace JSC 764 765 #endif // ENABLE(JAVASCRIPT_DEBUGGER) -
TabularUnified trunk/Source/JavaScriptCore/debugger/DebuggerCallFrame.h ¶
r159605 r162970 49 49 JS_EXPORT_PRIVATE explicit DebuggerCallFrame(CallFrame*); 50 50 51 CallFrame* callFrame() const { return m_callFrame; }52 51 JS_EXPORT_PRIVATE PassRefPtr<DebuggerCallFrame> callerFrame(); 53 52 ExecState* exec() const { return m_callFrame; } -
TabularUnified trunk/Source/JavaScriptCore/inspector/InjectedScript.cpp ¶
r161563 r162970 142 142 } 143 143 144 #if ENABLE(JAVASCRIPT_DEBUGGER)145 144 PassRefPtr<Array<Inspector::TypeBuilder::Debugger::CallFrame>> InjectedScript::wrapCallFrames(const Deprecated::ScriptValue& callFrames) 146 145 { … … 158 157 return Array<Inspector::TypeBuilder::Debugger::CallFrame>::create(); 159 158 } 160 #endif161 159 162 160 PassRefPtr<Inspector::TypeBuilder::Runtime::RemoteObject> InjectedScript::wrapObject(const Deprecated::ScriptValue& value, const String& groupName, bool generatePreview) const -
TabularUnified trunk/Source/JavaScriptCore/inspector/InjectedScript.h ¶
r161563 r162970 64 64 void getInternalProperties(ErrorString*, const String& objectId, RefPtr<TypeBuilder::Array<TypeBuilder::Runtime::InternalPropertyDescriptor>>* result); 65 65 66 #if ENABLE(JAVASCRIPT_DEBUGGER)67 66 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame>> wrapCallFrames(const Deprecated::ScriptValue&); 68 #endif69 67 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapObject(const Deprecated::ScriptValue&, const String& groupName, bool generatePreview = false) const; 70 68 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapTable(const Deprecated::ScriptValue& table, const Deprecated::ScriptValue& columns) const; -
TabularUnified trunk/Source/JavaScriptCore/inspector/JSGlobalObjectScriptDebugServer.cpp ¶
r162799 r162970 28 28 29 29 #if ENABLE(INSPECTOR) 30 #if ENABLE(JAVASCRIPT_DEBUGGER)31 30 32 31 #include "EventLoop.h" … … 86 85 } // namespace Inspector 87 86 88 #endif // ENABLE(JAVASCRIPT_DEBUGGER)89 87 #endif // ENABLE(INSPECTOR) -
TabularUnified trunk/Source/JavaScriptCore/inspector/JSGlobalObjectScriptDebugServer.h ¶
r162799 r162970 28 28 29 29 #if ENABLE(INSPECTOR) 30 #if ENABLE(JAVASCRIPT_DEBUGGER)31 30 32 31 #include "ScriptDebugServer.h" … … 64 63 } // namespace Inspector 65 64 66 #endif // ENABLE(JAVASCRIPT_DEBUGGER)67 65 #endif // ENABLE(INSPECTOR) 68 66 -
TabularUnified trunk/Source/JavaScriptCore/inspector/JSJavaScriptCallFrame.cpp ¶
r162757 r162970 28 28 29 29 #if ENABLE(INSPECTOR) 30 #if ENABLE(JAVASCRIPT_DEBUGGER)31 30 32 31 #include "Error.h" … … 212 211 } // namespace Inspector 213 212 214 #endif // ENABLE(JAVASCRIPT_DEBUGGER)215 213 #endif // ENABLE(INSPECTOR) -
TabularUnified trunk/Source/JavaScriptCore/inspector/JSJavaScriptCallFrame.h ¶
r162757 r162970 28 28 29 29 #if ENABLE(INSPECTOR) 30 #if ENABLE(JAVASCRIPT_DEBUGGER)31 30 32 31 #include "JSDestructibleObject.h" … … 97 96 } // namespace Inspector 98 97 99 #endif // ENABLE(JAVASCRIPT_DEBUGGER)100 98 #endif // ENABLE(INSPECTOR) 101 99 -
TabularUnified trunk/Source/JavaScriptCore/inspector/JSJavaScriptCallFramePrototype.cpp ¶
r162757 r162970 28 28 29 29 #if ENABLE(INSPECTOR) 30 #if ENABLE(JAVASCRIPT_DEBUGGER)31 30 32 31 #include "Error.h" … … 235 234 } // namespace Inspector 236 235 237 #endif // ENABLE(JAVASCRIPT_DEBUGGER)238 236 #endif // ENABLE(INSPECTOR) -
TabularUnified trunk/Source/JavaScriptCore/inspector/JSJavaScriptCallFramePrototype.h ¶
r162757 r162970 28 28 29 29 #if ENABLE(INSPECTOR) 30 #if ENABLE(JAVASCRIPT_DEBUGGER)31 30 32 31 #include "JSObject.h" … … 65 64 } // namespace Inspector 66 65 67 #endif // ENABLE(JAVASCRIPT_DEBUGGER)68 66 #endif // ENABLE(INSPECTOR) 69 67 -
TabularUnified trunk/Source/JavaScriptCore/inspector/JavaScriptCallFrame.cpp ¶
r162757 r162970 28 28 29 29 #if ENABLE(INSPECTOR) 30 #if ENABLE(JAVASCRIPT_DEBUGGER)31 30 32 31 using namespace JSC; … … 54 53 } // namespace Inspector 55 54 56 #endif // ENABLE(JAVASCRIPT_DEBUGGER)57 55 #endif // ENABLE(INSPECTOR) -
TabularUnified trunk/Source/JavaScriptCore/inspector/JavaScriptCallFrame.h ¶
r162757 r162970 28 28 29 29 #if ENABLE(INSPECTOR) 30 #if ENABLE(JAVASCRIPT_DEBUGGER)31 30 32 31 #include "JSCJSValueInlines.h" … … 70 69 } // namespace Inspector 71 70 72 #endif // ENABLE(JAVASCRIPT_DEBUGGER)73 71 #endif // ENABLE(INSPECTOR) 74 72 -
TabularUnified trunk/Source/JavaScriptCore/inspector/ScriptDebugListener.h ¶
r162757 r162970 30 30 #ifndef ScriptDebugListener_h 31 31 #define ScriptDebugListener_h 32 33 #if ENABLE(JAVASCRIPT_DEBUGGER)34 32 35 33 #include "debugger/Debugger.h" … … 81 79 } // namespace Inspector 82 80 83 #endif // ENABLE(JAVASCRIPT_DEBUGGER)84 85 81 #endif // ScriptDebugListener_h -
TabularUnified trunk/Source/JavaScriptCore/inspector/ScriptDebugServer.cpp ¶
r162757 r162970 32 32 #include "ScriptDebugServer.h" 33 33 34 #if ENABLE(JAVASCRIPT_DEBUGGER)35 36 34 #include "DebuggerCallFrame.h" 37 35 #include "JSJavaScriptCallFrame.h" … … 339 337 340 338 } // namespace Inspector 341 342 #endif // ENABLE(JAVASCRIPT_DEBUGGER) -
TabularUnified trunk/Source/JavaScriptCore/inspector/ScriptDebugServer.h ¶
r162757 r162970 30 30 #ifndef ScriptDebugServer_h 31 31 #define ScriptDebugServer_h 32 33 #if ENABLE(JAVASCRIPT_DEBUGGER)34 32 35 33 #include "ScriptBreakpoint.h" … … 116 114 } // namespace Inspector 117 115 118 #endif // ENABLE(JAVASCRIPT_DEBUGGER)119 120 116 #endif // ScriptDebugServer_h -
TabularUnified trunk/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.cpp ¶
r162918 r162970 32 32 33 33 #if ENABLE(INSPECTOR) 34 #if ENABLE(JAVASCRIPT_DEBUGGER)35 34 36 35 #include "ContentSearchUtilities.h" … … 734 733 } // namespace Inspector 735 734 736 #endif // ENABLE(JAVASCRIPT_DEBUGGER)737 735 #endif // ENABLE(INSPECTOR) -
TabularUnified trunk/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.h ¶
r162799 r162970 32 32 33 33 #if ENABLE(INSPECTOR) 34 #if ENABLE(JAVASCRIPT_DEBUGGER)35 34 36 35 #include "InspectorJSBackendDispatchers.h" … … 170 169 } // namespace Inspector 171 170 172 #endif // ENABLE(JAVASCRIPT_DEBUGGER)173 171 #endif // ENABLE(INSPECTOR) 174 172 -
TabularUnified trunk/Source/JavaScriptCore/inspector/agents/InspectorRuntimeAgent.cpp ¶
r162767 r162970 41 41 #include "JSLock.h" 42 42 #include "ParserError.h" 43 #include "ScriptDebugServer.h" 43 44 #include "SourceCode.h" 44 45 #include <wtf/PassRefPtr.h> 45 46 #if ENABLE(JAVASCRIPT_DEBUGGER)47 #include "ScriptDebugServer.h"48 #endif49 46 50 47 using namespace JSC; … … 60 57 : InspectorAgentBase(ASCIILiteral("Runtime")) 61 58 , m_injectedScriptManager(injectedScriptManager) 62 #if ENABLE(JAVASCRIPT_DEBUGGER)63 59 , m_scriptDebugServer(nullptr) 64 #endif65 60 , m_enabled(false) 66 61 { … … 71 66 } 72 67 73 #if ENABLE(JAVASCRIPT_DEBUGGER)74 68 static ScriptDebugServer::PauseOnExceptionsState setPauseOnExceptionsState(ScriptDebugServer* scriptDebugServer, ScriptDebugServer::PauseOnExceptionsState newState) 75 69 { … … 80 74 return presentState; 81 75 } 82 #endif83 76 84 77 static PassRefPtr<Inspector::TypeBuilder::Runtime::ErrorRange> buildErrorRangeObject(const JSTokenLocation& tokenLocation) … … 125 118 return; 126 119 127 #if ENABLE(JAVASCRIPT_DEBUGGER)128 120 ScriptDebugServer::PauseOnExceptionsState previousPauseOnExceptionsState = ScriptDebugServer::DontPauseOnExceptions; 129 121 if (asBool(doNotPauseOnExceptionsAndMuteConsole)) 130 122 previousPauseOnExceptionsState = setPauseOnExceptionsState(m_scriptDebugServer, ScriptDebugServer::DontPauseOnExceptions); 131 #endif132 123 if (asBool(doNotPauseOnExceptionsAndMuteConsole)) 133 124 muteConsole(); … … 137 128 if (asBool(doNotPauseOnExceptionsAndMuteConsole)) { 138 129 unmuteConsole(); 139 #if ENABLE(JAVASCRIPT_DEBUGGER)140 130 setPauseOnExceptionsState(m_scriptDebugServer, previousPauseOnExceptionsState); 141 #endif142 131 } 143 132 } … … 155 144 arguments = (*optionalArguments)->toJSONString(); 156 145 157 #if ENABLE(JAVASCRIPT_DEBUGGER)158 146 ScriptDebugServer::PauseOnExceptionsState previousPauseOnExceptionsState = ScriptDebugServer::DontPauseOnExceptions; 159 147 if (asBool(doNotPauseOnExceptionsAndMuteConsole)) 160 148 previousPauseOnExceptionsState = setPauseOnExceptionsState(m_scriptDebugServer, ScriptDebugServer::DontPauseOnExceptions); 161 #endif162 149 if (asBool(doNotPauseOnExceptionsAndMuteConsole)) 163 150 muteConsole(); … … 167 154 if (asBool(doNotPauseOnExceptionsAndMuteConsole)) { 168 155 unmuteConsole(); 169 #if ENABLE(JAVASCRIPT_DEBUGGER)170 156 setPauseOnExceptionsState(m_scriptDebugServer, previousPauseOnExceptionsState); 171 #endif172 157 } 173 158 } … … 181 166 } 182 167 183 #if ENABLE(JAVASCRIPT_DEBUGGER)184 168 ScriptDebugServer::PauseOnExceptionsState previousPauseOnExceptionsState = setPauseOnExceptionsState(m_scriptDebugServer, ScriptDebugServer::DontPauseOnExceptions); 185 #endif186 169 muteConsole(); 187 170 … … 190 173 191 174 unmuteConsole(); 192 #if ENABLE(JAVASCRIPT_DEBUGGER)193 175 setPauseOnExceptionsState(m_scriptDebugServer, previousPauseOnExceptionsState); 194 #endif195 176 } 196 177 -
TabularUnified trunk/Source/JavaScriptCore/inspector/agents/InspectorRuntimeAgent.h ¶
r162767 r162970 68 68 virtual void run(ErrorString*) override; 69 69 70 #if ENABLE(JAVASCRIPT_DEBUGGER)71 70 void setScriptDebugServer(ScriptDebugServer* scriptDebugServer) { m_scriptDebugServer = scriptDebugServer; } 72 #endif73 71 74 72 bool enabled() const { return m_enabled; } … … 87 85 private: 88 86 InjectedScriptManager* m_injectedScriptManager; 89 #if ENABLE(JAVASCRIPT_DEBUGGER)90 87 ScriptDebugServer* m_scriptDebugServer; 91 #endif92 88 bool m_enabled; 93 89 };
Note:
See TracChangeset
for help on using the changeset viewer.