Skip to content

Extract a vm_assembler_t struct from block_body_t#69

Merged
dylanahsmith merged 1 commit into
masterfrom
extract-vm-assembler
Oct 6, 2020
Merged

Extract a vm_assembler_t struct from block_body_t#69
dylanahsmith merged 1 commit into
masterfrom
extract-vm-assembler

Conversation

@dylanahsmith
Copy link
Copy Markdown
Contributor

Extracted from #59

Problem

In #60 I am introducing a Liquid::C::Expression, which contains a subset fo the VM code that a Liquid::C::BlockBody can contain, since an expression can be parsed and used outside of a block body. In order to avoid duplication between these objects, we should have some common code to abstract the building of VM code.

Solution

I've moved the VM instructions and constants out of block_body_t into a vm_assembler_t struct, since we will want to embed the VM code in Liquid::C::Expression.

@dylanahsmith dylanahsmith merged commit 276d021 into master Oct 6, 2020
@dylanahsmith dylanahsmith deleted the extract-vm-assembler branch October 6, 2020 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants