OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.jvmti/] [interp/] [getlocalvartable.java] - Blame information for rev 765

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.