WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
25470
Extend the cover of ENABLE_JAVASCRIPT_DEBUGGER to profiler and related callsites
https://bugs.webkit.org/show_bug.cgi?id=25470
Summary
Extend the cover of ENABLE_JAVASCRIPT_DEBUGGER to profiler and related callsites
Dimitri Glazkov (Google)
Reported
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.
Attachments
Extend the cover of ENABLE_JAVASCRIPT_DEBUGGER to profiler, v1
(34.97 KB, patch)
2009-04-29 16:48 PDT
,
Dimitri Glazkov (Google)
timothy
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Dimitri Glazkov (Google)
Comment 1
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(-)
Timothy Hatcher
Comment 2
2009-04-29 18:56:18 PDT
Why not add ENABLE_JAVASCRIPT_PROFILER?
Dimitri Glazkov (Google)
Comment 3
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?
Dimitri Glazkov (Google)
Comment 4
2009-04-30 11:28:41 PDT
Landed as
http://trac.webkit.org/changeset/43072
.
Dimitri Glazkov (Google)
Comment 5
2009-04-30 12:05:03 PDT
GTK fix landed as
http://trac.webkit.org/changeset/43074
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug