2023-09-29 20:43:19 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2023, Dan Klishch <danilklishch@gmail.com>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "Compiler/CompilerPass.h"
|
|
|
|
|
#include "Function.h"
|
|
|
|
|
|
|
|
|
|
namespace JSSpecCompiler {
|
|
|
|
|
|
|
|
|
|
void IntraproceduralCompilerPass::run()
|
|
|
|
|
{
|
2024-01-18 23:08:50 -03:00
|
|
|
for (auto const& function : m_translation_unit->functions_to_compile()) {
|
2023-09-29 20:43:19 -03:00
|
|
|
m_function = function;
|
|
|
|
|
process_function();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|