2020-08-09 00:31:18 -07:00
|
|
|
#include "CompiledScript.h"
|
|
|
|
|
|
|
|
|
|
#include <utility>
|
|
|
|
|
|
|
|
|
|
#include "StoredToken.h"
|
2021-02-25 16:53:22 +01:00
|
|
|
#include "bscript/compiler/file/SourceFileIdentifier.h"
|
|
|
|
|
#include "bscript/compiler/representation/ExportedFunction.h"
|
|
|
|
|
#include "bscript/compiler/representation/ModuleDescriptor.h"
|
|
|
|
|
#include "bscript/compiler/representation/ModuleFunctionDescriptor.h"
|
2020-08-09 00:31:18 -07:00
|
|
|
|
2020-08-10 03:20:29 -07:00
|
|
|
namespace Pol::Bscript::Compiler
|
2020-08-09 00:31:18 -07:00
|
|
|
{
|
|
|
|
|
CompiledScript::CompiledScript( CodeSection code,
|
|
|
|
|
DataSection data,
|
2020-09-12 14:26:58 -07:00
|
|
|
DebugStore debug,
|
2020-08-09 00:31:18 -07:00
|
|
|
ExportedFunctions exported_functions,
|
|
|
|
|
std::vector<std::string> global_variable_names,
|
|
|
|
|
ModuleDescriptors module_descriptors,
|
|
|
|
|
std::unique_ptr<ProgramInfo> program_info,
|
|
|
|
|
SourceFileIdentifiers source_file_identifiers)
|
|
|
|
|
: code( std::move( code ) ),
|
|
|
|
|
data( std::move( data ) ),
|
2020-09-12 14:26:58 -07:00
|
|
|
debug( std::move( debug ) ),
|
2020-08-09 00:31:18 -07:00
|
|
|
exported_functions( std::move( exported_functions ) ),
|
|
|
|
|
global_variable_names( std::move( global_variable_names ) ),
|
|
|
|
|
module_descriptors( std::move( module_descriptors ) ),
|
|
|
|
|
program_info( std::move( program_info ) ),
|
|
|
|
|
source_file_identifiers( std::move( source_file_identifiers ) )
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CompiledScript::~CompiledScript() = default;
|
|
|
|
|
|
2020-08-10 03:20:29 -07:00
|
|
|
} // namespace Pol::Bscript::Compiler
|