Commit Graph
8 Commits
Author SHA1 Message Date
Henri Sivonen 9fe576173c Bug 1997049 - Accelerate more HTML tokenizer states with SIMD. r=smaug
This restores the exact old structure for Java, and only injects the
SIMD acceleration between incrementing pos and checking if pos reached
endPos.

This makes going back to SIMD after a character reference significantly
simpler. The downside is that wholly-non-BMP text (as opposed to
isolated non-BMP emoji or Hanzi) ends up uselessly bouncing to the SIMD
code without benefiting from it when loading from network and counting
column numbers as Unicode scalar values.

If we want to avoid this failure mode, we should change column numbers
to count UTF-16 code units instead of scalars. Either way, the column
is "wrong" in some cases.

Differential Revision: https://phabricator.services.mozilla.com/D270673
2025-11-17 20:39:11 +00:00
Henri Sivonen c553709e5c Bug 1499684 - Accelerate text node and attribute value serialization using SIMD. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D271356
2025-11-06 08:37:37 +00:00
Henri Sivonen 4d2d424e3c Bug 1997859 - Accelerate ContainsMarkup in innerHTML setter with SIMD. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D271012
2025-11-05 10:28:18 +00:00
Henri Sivonen 86a403a0d1 Bug 1499682 - SIMD-accelerate the data state in the HTML tokenizer. r=smaug,sergesanspaille
Other tokenizer states and the serializer are potential follow-ups.

The code movement from nsHtml5Tokenizer.cpp to nsHtml5Tokeniner.h is
for enabling the eventual non-unified build of nsHtml5TokenizerSIMD.cpp
once the LLVM bug has been fixed.

Differential Revision: https://phabricator.services.mozilla.com/D227317
2025-10-28 18:17:40 +00:00
Alexandru Marc 53b9a6654d Revert "Bug 1499682 - SIMD-accelerate the data state in the HTML tokenizer. r=smaug,sergesanspaille" for causing multiple failures
This reverts commit d6d702dc29.
2025-10-27 17:11:12 +00:00
Henri Sivonen d6d702dc29 Bug 1499682 - SIMD-accelerate the data state in the HTML tokenizer. r=smaug,sergesanspaille
Other tokenizer states and the serializer are potential follow-ups.

The code movement from nsHtml5Tokenizer.cpp to nsHtml5Tokeniner.h is
for enabling the eventual non-unified build of nsHtml5TokenizerSIMD.cpp
once the LLVM bug has been fixed.

Differential Revision: https://phabricator.services.mozilla.com/D227317
2025-10-27 13:48:03 +00:00
Atila Butkovits aec3d65abb Revert "Bug 1499682 - SIMD-accelerate the data state in the HTML tokenizer. r=smaug,sergesanspaille" for causing failures at test_html5_tree_construction.html.
This reverts commit 96fdec23a2.
2025-10-20 12:39:42 +00:00
Henri Sivonen 96fdec23a2 Bug 1499682 - SIMD-accelerate the data state in the HTML tokenizer. r=smaug,sergesanspaille
Other tokenizer states and the serializer are potential follow-ups.

The code movement from nsHtml5Tokenizer.cpp to nsHtml5Tokeniner.h is
for enabling the eventual non-unified build of nsHtml5TokenizerSIMD.cpp
once the LLVM bug has been fixed.

Differential Revision: https://phabricator.services.mozilla.com/D227317
2025-10-20 11:49:39 +00:00