Home
last modified time | relevance | path

Searched refs:yasm_bytecode (Results 1 – 25 of 51) sorted by relevance

123

/external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/
Dbytecode.h56 (void *add_span_data, yasm_bytecode *bc, int id, const yasm_value *value,
83 void (*finalize) (yasm_bytecode *bc, yasm_bytecode *prev_bc);
91 int (*elem_size) (yasm_bytecode *bc);
108 int (*calc_len) (yasm_bytecode *bc, yasm_bc_add_span_func add_span,
132 int (*expand) (yasm_bytecode *bc, int span, long old_val, long new_val,
159 int (*tobytes) (yasm_bytecode *bc, unsigned char **bufp,
183 struct yasm_bytecode { struct
187 /*@reldef@*/ STAILQ_ENTRY(yasm_bytecode) link;
238 /*@only@*/ yasm_bytecode *yasm_bc_create_common argument
248 void yasm_bc_transform(yasm_bytecode *bc,
[all …]
Dbytecode.c42 yasm_bc_set_multiple(yasm_bytecode *bc, yasm_expr *e) in yasm_bc_set_multiple()
52 yasm_bc_finalize_common(yasm_bytecode *bc, yasm_bytecode *prev_bc) in yasm_bc_finalize_common()
57 yasm_bc_calc_len_common(yasm_bytecode *bc, yasm_bc_add_span_func add_span, in yasm_bc_calc_len_common()
66 yasm_bc_expand_common(yasm_bytecode *bc, int span, long old_val, long new_val, in yasm_bc_expand_common()
75 yasm_bc_tobytes_common(yasm_bytecode *bc, unsigned char **buf, in yasm_bc_tobytes_common()
86 yasm_bc_transform(yasm_bytecode *bc, const yasm_bytecode_callback *callback, in yasm_bc_transform()
95 yasm_bytecode *
99 yasm_bytecode *bc = yasm_xmalloc(sizeof(yasm_bytecode)); in yasm_bc_create_common()
115 yasm_bc_get_section(yasm_bytecode *bc) in yasm_bc_get_section()
121 yasm_bc__add_symrec(yasm_bytecode *bc, yasm_symrec *sym) in yasm_bc__add_symrec()
[all …]
Dbc-reserve.c47 static void bc_reserve_finalize(yasm_bytecode *bc, yasm_bytecode *prev_bc);
48 static int bc_reserve_elem_size(yasm_bytecode *bc);
49 static int bc_reserve_calc_len(yasm_bytecode *bc,
52 static int bc_reserve_tobytes(yasm_bytecode *bc, unsigned char **bufp,
88 bc_reserve_finalize(yasm_bytecode *bc, yasm_bytecode *prev_bc) in bc_reserve_finalize()
101 bc_reserve_elem_size(yasm_bytecode *bc) in bc_reserve_elem_size()
108 bc_reserve_calc_len(yasm_bytecode *bc, yasm_bc_add_span_func add_span, in bc_reserve_calc_len()
117 bc_reserve_tobytes(yasm_bytecode *bc, unsigned char **bufp, in bc_reserve_tobytes()
127 yasm_bytecode *
142 yasm_bc_reserve_numitems(yasm_bytecode *bc, unsigned int *itemsize) in yasm_bc_reserve_numitems()
Dbc-org.c48 static void bc_org_finalize(yasm_bytecode *bc, yasm_bytecode *prev_bc);
49 static int bc_org_calc_len(yasm_bytecode *bc, yasm_bc_add_span_func add_span,
51 static int bc_org_expand(yasm_bytecode *bc, int span, long old_val,
54 static int bc_org_tobytes(yasm_bytecode *bc, unsigned char **bufp,
86 bc_org_finalize(yasm_bytecode *bc, yasm_bytecode *prev_bc) in bc_org_finalize()
91 bc_org_calc_len(yasm_bytecode *bc, yasm_bc_add_span_func add_span, in bc_org_calc_len()
105 bc_org_expand(yasm_bytecode *bc, int span, long old_val, long new_val, in bc_org_expand()
123 bc_org_tobytes(yasm_bytecode *bc, unsigned char **bufp, in bc_org_tobytes()
143 yasm_bytecode *
Dbc-align.c54 static void bc_align_finalize(yasm_bytecode *bc, yasm_bytecode *prev_bc);
55 static int bc_align_calc_len(yasm_bytecode *bc, yasm_bc_add_span_func add_span,
57 static int bc_align_expand(yasm_bytecode *bc, int span, long old_val,
60 static int bc_align_tobytes(yasm_bytecode *bc, unsigned char **bufp,
105 bc_align_finalize(yasm_bytecode *bc, yasm_bytecode *prev_bc) in bc_align_finalize()
120 bc_align_calc_len(yasm_bytecode *bc, yasm_bc_add_span_func add_span, in bc_align_calc_len()
134 bc_align_expand(yasm_bytecode *bc, int span, long old_val, long new_val, in bc_align_expand()
167 bc_align_tobytes(yasm_bytecode *bc, unsigned char **bufp, in bc_align_tobytes()
232 yasm_bytecode *
Dvalue.h88 void yasm_value_set_curpos_rel(yasm_value *value, yasm_bytecode *bc,
98 int yasm_value_finalize(yasm_value *value, /*@null@*/ yasm_bytecode *precbc);
122 /*@null@*/ yasm_bytecode *precbc,
138 (yasm_value *value, /*@null@*/ yasm_bytecode *bc, int calc_bc_dist);
162 yasm_bytecode *bc, int warn, yasm_arch *arch);
Dbc-incbin.c57 static void bc_incbin_finalize(yasm_bytecode *bc, yasm_bytecode *prev_bc);
58 static int bc_incbin_calc_len(yasm_bytecode *bc, yasm_bc_add_span_func add_span,
60 static int bc_incbin_tobytes(yasm_bytecode *bc, unsigned char **bufp,
108 bc_incbin_finalize(yasm_bytecode *bc, yasm_bytecode *prev_bc) in bc_incbin_finalize()
131 bc_incbin_calc_len(yasm_bytecode *bc, yasm_bc_add_span_func add_span, in bc_incbin_calc_len()
198 bc_incbin_tobytes(yasm_bytecode *bc, unsigned char **bufp, in bc_incbin_tobytes()
248 yasm_bytecode *
Dsection.h311 yasm_bytecode *yasm_section_bcs_first(yasm_section *sect);
319 yasm_bytecode *yasm_section_bcs_last(yasm_section *sect);
331 /*@only@*/ /*@null@*/ yasm_bytecode *yasm_section_bcs_append
333 /*@returned@*/ /*@only@*/ /*@null@*/ yasm_bytecode *bc);
348 /*@null@*/ void *d, int (*func) (yasm_bytecode *bc, /*@null@*/ void *d));
Dbc-data.c68 static void bc_data_finalize(yasm_bytecode *bc, yasm_bytecode *prev_bc);
69 static int bc_data_item_size(yasm_bytecode *bc);
70 static int bc_data_calc_len(yasm_bytecode *bc, yasm_bc_add_span_func add_span,
72 static int bc_data_tobytes(yasm_bytecode *bc, unsigned char **bufp,
107 bc_data_finalize(yasm_bytecode *bc, yasm_bytecode *prev_bc) in bc_data_finalize()
156 bc_data_item_size(yasm_bytecode *bc) in bc_data_item_size()
163 bc_data_calc_len(yasm_bytecode *bc, yasm_bc_add_span_func add_span, in bc_data_calc_len()
206 bc_data_tobytes(yasm_bytecode *bc, unsigned char **bufp, in bc_data_tobytes()
262 yasm_bytecode *
267 yasm_bytecode *bc = yasm_bc_create_common(&bc_data_callback, data, line); in yasm_bc_create_data()
[all …]
Dcoretype.h93 typedef struct yasm_bytecode yasm_bytecode; typedef
275 unsigned long offset, yasm_bytecode *bc, int warn, /*@null@*/ void *d);
295 (yasm_symrec *sym, yasm_bytecode *bc, unsigned char *buf,
Dsection.c74 /*@reldef@*/ STAILQ_HEAD(yasm_bytecodehead, yasm_bytecode) bcs;
308 yasm_bytecode *bc; in yasm_object_get_general()
514 yasm_bytecode *cur = STAILQ_FIRST(&sect->bcs); in yasm_object_finalize()
515 yasm_bytecode *prev; in yasm_object_finalize()
594 yasm_bytecode *
600 yasm_bytecode *
603 return STAILQ_LAST(&sect->bcs, yasm_bytecode, link); in yasm_section_bcs_last()
606 yasm_bytecode *
607 yasm_section_bcs_append(yasm_section *sect, yasm_bytecode *bc) in yasm_section_bcs_append()
617 return (yasm_bytecode *)NULL; in yasm_section_bcs_append()
[all …]
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/dbgfmts/stabs/
Dstabs-dbgfmt.c96 yasm_bytecode *basebc; /* base bytecode from which to track SLINEs */
104 /*@null@*/ yasm_bytecode *bcstr; /* bytecode in stabstr for string */
109 /*@null@*/yasm_bytecode *bcvalue; /* relocated stab's bytecode */
119 (yasm_bytecode *bc, yasm_bc_add_span_func add_span, void *add_span_data);
121 (yasm_bytecode *bc, unsigned char **bufp, unsigned char *bufstart, void *d,
129 (yasm_bytecode *bc, yasm_bc_add_span_func add_span, void *add_span_data);
131 (yasm_bytecode *bc, unsigned char **bufp, unsigned char *bufstart, void *d,
179 static yasm_bytecode *
182 yasm_bytecode *bc; in stabs_dbgfmt_append_bcstr()
198 /*@null@*/ yasm_bytecode *bcstr, stabs_stab_type type, in stabs_dbgfmt_append_stab()
[all …]
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/arch/x86/
Dx86arch.h198 yasm_bytecode *precbc);
210 void yasm_x86__bc_insn_opersize_override(yasm_bytecode *bc,
212 void yasm_x86__bc_insn_addrsize_override(yasm_bytecode *bc,
214 void yasm_x86__bc_insn_set_lockrep_prefix(yasm_bytecode *bc,
288 void yasm_x86__bc_transform_insn(yasm_bytecode *bc, x86_insn *insn);
289 void yasm_x86__bc_transform_jmp(yasm_bytecode *bc, x86_jmp *jmp);
290 void yasm_x86__bc_transform_jmpfar(yasm_bytecode *bc, x86_jmpfar *jmpfar);
301 int address16_op, unsigned char *rex, yasm_bytecode *bc);
308 /*@out@*/ yasm_bytecode **bc, /*@out@*/ uintptr_t *prefix);
318 size_t destsize, size_t valsize, int shift, const yasm_bytecode *bc,
[all …]
Dx86bc.c39 static int x86_bc_insn_calc_len(yasm_bytecode *bc,
42 static int x86_bc_insn_expand(yasm_bytecode *bc, int span, long old_val,
45 static int x86_bc_insn_tobytes(yasm_bytecode *bc, unsigned char **bufp,
52 static int x86_bc_jmp_calc_len(yasm_bytecode *bc,
55 static int x86_bc_jmp_expand(yasm_bytecode *bc, int span, long old_val,
58 static int x86_bc_jmp_tobytes(yasm_bytecode *bc, unsigned char **bufp,
66 static int x86_bc_jmpfar_calc_len(yasm_bytecode *bc,
70 (yasm_bytecode *bc, unsigned char **bufp, unsigned char *bufstart, void *d,
142 yasm_x86__bc_transform_insn(yasm_bytecode *bc, x86_insn *insn) in yasm_x86__bc_transform_insn()
148 yasm_x86__bc_transform_jmp(yasm_bytecode *bc, x86_jmp *jmp) in yasm_x86__bc_transform_jmp()
[all …]
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/objfmts/coff/
Dwin64-except.c42 static void win64_uwinfo_bc_finalize(yasm_bytecode *bc,
43 yasm_bytecode *prev_bc);
45 (yasm_bytecode *bc, yasm_bc_add_span_func add_span, void *add_span_data);
46 static int win64_uwinfo_bc_expand(yasm_bytecode *bc, int span, long old_val,
50 (yasm_bytecode *bc, unsigned char **bufp, unsigned char *bufstart, void *d,
57 static void win64_uwcode_bc_finalize(yasm_bytecode *bc,
58 yasm_bytecode *prev_bc);
60 (yasm_bytecode *bc, yasm_bc_add_span_func add_span, void *add_span_data);
61 static int win64_uwcode_bc_expand(yasm_bytecode *bc, int span, long old_val,
65 (yasm_bytecode *bc, unsigned char **bufp, unsigned char *bufstart, void *d,
[all …]
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/dbgfmts/codeview/
Dcv-symline.c108 yasm_bytecode *start_prevbc;
109 yasm_bytecode *end_prevbc;
163 (yasm_bytecode *bc, yasm_bc_add_span_func add_span, void *add_span_data);
165 (yasm_bytecode *bc, unsigned char **bufp, unsigned char *bufstart, void *d,
173 (yasm_bytecode *bc, yasm_bc_add_span_func add_span, void *add_span_data);
175 (yasm_bytecode *bc, unsigned char **bufp, unsigned char *bufstart, void *d,
183 (yasm_bytecode *bc, yasm_bc_add_span_func add_span, void *add_span_data);
185 (yasm_bytecode *bc, unsigned char **bufp, unsigned char *bufstart, void *d,
192 (yasm_bytecode *bc, yasm_bc_add_span_func add_span, void *add_span_data);
194 (yasm_bytecode *bc, unsigned char **bufp, unsigned char *bufstart, void *d,
[all …]
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/arch/lc3b/
Dlc3bbc.c39 static int lc3b_bc_insn_calc_len(yasm_bytecode *bc,
42 static int lc3b_bc_insn_expand(yasm_bytecode *bc, int span, long old_val,
45 static int lc3b_bc_insn_tobytes(yasm_bytecode *bc, unsigned char **bufp,
65 yasm_lc3b__bc_transform_insn(yasm_bytecode *bc, lc3b_insn *insn) in yasm_lc3b__bc_transform_insn()
133 lc3b_bc_insn_calc_len(yasm_bytecode *bc, yasm_bc_add_span_func add_span, in lc3b_bc_insn_calc_len()
137 yasm_bytecode *target_prevbc; in lc3b_bc_insn_calc_len()
160 lc3b_bc_insn_expand(yasm_bytecode *bc, int span, long old_val, long new_val, in lc3b_bc_insn_expand()
168 lc3b_bc_insn_tobytes(yasm_bytecode *bc, unsigned char **bufp, in lc3b_bc_insn_tobytes()
244 int shift, const yasm_bytecode *bc, int warn) in yasm_lc3b__intnum_tobytes()
Dlc3barch.h51 void yasm_lc3b__bc_transform_insn(yasm_bytecode *bc, lc3b_insn *insn);
55 /*@out@*/ /*@only@*/ yasm_bytecode **bc, /*@out@*/ uintptr_t *prefix);
62 size_t destsize, size_t valsize, int shift, const yasm_bytecode *bc,
65 /*@only@*/ yasm_bytecode *yasm_lc3b__create_empty_insn(yasm_arch *arch,
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/dbgfmts/dwarf2/
Ddwarf2-dbgfmt.c34 yasm_bytecode *start_prevbc;
35 yasm_bytecode *end_prevbc;
46 (yasm_bytecode *bc, yasm_bc_add_span_func add_span, void *add_span_data);
48 (yasm_bytecode *bc, unsigned char **bufp, unsigned char *bufstart, void *d,
139 yasm_bytecode *
140 yasm_dwarf2__append_bc(yasm_section *sect, yasm_bytecode *bc) in yasm_dwarf2__append_bc()
142 yasm_bytecode *precbc = yasm_section_bcs_last(sect); in yasm_dwarf2__append_bc()
178 yasm_dwarf2__bc_sym(yasm_symtab *symtab, yasm_bytecode *bc) in yasm_dwarf2__bc_sym()
194 yasm_bytecode *bc; in yasm_dwarf2__add_head()
223 yasm_dwarf2__set_head_end(dwarf2_head *head, yasm_bytecode *end_prevbc) in yasm_dwarf2__set_head_end()
[all …]
Ddwarf2-dbgfmt.h81 yasm_bytecode *bc; /* first bytecode following */
95 yasm_bytecode *yasm_dwarf2__append_bc(yasm_section *sect, yasm_bytecode *bc);
98 yasm_bytecode *bc);
104 void yasm_dwarf2__set_head_end(dwarf2_head *head, yasm_bytecode *end_prevbc);
Ddwarf2-line.c108 /*@null@*/ yasm_bytecode *precbc;
112 yasm_bytecode *line_start_prevbc;
113 yasm_bytecode *line_end_prevbc;
132 (yasm_bytecode *bc, yasm_bc_add_span_func add_span, void *add_span_data);
134 (yasm_bytecode *bc, unsigned char **bufp, unsigned char *bufstart, void *d,
142 (yasm_bytecode *bc, yasm_bc_add_span_func add_span, void *add_span_data);
144 (yasm_bytecode *bc, unsigned char **bufp, unsigned char *bufstart, void *d,
247 static yasm_bytecode *
252 yasm_bytecode *bc; in dwarf2_dbgfmt_append_line_op()
274 static yasm_bytecode *
[all …]
Ddwarf2-info.c197 (yasm_bytecode *bc, yasm_bc_add_span_func add_span, void *add_span_data);
199 (yasm_bytecode *bc, unsigned char **bufp, unsigned char *bufstart, void *d,
233 yasm_bytecode *bc; in dwarf2_append_expr()
249 yasm_bytecode *bc; in dwarf2_append_str()
265 yasm_bytecode *abc; in yasm_dwarf2__generate_info()
390 dwarf2_abbrev_bc_calc_len(yasm_bytecode *bc, yasm_bc_add_span_func add_span, in dwarf2_abbrev_bc_calc_len()
399 dwarf2_abbrev_bc_tobytes(yasm_bytecode *bc, unsigned char **bufp, in dwarf2_abbrev_bc_tobytes()
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/parsers/gas/
Dgas-parse.c42 yasm_bytecode * (*handler) (yasm_parser_gas *, unsigned int);
49 static yasm_bytecode *parse_instr(yasm_parser_gas *parser_gas);
71 static yasm_bytecode *gas_parser_align
75 static yasm_bytecode *gas_parser_dir_fill
173 static yasm_bytecode *
176 yasm_bytecode *bc; in parse_line()
457 static yasm_bytecode *
490 static yasm_bytecode *
515 static yasm_bytecode *
519 yasm_bytecode *bc; in dir_org()
[all …]
Dgas-parser.h58 yasm_bytecode *bc;
94 /*@null@*/ yasm_bytecode *prev_bc;
95 yasm_bytecode *temp_bc;
157 yasm_bytecode *parse_instr_intel(yasm_parser_gas *parser_gas);
Dgas-parse-intel.c37 extern yasm_bytecode *gas_intel_syntax_parse_instr(yasm_parser_nasm *parser_nasm, unsigned char *in…
48 yasm_bytecode *parse_instr_intel(yasm_parser_gas *parser_gas) in parse_instr_intel()
55 yasm_bytecode *bc; in parse_instr_intel()

123