Home
last modified time | relevance | path

Searched refs:code_ptr (Results 1 – 25 of 29) sorted by relevance

12

/external/flatbuffers/src/
Didl_gen_go.cpp126 void BeginClass(const StructDef &struct_def, std::string *code_ptr) { in BeginClass() argument
127 std::string &code = *code_ptr; in BeginClass()
143 void GenEnumType(const EnumDef &enum_def, std::string *code_ptr) { in GenEnumType() argument
144 std::string &code = *code_ptr; in GenEnumType()
150 void BeginEnum(std::string *code_ptr) { in BeginEnum() argument
151 std::string &code = *code_ptr; in BeginEnum()
157 std::string *code_ptr) { in EnumMember() argument
158 std::string &code = *code_ptr; in EnumMember()
169 void EndEnum(std::string *code_ptr) { in EndEnum() argument
170 std::string &code = *code_ptr; in EndEnum()
[all …]
Didl_gen_python.cpp89 void BeginClass(const StructDef &struct_def, std::string *code_ptr) { in BeginClass() argument
90 std::string &code = *code_ptr; in BeginClass()
97 void BeginEnum(const std::string class_name, std::string *code_ptr) { in BeginEnum() argument
98 std::string &code = *code_ptr; in BeginEnum()
115 void EnumMember(const EnumVal ev, std::string *code_ptr) { in EnumMember() argument
116 std::string &code = *code_ptr; in EnumMember()
124 void EndEnum(std::string *code_ptr) { in EndEnum() argument
125 std::string &code = *code_ptr; in EndEnum()
131 std::string *code_ptr) { in NewRootTypeFromBuffer() argument
132 std::string &code = *code_ptr; in NewRootTypeFromBuffer()
[all …]
Didl_gen_lua.cpp82 void BeginClass(const StructDef &struct_def, std::string *code_ptr) { in BeginClass() argument
83 std::string &code = *code_ptr; in BeginClass()
90 void BeginEnum(const std::string class_name, std::string *code_ptr) { in BeginEnum() argument
91 std::string &code = *code_ptr; in BeginEnum()
112 void EnumMember(const EnumVal ev, std::string *code_ptr) { in EnumMember() argument
113 std::string &code = *code_ptr; in EnumMember()
118 void EndEnum(std::string *code_ptr) { in EndEnum() argument
119 std::string &code = *code_ptr; in EndEnum()
124 std::string *code_ptr) { in GenerateNewObjectPrototype() argument
125 std::string &code = *code_ptr; in GenerateNewObjectPrototype()
[all …]
Didl_gen_php.cpp66 std::string *code_ptr) { in BeginFile() argument
67 auto &code = *code_ptr; in BeginFile()
100 static void BeginClass(const StructDef &struct_def, std::string *code_ptr) { in BeginClass() argument
101 std::string &code = *code_ptr; in BeginClass()
110 static void EndClass(std::string *code_ptr) { in EndClass() argument
111 std::string &code = *code_ptr; in EndClass()
116 static void BeginEnum(const std::string &class_name, std::string *code_ptr) { in BeginEnum() argument
117 std::string &code = *code_ptr; in BeginEnum()
122 static void EnumMember(const EnumVal ev, std::string *code_ptr) { in EnumMember() argument
123 std::string &code = *code_ptr; in EnumMember()
[all …]
Didl_gen_lobster.cpp95 const FieldDef &field, std::string *code_ptr) { in GenStructAccessor() argument
96 GenComment(field.doc_comment, code_ptr, nullptr, " "); in GenStructAccessor()
97 std::string &code = *code_ptr; in GenStructAccessor()
175 std::string *code_ptr) { in GenTableBuilders() argument
176 std::string &code = *code_ptr; in GenTableBuilders()
218 void GenStructPreDecl(const StructDef &struct_def, std::string *code_ptr) { in GenStructPreDecl() argument
220 std::string &code = *code_ptr; in GenStructPreDecl()
226 void GenStruct(const StructDef &struct_def, std::string *code_ptr) { in GenStruct() argument
228 std::string &code = *code_ptr; in GenStruct()
230 GenComment(struct_def.doc_comment, code_ptr, nullptr, ""); in GenStruct()
[all …]
Didl_gen_dart.cpp175 std::string *code_ptr, in GenDocComment() argument
183 auto &code = *code_ptr; in GenDocComment()
210 static void GenDocComment(std::string *code_ptr, in GenDocComment() argument
212 GenDocComment(std::vector<std::string>(), code_ptr, extra_lines); in GenDocComment()
287 std::string *code_ptr) { in GenEnumReader() argument
288 auto &code = *code_ptr; in GenEnumReader()
488 std::string *code_ptr) { in GenImplementationGetters() argument
489 auto &code = *code_ptr; in GenImplementationGetters()
579 std::string *code_ptr) { in GenReader() argument
580 auto &code = *code_ptr; in GenReader()
[all …]
Didl_gen_js_ts.cpp123 void generateImportDependencies(std::string *code_ptr, in generateImportDependencies() argument
125 std::string &code = *code_ptr; in generateImportDependencies()
138 void generateReexports(std::string *code_ptr, const reexport_map &reexports, in generateReexports() argument
145 std::string &code = *code_ptr; in generateReexports()
186 void GenNamespaces(std::string *code_ptr, std::string *exports_ptr) { in GenNamespaces() argument
213 std::string &code = *code_ptr; in GenNamespaces()
241 std::string *code_ptr, in GenDocComment() argument
249 std::string &code = *code_ptr; in GenDocComment()
278 static void GenDocComment(std::string *code_ptr, in GenDocComment() argument
280 GenDocComment(std::vector<std::string>(), code_ptr, extra_lines); in GenDocComment()
[all …]
Didl_gen_general.cpp518 void GenEnum(EnumDef &enum_def, std::string *code_ptr) const { in GenEnum()
519 std::string &code = *code_ptr; in GenEnum()
527 GenComment(enum_def.doc_comment, code_ptr, &lang_.comment_config); in GenEnum()
549 GenComment(ev.doc_comment, code_ptr, &lang_.comment_config, " "); in GenEnum()
661 void GenStructArgs(const StructDef &struct_def, std::string *code_ptr, in GenStructArgs() argument
663 std::string &code = *code_ptr; in GenStructArgs()
671 GenStructArgs(*field.value.type.struct_def, code_ptr, in GenStructArgs()
686 void GenStructBody(const StructDef &struct_def, std::string *code_ptr, in GenStructBody() argument
688 std::string &code = *code_ptr; in GenStructBody()
700 GenStructBody(*field.value.type.struct_def, code_ptr, in GenStructBody()
[all …]
Didl_gen_rust.cpp1574 const FieldDef &field, std::string *code_ptr, int *id, in GenPadding() argument
1575 const std::function<void(int bits, std::string *code_ptr, int *id)> &f) { in GenPadding()
1579 f((1 << i) * 8, code_ptr, id); in GenPadding()
1586 static void PaddingDefinition(int bits, std::string *code_ptr, int *id) { in PaddingDefinition() argument
1587 *code_ptr += " padding" + NumToString((*id)++) + "__: u" + \ in PaddingDefinition()
1591 static void PaddingInitializer(int bits, std::string *code_ptr, int *id) { in PaddingInitializer() argument
1593 *code_ptr += "padding" + NumToString((*id)++) + "__: 0,"; in PaddingInitializer()
/external/e2fsprogs/lib/ss/
Dhelp.c128 void ss_add_info_dir(int sci_idx, char *info_dir, int *code_ptr) in ss_add_info_dir() argument
137 *code_ptr = SS_ET_NO_INFO_DIR; in ss_add_info_dir()
141 *code_ptr = errno; in ss_add_info_dir()
152 *code_ptr = errno; in ss_add_info_dir()
159 *code_ptr = 0; in ss_add_info_dir()
162 void ss_delete_info_dir(int sci_idx, char *info_dir, int *code_ptr) in ss_delete_info_dir() argument
174 *code_ptr = 0; in ss_delete_info_dir()
178 *code_ptr = SS_ET_NO_INFO_DIR; in ss_delete_info_dir()
Drequest_tbl.c23 void ss_add_request_table(int sci_idx, ssrt *rqtbl_ptr, int position, int *code_ptr) in ss_add_request_table() argument
36 *code_ptr = errno; in ss_add_request_table()
49 *code_ptr = 0; in ss_add_request_table()
52 void ss_delete_request_table(int sci_idx, ssrt *rqtbl_ptr, int *code_ptr) in ss_delete_request_table() argument
57 *code_ptr = SS_ET_TABLE_NOT_FOUND; in ss_delete_request_table()
63 *code_ptr = 0; in ss_delete_request_table()
Dss_internal.h81 #define ss_current_request(sci_idx,code_ptr) \ argument
82 (*code_ptr=0,ss_info(sci_idx)->current_request)
83 void ss_add_info_dir (int sci_idx, char *info_dir, int *code_ptr);
84 void ss_delete_info_dir (int sci_idx, char *info_dir, int *code_ptr);
Dinvocation.c27 int *code_ptr) in ss_create_invocation() argument
33 *code_ptr = 0; in ss_create_invocation()
48 *code_ptr = ENOMEM; in ss_create_invocation()
66 new_table->abbrev_info = ss_abbrev_initialize("/etc/passwd", code_ptr); in ss_create_invocation()
/external/v8/src/base/platform/
Dplatform-macos.cc54 char* code_ptr = getsectdatafromheader_64( in GetSharedLibraryAddresses() local
59 char* code_ptr = getsectdatafromheader(header, SEG_TEXT, SECT_TEXT, &size); in GetSharedLibraryAddresses() local
61 if (code_ptr == nullptr) continue; in GetSharedLibraryAddresses()
63 const uintptr_t start = reinterpret_cast<uintptr_t>(code_ptr) + slide; in GetSharedLibraryAddresses()
/external/pcre/dist2/src/sljit/
DsljitNativeARM_32.c278 static sljit_uw patch_pc_relative_loads(sljit_uw *last_pc_patch, sljit_uw *code_ptr, sljit_uw* cons… in patch_pc_relative_loads() argument
286 SLJIT_ASSERT(const_pool - code_ptr <= CONST_POOL_ALIGNMENT); in patch_pc_relative_loads()
293 while (last_pc_patch < code_ptr) { in patch_pc_relative_loads()
404 static SLJIT_INLINE sljit_s32 detect_jump_type(struct sljit_jump *jump, sljit_uw *code_ptr, sljit_u… in detect_jump_type() argument
413 code_ptr--; in detect_jump_type()
416 diff = ((sljit_sw)jump->u.target - (sljit_sw)(code_ptr + 2) - executable_offset); in detect_jump_type()
419 diff = ((sljit_sw)(code + jump->u.label->size) - (sljit_sw)(code_ptr + 2)); in detect_jump_type()
428 *code_ptr = (BL - CONDITIONAL) | (*(code_ptr + 1) & COND_MASK); in detect_jump_type()
435 *code_ptr = (B - CONDITIONAL) | (*code_ptr & COND_MASK); in detect_jump_type()
441 diff = ((sljit_sw)jump->u.target - (sljit_sw)code_ptr - executable_offset); in detect_jump_type()
[all …]
DsljitNativePPC_common.c256 static SLJIT_INLINE sljit_s32 detect_jump_type(struct sljit_jump *jump, sljit_ins *code_ptr, sljit_… in detect_jump_type() argument
282 diff = ((sljit_sw)target_addr - (sljit_sw)(code_ptr) - executable_offset) & ~0x3l; in detect_jump_type()
331 sljit_ins *code_ptr; in sljit_generate_code() local
357 code_ptr = code; in sljit_generate_code()
369 *code_ptr = *buf_ptr++; in sljit_generate_code()
376 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code()
377 label->size = code_ptr - code; in sljit_generate_code()
382 jump->addr = (sljit_uw)(code_ptr - 3); in sljit_generate_code()
384 jump->addr = (sljit_uw)(code_ptr - 6); in sljit_generate_code()
386 if (detect_jump_type(jump, code_ptr, code, executable_offset)) { in sljit_generate_code()
[all …]
DsljitNativeX86_64.c42 static sljit_u8* generate_far_jump_code(struct sljit_jump *jump, sljit_u8 *code_ptr, sljit_s32 type) in generate_far_jump_code() argument
51 *code_ptr++ = get_jump_code(type ^ 0x1) - 0x10; in generate_far_jump_code()
52 *code_ptr++ = short_addr ? (6 + 3) : (10 + 3); in generate_far_jump_code()
55 *code_ptr++ = short_addr ? REX_B : (REX_W | REX_B); in generate_far_jump_code()
56 *code_ptr++ = MOV_r_i32 | reg_lmap[TMP_REG2]; in generate_far_jump_code()
57 jump->addr = (sljit_uw)code_ptr; in generate_far_jump_code()
62 sljit_unaligned_store_s32(code_ptr, (sljit_s32)jump->u.target); in generate_far_jump_code()
64 sljit_unaligned_store_sw(code_ptr, jump->u.target); in generate_far_jump_code()
66 code_ptr += short_addr ? sizeof(sljit_s32) : sizeof(sljit_sw); in generate_far_jump_code()
68 *code_ptr++ = REX_B; in generate_far_jump_code()
[all …]
DsljitNativeARM_64.c164 static SLJIT_INLINE sljit_s32 detect_jump_type(struct sljit_jump *jump, sljit_ins *code_ptr, sljit_… in detect_jump_type() argument
181 diff = (sljit_sw)target_addr - (sljit_sw)(code_ptr + 4) - executable_offset; in detect_jump_type()
186 code_ptr[-5] ^= (jump->flags & IS_CBZ) ? (0x1 << 24) : 0x1; in detect_jump_type()
201 code_ptr[-5] -= (2 << 5); in detect_jump_type()
202 code_ptr[-2] = code_ptr[0]; in detect_jump_type()
208 code_ptr[-5] -= (1 << 5); in detect_jump_type()
210 code_ptr[-1] = code_ptr[0]; in detect_jump_type()
222 sljit_ins *code_ptr; in sljit_generate_code() local
242 code_ptr = code; in sljit_generate_code()
254 *code_ptr = *buf_ptr++; in sljit_generate_code()
[all …]
DsljitNativeSPARC_common.c218 static SLJIT_INLINE sljit_ins* detect_jump_type(struct sljit_jump *jump, sljit_ins *code_ptr, sljit… in detect_jump_type() argument
226 return code_ptr; in detect_jump_type()
290 return code_ptr; in detect_jump_type()
297 sljit_ins *code_ptr; in sljit_generate_code() local
316 code_ptr = code; in sljit_generate_code()
328 *code_ptr = *buf_ptr++; in sljit_generate_code()
335 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code()
336 label->size = code_ptr - code; in sljit_generate_code()
341 jump->addr = (sljit_uw)(code_ptr - 3); in sljit_generate_code()
343 jump->addr = (sljit_uw)(code_ptr - 6); in sljit_generate_code()
[all …]
DsljitNativeX86_common.c431 static sljit_u8* generate_far_jump_code(struct sljit_jump *jump, sljit_u8 *code_ptr, sljit_s32 type…
433 static sljit_u8* generate_far_jump_code(struct sljit_jump *jump, sljit_u8 *code_ptr, sljit_s32 type…
436 static sljit_u8* generate_near_jump_code(struct sljit_jump *jump, sljit_u8 *code_ptr, sljit_u8 *cod… in generate_near_jump_code() argument
450 return generate_far_jump_code(jump, code_ptr, type); in generate_near_jump_code()
455 *code_ptr++ = JMP_i8; in generate_near_jump_code()
457 *code_ptr++ = JMP_i32; in generate_near_jump_code()
462 *code_ptr++ = CALL_i32; in generate_near_jump_code()
466 *code_ptr++ = get_jump_code(type) - 0x10; in generate_near_jump_code()
470 *code_ptr++ = GROUP_0F; in generate_near_jump_code()
471 *code_ptr++ = get_jump_code(type); in generate_near_jump_code()
[all …]
DsljitNativeMIPS_common.c240 static SLJIT_INLINE sljit_ins* detect_jump_type(struct sljit_jump *jump, sljit_ins *code_ptr, sljit… in detect_jump_type() argument
249 return code_ptr; in detect_jump_type()
252 return code_ptr; in detect_jump_type()
369 return code_ptr; in detect_jump_type()
373 static __attribute__ ((noinline)) void sljit_cache_flush(void* code, void* code_ptr) in sljit_cache_flush() argument
375 SLJIT_CACHE_FLUSH(code, code_ptr); in sljit_cache_flush()
383 sljit_ins *code_ptr; in sljit_generate_code() local
402 code_ptr = code; in sljit_generate_code()
414 *code_ptr = *buf_ptr++; in sljit_generate_code()
420 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code()
[all …]
DsljitNativeX86_32.c41 static sljit_u8* generate_far_jump_code(struct sljit_jump *jump, sljit_u8 *code_ptr, sljit_s32 type… in generate_far_jump_code() argument
44 *code_ptr++ = JMP_i32; in generate_far_jump_code()
48 *code_ptr++ = CALL_i32; in generate_far_jump_code()
52 *code_ptr++ = GROUP_0F; in generate_far_jump_code()
53 *code_ptr++ = get_jump_code(type); in generate_far_jump_code()
60 …sljit_unaligned_store_sw(code_ptr, jump->u.target - (jump->addr + 4) - (sljit_uw)executable_offset… in generate_far_jump_code()
61 code_ptr += 4; in generate_far_jump_code()
63 return code_ptr; in generate_far_jump_code()
DsljitNativeARM_T2_32.c240 static SLJIT_INLINE sljit_s32 detect_jump_type(struct sljit_jump *jump, sljit_u16 *code_ptr, sljit_… in detect_jump_type() argument
251 diff = ((sljit_sw)jump->u.target - (sljit_sw)(code_ptr + 2) - executable_offset) >> 1; in detect_jump_type()
255 diff = ((sljit_sw)(code + jump->u.label->size) - (sljit_sw)(code_ptr + 2)) >> 1; in detect_jump_type()
364 sljit_u16 *code_ptr; in sljit_generate_code() local
382 code_ptr = code; in sljit_generate_code()
394 *code_ptr = *buf_ptr++; in sljit_generate_code()
400 label->addr = ((sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset)) | 0x1; in sljit_generate_code()
401 label->size = code_ptr - code; in sljit_generate_code()
405 jump->addr = (sljit_uw)code_ptr - ((jump->flags & IS_COND) ? 10 : 8); in sljit_generate_code()
406 code_ptr -= detect_jump_type(jump, code_ptr, code, executable_offset); in sljit_generate_code()
[all …]
DsljitNativeTILEGX_64.c903 static SLJIT_INLINE sljit_ins * detect_jump_type(struct sljit_jump *jump, sljit_ins *code_ptr, slji… in detect_jump_type() argument
910 return code_ptr; in detect_jump_type()
967 return code_ptr; in detect_jump_type()
993 return code_ptr; in detect_jump_type()
1000 sljit_ins *code_ptr; in sljit_generate_code() local
1018 code_ptr = code; in sljit_generate_code()
1027 *code_ptr = *buf_ptr++; in sljit_generate_code()
1034 label->addr = (sljit_uw) code_ptr; in sljit_generate_code()
1035 label->size = code_ptr - code; in sljit_generate_code()
1041 jump->addr = (sljit_uw)(code_ptr - 4); in sljit_generate_code()
[all …]
/external/harfbuzz_ng/src/hb-ucdn/
Ducdn.c181 static uint32_t decode_utf16(const unsigned short **code_ptr) in decode_utf16() argument
183 const unsigned short *code = *code_ptr; in decode_utf16()
186 *code_ptr += 1; in decode_utf16()
189 *code_ptr += 2; in decode_utf16()

12