Bug 25470

Summary: Extend the cover of ENABLE_JAVASCRIPT_DEBUGGER to profiler and related callsites
Product: WebKit Reporter: Dimitri Glazkov (Google) <dglazkov>
Component: Web Inspector (Deprecated)Assignee: Dimitri Glazkov (Google) <dglazkov>
Status: RESOLVED FIXED    
Severity: Normal CC: timothy
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
Extend the cover of ENABLE_JAVASCRIPT_DEBUGGER to profiler, v1 timothy: review+

Description Dimitri Glazkov (Google) 2009-04-29 16:34:06 PDT
This is the last unforking patch for InspectorController, I promise. It's fugly, but it gets the job done.

Basically, in order to allow current Debuggerless and Profilerless Chromium Inspector to compile from ToT, I am extending ENABLE_JAVASCRIPT_DEBUGGER guard to all profiler methods and to IDL.

As a side-effect, I had to change the world to make IDL recognize the guard correctly across platforms.

I wracked my brain trying to come up with a simpler solution, but this is the best I could come up with. I suck.

I consider this change temporary until the big InspectorController redesign starts.
Comment 1 Dimitri Glazkov (Google) 2009-04-29 16:48:20 PDT
Created attachment 29898 [details]
Extend the cover of ENABLE_JAVASCRIPT_DEBUGGER to profiler, v1

 JavaScriptCore/ChangeLog                           |    9 +
 .../Configurations/FeatureDefines.xcconfig         |    3 +-
 WebCore/ChangeLog                                  |   18 ++
 WebCore/Configurations/FeatureDefines.xcconfig     |    3 +-
 WebCore/WebCore.vcproj/build-generated-files.sh    |    2 +-
 WebCore/bindings/js/JSConsoleCustom.cpp            |    4 +
 WebCore/bindings/js/JSDOMWindowBase.cpp            |    5 +-
 .../bindings/js/JSInspectorControllerCustom.cpp    |   28 +-
 WebCore/inspector/InspectorController.cpp          |  324 ++++++++++----------
 WebCore/inspector/InspectorController.h            |   82 +++---
 WebCore/inspector/InspectorController.idl          |   32 +-
 WebCore/page/Console.cpp                           |    2 +-
 WebKit/mac/ChangeLog                               |    9 +
 WebKit/mac/Configurations/FeatureDefines.xcconfig  |    3 +-
 WebKitTools/ChangeLog                              |    9 +
 WebKitTools/Scripts/build-webkit                   |    5 +
 16 files changed, 299 insertions(+), 239 deletions(-)
Comment 2 Timothy Hatcher 2009-04-29 18:56:18 PDT
Why not add ENABLE_JAVASCRIPT_PROFILER?
Comment 3 Dimitri Glazkov (Google) 2009-04-30 09:14:05 PDT
Basically, two reasons:

* They are not mutually exclusive (i.e. you can't really pick one and not the other). There could be some work done to make that happen, which leads us to ...
* I consider this a temporary change with minimal effect possible, to unfork and clear way for Inspector rework.

I considered renaming JAVASCRIPT_DEBUGGER to be more accurate, like JAVASCRIPT_INSPECTOR, JAVASCRIPT_DEVELOPER_TOOLS or something, but couldn't come up with a name that didn't seem vague. Perhaps that's the route I should with?
Comment 4 Dimitri Glazkov (Google) 2009-04-30 11:28:41 PDT
Landed as http://trac.webkit.org/changeset/43072.
Comment 5 Dimitri Glazkov (Google) 2009-04-30 12:05:03 PDT
GTK fix landed as http://trac.webkit.org/changeset/43074.