blob: e0f3b31b810133525627be612a511dc3ef711f42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
public class getlocalvartable
{
public boolean done = false;
// num_frames is the number of frames > the original run () call so if
// num_frames = 1, the thread will have 2 frames, the original Thread.run
// call, plus one additional
public int num_frames, thread_num;
public static int num_threads = 1;
static
{
System.loadLibrary("natgetlocalvartable");
}
public double aMethod (float pone, float ptwo)
{
float fone, ftwo;
double done, dtwo;
fone = pone;
ftwo = 2 * ptwo;
done = 5 * fone;
dtwo = 6 * ftwo;
return done + dtwo;
}
public long bMethod (int ipone, int iptwo)
{
int ione, itwo;
long lone, ltwo;
ione = ipone;
itwo = 5 * iptwo;
lone = ione;
ltwo = 8 * itwo;
return lone + ltwo;
}
public Object cMethod (Object op)
{
Object oone, otwo;
oone = op;
otwo = oone;
oone = null;
return otwo;
}
public static native int do_getlocalvartable_tests ();
public static void main (String[] args)
{
System.out.println ("JVMTI getlocalvartable Interpreted Test");
do_getlocalvartable_tests ();
}
}
|