mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-05 08:06:09 +00:00
LibJS: Add a basic pass manager and add some basic passes
This commit adds a bunch of passes, the most interesting of which is a pass that merges blocks together, and a pass that places blocks that flow into each other next to each other, and a very simply pass that removes duplicate basic blocks. Note that this does not remove the jump at the end of each block in that pass to avoid scope creep in the passes.
This commit is contained in:
committed by
Ali Mohammad Pur
parent
e81fd7106b
commit
1414c7b049
@@ -66,6 +66,7 @@ void BasicBlock::grow(size_t additional_size)
|
||||
|
||||
void InstructionStreamIterator::operator++()
|
||||
{
|
||||
VERIFY(!at_end());
|
||||
m_offset += dereference().length();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user