mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +00:00
LibJS/JIT: Add fastpath for set variable
This commit is contained in:
committed by
Andreas Kling
parent
b3cbe0fdb9
commit
84eecbb10e
@@ -414,7 +414,7 @@ void Generator::emit_set_variable(JS::Identifier const& identifier, Bytecode::Op
|
||||
if (identifier.is_local()) {
|
||||
emit<Bytecode::Op::SetLocal>(identifier.local_variable_index());
|
||||
} else {
|
||||
emit<Bytecode::Op::SetVariable>(intern_identifier(identifier.string()), initialization_mode, mode);
|
||||
emit<Bytecode::Op::SetVariable>(intern_identifier(identifier.string()), next_environment_variable_cache(), initialization_mode, mode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user