Bug 198471

Summary: Finish cleanup of String::number for floating point
Product: WebKit Reporter: Darin Adler <darin>
Component: Web Template FrameworkAssignee: Darin Adler <darin>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ews-watchlist, sam, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on: 178319    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch none

Description Darin Adler 2019-06-02 17:17:07 PDT
Finish cleanup of String::number for floating point
Comment 1 Darin Adler 2019-06-02 17:42:53 PDT Comment hidden (obsolete)
Comment 2 Darin Adler 2019-06-02 17:46:45 PDT Comment hidden (obsolete)
Comment 3 Darin Adler 2019-06-02 17:49:29 PDT
Created attachment 371173 [details]
Patch
Comment 4 EWS Watchlist 2019-06-02 19:41:04 PDT
Comment on attachment 371173 [details]
Patch

Attachment 371173 [details] did not pass jsc-ews (mac):
Output: https://webkit-queues.webkit.org/results/12359319

New failing tests:
mozilla-tests.yaml/js1_5/Array/regress-101964.js.mozilla-dfg-eager-no-cjit-validate-phases
apiTests
Comment 5 Darin Adler 2019-06-02 21:33:13 PDT
(In reply to Build Bot from comment #4)
> Comment on attachment 371173 [details]
> mozilla-tests.yaml/js1_5/Array/regress-101964.js.mozilla-dfg-eager-no-cjit-
> validate-phases
> apiTests

Seems obvious from reading the error messages that this is not a real failure. Just a slow run on the test bot.
Comment 6 Yusuke Suzuki 2019-06-03 04:03:58 PDT
Comment on attachment 371173 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=371173&action=review

r=me

> Source/WebCore/rendering/RenderListMarker.cpp:139
> +    // The asterisks list-style-type is the worst case; we show |number| asterisks.
> +    CharacterType symbol = symbols[(number - 1) % symbolsSize];
> +    unsigned count = (number - 1) / symbolsSize + 1;
> +
> +    CharacterType* characters;
> +    String result = String::createUninitialized(count, characters);
> +    for (unsigned i = 0; i < count; ++i)
> +        characters[i] = symbol;
> +    return result;

Nice! The code becomes much cleaner.
Comment 7 WebKit Commit Bot 2019-06-03 04:34:26 PDT
Comment on attachment 371173 [details]
Patch

Clearing flags on attachment: 371173

Committed r246034: <https://trac.webkit.org/changeset/246034>
Comment 8 WebKit Commit Bot 2019-06-03 04:34:28 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2019-06-03 04:35:16 PDT
<rdar://problem/51353064>