Lines Matching defs:prefix
117 def prefix
118 name = dig(:prefix)
140 if prefix
141 dig(:opcode_idx) << 8 | prefix.opcode_idx
284 dig(:prefix) == 'throw' && !properties.include?('conditional_throw')
432 # * prefix handlers that re-dispatch to prefixed instruction based on second byte of opcode_idx
436 handlers = Panda.instructions.reject(&:prefix) +
441 Panda.instructions.select(&:prefix).stable_sort_by { |i| Panda.prefixes_hash[i.prefix.name].opcode_idx }
447 (Panda.instructions.reject(&:prefix).map(&:opcode_idx).max + 1)..(Panda.prefixes.map(&:opcode_idx).min - 1)
455 # Maximum value for secondary dispatch index for given prefix name
456 def secondary_opcode_bound(prefix)
457 prefix_data[prefix.name][:number_of_insns] - 1
460 # Offset in dispatch table for handlers of instructions for given prefix name
461 def secondary_opcode_offset(prefix)
462 256 + prefix_data[prefix.name][:delta]
470 prefix_instructions_num = Panda.instructions.select { |i| i.prefix && (i.prefix.name == p.name) }.size
487 @table[prefix(item)] << item.opcode_idx
493 opcodes = @table[prefix(item)]
503 def prefix(item)
504 item.prefix.nil? ? 'non_prefixed' : item.prefix