1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00

LibJS/JIT: Compile the GetCalleeAndThisFromEnvironment instruction

This commit is contained in:
Andreas Kling 2023-10-27 13:48:07 +02:00
parent dabaaabfc0
commit 935d67cfcf
6 changed files with 94 additions and 38 deletions

View file

@ -25,4 +25,10 @@ Value new_function(VM&, FunctionExpression const&, Optional<IdentifierTableIndex
ThrowCompletionOr<void> put_by_value(VM&, Value base, Value property_key_value, Value value, Op::PropertyKind);
ThrowCompletionOr<Value> get_variable(Bytecode::Interpreter&, DeprecatedFlyString const& name, u32 cache_index);
struct CalleeAndThis {
Value callee;
Value this_value;
};
ThrowCompletionOr<CalleeAndThis> get_callee_and_this_from_environment(Bytecode::Interpreter&, DeprecatedFlyString const& name, u32 cache_index);
}