Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCIRuntime.java @ 22773:9273bb6ba33e
Simplify code installation interface: Use CompiledCode class instead of CompilationResult and DataSection.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Fri, 15 Jan 2016 16:50:19 +0100 |
parents | 1fbfcc0334d3 |
children | b41377216cf9 |
comparison
equal
deleted
inserted
replaced
22772:f16c1266b0de | 22773:9273bb6ba33e |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
36 import java.util.Objects; | 36 import java.util.Objects; |
37 import java.util.TreeMap; | 37 import java.util.TreeMap; |
38 | 38 |
39 import jdk.vm.ci.code.Architecture; | 39 import jdk.vm.ci.code.Architecture; |
40 import jdk.vm.ci.code.CompilationRequestResult; | 40 import jdk.vm.ci.code.CompilationRequestResult; |
41 import jdk.vm.ci.code.CompilationResult; | 41 import jdk.vm.ci.code.CompiledCode; |
42 import jdk.vm.ci.code.InstalledCode; | 42 import jdk.vm.ci.code.InstalledCode; |
43 import jdk.vm.ci.common.JVMCIError; | 43 import jdk.vm.ci.common.JVMCIError; |
44 import jdk.vm.ci.inittimer.InitTimer; | 44 import jdk.vm.ci.inittimer.InitTimer; |
45 import jdk.vm.ci.meta.JVMCIMetaAccessContext; | 45 import jdk.vm.ci.meta.JVMCIMetaAccessContext; |
46 import jdk.vm.ci.meta.JavaKind; | 46 import jdk.vm.ci.meta.JavaKind; |
261 /** | 261 /** |
262 * Notify on successful install into the CodeCache. | 262 * Notify on successful install into the CodeCache. |
263 * | 263 * |
264 * @param hotSpotCodeCacheProvider | 264 * @param hotSpotCodeCacheProvider |
265 * @param installedCode | 265 * @param installedCode |
266 * @param compResult | 266 * @param compiledCode |
267 */ | 267 */ |
268 void notifyInstall(HotSpotCodeCacheProvider hotSpotCodeCacheProvider, InstalledCode installedCode, CompilationResult compResult) { | 268 void notifyInstall(HotSpotCodeCacheProvider hotSpotCodeCacheProvider, InstalledCode installedCode, CompiledCode compiledCode) { |
269 for (HotSpotVMEventListener vmEventListener : vmEventListeners) { | 269 for (HotSpotVMEventListener vmEventListener : vmEventListeners) { |
270 vmEventListener.notifyInstall(hotSpotCodeCacheProvider, installedCode, compResult); | 270 vmEventListener.notifyInstall(hotSpotCodeCacheProvider, installedCode, compiledCode); |
271 } | 271 } |
272 } | 272 } |
273 | 273 |
274 private static void printConfig(HotSpotVMConfig config, CompilerToVM vm) { | 274 private static void printConfig(HotSpotVMConfig config, CompilerToVM vm) { |
275 Field[] fields = config.getClass().getDeclaredFields(); | 275 Field[] fields = config.getClass().getDeclaredFields(); |