Mercurial > hg > truffle
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntime.java @ 9430:147162b27799
GRAAL-234 - PTX code loading
author | Morris Meyer <morris.meyer@oracle.com> |
---|---|
date | Tue, 30 Apr 2013 08:17:55 -0400 |
parents | aaf8798b0969 |
children | 6898d8995866 |
comparison
equal
deleted
inserted
replaced
9429:aaf8798b0969 | 9430:147162b27799 |
---|---|
121 return unsafe.getLong(object, offset); | 121 return unsafe.getLong(object, offset); |
122 } | 122 } |
123 return unsafe.getInt(object, offset); | 123 return unsafe.getInt(object, offset); |
124 } | 124 } |
125 | 125 |
126 protected/* final */CompilerToVM compilerToVm; | 126 protected/* final */CompilerToVM compilerToVm; |
127 protected/* final */VMToCompiler vmToCompiler; | 127 protected/* final */CompilerToGPU compilerToGpu; |
128 protected/* final */VMToCompiler vmToCompiler; | |
128 | 129 |
129 protected final HotSpotRuntime runtime; | 130 protected final HotSpotRuntime runtime; |
130 protected final TargetDescription target; | 131 protected final TargetDescription target; |
131 protected final Replacements replacements; | 132 protected final Replacements replacements; |
132 | 133 |
135 | 136 |
136 protected final HotSpotVMConfig config; | 137 protected final HotSpotVMConfig config; |
137 private final HotSpotBackend backend; | 138 private final HotSpotBackend backend; |
138 | 139 |
139 protected HotSpotGraalRuntime() { | 140 protected HotSpotGraalRuntime() { |
140 CompilerToVM toVM = new CompilerToVMImpl(); | 141 CompilerToVM toVM = new CompilerToVMImpl(); |
142 CompilerToGPU toGPU = new CompilerToGPUImpl(); | |
141 | 143 |
142 // initialize VmToCompiler | 144 // initialize VmToCompiler |
143 VMToCompiler toCompiler = new VMToCompilerImpl(this); | 145 VMToCompiler toCompiler = new VMToCompilerImpl(this); |
144 | 146 |
145 compilerToVm = toVM; | 147 compilerToVm = toVM; |
148 compilerToGpu = toGPU; | |
146 vmToCompiler = toCompiler; | 149 vmToCompiler = toCompiler; |
147 config = new HotSpotVMConfig(); | 150 config = new HotSpotVMConfig(); |
148 compilerToVm.initializeConfiguration(config); | 151 compilerToVm.initializeConfiguration(config); |
149 config.check(); | 152 config.check(); |
150 | 153 |
220 return compilerToVm; | 223 return compilerToVm; |
221 } | 224 } |
222 | 225 |
223 public VMToCompiler getVMToCompiler() { | 226 public VMToCompiler getVMToCompiler() { |
224 return vmToCompiler; | 227 return vmToCompiler; |
228 } | |
229 | |
230 public CompilerToGPU getCompilerToGPU() { | |
231 return compilerToGpu; | |
225 } | 232 } |
226 | 233 |
227 public JavaType lookupType(String name, HotSpotResolvedObjectType accessingClass, boolean eagerResolve) { | 234 public JavaType lookupType(String name, HotSpotResolvedObjectType accessingClass, boolean eagerResolve) { |
228 if (name.length() == 1 && vmToCompiler instanceof VMToCompilerImpl) { | 235 if (name.length() == 1 && vmToCompiler instanceof VMToCompilerImpl) { |
229 VMToCompilerImpl impl = (VMToCompilerImpl) vmToCompiler; | 236 VMToCompilerImpl impl = (VMToCompilerImpl) vmToCompiler; |