Update release

This commit is contained in:
Zihan Chen
2020-07-07 01:42:59 -07:00
parent cb65296cf9
commit 3d07910cf4
19 changed files with 14366 additions and 13845 deletions
+10 -10
View File
@@ -765,11 +765,11 @@ WfLexicalScopeManager
stateMachineInfos.Clear();
}
#define CALLBACK(EXPR) if (callback) callback->EXPR
#define EXECUTE_CALLBACK(EXPR) if (callback) callback->EXPR
void WfLexicalScopeManager::Rebuild(bool keepTypeDescriptorNames, IWfCompilerCallback* callback)
{
CALLBACK(OnLoadEnvironment());
EXECUTE_CALLBACK(OnLoadEnvironment());
Clear(keepTypeDescriptorNames, false);
if (!globalName)
{
@@ -777,7 +777,7 @@ WfLexicalScopeManager
BuildGlobalNameFromTypeDescriptors(this);
}
CALLBACK(OnInitialize(this));
EXECUTE_CALLBACK(OnInitialize(this));
vint errorCount = errors.Count();
#define EXIT_IF_ERRORS_EXIST\
@@ -813,14 +813,14 @@ WfLexicalScopeManager
EXIT_IF_ERRORS_EXIST;
FOREACH(Ptr<WfModule>, module, modules)
{
CALLBACK(OnValidateModule(module));
EXECUTE_CALLBACK(OnValidateModule(module));
ValidateModuleSemantic(this, module);
}
#undef EXIT_IF_ERRORS_EXIST
}
#undef CALLBACK
#undef EXECUTE_CALLBACK
bool WfLexicalScopeManager::ResolveMember(ITypeDescriptor* typeDescriptor, const WString& name, bool preferStatic, collections::SortedList<ITypeDescriptor*>& searchedTypes, collections::List<ResolveExpressionResult>& results)
{
@@ -24282,11 +24282,11 @@ GetInstructionTypeArgument
GenerateAssembly
***********************************************************************/
#define CALLBACK(EXPR) if (callback) callback->EXPR
#define EXECUTE_CALLBACK(EXPR) if (callback) callback->EXPR
Ptr<runtime::WfAssembly> GenerateAssembly(analyzer::WfLexicalScopeManager* manager, IWfCompilerCallback* callback)
{
CALLBACK(OnGenerateMetadata());
EXECUTE_CALLBACK(OnGenerateMetadata());
auto assembly = MakePtr<WfAssembly>();
assembly->insBeforeCodegen = new WfInstructionDebugInfo;
assembly->insAfterCodegen = new WfInstructionDebugInfo;
@@ -24381,19 +24381,19 @@ GenerateAssembly
FOREACH(Ptr<WfModule>, module, manager->GetModules())
{
CALLBACK(OnGenerateCode(module));
EXECUTE_CALLBACK(OnGenerateCode(module));
FOREACH(Ptr<WfDeclaration>, decl, module->declarations)
{
GenerateDeclarationInstructions(context, decl);
}
}
CALLBACK(OnGenerateDebugInfo());
EXECUTE_CALLBACK(OnGenerateDebugInfo());
assembly->Initialize();
return assembly;
}
#undef CALLBACK
#undef EXECUTE_CALLBACK
#undef FILL_LABEL_TO_CURRENT
#undef FILL_LABEL_TO_INS
#undef INSTRUCTION