Code emit: Transform grabbing current instruction from wrong queue #43

Closed
opened 2022-12-13 20:28:01 +00:00 by deavmi · 1 comment
Owner

When doing the following for funciton definitions:

// Fetch the variable assignment instruction
nextCodeInstruction();
Instruction varAssInstr = getCurrentCodeInstruction();

We are using the wrong queue (which is via getCurrentCodeInstruction()) but should be using funciton deifnition queue. I recommend, we remove all fucntion queues and swap into the getCurrentInstruction() as a fix.

When doing the following for funciton definitions: ```d // Fetch the variable assignment instruction nextCodeInstruction(); Instruction varAssInstr = getCurrentCodeInstruction(); ``` We are using the wrong queue (which is via `getCurrentCodeInstruction()`) but should be using funciton deifnition queue. I recommend, we remove all fucntion queues and swap into the `getCurrentInstruction()` as a fix.
deavmi added a new dependency 2022-12-13 20:28:38 +00:00
deavmi added reference vardec_varass_dependency 2022-12-13 20:28:42 +00:00
deavmi added the
emit
label 2022-12-13 20:28:46 +00:00
deavmi self-assigned this 2022-12-13 20:28:53 +00:00
deavmi added this to the Code emit project 2022-12-13 20:28:56 +00:00
deavmi added a new dependency 2022-12-14 09:28:14 +00:00
Author
Owner

We now use the whole "selected queue" mechanism

Fixed with commit 2a12c310a66e42783a524cd58f040454c1c36197 on branch vardec_varass_dependency

We now use the whole "selected queue" mechanism Fixed with commit `2a12c310a66e42783a524cd58f040454c1c36197` on branch `vardec_varass_dependency`
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Blocks
#44 CodeEmitter
tlang/tlang
Reference: tlang/tlang#43
No description provided.