Home
last modified time | relevance | path

Searched refs:invoke (Results 1 – 25 of 546) sorted by relevance

12345678910>>...22

/art/test/954-invoke-polymorphic-verifier/smali/
DVarHandleHappyAccessors.smali23 invoke-direct {p0}, Ljava/lang/Object;-><init>()V
24 invoke-static {}, LVarHandleHappyAccessors;->getVarHandle()Ljava/lang/invoke/VarHandle;
29invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->compareAndExchange([Ljava/lang/Object;)…
30invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->compareAndExchangeAcquire([Ljava/lang/O…
31invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->compareAndExchangeRelease([Ljava/lang/O…
32invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->compareAndSet([Ljava/lang/Object;)Z, ([…
33invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->get([Ljava/lang/Object;)Ljava/lang/Obje…
34invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->getAcquire([Ljava/lang/Object;)Ljava/la…
35invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->getAndAdd([Ljava/lang/Object;)Ljava/lan…
36invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->getAndAddAcquire([Ljava/lang/Object;)Lj…
[all …]
DVarHandleUnhappyAccessors.smali23 invoke-direct {p0}, Ljava/lang/Object;-><init>()V
24 invoke-static {}, LVarHandleUnhappyAccessors;->getVarHandle()Ljava/lang/invoke/VarHandle;
26 invoke-static {}, LVarHandleUnhappyAccessors;->getObjectArray()[Ljava/lang/Object;
28invoke-static {v0, v1}, LVarHandleUnhappyAccessors;->compareAndExchange(Ljava/lang/invoke/VarHandl…
29invoke-static {v0}, LVarHandleUnhappyAccessors;->compareAndExchangeAcquire(Ljava/lang/invoke/VarHa…
30invoke-static {v0}, LVarHandleUnhappyAccessors;->compareAndExchangeRelease(Ljava/lang/invoke/VarHa…
31 invoke-static {v0}, LVarHandleUnhappyAccessors;->compareAndSet(Ljava/lang/invoke/VarHandle;)V
35 # The following methods all invoke VarHandle accessors but the targetted
38 .method public static compareAndExchange(Ljava/lang/invoke/VarHandle;[Ljava/lang/Object;)V
40invoke-polymorphic {p0, p1}, Ljava/lang/invoke/VarHandle;->compareAndExchange([Ljava/lang/Object;)…
[all …]
DSubclass.smali23 invoke-direct {p0}, Ljava/lang/Object;-><init>()V
26 invoke-static {}, LSubclass;->getMethodHandleSubclassInstance()Ljava/lang/invoke/MethodHandleImpl;
30 # Calling MethodHandle.invoke() on MethodHandleImpl instance (subclass of MethodHandle) => Okay
31invoke-polymorphic {v0, v1, v2}, Ljava/lang/invoke/MethodHandle;->invoke([Ljava/lang/Object;)Ljava…
32 …# Calling MethodHandleImpl.invoke() rather than MethodHandle.invoke() [ declaring class is okay ] …
33invoke-polymorphic {v0, v1, v2}, Ljava/lang/invoke/MethodHandleImpl;->invoke([Ljava/lang/Object;)L…
37 invoke-virtual {v1, v2}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
41 .method public static getMethodHandleSubclassInstance()Ljava/lang/invoke/MethodHandleImpl;
/art/test/685-shifts/src/
DMain.java47 assertEquals(smallLong, (Long)m.invoke(null, smallLong)); in main()
48 assertEquals(longLong, (Long)m.invoke(null, longLong)); in main()
51 assertEquals(smallLong, (Long)m.invoke(null, smallLong)); in main()
52 assertEquals(longLong, (Long)m.invoke(null, longLong)); in main()
55 assertEquals(smallLong, (Long)m.invoke(null, smallLong)); in main()
56 assertEquals(longLong, (Long)m.invoke(null, longLong)); in main()
59 assertEquals(smallLongShlOne, (Long)m.invoke(null, smallLong)); in main()
60 assertEquals(longLongShlOne, (Long)m.invoke(null, longLong)); in main()
63 assertEquals(smallLongShrOne, (Long)m.invoke(null, smallLong)); in main()
64 assertEquals(longLongShrOne, (Long)m.invoke(null, longLong)); in main()
[all …]
/art/test/2000-virtual-list-structural/src/
DMain.java19 import java.lang.invoke.*;
47 …ut.println("List is: " + c + " count = " + getcnt.invoke(c) + " TOTAL_COUNT = " + get_total_cnt.in… in PrintListAndData()
71 CheckLE(getcnt.invoke(l1), get_total_cnt.invoke()); in main()
72 CheckLE(getcnt.invoke(l2), get_total_cnt.invoke()); in main()
73 CheckLE(getcnt.invoke(l3), get_total_cnt.invoke()); in main()
74 CheckLE(getcnt.invoke(l4), get_total_cnt.invoke()); in main()
75 CheckEQ(getcnt.invoke(l1), 0); in main()
76 CheckLE(getcnt.invoke(l2), 0); in main()
77 CheckLE(getcnt.invoke(l1), getcnt.invoke(l2)); in main()
78 CheckLE(getcnt.invoke(l1), getcnt.invoke(l3)); in main()
[all …]
/art/compiler/optimizing/
Dintrinsics_arm_vixl.cc79 explicit IntrinsicSlowPathARMVIXL(HInvoke* invoke) in IntrinsicSlowPathARMVIXL() argument
80 : SlowPathCodeARMVIXL(invoke), invoke_(invoke) {} in IntrinsicSlowPathARMVIXL()
250 bool IntrinsicLocationsBuilderARMVIXL::TryDispatch(HInvoke* invoke) { in TryDispatch() argument
251 Dispatch(invoke); in TryDispatch()
252 LocationSummary* res = invoke->GetLocations(); in TryDispatch()
259 static void CreateFPToIntLocations(ArenaAllocator* allocator, HInvoke* invoke) { in CreateFPToIntLocations() argument
261 new (allocator) LocationSummary(invoke, LocationSummary::kNoCall, kIntrinsified); in CreateFPToIntLocations()
266 static void CreateIntToFPLocations(ArenaAllocator* allocator, HInvoke* invoke) { in CreateIntToFPLocations() argument
268 new (allocator) LocationSummary(invoke, LocationSummary::kNoCall, kIntrinsified); in CreateIntToFPLocations()
293 void IntrinsicLocationsBuilderARMVIXL::VisitDoubleDoubleToRawLongBits(HInvoke* invoke) { in VisitDoubleDoubleToRawLongBits() argument
[all …]
Dintrinsics.h42 void Dispatch(HInvoke* invoke) { in Dispatch() argument
43 switch (invoke->GetIntrinsic()) { in Dispatch()
48 Visit ## Name(invoke); \ in Dispatch()
62 virtual void Visit ## Name(HInvoke* invoke ATTRIBUTE_UNUSED) { \
69 static void MoveArguments(HInvoke* invoke, in INTRINSICS_LIST()
72 if (kIsDebugBuild && invoke->IsInvokeStaticOrDirect()) { in INTRINSICS_LIST()
73 HInvokeStaticOrDirect* invoke_static_or_direct = invoke->AsInvokeStaticOrDirect(); in INTRINSICS_LIST()
79 if (invoke->GetNumberOfArguments() == 0) { in INTRINSICS_LIST()
84 LocationSummary* locations = invoke->GetLocations(); in INTRINSICS_LIST()
90 for (size_t i = 0; i < invoke->GetNumberOfArguments(); i++) { in INTRINSICS_LIST()
[all …]
/art/runtime/interpreter/mterp/arm64/
Dinvoke.S1 %def invoke(helper="UndefinedInvokeHandler"):
43 % invoke(helper="MterpInvokeCustom")
46 % invoke(helper="MterpInvokeCustomRange")
49 % invoke(helper="MterpInvokeDirect")
52 % invoke(helper="MterpInvokeDirectRange")
55 % invoke(helper="MterpInvokeInterface")
65 % invoke(helper="MterpInvokeInterfaceRange")
74 % invoke(helper="MterpInvokeStatic")
78 % invoke(helper="MterpInvokeStaticRange")
81 % invoke(helper="MterpInvokeSuper")
[all …]
/art/runtime/interpreter/mterp/arm/
Dinvoke.S1 %def invoke(helper="UndefinedInvokeHandler"):
47 % invoke(helper="MterpInvokeCustom")
57 % invoke(helper="MterpInvokeCustomRange")
60 % invoke(helper="MterpInvokeDirect")
63 % invoke(helper="MterpInvokeDirectRange")
66 % invoke(helper="MterpInvokeInterface")
76 % invoke(helper="MterpInvokeInterfaceRange")
85 % invoke(helper="MterpInvokeStatic")
89 % invoke(helper="MterpInvokeStaticRange")
92 % invoke(helper="MterpInvokeSuper")
[all …]
/art/runtime/interpreter/mterp/x86_64/
Dinvoke.S1 %def invoke(helper="UndefinedInvokeHandler"):
48 % invoke(helper="MterpInvokeCustom")
51 % invoke(helper="MterpInvokeCustomRange")
54 % invoke(helper="MterpInvokeDirect")
57 % invoke(helper="MterpInvokeDirectRange")
60 % invoke(helper="MterpInvokeInterface")
70 % invoke(helper="MterpInvokeInterfaceRange")
79 % invoke(helper="MterpInvokeStatic")
83 % invoke(helper="MterpInvokeStaticRange")
86 % invoke(helper="MterpInvokeSuper")
[all …]
/art/runtime/interpreter/mterp/x86/
Dinvoke.S1 %def invoke(helper="UndefinedInvokeHandler"):
54 % invoke(helper="MterpInvokeCustom")
57 % invoke(helper="MterpInvokeCustomRange")
60 % invoke(helper="MterpInvokeDirect")
63 % invoke(helper="MterpInvokeDirectRange")
66 % invoke(helper="MterpInvokeInterface")
76 % invoke(helper="MterpInvokeInterfaceRange")
85 % invoke(helper="MterpInvokeStatic")
89 % invoke(helper="MterpInvokeStaticRange")
92 % invoke(helper="MterpInvokeSuper")
[all …]
/art/test/dexdump/
Dinvoke-custom.lst1 #invoke-custom.dex
2 0x00001b28 8 TestBadBootstrapArguments$TestersConstantCallSite <init> (Ljava/lang/invoke/MethodHand…
21 …dBSM bsm (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Lj…
29 …nts bsm (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;ILj…
30 …pArguments bsmDJ (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/Metho…
31 … (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang…
32 …rapArguments bsmReturningInteger (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/l…
33 …trapArguments bsmReturningObject (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/l…
34 …ReturningTestersConstantCallsite (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/l…
35 …tstrapArguments bsmReturningVoid (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/l…
[all …]
Dinvoke-custom.txt1 Processing 'invoke-custom.dex'...
2 Opened 'invoke-custom.dex', DEX version '038'
47 Superclass : 'Ljava/lang/invoke/ConstantCallSite;'
54 type : '(Ljava/lang/invoke/MethodHandle;)V'
61 …001b18] TestBadBootstrapArguments$TestersConstantCallSite.<init>:(Ljava/lang/invoke/MethodHandle;)V
62 …00 |0000: invoke-direct {v0, v1}, Ljava/lang/invoke/ConstantCallSite;.<ini…
70 0x0000 - 0x0004 reg=1 mh Ljava/lang/invoke/MethodHandle;
106 002554: 7010 bf00 0000 |0000: invoke-direct {v0}, Ljava/lang/Object;.<init>…
128 00257a: 7010 c100 0100 |0007: invoke-direct {v1}, Ljava/lang/StringBuilder;…
130 002584: 6e20 c800 2100 |000c: invoke-virtual {v1, v2}, Ljava/lang/StringBui…
[all …]
Dconst-method-handle.txt61 0003c0: 7010 0a00 0000 |0000: invoke-direct {v0}, Ljava/lang/Object;.<init>…
79 …0 0000 |0000: invoke-static {}, Ljava/lang/invoke/MethodHandles;.lookup:()…
85 … |000c: invoke-static {v3, v4}, Ljava/lang/invoke/MethodType;.methodType:(Ljava/lang/Clas…
87invoke-virtual {v0, v1, v2, v3}, Ljava/lang/invoke/MethodHandles$Lookup;.findStatic:(Ljava/lang/Cl…
89 …00400: fa20 1200 5000 1000 |0014: invoke-polymorphic {v0, v5}, Ljava/lang/invok…
138 00041c: 7010 0a00 0000 |0000: invoke-direct {v0}, Ljava/lang/Object;.<init>…
148 type : '(Ljava/lang/invoke/MethodHandle;)V'
155 … |[000424] constmethodhandle.ConstTest.displayMethodHandle:(Ljava/lang/invoke/MethodHandle;)V
158 00043c: 7010 0c00 0100 |0004: invoke-direct {v1}, Ljava/lang/StringBuilder;…
160 000446: 6e20 0e00 2100 |0009: invoke-virtual {v1, v2}, Ljava/lang/StringBui…
[all …]
/art/test/955-methodhandles-smali/smali/
DMain.smali22 …eForVirtual(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/Met…
26invoke-static {}, Ljava/lang/invoke/MethodHandles;->publicLookup()Ljava/lang/invoke/MethodHandles$…
30invoke-virtual {v0, p0, p1, p2}, Ljava/lang/invoke/MethodHandles$Lookup;->findVirtual(Ljava/lang/C…
39 …leForStatic(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/Met…
43invoke-static {}, Ljava/lang/invoke/MethodHandles;->publicLookup()Ljava/lang/invoke/MethodHandles$…
47invoke-virtual {v0, p0, p1, p2}, Ljava/lang/invoke/MethodHandles$Lookup;->findStatic(Ljava/lang/Cl…
53 .method public static getStringConcatHandle()Ljava/lang/invoke/MethodHandle;
56 invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
60invoke-static {v1, v1}, Ljava/lang/invoke/MethodType;->methodType(Ljava/lang/Class;Ljava/lang/Clas…
64invoke-static {v1, v0, v2}, LMain;->getHandleForVirtual(Ljava/lang/Class;Ljava/lang/String;Ljava/l…
[all …]
/art/test/563-checker-fakestring/src/
DMain.java48 String result = (String) m.invoke(null, new Object[] { testData }); in main()
53 c.getMethod("compareNewInstance").invoke(null, (Object[]) null); in main()
61 m.invoke(null, new Object[] { new int[] { 1, 2, 3 }, testData }); in main()
73 String result = (String) m.invoke(null, new Object[] { testData }); in main()
79 String result = (String) m.invoke(null, new Object[] { testData, true }); in main()
81 result = (String) m.invoke(null, new Object[] { testData, false }); in main()
86 String result = (String) m.invoke(null, new Object[] { testData, true }); in main()
88 result = (String) m.invoke(null, new Object[] { testData, false }); in main()
93 String result = (String) m.invoke(null, new Object[] { testData, true }); in main()
95 result = (String) m.invoke(null, new Object[] { testData, false }); in main()
[all …]
/art/test/713-varhandle-invokers/src/
DMain.java17 import java.lang.invoke.MethodHandle;
18 import java.lang.invoke.MethodHandles;
19 import java.lang.invoke.MethodType;
20 import java.lang.invoke.VarHandle;
21 import java.lang.invoke.WrongMethodTypeException;
143 int i = (int) invokerMethodHandle.invoke(fieldVarHandle, this, Integer.valueOf(3)); in run()
147 i = (int) invokerMethodHandle.invoke(fieldVarHandle, this, Short.valueOf((short) 4)); in run()
151 i = (int) invokerMethodHandle.invoke(fieldVarHandle, this, (short) 23); in run()
155 invokerMethodHandle.invoke(fieldVarHandle, this, 77); in run()
159 long l = (long) invokerMethodHandle.invoke(fieldVarHandle, this, 88); in run()
[all …]
/art/test/660-store-8-16/src/
DMain.java27 cls.getMethod("setByteStaticField").invoke(null); in main()
30 cls.getMethod("setShortStaticField").invoke(null); in main()
33 cls.getMethod("setCharStaticField").invoke(null); in main()
38 cls.getMethod("setByteArray", byte[].class).invoke(null, args); in main()
43 cls.getMethod("setShortArray", short[].class).invoke(null, args); in main()
48 cls.getMethod("setCharArray", char[].class).invoke(null, args); in main()
54 cls.getMethod("setByteInstanceField", cls).invoke(null, args); in main()
57 cls.getMethod("setShortInstanceField", cls).invoke(null, args); in main()
60 cls.getMethod("setCharInstanceField", cls).invoke(null, args); in main()
/art/test/957-methodhandle-transforms/src/
DMain.java17 import java.lang.invoke.MethodHandle;
18 import java.lang.invoke.MethodHandles;
19 import java.lang.invoke.MethodHandles.Lookup;
20 import java.lang.invoke.MethodType;
21 import java.lang.invoke.WrongMethodTypeException;
58 handle.invoke(iae); in testThrowException()
86 transform.invoke(45, new Object(), "foo", 42l); in testDropArguments()
91 transform.invoke("foo", 45, new Object(), 42l); in testDropArguments()
96 transform.invoke("foo", 42l, 45, new Object()); in testDropArguments()
101 transform.invoke("foo", 42l, 45l, new Object()); in testDropArguments()
[all …]
/art/test/622-simplifyifs-exception-edges/src/
DMain.java24 assertIntEquals(-2, (int)test.invoke(null, new Object[] { null })); in main()
25 assertIntEquals(-1, (int)test.invoke(null, new Object[] { new int[0] })); in main()
26 assertIntEquals(42, (int)test.invoke(null, new Object[] { new int[] { 42 } })); in main()
29 assertIntEquals(-2, (int)test2.invoke(null, new Object[] { null, 0 })); in main()
30 assertIntEquals(-1, (int)test2.invoke(null, new Object[] { new int[0], 0 })); in main()
31 assertIntEquals(-1, (int)test2.invoke(null, new Object[] { new int[0], 1 })); in main()
32 assertIntEquals(3, (int)test2.invoke(null, new Object[] { new int[] { 42 }, 0 })); in main()
/art/test/958-methodhandle-stackframe/src-art/
DMain.java17 import java.lang.invoke.MethodHandle;
18 import java.lang.invoke.MethodHandles;
19 import java.lang.invoke.MethodHandles.Lookup;
20 import java.lang.invoke.MethodType;
21 import java.lang.invoke.WrongMethodTypeException;
22 import java.lang.invoke.Transformers.Transformer;
79 delegate.invoke(stackFrame); in transform()
105 delegate.invoke(false, 'h', (short) 56, 72, 73, in main()
110 delegate.invoke(false); in main()
122 System.out.println((boolean) delegate.invoke()); in main()
[all …]
/art/test/954-invoke-polymorphic-verifier/
Dexpected.txt1 …>(): void MethodHandleNotInvoke.<init>(): couldn't find method java.lang.invoke.MethodHandle.notIn…
2 …hodHandleToString.<init>(): invoke type (METHOD_POLYMORPHIC) does not match method type of java.la…
6 …nt 'Precise Reference: java.lang.String' not instance of 'Reference: java.lang.invoke.MethodHandle'
7 …SignaturePolymorphic.<init>(): invoke type (METHOD_POLYMORPHIC) does not match method type of java…
10 …ed: void Unresolved.<init>() failed to verify: void Unresolved.<init>(): invoke-polymorphic receiv…
12invoke.VarHandle, java.lang.Object[]) failed to verify: void VarHandleUnhappyAccessors.compareAndE…
13invoke.VarHandle) failed to verify: void VarHandleUnhappyAccessors.compareAndExchangeAcquire(java.…
14invoke.VarHandle) failed to verify: void VarHandleUnhappyAccessors.compareAndExchangeRelease(java.…
15invoke.VarHandle) failed to verify: void VarHandleUnhappyAccessors.compareAndSet(java.lang.invoke.…
16 …: void VarHandleUnknownAccessor.<init>(): couldn't find method java.lang.invoke.VarHandle.unknownA…
/art/test/463-checker-boolean-simplifier/src-art/
DMain.java236 assertBoolEquals(false, (boolean)booleanNot.invoke(null, true)); in main()
237 assertBoolEquals(true, (boolean)booleanNot.invoke(null, false)); in main()
245 assertBoolEquals(true, (boolean)valuesOrdered.invoke(null, 1, 3, 5)); in main()
246 assertBoolEquals(true, (boolean)valuesOrdered.invoke(null, 5, 3, 1)); in main()
247 assertBoolEquals(false, (boolean)valuesOrdered.invoke(null, 1, 3, 2)); in main()
248 assertBoolEquals(false, (boolean)valuesOrdered.invoke(null, 2, 3, 1)); in main()
249 assertBoolEquals(true, (boolean)valuesOrdered.invoke(null, 3, 3, 3)); in main()
250 assertBoolEquals(true, (boolean)valuesOrdered.invoke(null, 3, 3, 5)); in main()
251 assertBoolEquals(false, (boolean)valuesOrdered.invoke(null, 5, 5, 3)); in main()
252 assertIntEquals(42, (int)negatedCondition.invoke(null, true)); in main()
[all …]
/art/test/1929-exception-catch-exception/smali/art/
DTest1929$Impl.smali42 invoke-direct {p0}, Ljava/lang/Object;-><init>()V
57 invoke-direct {v1, v2}, Lart/Test1929$TestException;-><init>(Ljava/lang/String;)V
75 invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
79invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBui…
83 invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
87 invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;
91invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBui…
97invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBui…
101 invoke-virtual {v0}, Lart/Test1929$BaseTestException;->getMessage()Ljava/lang/String;
105invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBui…
[all …]
/art/test/956-methodhandles/src/
DMain.java17 import java.lang.invoke.MethodHandle;
18 import java.lang.invoke.MethodHandleInfo;
19 import java.lang.invoke.MethodHandles;
20 import java.lang.invoke.MethodHandles.Lookup;
21 import java.lang.invoke.MethodType;
22 import java.lang.invoke.WrongMethodTypeException;
134 mh1.invoke(bInstance); in testfindSpecial_invokeSuperBehaviour()
139 mh1.invoke(aInstance); in testfindSpecial_invokeSuperBehaviour()
152 mh1.invoke(cInstance); in testfindSpecial_invokeSuperBehaviour()
186 mh3.invoke(dInstance); in testfindSpecial_invokeDirectBehaviour()
[all …]

12345678910>>...22