Skip to content

How to generate array.new_data opcode #5270

Description

@yviansu

array.new opcode has been implemented through makeArrayNew, and array.new_data opcode has been implemented through makeArrayNewSeg.

In src/binaryen-c.app, makeArrayNew is wrapped by BinaryenArrayNew, so we can invoke BinaryenArrayNew to generate array.new. However, I don't find the corresponding api related to makeArrayNewSeg, so I don't know how to generate array.new_data opcode.

In my opinion, it is reasonable to have BinaryenArraySeg in the src/binaryen-c.app file, am I right?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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