LibJS: Give Interpreter a direct pointer to the identifier table

This gets rid of a lot of pointer chasing from interpreter to executable
to identifier table to the actual identifier.

1.05x speed-up on Kraken/ai-astar.js
This commit is contained in:
Andreas Kling 2025-10-07 16:47:41 +02:00 committed by Jelle Raaijmakers
commit 695f02e8e5
Notes: github-actions[bot] 2025-10-07 21:51:53 +00:00
3 changed files with 37 additions and 20 deletions

View file

@ -30,6 +30,8 @@ public:
void dump() const;
bool is_empty() const { return m_identifiers.is_empty(); }
ReadonlySpan<Utf16FlyString const> identifiers() const { return m_identifiers; }
private:
Vector<Utf16FlyString> m_identifiers;
};