mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
LibJS/JIT: Use the x86_64 setcc instruction to remove a branch
This commit is contained in:
parent
1d76738dde
commit
d3b3e49e19
Notes:
sideshowbarker
2024-07-16 22:18:54 +09:00
Author: https://github.com/bplaat
Commit: d3b3e49e19
Pull-request: https://github.com/SerenityOS/serenity/pull/21925
3 changed files with 17 additions and 16 deletions
|
@ -104,6 +104,7 @@ static_assert((EMPTY_TAG & IS_NULLISH_EXTRACT_PATTERN) != IS_NULLISH_PATTERN);
|
|||
|
||||
static constexpr u64 TAG_EXTRACTION = 0xFFFF000000000000;
|
||||
static constexpr u64 TAG_SHIFT = 48;
|
||||
static constexpr u64 SHIFTED_BOOLEAN_TAG = BOOLEAN_TAG << TAG_SHIFT;
|
||||
static constexpr u64 SHIFTED_INT32_TAG = INT32_TAG << TAG_SHIFT;
|
||||
static constexpr u64 SHIFTED_IS_CELL_PATTERN = IS_CELL_PATTERN << TAG_SHIFT;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue