mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-13 06:32:54 +00:00
LibJS/JIT: Resolve the GlobalVariableCache pointers at JIT time
This commit is contained in:
parent
f03d4a1ffe
commit
a616a682fe
Notes:
sideshowbarker
2024-07-17 18:49:10 +09:00
Author: https://github.com/awesomekling
Commit: a616a682fe
Pull-request: https://github.com/SerenityOS/serenity/pull/21817
4 changed files with 9 additions and 7 deletions
|
@ -89,12 +89,11 @@ ThrowCompletionOr<Value> get_by_value(VM& vm, Value base_value, Value property_k
|
|||
return TRY(object->internal_get(property_key, base_value));
|
||||
}
|
||||
|
||||
ThrowCompletionOr<Value> get_global(Bytecode::Interpreter& interpreter, DeprecatedFlyString const& identifier, u32 cache_index)
|
||||
ThrowCompletionOr<Value> get_global(Bytecode::Interpreter& interpreter, DeprecatedFlyString const& identifier, GlobalVariableCache& cache)
|
||||
{
|
||||
auto& vm = interpreter.vm();
|
||||
auto& realm = *vm.current_realm();
|
||||
|
||||
auto& cache = interpreter.current_executable().global_variable_caches[cache_index];
|
||||
auto& binding_object = realm.global_environment().object_record().binding_object();
|
||||
auto& declarative_record = realm.global_environment().declarative_record();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue