mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +00:00
LibJS/JIT: Add fast path for cached GetVariable accesses
We can now stay in machine code for environment variable read accesses as long as they are cached and initialized. 20% speed-up on Octane/zlib.js :^)
This commit is contained in:
parent
7826c006c1
commit
1d8ec677a3
6 changed files with 147 additions and 3 deletions
|
@ -57,6 +57,9 @@ public:
|
|||
bool is_permanently_screwed_by_eval() const { return m_permanently_screwed_by_eval; }
|
||||
void set_permanently_screwed_by_eval();
|
||||
|
||||
static FlatPtr is_permanently_screwed_by_eval_offset() { return OFFSET_OF(Environment, m_permanently_screwed_by_eval); }
|
||||
static FlatPtr outer_environment_offset() { return OFFSET_OF(Environment, m_outer_environment); }
|
||||
|
||||
protected:
|
||||
explicit Environment(Environment* parent);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue