Home
last modified time | relevance | path

Searched refs:vtable (Results 1 – 25 of 153) sorted by relevance

1234567

/external/bison/lib/
Dbbitset.h89 const struct bitset_vtable *vtable; member
106 #define BITSET_VTABLE_(SRC) (SRC)->b.vtable
159 ((BSET1)->b.vtable == (BSET2)->b.vtable)
174 #define BITSET_RESIZE_(DST, SIZE) (DST)->b.vtable->resize (DST, SIZE)
177 #define BITSET_SIZE_(SRC) (SRC)->b.vtable->size (SRC)
180 #define BITSET_COUNT_(SRC) (SRC)->b.vtable->count (SRC)
183 #define BITSET_TYPE_(DST) (DST)->b.vtable->type
186 #define BITSET_SET_(DST, BITNO) (DST)->b.vtable->set (DST, BITNO)
189 #define BITSET_RESET_(DST, BITNO) (DST)->b.vtable->reset (DST, BITNO)
192 #define BITSET_TOGGLE_(DST, BITNO) (DST)->b.vtable->toggle (DST, BITNO)
[all …]
/external/compiler-rt/test/cfi/cross-dso/
Dtarget_out_of_bounds.cpp28 void *vtable = mmap(nullptr, 4096, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in main() local
30 *(uintptr_t *)p = (uintptr_t)vtable + 64; in main()
40 void *vtable = calloc(1, 128); in main() local
41 *(uintptr_t *)p = (uintptr_t)vtable + 64; in main()
51 void *vtable = calloc(1, 128); in main() local
52 memset(vtable, 0xFE, 128); in main()
53 *(uintptr_t *)p = (uintptr_t)vtable + 64; in main()
/external/llvm/test/CodeGen/X86/
Dx86-64-plt-relative-reloc.ll3 @vtable = constant [5 x i32] [i32 0,
4 …* @fn1 to i64), i64 ptrtoint (i32* getelementptr ([5 x i32], [5 x i32]* @vtable, i32 0, i32 1) to …
5 …* @fn2 to i64), i64 ptrtoint (i32* getelementptr ([5 x i32], [5 x i32]* @vtable, i32 0, i32 1) to …
6 …* @fn3 to i64), i64 ptrtoint (i32* getelementptr ([5 x i32], [5 x i32]* @vtable, i32 0, i32 1) to …
7 …lobal4 to i64), i64 ptrtoint (i32* getelementptr ([5 x i32], [5 x i32]* @vtable, i32 0, i32 1) to …
16 ; CHECK-NEXT: .long (fn1@PLT-vtable)-4
17 ; CHECK-NEXT: .long (fn2@PLT-vtable)-4
18 ; CHECK-NEXT: .long (fn3-vtable)-4
19 ; CHECK-NEXT: .long (global4-vtable)-4
Dx86-plt-relative-reloc.ll3 @vtable = constant [4 x i32] [i32 0,
4 …* @fn1 to i32), i32 ptrtoint (i32* getelementptr ([4 x i32], [4 x i32]* @vtable, i32 0, i32 1) to …
5 …* @fn2 to i32), i32 ptrtoint (i32* getelementptr ([4 x i32], [4 x i32]* @vtable, i32 0, i32 1) to …
6 …* @fn3 to i32), i32 ptrtoint (i32* getelementptr ([4 x i32], [4 x i32]* @vtable, i32 0, i32 1) to …
14 ; CHECK-NEXT: .long (fn1@PLT-vtable)-4
15 ; CHECK-NEXT: .long (fn2@PLT-vtable)-4
16 ; CHECK-NEXT: .long (fn3-vtable)-4
Dmusttail-indirect.ll34 %vtable = load i32 (%struct.B*, i32)**, i32 (%struct.B*, i32)*** %1
35 %2 = load i32 (%struct.B*, i32)*, i32 (%struct.B*, i32)** %vtable
48 …%vtable = load i32 (%struct.B*, <{ %struct.A, i32, %struct.A }>*)**, i32 (%struct.B*, <{ %struct.A…
49 …struct.A, i32, %struct.A }>*)*, i32 (%struct.B*, <{ %struct.A, i32, %struct.A }>*)** %vtable, i32 1
62 …%vtable = load void (%struct.B*, <{ %struct.A, i32, %struct.A }>*)**, void (%struct.B*, <{ %struct…
63 …truct.A, i32, %struct.A }>*)*, void (%struct.B*, <{ %struct.A, i32, %struct.A }>*)** %vtable, i32 2
76 …%vtable = load %struct.A* (%struct.B*, <{ %struct.A*, %struct.A, i32, %struct.A }>*)**, %struct.A*…
77 …uct.A }>*)*, %struct.A* (%struct.B*, <{ %struct.A*, %struct.A, i32, %struct.A }>*)** %vtable, i32 3
89 %vtable = load void (%struct.A*, %struct.B*, i32)**, void (%struct.A*, %struct.B*, i32)*** %1
90 …r inbounds void (%struct.A*, %struct.B*, i32)*, void (%struct.A*, %struct.B*, i32)** %vtable, i32 4
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/
DClassProto.java446 List<Method> vtable = getVtable(); in getMethodByVtableIndex() local
447 if (vtableIndex < 0 || vtableIndex >= vtable.size()) { in getMethodByVtableIndex()
451 return vtable.get(vtableIndex); in getMethodByVtableIndex()
458 private int findMethodIndexInVtable(@Nonnull List<Method> vtable, MethodReference method) { in findMethodIndexInVtable() argument
459 for (int i=0; i<vtable.size(); i++) { in findMethodIndexInVtable()
460 Method candidate = vtable.get(i); in findMethodIndexInVtable()
471 … private int findMethodIndexInVtableReverse(@Nonnull List<Method> vtable, MethodReference method) { in findMethodIndexInVtableReverse() argument
472 for (int i=vtable.size() - 1; i>=0; i--) { in findMethodIndexInVtableReverse()
473 Method candidate = vtable.get(i); in findMethodIndexInVtableReverse()
879 List<Method> vtable = Lists.newArrayList();
[all …]
/external/llvm/test/CodeGen/ARM/
Dplt-relative-reloc.ll3 @vtable = constant [4 x i32] [i32 0,
4 …* @fn1 to i32), i32 ptrtoint (i32* getelementptr ([4 x i32], [4 x i32]* @vtable, i32 0, i32 1) to …
5 …* @fn2 to i32), i32 ptrtoint (i32* getelementptr ([4 x i32], [4 x i32]* @vtable, i32 0, i32 1) to …
6 …* @fn3 to i32), i32 ptrtoint (i32* getelementptr ([4 x i32], [4 x i32]* @vtable, i32 0, i32 1) to …
14 ; CHECK-NEXT: .long (fn1(prel31)-vtable)-4
15 ; CHECK-NEXT: .long (fn2(prel31)-vtable)-4
16 ; CHECK-NEXT: .long (fn3-vtable)-4
/external/smali/smali/src/test/resources/LexerTest/
DMiscTest.smali52 vtable@0xABCD
53 vtable@0x0123
54 vtable@0x0123ABCD
63 vtable@
64 vtable@zzz
65 vtable@abcd
DMiscTest.tokens52 VTABLE_INDEX("vtable@0xABCD")
53 VTABLE_INDEX("vtable@0x0123")
54 VTABLE_INDEX("vtable@0x0123ABCD")
63 SIMPLE_NAME("vtable") INVALID_TOKEN("@")
64 SIMPLE_NAME("vtable") INVALID_TOKEN("@") SIMPLE_NAME("zzz")
65 SIMPLE_NAME("vtable") INVALID_TOKEN("@") SIMPLE_NAME("abcd")
/external/llvm/test/Transforms/WholeProgramDevirt/
Dvcp-type-mismatch.ll20 %vtable = load [1 x i8*]*, [1 x i8*]** %vtableptr
21 %vtablei8 = bitcast [1 x i8*]* %vtable to i8*
24 %fptrptr = getelementptr [1 x i8*], [1 x i8*]* %vtable, i32 0, i32 0
35 %vtable = load [1 x i8*]*, [1 x i8*]** %vtableptr
36 %vtablei8 = bitcast [1 x i8*]* %vtable to i8*
39 %fptrptr = getelementptr [1 x i8*], [1 x i8*]* %vtable, i32 0, i32 0
50 %vtable = load [1 x i8*]*, [1 x i8*]** %vtableptr
51 %vtablei8 = bitcast [1 x i8*]* %vtable to i8*
54 %fptrptr = getelementptr [1 x i8*], [1 x i8*]* %vtable, i32 0, i32 0
Dunique-retval.ll22 %vtable = load [1 x i8*]*, [1 x i8*]** %vtableptr
24 %vtablei8 = bitcast [1 x i8*]* %vtable to i8*
27 %fptrptr = getelementptr [1 x i8*], [1 x i8*]* %vtable, i32 0, i32 0
39 %vtable = load [1 x i8*]*, [1 x i8*]** %vtableptr
41 %vtablei8 = bitcast [1 x i8*]* %vtable to i8*
44 %fptrptr = getelementptr [1 x i8*], [1 x i8*]* %vtable, i32 0, i32 0
Dbad-read-from-vtable.ll15 %vtable = load [1 x i8*]*, [1 x i8*]** %vtableptr
16 %vtablei8 = bitcast [1 x i8*]* %vtable to i8*
31 %vtable = load [1 x i8*]*, [1 x i8*]** %vtableptr
32 %vtablei8 = bitcast [1 x i8*]* %vtable to i8*
47 %vtable = load [1 x i8*]*, [1 x i8*]** %vtableptr
48 %vtablei8 = bitcast [1 x i8*]* %vtable to i8*
Dvirtual-const-prop-end.ll68 %vtable = load [3 x i8*]*, [3 x i8*]** %vtableptr
70 %vtablei8 = bitcast [3 x i8*]* %vtable to i8*
73 %fptrptr = getelementptr [3 x i8*], [3 x i8*]* %vtable, i32 0, i32 0
88 %vtable = load [3 x i8*]*, [3 x i8*]** %vtableptr
90 %vtablei8 = bitcast [3 x i8*]* %vtable to i8*
93 %fptrptr = getelementptr [3 x i8*], [3 x i8*]* %vtable, i32 0, i32 1
108 %vtable = load [3 x i8*]*, [3 x i8*]** %vtableptr
110 %vtablei8 = bitcast [3 x i8*]* %vtable to i8*
113 %fptrptr = getelementptr [3 x i8*], [3 x i8*]* %vtable, i32 0, i32 2
Dconstant-arg.ll44 %vtable = load [1 x i8*]*, [1 x i8*]** %vtableptr
45 %vtablei8 = bitcast [1 x i8*]* %vtable to i8*
48 %fptrptr = getelementptr [1 x i8*], [1 x i8*]* %vtable, i32 0, i32 0
60 %vtable = load [1 x i8*]*, [1 x i8*]** %vtableptr
61 %vtablei8 = bitcast [1 x i8*]* %vtable to i8*
64 %fptrptr = getelementptr [1 x i8*], [1 x i8*]* %vtable, i32 0, i32 0
Dvirtual-const-prop-begin.ll73 %vtable = load [3 x i8*]*, [3 x i8*]** %vtableptr
75 %vtablei8 = bitcast [3 x i8*]* %vtable to i8*
78 %fptrptr = getelementptr [3 x i8*], [3 x i8*]* %vtable, i32 0, i32 0
93 %vtable = load [3 x i8*]*, [3 x i8*]** %vtableptr
95 %vtablei8 = bitcast [3 x i8*]* %vtable to i8*
98 %fptrptr = getelementptr [3 x i8*], [3 x i8*]* %vtable, i32 0, i32 1
113 %vtable = load [3 x i8*]*, [3 x i8*]** %vtableptr
115 %vtablei8 = bitcast [3 x i8*]* %vtable to i8*
118 %fptrptr = getelementptr [3 x i8*], [3 x i8*]* %vtable, i32 0, i32 2
/external/flatbuffers/go/
Dbuilder.go14 vtable []UOffsetT member
49 if b.vtable != nil {
50 b.vtable = b.vtable[:0]
73 if cap(b.vtable) < numfields || b.vtable == nil {
74 b.vtable = make([]UOffsetT, numfields)
76 b.vtable = b.vtable[:numfields]
77 for i := 0; i < len(b.vtable); i++ {
78 b.vtable[i] = 0
130 if vtableEqual(b.vtable, objectOffset, vt2) {
141 for i := len(b.vtable) - 1; i >= 0; i-- {
[all …]
/external/flatbuffers/net/FlatBuffers/
DTable.cs36 int vtable = bb_pos - bb.GetInt(bb_pos); in __offset()
37 return vtableOffset < bb.GetShort(vtable) ? (int)bb.GetShort(vtable + vtableOffset) : 0; in __offset()
42 int vtable = bb.Length - offset; in __offset()
43 return (int)bb.GetShort(vtable + vtableOffset - bb.GetInt(vtable)) + vtable; in __offset()
/external/mesa3d/src/loader/
Dloader_dri3_helper.c80 interval = draw->vtable->clamp_swap_interval(draw, interval); in loader_dri3_set_swap_interval()
81 draw->vtable->set_swap_interval(draw, interval); in loader_dri3_set_swap_interval()
133 const struct loader_dri3_vtable *vtable, in loader_dri3_drawable_init() argument
144 draw->vtable = vtable; in loader_dri3_drawable_init()
168 draw->vtable->set_swap_interval(draw, swap_interval); in loader_dri3_drawable_init()
191 draw->vtable->set_drawable_size(draw, draw->width, draw->height); in loader_dri3_drawable_init()
216 draw->vtable->set_drawable_size(draw, draw->width, draw->height); in dri3_handle_present_event()
240 if (draw->vtable->show_fps) in dri3_handle_present_event()
241 draw->vtable->show_fps(draw, ce->ust); in dri3_handle_present_event()
455 __DRIcontext *dri_context = draw->vtable->get_dri_context(draw); in loader_dri3_flush()
[all …]
/external/flatbuffers/java/com/google/flatbuffers/
DTable.java66 int vtable = bb_pos - bb.getInt(bb_pos); in __offset() local
67 return vtable_offset < bb.getShort(vtable) ? bb.getShort(vtable + vtable_offset) : 0; in __offset()
71 int vtable = bb.array().length - offset; in __offset() local
72 return bb.getShort(vtable + vtable_offset - bb.getInt(vtable)) + vtable; in __offset()
DFlatBufferBuilder.java44 int[] vtable = null; // The vtable for the current table. field in FlatBufferBuilder
551 if (vtable == null || vtable.length < numfields) vtable = new int[numfields]; in startObject()
553 Arrays.fill(vtable, 0, vtable_in_use, 0); in startObject()
667 vtable[voffset] = offset(); in slot()
677 if (vtable == null || !nested) in endObject()
684 short off = (short)(vtable[i] != 0 ? vtableloc - vtable[i] : 0); in endObject()
/external/mesa3d/src/glx/
Dquery_renderer.c39 if (psc->vtable->query_renderer_integer == NULL) in __glXQueryRendererInteger()
67 err = psc->vtable->query_renderer_integer(psc, attribute, buffer); in __glXQueryRendererInteger()
124 if (psc->vtable->query_renderer_integer == NULL) in __glXQueryRendererString()
135 err = psc->vtable->query_renderer_string(psc, attribute, &value); in __glXQueryRendererString()
/external/mesa3d/src/glx/tests/
Dquery_renderer_unittest.cpp106 scr.vtable = &fake_vtable; in SetUp()
128 struct glx_screen_vtable vtable = { in TEST_F() local
135 scr.vtable = &vtable; in TEST_F()
279 struct glx_screen_vtable vtable = { in TEST_F() local
286 scr.vtable = &vtable; in TEST_F()
/external/llvm/docs/
DTypeMetadata.rst9 valid vtable or function pointer for a given class or function type, and its
73 virtual table object is stored in the object's vtable pointer. In ABI parlance
75 B is constructed, the address of ``&B::f`` is stored in the vtable pointer. In
76 this way, the vtable in B's virtual table object is compatible with A's vtable.
79 virtual table object contains two vtables, one compatible with A's vtable and
80 the other compatible with C's vtable. Objects of type D contain two virtual
82 the vtable compatible with A's vtable, and the other belonging to the C
83 subobject and containing the address of the vtable compatible with C's vtable.
87 address point within that class's vtable and the name of one of the classes
104 each vtable. For example, these type metadata entries encode the compatibility
[all …]
/external/flatbuffers/js/
Dflatbuffers.js178 this.vtable = null;
525 this.vtable[voffset] = this.offset();
583 if (this.vtable == null) {
584 this.vtable = []; property
588 this.vtable[i] = 0; // This will push additional elements as needed
600 if (this.vtable == null || !this.isNested) {
610 this.addInt16(this.vtable[i] != 0 ? vtableloc - this.vtable[i] : 0);
1010 var vtable = bb_pos - this.readInt32(bb_pos);
1011 return vtable_offset < this.readInt16(vtable) ? this.readInt16(vtable + vtable_offset) : 0;
/external/llvm/test/Transforms/GVN/
Dassume-equal.ll8 ; assuming that %vtable == @_ZTV1A (with alignment).
18 %vtable = load i8**, i8*** %1, align 8
19 …%cmp.vtables = icmp eq i8** %vtable, getelementptr inbounds ([4 x i8*], [4 x i8*]* @_ZTV1A, i64 0,…
24 %vtable1.cast = bitcast i8** %vtable to i32 (%struct.A*)**
33 %vfn47 = getelementptr inbounds i8*, i8** %vtable, i64 1
54 %vtable = load i8**, i8*** %1, align 8, !invariant.group !0
55 …%cmp.vtables = icmp eq i8** %vtable, getelementptr inbounds ([4 x i8*], [4 x i8*]* @_ZTV1A, i64 0,…
60 %vtable1.cast = bitcast i8** %vtable to i32 (%struct.A*)**
89 %vfn47 = getelementptr inbounds i8*, i8** %vtable, i64 1
112 %vtable = load i8**, i8*** %1, align 8
[all …]

1234567