src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot.aarch64/src/jdk/vm/ci/hotspot/aarch64/AArch64HotSpotJVMCIBackendFactory.java
changeset 58650 d068b1e534de
parent 52381 7f90bc64b0fc
equal deleted inserted replaced
58649:6b6bf0de534b 58650:d068b1e534de
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2019, 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.
   125 
   125 
   126     protected HotSpotConstantReflectionProvider createConstantReflection(HotSpotJVMCIRuntime runtime) {
   126     protected HotSpotConstantReflectionProvider createConstantReflection(HotSpotJVMCIRuntime runtime) {
   127         return new HotSpotConstantReflectionProvider(runtime);
   127         return new HotSpotConstantReflectionProvider(runtime);
   128     }
   128     }
   129 
   129 
   130     private static RegisterConfig createRegisterConfig(AArch64HotSpotVMConfig config, TargetDescription target) {
   130     private static RegisterConfig createRegisterConfig(TargetDescription target) {
   131         return new AArch64HotSpotRegisterConfig(target, config.useCompressedOops);
   131         return new AArch64HotSpotRegisterConfig(target);
   132     }
   132     }
   133 
   133 
   134     protected HotSpotCodeCacheProvider createCodeCache(HotSpotJVMCIRuntime runtime, TargetDescription target, RegisterConfig regConfig) {
   134     protected HotSpotCodeCacheProvider createCodeCache(HotSpotJVMCIRuntime runtime, TargetDescription target, RegisterConfig regConfig) {
   135         return new HotSpotCodeCacheProvider(runtime, target, regConfig);
   135         return new HotSpotCodeCacheProvider(runtime, target, regConfig);
   136     }
   136     }
   165         try (InitTimer t = timer("create providers")) {
   165         try (InitTimer t = timer("create providers")) {
   166             try (InitTimer rt = timer("create MetaAccess provider")) {
   166             try (InitTimer rt = timer("create MetaAccess provider")) {
   167                 metaAccess = createMetaAccess(runtime);
   167                 metaAccess = createMetaAccess(runtime);
   168             }
   168             }
   169             try (InitTimer rt = timer("create RegisterConfig")) {
   169             try (InitTimer rt = timer("create RegisterConfig")) {
   170                 regConfig = createRegisterConfig(config, target);
   170                 regConfig = createRegisterConfig(target);
   171             }
   171             }
   172             try (InitTimer rt = timer("create CodeCache provider")) {
   172             try (InitTimer rt = timer("create CodeCache provider")) {
   173                 codeCache = createCodeCache(runtime, target, regConfig);
   173                 codeCache = createCodeCache(runtime, target, regConfig);
   174             }
   174             }
   175             try (InitTimer rt = timer("create ConstantReflection provider")) {
   175             try (InitTimer rt = timer("create ConstantReflection provider")) {