JSSpecCompiler: Pave a way for representing compile-time objects

This commit is contained in:
Dan Klishch 2024-03-09 00:51:37 -05:00 committed by Andrew Kaster
parent 3077e516a2
commit d99d66e358
Notes: sideshowbarker 2024-07-18 03:35:30 +09:00
12 changed files with 418 additions and 0 deletions

View file

@ -7,11 +7,13 @@
#include "Function.h"
#include "AST/AST.h"
#include "Compiler/ControlFlowGraph.h"
#include "Runtime/Realm.h"
namespace JSSpecCompiler {
TranslationUnit::TranslationUnit(StringView filename)
: m_filename(filename)
, m_realm(make<Runtime::Realm>(m_diagnostic_engine))
{
}