[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libjit] What does jit_insn_jump_table do, exactly?

From: Sam Wilson
Subject: [Libjit] What does jit_insn_jump_table do, exactly?
Date: Sun, 3 Nov 2013 01:09:03 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

Hello all,

I apologize if this has been asked before, or is documented somewhere,
but I haven't been able to get a satisfactory answer in my own research.

I would like to be able to do something like this (in quick pseudo-code):

function foobar(int target):
    destinations = [part1, part2, part3]
    goto destinations[target]

        return 1

        return 2

        return -1

Is jit_insn_jump_table what I need, and if so, how can I use it from C++?

Thanks for your help,

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]