comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotMethod.java @ 1416:1b41af477605

Added HotSpotVM project Java source files.
author Thomas Wuerthinger <thomas.wuerthinger@gmail.com>
date Wed, 23 Jun 2010 16:36:58 +0200
parents
children 44efca8a02d6
comparison
equal deleted inserted replaced
1415:712c7ff1afc1 1416:1b41af477605
1 package com.sun.hotspot.c1x;
2
3 import com.sun.cri.ri.RiExceptionHandler;
4 import com.sun.cri.ri.RiMethod;
5 import com.sun.cri.ri.RiMethodProfile;
6 import com.sun.cri.ri.RiSignature;
7 import com.sun.cri.ri.RiType;
8
9 public class HotSpotMethod implements RiMethod {
10
11 Object methodOop;
12 private byte[] code;
13
14 public HotSpotMethod(Object methodOop) {
15 this.methodOop = methodOop;
16 }
17
18 @Override
19 public int accessFlags() {
20 return VMEntries.RiMethod_accessFlags(methodOop);
21 }
22
23 @Override
24 public boolean canBeStaticallyBound() {
25 // TODO Auto-generated method stub
26 return false;
27 }
28
29 @Override
30 public byte[] code() {
31 if (code == null) {
32 code = VMEntries.RiMethod_code(methodOop);
33 }
34
35 return code;
36 }
37
38 @Override
39 public RiExceptionHandler[] exceptionHandlers() {
40 // TODO: Add support for exception handlers
41 return new RiExceptionHandler[0];
42 }
43
44 @Override
45 public boolean hasBalancedMonitors() {
46 // TODO Auto-generated method stub
47 return false;
48 }
49
50 @Override
51 public RiType holder() {
52 return VMEntries.RiMethod_holder(methodOop);
53 }
54
55 @Override
56 public boolean isClassInitializer() {
57 // TODO Auto-generated method stub
58 return false;
59 }
60
61 @Override
62 public boolean isConstructor() {
63 // TODO Auto-generated method stub
64 return false;
65 }
66
67 @Override
68 public boolean isLeafMethod() {
69 // TODO Auto-generated method stub
70 return false;
71 }
72
73 @Override
74 public boolean isOverridden() {
75 // TODO Auto-generated method stub
76 return false;
77 }
78
79 @Override
80 public boolean isResolved() {
81 // TODO Auto-generated method stub
82 return false;
83 }
84
85 @Override
86 public String jniSymbol() {
87 // TODO Auto-generated method stub
88 return null;
89 }
90
91 @Override
92 public Object liveness(int bci) {
93 // TODO Auto-generated method stub
94 return null;
95 }
96
97 @Override
98 public int maxLocals() {
99 return VMEntries.RiMethod_maxLocals(methodOop);
100 }
101
102 @Override
103 public int maxStackSize() {
104 return VMEntries.RiMethod_maxStackSize(methodOop);
105 }
106
107 @Override
108 public RiMethodProfile methodData() {
109 // TODO Auto-generated method stub
110 return null;
111 }
112
113 @Override
114 public String name() {
115 return VMEntries.RiMethod_name(methodOop);
116 }
117
118 @Override
119 public RiSignature signature() {
120 return new HotSpotSignature(VMEntries.RiMethod_signature(methodOop));
121 }
122
123 }