Skip to content

[git-webkit] Handle ambiguous branch names in land - #52

Merged
JonWBedard merged 0 commit into
WebKit:mainfrom
JonWBedard:eng/land-with-ambiguous-branch
Dec 3, 2021
Merged

JonWBedard merged 0 commit into
WebKit:mainfrom
JonWBedard:eng/land-with-ambiguous-branch

Conversation

@JonWBedard

@JonWBedard JonWBedard commented Dec 2, 2021 •

Copy link
Copy Markdown
Member

0b09bf5

[git-webkit] Handle ambiguous branch names in land
https://bugs.webkit.org/show_bug.cgi?id=233763
<rdar://problem/85973434 >

Reviewed by Dewei Zhu.

* Scripts/libraries/webkitscmpy/setup.py: Bump version.
* Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Ditto.
* Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py:
(Git.rebase): Be explicit about the name of the target branch when modifying timestamps.


Canonical link: https://commits.webkit.org/244807@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@286467 268f45cc-cd09-0410-ab3c-d52691b4dbfc

@JonWBedard JonWBedard self-assigned this Dec 2, 2021
@JonWBedard

Copy link
Copy Markdown
Member Author

If you have a branch named foo/main, or something to that effect, git filter-branch can get confused by the ambiguous reference.

@dewei-zhu dewei-zhu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me

@JonWBedard
JonWBedard merged commit 0b09bf5 into WebKit:main Dec 3, 2021
@JonWBedard

Copy link
Copy Markdown
Member Author

@JonWBedard
JonWBedard force-pushed the eng/land-with-ambiguous-branch branch from 248c41c to 0b09bf5 Compare December 3, 2021 00:57
@JonWBedard
JonWBedard deleted the eng/land-with-ambiguous-branch branch December 3, 2021 00:58
webkit-commit-queue pushed a commit to kmiller68/WebKit that referenced this pull request Apr 17, 2026
https://bugs.webkit.org/show_bug.cgi?id=312485
rdar://174932570

Reviewed by Yusuke Suzuki.

Use value - trunc(value) == 0.0 for isInteger, which rejects NaN and
Infinity without an explicit isFinite check since NaN - NaN and
Inf - Inf both produce NaN.

Add MacroAssembler::isDoubleInteger helper and use it in the DFG
NumberIsInteger path, removing the manual exponent-bit extraction
branch. Simplify the FTL NumberIsInteger path similarly using B3 IR.

Remove redundant isFinite checks from DFG and FTL NumberIsSafeInteger,
since the range check against maxSafeInteger already rejects Infinity.

On ARM64 the difference in codegen is roughly:

isIntegerOld(double):
        frintz  d1, d0
        fmov    x8, d0
        mov     w9, WebKit#2047
        ubfx    x8, x8, WebKit#52, WebKit#11
        fcmp    d1, d0
        ccmp    x8, x9, WebKit#2, eq
        cset    w0, lo
        ret

isIntegerNew(double):
        frintz  d1, d0
        fsub    d0, d0, d1
        fcmp    d0, #0.0
        cset    w0, eq
        ret

No new tests, no behavior change. Covered by existing tests.

Canonical link: https://commits.webkit.org/311413@main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants