mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +00:00
LibJS: Lazily collect stack trace information
The previous implementation was calling `backtrace()` for every function call, which is quite slow. Instead, this implementation provides VM::stack_trace() which unwinds the native stack, maps it through NativeExecutable::get_source_range and combines it with source ranges from interpreted call frames.
This commit is contained in:
parent
77dc7c4d36
commit
68f4d21de2
11 changed files with 96 additions and 46 deletions
|
@ -78,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; }
|
||||
Optional<InstructionStreamIterator const&> instruction_stream_iterator() const;
|
||||
Optional<InstructionStreamIterator const&> instruction_stream_iterator() const { return m_pc; }
|
||||
|
||||
void visit_edges(Cell::Visitor&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue