Summary: | Web Inspector: remove some dead code in IdentifiersFactory | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Blaze Burg <bburg> | ||||
Component: | Web Inspector | Assignee: | Blaze Burg <bburg> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | bburg, commit-queue, darin, ews-watchlist, inspector-bugzilla-changes, joepeck, keith_miller, mark.lam, msaboff, saam, timothy, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Blaze Burg
2018-04-20 14:36:46 PDT
Created attachment 338492 [details]
Patch
Comment on attachment 338492 [details] Patch Clearing flags on attachment: 338492 Committed r230870: <https://trac.webkit.org/changeset/230870> All reviewed patches have been landed. Closing bug. Comment on attachment 338492 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=338492&action=review > Source/JavaScriptCore/inspector/IdentifiersFactory.cpp:39 > +static String addPrefixToIdentifier(const String& identifier) > +{ > + return makeString("0.", identifier); > +} If this code was at all performance critical, we should fix it to take an integer rather than a string, since makeString can convert a number to a string in place, avoiding allocating and destroying an additional string. > Source/JavaScriptCore/inspector/IdentifiersFactory.h:35 > static String requestId(unsigned long identifier); The use of "unsigned long" here is peculiar. We almost never use the "long" types in WebKit code rather than the "int" types or types like "uint32_t". unless there is a special reason. What is the reason here? |