changeset 58877 | aec7bf35d6f5 |
parent 58299 | 6df94ce3ab2f |
58876:1a8d65e71a66 | 58877:aec7bf35d6f5 |
---|---|
156 suites = createSuites(config, graalRuntime, compilerConfiguration, plugins, registers, replacements, options); |
156 suites = createSuites(config, graalRuntime, compilerConfiguration, plugins, registers, replacements, options); |
157 } |
157 } |
158 providers = new HotSpotProviders(metaAccess, codeCache, constantReflection, constantFieldProvider, foreignCalls, lowerer, replacements, suites, registers, |
158 providers = new HotSpotProviders(metaAccess, codeCache, constantReflection, constantFieldProvider, foreignCalls, lowerer, replacements, suites, registers, |
159 snippetReflection, wordTypes, plugins, gc); |
159 snippetReflection, wordTypes, plugins, gc); |
160 replacements.setProviders(providers); |
160 replacements.setProviders(providers); |
161 replacements.maybeInitializeEncoder(options); |
|
161 } |
162 } |
162 try (InitTimer rt = timer("instantiate backend")) { |
163 try (InitTimer rt = timer("instantiate backend")) { |
163 return createBackend(config, graalRuntime, providers); |
164 return createBackend(config, graalRuntime, providers); |
164 } |
165 } |
165 } |
166 } |
183 metaAccess, |
184 metaAccess, |
184 constantReflection, |
185 constantReflection, |
185 snippetReflection, |
186 snippetReflection, |
186 foreignCalls, |
187 foreignCalls, |
187 replacements, |
188 replacements, |
188 options); |
189 options, |
189 AMD64GraphBuilderPlugins.register(plugins, replacements.getDefaultReplacementBytecodeProvider(), (AMD64) target.arch, false, JavaVersionUtil.JAVA_SPEC >= 9, config.useFMAIntrinsics); |
190 target); |
191 AMD64GraphBuilderPlugins.register(plugins, replacements, (AMD64) target.arch, false, JavaVersionUtil.JAVA_SPEC >= 9, config.useFMAIntrinsics); |
|
190 return plugins; |
192 return plugins; |
191 } |
193 } |
192 |
194 |
193 protected AMD64HotSpotBackend createBackend(GraalHotSpotVMConfig config, HotSpotGraalRuntimeProvider runtime, HotSpotProviders providers) { |
195 protected AMD64HotSpotBackend createBackend(GraalHotSpotVMConfig config, HotSpotGraalRuntimeProvider runtime, HotSpotProviders providers) { |
194 return new AMD64HotSpotBackend(config, runtime, providers); |
196 return new AMD64HotSpotBackend(config, runtime, providers); |