# HG changeset patch # User Lukas Stadler # Date 1429178150 -7200 # Node ID c8c0944ce10da86e1a9f73b75438b739da7a9da9 # Parent ec91b758ebc7ae914af0b9c69236c74b2132c137 copy all plugins in TruffleCompilerImpl (instead of selected ones) diff -r ec91b758ebc7 -r c8c0944ce10d graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/TruffleCompilerImpl.java --- a/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/TruffleCompilerImpl.java Thu Apr 16 11:17:36 2015 +0200 +++ b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/TruffleCompilerImpl.java Thu Apr 16 11:55:50 2015 +0200 @@ -95,14 +95,9 @@ ResolvedJavaType[] skippedExceptionTypes = getSkippedExceptionTypes(providers.getMetaAccess()); GraphBuilderPhase phase = (GraphBuilderPhase) backend.getSuites().getDefaultGraphBuilderSuite().findPhase(GraphBuilderPhase.class).previous(); - Plugins graalPlugins = phase.getGraphBuilderConfig().getPlugins(); - InvocationPlugins invocationPlugins = new InvocationPlugins(graalPlugins.getInvocationPlugins()); - Plugins plugins = new Plugins(invocationPlugins); + // copy all plugins from the host + Plugins plugins = new Plugins(phase.getGraphBuilderConfig().getPlugins()); this.config = GraphBuilderConfiguration.getDefault(plugins).withSkippedExceptionTypes(skippedExceptionTypes); - // Since invocationPlugins may include MethodSubstitutionPlugins, we - // need to copy the GenericInvocationPlugins so that @NodeIntrinsics - // and Word methods in method substitutions are handled correctly. - plugins.setGenericInvocationPlugin(graalPlugins.getGenericInvocationPlugin()); this.partialEvaluator = new PartialEvaluator(providers, config, Graal.getRequiredCapability(SnippetReflectionProvider.class));