mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibJS: Work-in-progress JIT compiler :^)
This commit is contained in:
parent
f52e4fa5c2
commit
babdc0a25b
Notes:
sideshowbarker
2024-07-17 18:46:57 +09:00
Author: https://github.com/awesomekling
Commit: babdc0a25b
Pull-request: https://github.com/SerenityOS/serenity/pull/21619
Reviewed-by: https://github.com/Hendiadyoin1
11 changed files with 634 additions and 4 deletions
|
@ -80,6 +80,9 @@ public:
|
|||
|
||||
void visit_edges(Cell::Visitor&);
|
||||
|
||||
Span<Value> registers() { return m_current_call_frame; }
|
||||
ReadonlySpan<Value> registers() const { return m_current_call_frame; }
|
||||
|
||||
private:
|
||||
void run_bytecode();
|
||||
|
||||
|
@ -93,9 +96,6 @@ private:
|
|||
return const_cast<Interpreter*>(this)->call_frame();
|
||||
}
|
||||
|
||||
Span<Value> registers() { return m_current_call_frame; }
|
||||
ReadonlySpan<Value> registers() const { return m_current_call_frame; }
|
||||
|
||||
void push_call_frame(Variant<NonnullOwnPtr<CallFrame>, CallFrame*>, size_t register_count);
|
||||
[[nodiscard]] Variant<NonnullOwnPtr<CallFrame>, CallFrame*> pop_call_frame();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue