mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
17 lines
334 B
C
17 lines
334 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "bscript/compiler/representation/CompiledScript.h"
|
||
|
|
|
||
|
|
namespace Pol::Bscript::Compiler
|
||
|
|
{
|
||
|
|
class CodeSectionOptimizer
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
CodeSectionOptimizer() = default;
|
||
|
|
void optimize( CodeSection& code ) const;
|
||
|
|
|
||
|
|
private:
|
||
|
|
void short_circuit_jumps( CodeSection& code ) const;
|
||
|
|
};
|
||
|
|
} // namespace Pol::Bscript::Compiler
|