| Summary: | Web Inspector: no need to allocate protocolErrors array for every dispatched backend command | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Brian Burg <burg> | ||||||||||
| Component: | Web Inspector | Assignee: | BJ Burg <bburg> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | achristensen, bburg, bfulgham, commit-queue, graouts, joepeck, jonowells, mattbaker, nvasilyev, ossy, peavo, timothy, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | 528+ (Nightly build) | ||||||||||||
| Hardware: | All | ||||||||||||
| OS: | All | ||||||||||||
| Bug Depends on: | 147097 | ||||||||||||
| Bug Blocks: | 147067, 148480 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Brian Burg
2015-06-30 12:29:14 PDT
Created attachment 256229 [details]
Patch (no tests)
This patch makes some subtle changes to how errors are reported. I'd like to write a test to cover the existing error cases before landing this, so we have a clear idea of the behavior change. Created attachment 259866 [details]
Proposed Fix
This patch modifies the inspector protocol generator. Please ensure that you have rebaselined any generator test results (i.e., by running `Tools/Scripts/run-inspector-generator-tests --reset-results`) Comment on attachment 259866 [details] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=259866&action=review Nice! Much cleaner > Source/JavaScriptCore/ChangeLog:67 > + * inspector/scripts/codegen/generate_cpp_backend_dispatcher_header.py: Duplicated in the changelog? > Source/JavaScriptCore/inspector/InspectorBackendDispatcher.h:75 > + unsigned protocolErrorCount() const { return m_protocolErrors.size(); } This is only ever used alongside "> 0". Maybe it should just be `bool hasProtocolErrors()`? Created attachment 259889 [details]
Proposed Fix (fix linker)
Created attachment 259903 [details]
Proposed Fix (EWS)
Now includes fixes for ObjC generated code.
Comment on attachment 259903 [details]
Proposed Fix (EWS)
r=me
Committed r188965: <http://trac.webkit.org/changeset/188965> (In reply to comment #10) > Committed r188965: <http://trac.webkit.org/changeset/188965> It broke the WinCairo build: https://build.webkit.org/builders/WinCairo%2064-Bit%20Release/builds/48696 Interesting. Looks like a symbol isn't getting exported. Alex: I wonder if it's our old friend "the overly zealous symbol stripper". I deleted the WebKitBuild directory on my bot. I'm just going to close my eyes and hope this magically fixes it. |