webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Classes | |
class | CollisionError |
Public Member Functions | |
def | newTable (self, typ) |
def | mkTrie (self, opcodes, obj) |
def | walk (self, tbl, opcodes) |
def | map (self, tbl, opcodes, obj) |
def | __init__ (self, xml) |
def | log (self, s) |
def | mergeSSENONE (self) |
def | patchAvx2byte (self) |
def | addInsn (self, insnDef) |
def | addInsnDef (self, insnDef) |
def | addSSE2AVXInsn (self, insnDef) |
def | getInsnList (self) |
def | getTableList (self) |
def | getMnemonicsList (self) |
def | pprint (self) |
def | printStats (self) |
Static Public Member Functions | |
def | parseOptableXML (xml) |
Public Attributes | |
root | |
invalidInsn | |
Collection of opcode tables
def ud_opcode.UdOpcodeTables.__init__ | ( | self, | |
xml | |||
) |
def ud_opcode.UdOpcodeTables.addInsn | ( | self, | |
insnDef | |||
) |
def ud_opcode.UdOpcodeTables.addInsnDef | ( | self, | |
insnDef | |||
) |
def ud_opcode.UdOpcodeTables.addSSE2AVXInsn | ( | self, | |
insnDef | |||
) |
Add an instruction definition containing an avx cpuid bit, but declared in its legacy SSE form. The function splits the definition to create two new definitions, one for SSE and one promoted to an AVX form.
def ud_opcode.UdOpcodeTables.getInsnList | ( | self | ) |
Returns a list of all instructions in the collection
def ud_opcode.UdOpcodeTables.getMnemonicsList | ( | self | ) |
Returns a sorted list of mnemonics
def ud_opcode.UdOpcodeTables.getTableList | ( | self | ) |
Returns a list of all tables in the collection
def ud_opcode.UdOpcodeTables.log | ( | self, | |
s | |||
) |
def ud_opcode.UdOpcodeTables.map | ( | self, | |
tbl, | |||
opcodes, | |||
obj | |||
) |
Create a mapping from a given string of opcodes to an object in the opcode trie. Constructs trie branches as needed.
def ud_opcode.UdOpcodeTables.mergeSSENONE | ( | self | ) |
Merge sse tables with only one entry for /sse=none
def ud_opcode.UdOpcodeTables.mkTrie | ( | self, | |
opcodes, | |||
obj | |||
) |
Recursively contruct a trie entry mapping a string of opcodes to an object.
def ud_opcode.UdOpcodeTables.newTable | ( | self, | |
typ | |||
) |
Create a new opcode table of a give type `typ`.
|
static |
Parse udis86 optable.xml file and return list of instruction definitions.
def ud_opcode.UdOpcodeTables.patchAvx2byte | ( | self | ) |
def ud_opcode.UdOpcodeTables.pprint | ( | self | ) |
def ud_opcode.UdOpcodeTables.printStats | ( | self | ) |
def ud_opcode.UdOpcodeTables.walk | ( | self, | |
tbl, | |||
opcodes | |||
) |
Walk down the opcode trie, starting at a given opcode table, given a string of opcodes. Return None if unable to walk, the object at the leaf otherwise.
ud_opcode.UdOpcodeTables.invalidInsn |
ud_opcode.UdOpcodeTables.root |