X-Git-Url: https://git.bts.cx/sun.git/blobdiff_plain/e47a6583d105110c3f3aaee5f860ce51555997e2..a5b6b9ea53d78b2019201a9fb75b763b7d92873c:/runtime/src/sun/compiler/vm_generator.c?ds=inline diff --git a/runtime/src/sun/compiler/vm_generator.c b/runtime/src/sun/compiler/vm_generator.c index 1e9cff3..0309257 100644 --- a/runtime/src/sun/compiler/vm_generator.c +++ b/runtime/src/sun/compiler/vm_generator.c @@ -1001,26 +1001,26 @@ static size_t generateModuleInstructions(VMGeneratorOutputScope *generator, SLTN generatorPatchOperand(generator, start, 0, address); // then do variables - for (SLTNode *n = node->moduleStatementsAndDefinitions; n != NULL; n = n->sequenceNext) { - switch (n->sequenceNode->type) { - case SLTNodeTypeFunctionDefinition: + //for (SLTNode *n = node->moduleStatementsAndDefinitions; n != NULL; n = n->sequenceNext) { + // switch (n->sequenceNode->type) { + // case SLTNodeTypeFunctionDefinition: // Do nothing... - break; + // break; - case SLTNodeTypeVariableDefinition: - generateStatementInstructions(generator, n->sequenceNode, 0); - break; + //case SLTNodeTypeVariableDefinition: + //generateStatementInstructions(generator, n->sequenceNode, 0); + // break; - default: + // default: //generator_assert_msg(false, "could not define %s", sltNodeTypeToString(n->sequenceNode->type)); - break; - } - } + // break; + // } + //} // statements for (SLTNode *n = node->moduleStatementsAndDefinitions; n != NULL; n = n->sequenceNext) { switch (n->sequenceNode->type) { - case SLTNodeTypeVariableDefinition: + //case SLTNodeTypeVariableDefinition: case SLTNodeTypeTypeDefinition: case SLTNodeTypeFunctionDefinition: // Do nothing...