Skip to content

Pointer and length loads and stores in generated JS use signed methods #754

Open
@bennetthardwick

Description

@bennetthardwick

I've noticed that the JS code generated by JCO uses getInt32 instead of getUint32. I believe it stems from here:

Instruction::LengthStore { offset } => self.store("setInt32", *offset, operands),
Instruction::LengthLoad { offset } => self.load("getInt32", *offset, operands, results),
Instruction::PointerStore { offset } => self.store("setInt32", *offset, operands),
Instruction::PointerLoad { offset } => {
self.load("getInt32", *offset, operands, results)
}

Is this on purpose or should it be using the unsigned methods instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions