mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibJS/JIT: Provide source location information for JIT code
This works by walking a backtrace until the currently executing native executable is found, and then mapping the native address to its bytecode instruction.
This commit is contained in:
committed by
Andreas Kling
parent
112eadc863
commit
fb7b4b9c59
@@ -6,6 +6,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibJS/Bytecode/Executable.h>
|
||||
#include <LibJS/Bytecode/Label.h>
|
||||
#include <LibJS/Bytecode/Register.h>
|
||||
#include <LibJS/Forward.h>
|
||||
@@ -77,7 +78,7 @@ public:
|
||||
Executable& current_executable() { return *m_current_executable; }
|
||||
Executable const& current_executable() const { return *m_current_executable; }
|
||||
BasicBlock const& current_block() const { return *m_current_block; }
|
||||
auto& instruction_stream_iterator() const { return m_pc; }
|
||||
Optional<InstructionStreamIterator const&> instruction_stream_iterator() const;
|
||||
|
||||
void visit_edges(Cell::Visitor&);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user