Home
last modified time | relevance | path

Searched refs:invokeExact (Results 1 – 21 of 21) sorted by relevance

/art/test/953-invoke-polymorphic-compiler/src/
DMain.java117 assertEquals((int) mh.invokeExact(33, -4), 33); in $opt$BasicTest()
118 assertEquals((int) mh.invokeExact(-4, 33), 33); in $opt$BasicTest()
123 assertEquals((int) mh.invokeExact(33, -4, 17), 33); in $opt$BasicTest()
124 assertEquals((int) mh.invokeExact(-4, 17, 33), 17); in $opt$BasicTest()
125 assertEquals((int) mh.invokeExact(17, 33, -4), 33); in $opt$BasicTest()
131 assertEquals((int) mh.invokeExact(33, -4, 77, 88, 99, 111), 33); in $opt$BasicTest()
134 assertEquals((int) mh.invokeExact(33, -4, 77, 88), 33); in $opt$BasicTest()
139 assertEquals((int) mh.invokeExact(33, -4, 77, 88, 89, 90, 91), 33); in $opt$BasicTest()
142 assertEquals((int) mh.invokeExact(-4, 77, 88, 99, 111, 33), 77); in $opt$BasicTest()
143 assertEquals((int) mh.invokeExact(77, 88, 99, 111, 33, -4), 88); in $opt$BasicTest()
[all …]
/art/test/959-invoke-polymorphic-accessors/src/
DMain.java106 m.invokeExact(value); in setByte()
109 m.invokeExact(v, value); in setByte()
128 got = (byte) m.invokeExact(); in getByte()
130 got = (byte) m.invokeExact(v); in getByte()
149 m.invokeExact(value); in setChar()
152 m.invokeExact(v, value); in setChar()
171 got = (char) m.invokeExact(); in getChar()
173 got = (char) m.invokeExact(v); in getChar()
192 m.invokeExact(value); in setShort()
195 m.invokeExact(v, value); in setShort()
[all …]
/art/test/713-varhandle-invokers/src/
DMain.java92 assertEquals(3, (int) invokerMethodHandle.invokeExact(fieldVarHandle, this, 4)); in run()
102 invokerMethodHandle.invokeExact( in run()
110 int i = (int) invokerMethodHandle.invokeExact(fieldVarHandle, this, (short) 3); in run()
117 invokerMethodHandle.invokeExact(fieldVarHandle, this, 77); in run()
124 long l = (long) invokerMethodHandle.invokeExact(fieldVarHandle, this, 77); in run()
132 int i = (int) invokerMethodHandle.invokeExact(vhNull, this, 777); in run()
250 i = (int) invokerMethodHandle.invokeExact(fieldVarHandle, this, Integer.valueOf(3)); in run()
257 i = (int) invokerMethodHandle.invokeExact(fieldVarHandle, this, (short) 33); in run()
264 invokerMethodHandle.invokeExact(fieldVarHandle, this, 77); in run()
271 l = (long) invokerMethodHandle.invokeExact(fieldVarHandle, this, 78); in run()
[all …]
/art/test/958-methodhandle-stackframe/src-art/
DMain.java100 delegate.invokeExact(false, 'h', (short) 56, 72, Integer.MAX_VALUE + 42l, in main()
123 System.out.println((boolean) delegate.invokeExact()); in main()
131 System.out.println((char) delegate.invokeExact()); in main()
139 System.out.println((int) delegate.invokeExact()); in main()
147 System.out.println((long) delegate.invokeExact()); in main()
155 System.out.println((float) delegate.invokeExact()); in main()
163 System.out.println((double) delegate.invokeExact()); in main()
171 System.out.println((String) delegate.invokeExact()); in main()
/art/test/979-const-method-handle/src/
DMain.java198 String actual = (String) getNameHandle().invokeExact(); in repeatConstMethodHandle()
209 printHelloHandle().invokeExact("Zog"); in main()
210 printHelloHandle().invokeExact("Zorba"); in main()
211 setNameHandle().invokeExact("HoverFly"); in main()
217 putMathE().invokeExact(Math.PI); in main()
225 System.out.println((String) getSval().invokeExact(st)); in main()
232 System.out.println((String) getSval().invokeExact(tt)); in main()
241 Object tos = stackPop().invokeExact(stack); in main()
244 stackTrim().invokeExact(stack); in main()
/art/test/956-methodhandles/src/
DMain.java133 mh1.invokeExact(bInstance); in testfindSpecial_invokeSuperBehaviour()
145 mh1.invokeExact(aInstance); in testfindSpecial_invokeSuperBehaviour()
157 mh2.invokeExact(cInstance); in testfindSpecial_invokeSuperBehaviour()
209 handle.invokeExact("a", new Object()); in testExceptionDetailMessages()
451 assertEquals("publicMethod", (String) mh.invokeExact(instance)); in testUnreflects()
456 assertEquals("publicStaticMethod", (String) mh.invokeExact()); in testUnreflects()
467 assertEquals("privateMethod", (String) mh.invokeExact(instance)); in testUnreflects()
478 assertEquals("privateStaticMethod", (String) mh.invokeExact()); in testUnreflects()
488 instance = (UnreflectTester) mh.invokeExact("abc"); in testUnreflects()
495 instance = (UnreflectTester) mh.invokeExact("abc", false); in testUnreflects()
[all …]
/art/test/957-methodhandle-transforms/src/
DMain.java80 transform.invokeExact("foo", 42l); in testDropArguments()
85 transform.invokeExact(45, new Object(), "foo", 42l); in testDropArguments()
90 transform.invokeExact("foo", 45, new Object(), 42l); in testDropArguments()
95 transform.invokeExact("foo", 42l, 45, new Object()); in testDropArguments()
113 transform.invokeExact((short) 45, new Object(), "foo", 42l); in testDropArguments()
176 returnVal = (String) adapter.invokeExact("foo", 42l, (String) null); in testCatchException()
183 returnVal = (String) adapter.invokeExact("foo", 42l, "exceptionMessage"); in testCatchException()
194 returnVal = (String) adapter.invokeExact("foo", 42l, "exceptionMessage"); in testCatchException()
206 returnVal = (String) adapter.invokeExact("foo", 42l, "exceptionMessage2"); in testCatchException()
214 returnVal = (String) adapter.invokeExact("foo", 42, "exceptionMessage"); in testCatchException()
[all …]
/art/test/1948-obsolete-const-method-handle/util-src/src/art/
DTest1948.java39 CLASS_BYTES = Base64.getDecoder().decode((String)getClassBase64.invokeExact());
40 DEX_BYTES = Base64.getDecoder().decode((String)getDexBase64.invokeExact());
/art/test/959-invoke-polymorphic-accessors/
Dexpected-stdout.txt3 Passed MethodHandle.invokeExact() tests for accessors.
/art/test/954-invoke-polymorphic-verifier/smali/
DBetterFakeSignaturePolymorphic.smali28 # Fail here because Main;->invokeExact is on wrong class.
29 …invoke-polymorphic {v0, v1}, LMain;->invokeExact([Ljava/lang/Object;)Ljava/lang/Object;, ([Ljava/l…
DMain.smali88 # A test method called "invokeExact" that is native varargs, but is on a class
90 .method public native varargs invokeExact([Ljava/lang/Object;)Ljava/lang/Object;
/art/test/1985-structural-redefine-stack-scope/src/
DMain.java75 assertEquals(j.invokeExact(), Transform.foo); in main()
/art/test/1987-structural-redefine-recursive-stack-scope/src/
DMain.java75 results[id] = NativeFieldScopeCheck(f, next).invokeExact(); in main()
/art/test/1986-structural-redefine-multi-thread-stack-scope/src/
DMain.java107 results[id] = mh.invokeExact(); in main()
/art/test/716-jli-jit-samples/src-art/
DMain.java86 w = (Widget) mh.invokeExact(3); in testMethodHandleCounters()
/art/test/955-methodhandles-smali/smali/
DMain.smali145 …invoke-polymorphic {v0, v1, v2}, Ljava/lang/invoke/MethodHandle;->invokeExact([Ljava/lang/Object;)…
154 …invoke-polymorphic {v0, v1}, Ljava/lang/invoke/MethodHandle;->invokeExact([Ljava/lang/Object;)Ljav…
177 # First use a long, this is an invokeExact because the callsite type matches
180 …invoke-polymorphic {v0, v1, v2}, Ljava/lang/invoke/MethodHandle;->invokeExact([Ljava/lang/Object;)…
219 # Call compareTo(Long) - this is invokeExact semantics.
/art/test/dexdump/
Dinvoke-polymorphic.txt89 …: invoke-polymorphic {v0, v2, v3, v4}, Ljava/lang/invoke/MethodHandle;.invokeExact:([Ljava/lang/Ob…
Dconst-method-handle.txt91 … |0014: invoke-polymorphic {v0, v5}, Ljava/lang/invoke/MethodHandle;.invokeExact:([Ljava/lang/Ob…
Dall-dex-files.txt8633 … |0014: invoke-polymorphic {v0, v5}, Ljava/lang/invoke/MethodHandle;.invokeExact:([Ljava/lang/Ob…
14781 …: invoke-polymorphic {v0, v2, v3, v4}, Ljava/lang/invoke/MethodHandle;.invokeExact:([Ljava/lang/Ob…
/art/test/1975-hello-structural-transformation/src/art/
DTest1975.java248 write_wrapper.getHandle().invokeExact(Test1975.class); in doTest()
/art/runtime/
Dmethod_handles.cc1014 bool invokeExact, in DoVarHandleInvokeTranslation() argument
1020 if (!invokeExact) { in DoVarHandleInvokeTranslation()